/* ============================================
   China Wonder Cars - Global Stylesheet
   统一样式文件 - 所有页面共享
   ============================================ */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: #444;
    background: #fff;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* CSS Variables */
:root {
    --red: #C41E3A;
    --orange: #E05E2F;
    --green: #3A7D44;
    --primary: #C41E3A;
    --primary-hover: #A01830;
    --accent: #3A7D44;
    --accent-hover: #2E6436;
    --accent-light: #4A9A56;
    --text: #444;
    --heading: #000;
    --light-bg: #F1F1F1;
    --footer-bg: #161719;
    --footer-text: #87888A;
    --white: #ffffff;
    --border: #e0e0e0;
    --transition: all 0.3s ease;
}

/* Layout */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section {
    padding: 60px 0;
}

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

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--heading);
    text-align: center;
    margin-bottom: 40px;
}

/* Top Bar */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.top-bar .contact-info span {
    white-space: nowrap;
}

.top-bar .phone i {
    color: var(--primary);
}

/* Header */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.brand .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

.brand .logo .c-red { color: var(--red); }
.brand .logo .c-orange { color: var(--orange); }
.brand .logo .c-green { color: var(--green); }

.brand .tagline {
    font-size: 11px;
    color: #999;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav > li > a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.main-nav > li > a:hover {
    color: var(--primary);
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 999;
    padding: 8px 0;
}

.main-nav > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .submenu li a {
    display: block;
    padding: 9px 20px;
    font-size: 13px;
    color: var(--text);
}

.main-nav .submenu li a:hover {
    background: #f8f8f8;
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    margin: 5px 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(196,30,58,.9), rgba(160,24,48,.85)), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=1920&q=80') center/cover;
    color: #fff;
    padding: 60px 0 35px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.page-header p {
    font-size: 15px;
    opacity: .9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0;
}

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

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    padding: 5px 0;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--footer-text);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col .contact-info p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.8;
}

.footer-col .contact-info i {
    width: 18px;
    color: var(--primary);
    margin-right: 4px;
}

.footer-col .qr-codes {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-col .qr-code {
    text-align: center;
}

.footer-col .qr-box {
    width: 90px;
    height: 90px;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
    background: #fff;
    padding: 4px;
}

.footer-col .qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-col .qr-code span {
    font-size: 11px;
    color: #87888a;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2b2d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #87888a;
    font-size: 14px;
    transition: all .3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2a2b2d;
    margin-top: 50px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

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

.footer-bottom a:hover {
    color: #fff;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Styles */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--heading);
    margin-bottom: 24px;
    text-align: center;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-item .q {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.faq-item .q span {
    color: var(--primary);
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s;
}

.faq-item .a {
    display: none;
    padding: 0 20px 16px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.8;
}

.faq-item.open .a {
    display: block;
}

.faq-item.open .q span {
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all .3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255,255,255,.9);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    padding: 60px 30px 30px;
    overflow-y: auto;
    transition: right .3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading);
    border-bottom: 1px solid #eee;
}

.mobile-nav .submenu {
    padding-left: 15px;
    display: none;
}

.mobile-nav .has-submenu.open > .submenu {
    display: block;
}

.mobile-nav .has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
}

/* Float Buttons */
.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn .chat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.float-btn .chat-icon i {
    color: #fff;
    font-size: 28px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .hamburger { display: block; }
    .content-grid { grid-template-columns: 1fr; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header-inner { padding: 12px 0; }
    .brand .logo { font-size: 22px; }
    .top-bar .container { justify-content: center; }
    .lang-switcher { display: none; }
    .page-header h1 { font-size: 26px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .container, .container-sm { padding: 0 15px; }
    .card-grid, .services-grid { grid-template-columns: 1fr !important; }
    .other-cities { flex-wrap: wrap; }
    .other-cities a { flex: 1 1 45%; font-size: 13px; }
    .float-buttons { bottom: 16px; right: 16px; }
    .float-btn .chat-icon { width: 48px; height: 48px; }
    .float-btn .chat-icon i { font-size: 24px; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .price-table { min-width: 500px; }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .brand .logo { font-size: 19px; }
    .top-bar { font-size: 11px; }
    .page-header h1 { font-size: 24px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .btn, .cta-btn { padding: 10px 20px; font-size: 14px; }
}
