/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #FF9500;
    --text-dark: #1C1C1E;
    --text-light: #6E6E73;
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

/* 首页横幅 */
.hero {
    padding: 150px 0 100px;
    background: var(--bg-light);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-img {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background: #fff;
    padding: 10px;
    object-fit: contain;
}

.qr-text {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

/* 通用区块样式 */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* 服务项目 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-light);
    font-size: 16px;
}

/* 价格表 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}

.pricing-item:last-child {
    border-bottom: none;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* 页脚 */
.footer {
    background: #1C1C1E;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #6E6E73;
    margin-bottom: 10px;
}

.footer-section a {
    color: #6E6E73;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2C2C2E;
    color: #6E6E73;
}

/* 折叠屏维修价格 */
.foldable-pricing {
    background: var(--bg-light);
}

.foldable-brand-block {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s;
}

.foldable-brand-block:hover {
    box-shadow: var(--shadow-hover);
}

.foldable-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 30px 40px 20px;
    border-bottom: 2px solid var(--bg-light);
}

.foldable-brand-icon {
    font-size: 32px;
}

.foldable-brand-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.foldable-table-wrap {
    overflow-x: auto;
    padding: 10px 20px 20px;
}

.foldable-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.foldable-table thead th {
    background: var(--bg-light);
    padding: 16px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid #E0E0E0;
    white-space: nowrap;
}

.foldable-table thead th:first-child {
    text-align: left;
    border-radius: 12px 0 0 12px;
}

.foldable-table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.foldable-table tbody tr {
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.2s;
}

.foldable-table tbody tr:last-child {
    border-bottom: none;
}

.foldable-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.04);
}

.foldable-table tbody tr.row-highlight {
    background: rgba(255, 149, 0, 0.06);
}

.foldable-table tbody tr.row-highlight:hover {
    background: rgba(255, 149, 0, 0.12);
}

.foldable-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 16px;
}

.foldable-table td.model-name {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.price-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 17px;
}

.price-na {
    color: var(--text-light);
    opacity: 0.4;
    font-size: 18px;
}

.price-note-tag {
    display: inline-block;
    background: rgba(255, 149, 0, 0.12);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 30px;
}

/* 服务与售后 */
.support {
    background: var(--bg-light);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.support-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.support-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.support-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.support-desc {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

.support-desc strong {
    color: var(--accent-color);
    font-weight: 700;
}

.support-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 122, 255, 0.08);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-arrow {
    font-size: 18px;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-qr {
        align-items: center;
    }
    
    .qr-img {
        width: 160px;
        height: 160px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        font-size: 32px;
    }

    .support-card {
        padding: 25px 20px;
    }

    .support-flow {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .foldable-brand-header {
        padding: 20px 20px 15px;
    }

    .foldable-brand-name {
        font-size: 20px;
    }

    .foldable-table thead th {
        padding: 12px 10px;
        font-size: 13px;
    }

    .foldable-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .foldable-table td.model-name {
        font-size: 14px;
    }

    .price-text {
        font-size: 15px;
    }

    .price-note-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
