/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== 顶部导航 ========== */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

.btn-nav {
    background-color: transparent;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-nav:hover {
    background-color: #2563eb;
    color: white;
}

.btn-nav.active {
    background-color: #2563eb;
    color: white;
}

/* ========== 通用区块样式 ========== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

/* ========== 主视觉区 ========== */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2ff 100%);
    text-align: center;
    padding: 5rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ========== 服务区 ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.service-desc {
    color: #6b7280;
    font-size: 0.9375rem;
}

/* ========== 案例区 ========== */
.cases {
    background-color: #f9fafb;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.case-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem;
    color: #111827;
}

.case-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 1rem 1.25rem;
}

.cases-more {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-link {
    color: #2563eb;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========== CTA区 ========== */
.cta {
    background-color: #2563eb;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: #2563eb;
}

.cta .btn-primary:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========== 页脚 ========== */
.footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

.copyright {
    margin-bottom: 0.5rem;
}

.icp {
    font-size: 0.75rem;
}

/* ========== 报价页面新增样式 ========== */

/* 页面主视觉（报价页用） */
.page-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* 报价卡片 */
.quote-form-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.quote-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.form-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #f9fafb;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

/* 禁用状态样式（演示用） */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.form-submit .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 报价提示信息 */
.quote-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #eff6ff;
    border-radius: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.notice-icon {
    font-size: 2rem;
}

.notice-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.notice-content p {
    font-size: 0.875rem;
    color: #374151;
}

/* 联系方式区域 */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.contact-value {
    font-size: 1.125rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 返回首页区域 */
.back-home {
    padding: 2rem 0 4rem;
    text-align: center;
}

/* ========== 响应式适配 ========== */

/* 平板设备 (768px - 1023px) */
@media (max-width: 1023px) {
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        gap: 1.5rem;
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .btn-nav {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    /* 报价页面响应式 */
    .quote-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .quote-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* 小手机设备 (小于480px) */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .case-image {
        height: 180px;
    }
    
    .contact-value {
        font-size: 1rem;
    }
}

/* ========== 成功提示样式 ========== */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #10b981;
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 1rem;
}

.success-message p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* 按钮禁用状态 */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 输入框焦点样式 */
.form-group.focused label {
    color: #2563eb;
}

.form-group.focused input,
.form-group.focused select,
.form-group.focused textarea {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}