/* ========================================
   福耀汽车玻璃骑马山路店 - 官网样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D1B4E;
    --primary-light: #3D2B5E;
    --gold: #D4AF37;
    --gold-light: #E5C95A;
    --text-dark: #1a1a2e;
    --text-gray: #555;
    --text-light: #888;
    --bg-light: #f8f8fa;
    --bg-white: #ffffff;
    --border: #e5e5e5;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 27, 78, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--primary);
}

.logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.nav-phone svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== Hero主视觉 ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/storefront.jpg') center/cover;
    filter: brightness(0.35);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45,27,78,0.85) 0%, rgba(45,27,78,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(212,175,55,0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.hero-feature svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ===== 通用区块 ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 页面横幅（内页用） ===== */
.page-banner {
    margin-top: 70px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/storefront.jpg') center/cover;
    opacity: 0.15;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

.breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

/* ===== 服务项目 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45,27,78,0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-featured {
    border: 2px solid var(--gold);
    position: relative;
}

.service-featured::before {
    content: '特色服务';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* ===== 核心优势 ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.advantage-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212,175,55,0.15);
}

.advantage-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1;
}

.advantage-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== 技师团队 ===== */
.team-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.team-section .section-title {
    color: #fff;
}

.team-section .section-desc {
    color: rgba(255,255,255,0.7);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.team-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 10px;
}

.team-cert {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== 案例展示 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover img {
    transform: scale(1.08);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(45,27,78,0.95));
    color: #fff;
}

.case-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.case-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img:first-child {
    grid-column: 1 / -1;
    height: 250px;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== 联系我们 ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.contact-item-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-item-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-map {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    flex: 1;
    background: linear-gradient(135deg, #e8e4f0 0%, #d5d0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.map-pin {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(45,27,78,0.4);
}

.map-pin svg {
    transform: rotate(45deg);
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.map-address {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: 0 30px;
}

.map-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212,175,55,0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item[open] .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-item[open] .faq-answer {
    max-height: none;
    padding: 0 25px 20px;
}

.faq-answer-content {
    padding: 0 25px 20px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===== 知识库 ===== */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.knowledge-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45,27,78,0.15);
}

.knowledge-img {
    height: 180px;
    overflow: hidden;
}

.knowledge-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-content {
    padding: 20px;
}

.knowledge-category {
    display: inline-block;
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.knowledge-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.knowledge-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.knowledge-readmore {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
}

/* ===== 浮动电话按钮 ===== */
.float-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(212,175,55,0.5);
    z-index: 999;
    animation: pulse 2s infinite;
}

.float-phone svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== 响应式适配 ===== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 30px;
    }

    .page-banner h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-features {
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-phone {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .page-banner {
        height: 200px;
    }

    .page-banner h1 {
        font-size: 26px;
    }
}

/* Native disclosure remains operable when JavaScript is unavailable. */
.faq-question { list-style: none; }
.faq-question::-webkit-details-marker { display: none; }

/* 原生三角由 GEO 管线统一隐藏，这里用伪元素补上展开指示。 */
.faq-question::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}
