/*
Theme Name: Shunwei Auto
Theme URI: https://www.shunweiauto.com
Author: 大鹏
Author URI: https://www.shunweiauto.com
Description: 专业的汽车出口网站主题。包含汽车展示、品牌展示、服务介绍等功能。
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shunwei-auto
Tags: automotive, export, business, responsive
*/

:root {
    --primary-color: #1a4d2e;
    --primary-color-rgb: 26, 77, 46;
    --secondary-color: #2d5a3d;
    --accent-color: #d4af37;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

/* 全局防止横向滚动 - 所有设备 */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果，避免触摸设备上的延迟 */
    .btn:hover,
    .car-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    /* 增大触摸目标 */
    .nav-menu a,
    .footer-menu a,
    .faq-question {
        min-height: 44px; /* iOS推荐最小触摸区域 */
        display: flex;
        align-items: center;
    }
    
    /* 禁用文本选择（提升应用感） */
    .btn,
    .floating-contact-btn,
    .mobile-nav-toggle {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 防止横向滚动 */
    * {
        max-width: 100vw;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    /* 移动端性能优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 移动端禁止横向滚动 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* 移动端容器防止溢出 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-switch a {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.lang-switch a:hover {
    color: var(--white);
}

.lang-switch a.active {
    background: var(--white);
    color: var(--primary-color);
}

.header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    border-bottom: 3px solid var(--accent-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a .tel-icon {
    color: #4da6ff;
    display: inline-flex;
    align-items: center;
}

.contact-info a .tel-icon svg {
    vertical-align: middle;
}

.footer-tel-icon {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.header-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-social .social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.header-social .social-icon svg {
    width: 20px;
    height: 20px;
}

.header-social .social-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.header-social .social-icon.whatsapp {
    color: #25D366;
}

.header-social .social-icon.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
}

.header-social .social-icon.telegram {
    color: #0088cc;
}

.header-social .social-icon.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
}

.header-social .social-icon.wechat {
    color: #7bb32e;
}

.header-social .social-icon.wechat:hover {
    background: rgba(123, 179, 46, 0.2);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.social-link-whatsapp {
    background-color: #25D366;
}

.social-link-telegram {
    background-color: #0088cc;
}

.social-link-instagram {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link-youtube {
    background-color: #FF0000;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-main {
    padding: 20px 0;
    background: var(--primary-color);
    color: #fff;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo span {
    color: var(--accent-color);
}

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

.nav-menu a {
    font-weight: 500;
    color: #fff;
    position: relative;
}

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

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

.nav-menu a:hover {
    color: rgba(255,255,255,0.8);
}

/* 子菜单 */
.menu-item-has-children {
    position: relative;
}

/* 子菜单展开箭头 - 使用伪元素 */
.menu-item-has-children > a .sub-menu-toggle {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a .sub-menu-toggle {
    transform: rotate(180deg);
    opacity: 1;
}

.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 130px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 4px 0;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.06);
}

/* 子菜单顶部小三角指示 */
.sub-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

/* 子菜单顶部强调线 */
.sub-menu::after {
    display: none;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.sub-menu .menu-item {
    display: block;
    position: relative;
}

/* 子菜单项样式 */
.sub-menu .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    color: #555 !important;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    text-align: center;
}

/* 箭头图标 */
.sub-menu .menu-item a .sub-menu-toggle {
    border-top: 4px solid #ccc;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    opacity: 0.5;
    position: static;
    transform: none;
}

.sub-menu .menu-item:hover > a .sub-menu-toggle {
    opacity: 1;
    border-top-color: var(--primary-color);
}

.sub-menu .menu-item a:hover {
    background: rgba(200, 50, 50, 0.05);
    color: var(--primary-color) !important;
}

.sub-menu .menu-item a:after {
    display: none;
}

/* 子菜单分隔线 */
.sub-menu .menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: #f5f5f5;
}

/* 子菜单的子菜单 */
.sub-menu .menu-item-has-children .sub-menu-toggle {
    position: static;
    margin-left: 4px;
}

.sub-menu .menu-item-has-children {
    position: relative;
}

.sub-menu .menu-item-has-children > .sub-menu {
    left: calc(100% + 4px);
    top: -6px;
    margin-left: 0;
    transform: none;
}

/* 二级子菜单的三角指示 */
.sub-menu .menu-item-has-children > .sub-menu::before {
    left: -6px;
    top: 10px;
    border-left: 6px solid #fff;
    border-right: none;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* 移除二级菜单的顶部线 */
.sub-menu .menu-item-has-children > .sub-menu::after {
    display: none;
}

.sub-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s;
}

.hamburger:before {
    top: -7px;
}

.hamburger:after {
    top: 7px;
}

.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger:before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger:after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh; /* 使用动态视口高度，适配移动端浏览器地址栏 */
    background: #fff;
    z-index: 99999; /* 菜单在最高层 */
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    /* 确保菜单完全隐藏时不可见 */
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.active {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

/* 确保菜单内所有内容都可以点击 */
.mobile-nav * {
    pointer-events: auto;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* 使用动态视口高度 */
    background: rgba(0,0,0,0.5);
    /* 移除模糊效果，避免影响菜单清晰度 */
    z-index: 99998; /* 遮罩层在菜单之下 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none; /* 默认不阻挡点击 */
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* 激活时可以点击关闭菜单 */
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-nav-close {
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.05);
}

.mobile-nav-close:hover {
    color: var(--primary-color);
    background: rgba(26, 77, 46, 0.1);
    transform: rotate(90deg);
}

.mobile-nav-content {
    padding: 20px;
    position: relative;
    z-index: 1; /* 确保内容在菜单容器内可点击 */
}

.mobile-nav .nav-menu {
    flex-direction: column;
    gap: 0;
}

.mobile-nav .menu-item {
    border-bottom: 1px solid #eee;
    position: relative;
    /* 初始状态 */
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 菜单打开时的动画 */
.mobile-nav.active .menu-item {
    opacity: 1;
    transform: translateX(0);
}

/* 为每个菜单项设置不同的延迟，实现阶梯动画效果 */
.mobile-nav.active .menu-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.active .menu-item:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.active .menu-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.active .menu-item:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.active .menu-item:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.active .menu-item:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.active .menu-item:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav.active .menu-item:nth-child(8) { transition-delay: 0.4s; }
.mobile-nav.active .menu-item:nth-child(9) { transition-delay: 0.45s; }
.mobile-nav.active .menu-item:nth-child(10) { transition-delay: 0.5s; }

/* 菜单关闭时的反向动画 */
.mobile-nav .menu-item {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav:not(.active) .menu-item:nth-child(1) { transition-delay: 0s; }
.mobile-nav:not(.active) .menu-item:nth-child(2) { transition-delay: 0.02s; }
.mobile-nav:not(.active) .menu-item:nth-child(3) { transition-delay: 0.04s; }
.mobile-nav:not(.active) .menu-item:nth-child(4) { transition-delay: 0.06s; }
.mobile-nav:not(.active) .menu-item:nth-child(5) { transition-delay: 0.08s; }
.mobile-nav:not(.active) .menu-item:nth-child(6) { transition-delay: 0.1s; }
.mobile-nav:not(.active) .menu-item:nth-child(7) { transition-delay: 0.12s; }
.mobile-nav:not(.active) .menu-item:nth-child(8) { transition-delay: 0.14s; }
.mobile-nav:not(.active) .menu-item:nth-child(9) { transition-delay: 0.16s; }
.mobile-nav:not(.active) .menu-item:nth-child(10) { transition-delay: 0.18s; }

.mobile-nav .menu-item:last-child {
    border-bottom: none;
}

.mobile-nav .menu-link {
    display: block;
    padding: 15px 0;
    color: #333 !important;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
    z-index: 2; /* 确保链接可点击 */
    pointer-events: auto; /* 明确允许点击 */
}

/* 移动端增大点击区域 */
@media (max-width: 768px) {
    .mobile-nav .menu-link {
        padding: 18px 40px 18px 0; /* 右侧留出按钮空间 */
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

.mobile-nav .menu-link:hover {
    color: var(--primary-color) !important;
    padding-left: 8px; /* 悬停时轻微右移 */
}

.mobile-nav .sub-menu-toggle {
    display: none;
}

/* Mobile Sub-menu - 简化大气的设计 */
.mobile-nav .sub-menu {
    position: static;
    background: transparent; /* 透明背景，更简洁 */
    margin: 0;
    padding: 0;
    border: none; /* 移除边框 */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                visibility 0.35s ease;
}

/* 子菜单展开状态 */
.mobile-nav .sub-menu.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav .menu-item-has-children > .sub-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* 增大按钮 */
    height: 40px;
    background: transparent; /* 透明背景，更简洁 */
    border: 2px solid var(--primary-color); /* 细边框 */
    border-radius: 8px; /* 圆角矩形 */
    cursor: pointer;
    color: var(--primary-color); /* 品牌色图标 */
    font-size: 24px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav .menu-item-has-children > .sub-menu-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.mobile-nav .menu-item-has-children > .sub-menu-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* 展开按钮使用加号/减号图标 */
.mobile-nav .menu-item-has-children > .sub-menu-toggle::before {
    content: '+';
    font-weight: 300;
    line-height: 1;
}

.mobile-nav .menu-item-has-children.sub-menu-open > .sub-menu-toggle::before {
    content: '−';
}

.mobile-nav .menu-item-has-children {
    position: relative;
}

.mobile-nav .sub-menu .menu-item a {
    padding: 14px 20px 14px 35px; /* 增加间距，更大气 */
    color: #666 !important;
    font-size: 15px; /* 稍大字体 */
    border-left: none;
    transition: all 0.2s ease;
    display: block;
    position: relative;
}

/* 子菜单项前的指示器 - 简化设计 */
.mobile-nav .sub-menu .menu-item a::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    transition: all 0.2s ease;
}

.mobile-nav .sub-menu .menu-item a:hover {
    color: var(--primary-color) !important;
    background: rgba(26, 77, 46, 0.04);
    padding-left: 38px;
}

.mobile-nav .sub-menu .menu-item a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

/* 三级子菜单样式 */
.mobile-nav .sub-menu .sub-menu {
    margin-left: 12px;
    background: rgba(0,0,0,0.02);
    border-left: 2px solid #ddd;
    padding: 4px 0;
}

.mobile-nav .sub-menu .sub-menu .menu-item a {
    padding: 10px 14px 10px 18px;
    font-size: 13px;
    color: #777 !important;
}

.mobile-nav .sub-menu .sub-menu .menu-item a::before {
    width: 3px;
    height: 3px;
    left: 6px;
}

/* 三级子菜单项 */
.mobile-nav .sub-menu .sub-menu .menu-item a {
    padding: 9px 12px 9px 16px;
    font-size: 13px;
    color: #666 !important;
}

/* 子菜单项小圆点指示 */
.mobile-nav .sub-menu .menu-item a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.mobile-nav .sub-menu .menu-item:hover a::before {
    opacity: 1;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* CTA高亮按钮 - 立即订车 */
.btn-cta-highlight {
    background: linear-gradient(135deg, #d4af37 0%, #f5d77a 50%, #d4af37 100%) !important;
    background-size: 200% 200% !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5), 0 2px 4px rgba(0,0,0,0.1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn-cta-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-cta-highlight:hover {
    background-position: 100% 100% !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), 0 4px 8px rgba(0,0,0,0.15) !important;
    color: #1a1a1a !important;
}

.btn-cta-highlight:hover::before {
    left: 100%;
}

/* 移动端 CTA按钮 */
@media (max-width: 768px) {
    .btn-cta-highlight {
        padding: 10px 20px !important;
        font-size: 13px;
        width: auto;
        min-width: 140px;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }
}

.btn-accent {
    background: var(--accent-color);
    color: var(--dark-color);
}

.btn-accent:hover {
    background: #c49d2e;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 背景幻灯片容器 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: kenBurns 24s ease-out infinite;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
    animation-delay: 8s;
}

.hero-bg-slide:nth-child(3) {
    animation-delay: 16s;
}

/* Ken Burns 动态效果 */
@keyframes kenBurns {
    0% {
        transform: scale(1.1) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    30% {
        transform: scale(1) translateX(-2%);
        opacity: 1;
    }
    33% {
        opacity: 0;
    }
    100% {
        transform: scale(1.1) translateX(0);
        opacity: 0;
    }
}

/* 渐变遮罩 */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(41, 128, 185, 0.7) 100%);
    z-index: 1;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><polygon points="200,0 200,200 100,200" fill="%23ffffff" opacity="0.05"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--white);
    /* PC端英雄区块内容居中 */
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center; /* 按钮居中 */
}

.hero-buttons .btn {
    padding: 15px 35px;
}

/* Section */
.section {
    padding: 80px 0;
}

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

#faq-contact {
    position: relative;
}

/* FAQ列表 - 无大边框，只有单条问题的小边框 */
/* 联系表单卡片样式 */
.faq-contact-grid > .contact-form-block {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--accent-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Brands */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
}

.brand-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.brand-name {
    font-weight: 600;
    color: var(--dark-color);
}

/* ==================== Cars Grid - Enhanced Product Display ==================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Car Card - Modern Product Card Design */
.car-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Car Image Container */
.car-image {
    aspect-ratio: 16 / 7;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
}

/* Hot Cars (Featured) - 4:3 ratio */
.cars-grid-hot .car-image {
    aspect-ratio: 4 / 3;
}

.car-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

/* 移动端禁用图片缩放动画，提升性能 */
@media (max-width: 768px) {
    .car-card:hover .car-image img {
        transform: none;
    }
}

/* ==================== Lazy Loading Styles ==================== */
/* Smooth fade-in effect for lazy loaded images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* For browsers with native lazy loading support */
@supports (loading: lazy) {
    img[loading="lazy"] {
        opacity: 1;
    }
}

.car-card:hover .car-image img {
    transform: scale(1.03);
}

/* Car Badge - Product Tag */
.car-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e6b82a 100%);
    color: var(--dark-color);
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Car Icon Placeholder */
.car-icon {
    font-size: 60px;
}

/* Car Content Area */
.car-content {
    padding: 24px;
}

/* Car Title */
.car-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-title-link {
    text-decoration: none;
    color: inherit;
}

.car-title-link:hover .car-title {
    color: var(--primary-color);
}

/* Recommendation Reason */
.car-recommend-reason {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    padding: 6px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 移动端推荐原因优化 */
@media (max-width: 768px) {
    .car-recommend-reason {
        font-size: 12px;
        margin-bottom: 10px;
        /* 允许显示3行 */
        -webkit-line-clamp: 3;
    }
    
    /* 热门车型推荐原因更突出 */
    .cars-grid-hot .car-recommend-reason {
        font-size: 13px;
        margin-bottom: 12px;
        padding: 8px 0;
        background: linear-gradient(135deg, rgba(26, 77, 46, 0.03) 0%, rgba(212, 175, 55, 0.03) 100%);
        border-radius: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.car-recommend-reason::before {
    content: "✓ ";
    color: #22c55e;
    font-weight: 600;
}

/* Car Details - Specs Row */
.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    font-size: 13px;
}

.car-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.car-detail i {
    font-size: 14px;
    opacity: 0.7;
}

/* Car Price */
.car-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.car-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 4px;
}

.car-price-alt {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    font-weight: 500;
}

/* Car Footer Actions */
.car-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.car-footer .btn {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.car-footer .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.car-footer .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.car-footer .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.car-footer .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
}

.section-cta .btn {
    padding: 14px 40px;
    font-size: 15px;
    border-radius: 30px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.section-cta .btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* No Cars Message */
.no-cars {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-item {
    width: 100%;
    max-width: 180px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Single Partner - Full Width Center Display */
.partners-grid.single-partner {
    grid-template-columns: 1fr;
    justify-content: center;
}

.partners-grid.single-partner > img {
    max-height: none;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: grayscale(0%);
    opacity: 1;
}

/* Vision, Mission, Values Section - Clean Design */
#vision-mission {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

#vision-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.vmv-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vmv-block {
    flex: 1;
    max-width: 380px;
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vmv-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.vmv-block:last-child {
    border-right: none;
}

.vmv-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vmv-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.8;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.vmv-sub {
    font-size: 15px;
    color: #636e72;
    line-height: 1.8;
    font-style: italic;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 8px;
}

@media (max-width: 992px) {
    .vmv-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .vmv-block {
        max-width: 600px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding-bottom: 40px;
    }
    
    .vmv-block:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .vmv-title {
        font-size: 24px;
    }
    
    .vmv-text {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .partner-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超小屏幕优化 (iPhone SE等) */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top-content {
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info a {
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    .car-content {
        padding: 15px;
    }
    
    .car-title {
        font-size: 15px;
        /* 超小屏幕允许显示3行 */
        -webkit-line-clamp: 3;
    }
    
    /* 热门车型在超小屏幕优化 */
    .cars-grid-hot .car-title {
        font-size: 16px;
    }
    
    .car-recommend-reason {
        font-size: 11px;
        /* 允许显示2行 */
        -webkit-line-clamp: 2;
    }
    
    .cars-grid-hot .car-recommend-reason {
        font-size: 12px;
    }
    
    .car-price {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    /* 热门车型价格 */
    .cars-grid-hot .car-price {
        font-size: 22px;
        margin-bottom: 14px;
    }
    
    .car-footer .btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .btn-cta-highlight {
        padding: 8px 16px !important;
        font-size: 12px;
        min-width: 120px;
    }
    
    .floating-contact-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .floating-contact-menu {
        bottom: 60px;
    }
    
    /* 移动端悬浮按钮优化 - 确保始终可见 */
    .floating-contact {
        /* 使用更高的z-index确保在最上层 */
        z-index: 9999999 !important;
        /* 防止被父元素裁剪 */
        isolation: isolate;
        /* iPhone安全区域适配 */
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
    }
}

.car-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.car-footer {
    display: flex;
    gap: 10px;
}

.car-footer .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: var(--white);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

.feature-card:hover .feature-icon::after {
    opacity: 0.2;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.feature-card:hover .feature-title::after {
    width: 60%;
}

.feature-text {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 16px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.step-text {
    color: var(--text-light);
    font-size: 14px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark-color);
}

.testimonial-location {
    font-size: 14px;
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.portfolio-icon {
    font-size: 60px;
    opacity: 0.8;
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-badge.completed {
    background: #28a745;
    color: var(--white);
}

.portfolio-badge.in-progress {
    background: var(--accent-color);
    color: var(--dark-color);
}

.portfolio-content {
    padding: 25px;
}

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

.portfolio-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.portfolio-spec {
    font-size: 14px;
    color: var(--text-light);
}

.portfolio-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.portfolio-savings {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* FAQ */
.faq-list {
    max-width: 700px;
}

.faq-list .faq-item {
    margin-bottom: 15px;
}

.faq-list .faq-item:last-child {
    margin-bottom: 0;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: stretch;
}

.faq-contact-grid > .faq-list,
.faq-contact-grid > .contact-form-block {
    display: flex;
    flex-direction: column;
}

.faq-contact-grid > .faq-list .faq-list-inner,
.faq-contact-grid > .contact-form-block .contact-form-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.faq-contact-grid > .faq-list .faq-item:last-child,
.faq-contact-grid > .contact-form-block .contact-form-compact {
    flex: 1;
}

.contact-form-block {
    padding: 30px;
}

.contact-form-block .contact-form-compact {
    padding: 0;
}

.contact-form-title {
    margin: 0 0 20px;
    font-size: 1.3em;
}

.contact-form-compact .form-group {
    margin-bottom: 15px;
}

.contact-form-compact textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.contact-modal-content {
    position: relative;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

.contact-modal-close:hover {
    color: var(--text-color);
}

.contact-modal-title {
    margin: 0 0 20px;
    font-size: 1.3em;
}

@media (max-width: 992px) {
    .faq-contact-grid {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        display: none;
    }

}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-question {
    padding: 20px 25px;
    background: var(--white);
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-icon {
    transition: var(--transition);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

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

.faq-answer.active {
    padding: 0 25px 25px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block {
    padding: 20px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: #4da6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-svg-icon svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.contact-item-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-item-text {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

/* 移动端表单优化 */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* 防止iOS自动缩放 */
        -webkit-appearance: none;
        appearance: none;
    }
    
    input[type="tel"],
    input[type="email"],
    input[type="text"] {
        font-size: 16px !important;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col .logo {
    color: var(--white);
    margin-bottom: 20px;
    display: block;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent-color);
}

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

/* Responsive */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 15px;
        padding: 5px 0;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-info a {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .header-social {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .lang-switch {
        justify-content: center;
        width: 100%;
    }
    
    .lang-switch a {
        padding: 4px 10px;
        font-size: 13px;
    }
    
    .header-social .social-icon {
        width: 28px;
        height: 28px;
        color: #fff !important;
    }
    
    .header-social .social-icon.whatsapp {
        color: #25D366 !important;
    }
    
    .header-social .social-icon.telegram {
        color: #0088cc !important;
    }
    
    .header-social .social-icon.wechat {
        color: #7bb32e !important;
    }
    
    .hero {
        height: auto;
        padding: 80px 0;
        /* 确保移动端英雄区块内容居中 */
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .car-card {
        margin-bottom: 0;
    }
    
    /* 热门车型卡片增强 */
    .cars-grid-hot .car-card {
        box-shadow: 0 4px 16px rgba(26, 77, 46, 0.12);
        border: 1px solid rgba(26, 77, 46, 0.08);
    }

    .car-image {
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    /* 推荐车型（Truck Section）在移动端使用更宽的比例 */
    .cars-grid-featured .car-image {
        aspect-ratio: 21 / 10;
    }

    .car-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .car-content {
        padding: 20px;
    }

    .car-title {
        font-size: 16px;
        margin-bottom: 8px;
        /* 移动端允许显示3行标题 */
        -webkit-line-clamp: 3;
    }
    
    /* 热门车型标题在移动端优化 */
    .cars-grid-hot .car-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .car-details {
        gap: 10px;
        font-size: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    /* 热门车型详情优化 */
    .cars-grid-hot .car-details {
        gap: 8px;
        font-size: 11px;
    }

    .car-price {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    /* 热门车型价格突出显示 */
    .cars-grid-hot .car-price {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .car-footer {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .car-footer .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* 热门车型按钮优化 */
    .cars-grid-hot .car-footer .btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .section-cta {
        margin-top: 30px;
    }

    .section-cta .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .car-detail-page {
        padding: 20px 0 60px;
    }

    .car-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .car-detail-left {
        order: 1;
    }

    .car-detail-right {
        order: 2;
    }

    .car-detail-image {
        border-radius: 8px;
    }

    .car-detail-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .car-detail-info h1 {
        font-size: 24px;
    }

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

    .related-cars {
        margin-top: 40px;
    }

    .related-cars .cars-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999; /* 提升 z-index，确保在所有内容之上 */
    /* 确保在移动端始终可见 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* 防止被body overflow影响 */
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 当菜单打开时，隐藏悬浮按钮 */
body.menu-open .floating-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.floating-contact-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact.open .floating-contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    box-shadow: none;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    border: none;
}

.floating-contact-item:hover {
    transform: scale(1.05);
}

.floating-contact-item-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-item-icon.form { background: #9b59b6; }
.floating-contact-item-icon.whatsapp { background: #25d366; }
.floating-contact-item-icon.telegram { background: #0088cc; }
.floating-contact-item-icon.wechat { background: #07c160; }

.floating-contact-item-icon svg {
    width: 24px;
    height: 24px;
}

/* 微信悬浮按钮tooltip */
.floating-contact-item-wrapper {
    position: relative;
}

.floating-contact-item-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid #e5e5e5;
}

.floating-contact-item-wrapper:hover .floating-contact-item-tooltip,
.floating-contact-item-wrapper:focus-within .floating-contact-item-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.floating-contact-item-text {
    font-size: 14px;
    font-weight: 500;
}

/* Floating contact positions */
.floating-contact.bottom-right {
    right: 30px;
    left: auto;
}

.floating-contact.bottom-left {
    left: 30px;
    right: auto;
}

.floating-contact.bottom-left .floating-contact-panel {
    right: auto;
    left: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-contact.bottom-right {
        right: 15px;
    }
    
    .floating-contact.bottom-left {
        left: 15px;
    }
    
    .floating-contact-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    .floating-contact-menu {
        bottom: 65px;
        right: -5px;
    }
}

/* ==================== Car Directory Styles ==================== */

.car-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 60px;
}

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

.car-title-link {
    text-decoration: none;
    color: inherit;
}

.car-title-link:hover .car-title {
    color: var(--accent-color);
}

.car-price-alt {
    display: block;
    font-size: 0.75em;
    color: #888;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.no-cars {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

/* Car Detail Page */
.car-detail-page {
    padding: 40px 0 0;
}

.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.car-detail-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.car-detail-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.car-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.car-detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.car-detail-video {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.car-detail-video h3 {
    margin: 0 0 16px;
    font-size: 1.2em;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.car-detail-description {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.car-detail-description h2 {
    margin: 0 0 20px;
    font-size: 1.5em;
}

.car-detail-right {
    position: sticky;
    top: 20px;
}

.car-detail-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.car-detail-info h1 {
    margin: 0 0 16px;
    font-size: 1.75em;
    line-height: 1.3;
}

.car-detail-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.taxo-label {
    color: #888;
    font-weight: 500;
}

.taxo-tag {
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9em;
}

.car-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.car-detail-price .price-main {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color);
}

.car-detail-price .price-secondary {
    font-size: 1.2em;
    color: #888;
}

.stock-status {
    margin-left: auto;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.car-detail-specs {
    border-top: 1px solid #eee;
    padding-top: 24px;
    margin-bottom: 24px;
}

.car-detail-specs h3 {
    margin: 0 0 16px;
    font-size: 1.2em;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.spec-label {
    color: #888;
}

.spec-value {
    font-weight: 600;
}

.car-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background: #006699;
}

.related-cars {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-cars .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Archive Page */
.archive-page {
    padding: 40px 0 80px;
}

.archive-header {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.archive-title {
    margin: 0 0 12px;
    font-size: 2.5em;
}

.archive-subtitle {
    margin: 0 0 16px;
    opacity: 0.9;
    font-size: 1.1em;
}

.archive-count {
    font-weight: 600;
}

.archive-content {
    padding-top: 0;
}

.archive-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .car-detail-content {
        grid-template-columns: 1fr;
    }
    
    .car-detail-right {
        position: static;
    }
    
    .archive-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-filters {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-header {
        padding: 40px 20px;
    }
    
    .archive-title {
        font-size: 1.8em;
    }
}

/* ==================== Updated Floating Contact Panel Styles ==================== */

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366 !important;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-contact-icon {
    font-size: 28px;
}

.floating-contact-label {
    font-weight: 600;
    font-size: 14px;
    display: none;
}

.floating-contact-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact.bottom-left .floating-contact-panel {
    right: auto;
    left: 0;
}

.floating-contact.open .floating-contact-panel {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.floating-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.floating-contact-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.floating-contact-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.floating-contact-close:hover {
    color: #333;
}

.floating-contact-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}

.floating-contact-list li {
    margin: 0;
    padding: 0;
}

/* Duplicate floating-contact-item styles removed */

@media (max-width: 768px) {
    .floating-contact-panel {
        width: 280px;
        bottom: 65px;
    }
}

/* Latest News Section */
#news {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#news .section-header {
    margin-bottom: 60px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.home-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.home-news-thumbnail {
    display: block;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.home-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-news-card:hover .home-news-thumbnail img {
    transform: scale(1.08);
}

.home-news-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-news-no-image svg {
    width: 60px;
    height: 60px;
    color: #a5d6a7;
}

.home-news-content {
    padding: 24px;
}

.home-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.home-news-date {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.home-news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}

.home-news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-news-title a:hover {
    color: var(--primary-color);
}

.home-news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.home-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-news-readmore:hover {
    color: var(--accent-color);
    gap: 10px;
}

.no-news {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1em;
}

@media (max-width: 992px) {
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }
    
    .home-news-thumbnail {
        height: 180px;
    }
}

/* ============================================
   Mobile Navigation Animations & Polish
   ============================================ */

/* Hamburger → X animation */
.mobile-nav-toggle .hamburger,
.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
    transition: all 0.3s ease;
}
.mobile-nav-toggle.active .hamburger {
    background: transparent;
}
.mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu slide-in effect - 已合并到主定义 */

/* Overlay fade */
.mobile-nav-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mobile nav items animation reset */
.mobile-nav .menu-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile nav footer CTA */
.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}
.mobile-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-nav-cta:hover {
    background: linear-gradient(135deg, #c1121f, #a4131a);
    transform: translateY(-1px);
}
.mobile-nav-cta svg {
    flex-shrink: 0;
}

/* Sub-menu accordion animation */
@keyframes subMenuSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-nav .menu-item-has-children.sub-menu-open > .sub-menu {
    animation: subMenuSlideDown 0.25s ease forwards;
}

/* ============================================
   Contact Page Mobile Optimization
   ============================================ */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .contact-grid > .company-info {
        width: 100% !important;
        max-width: 100% !important;
    }
    .contact-grid > .contact-form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 15px;
    }
    .contact-wrapper {
        padding: 25px 20px;
    }
    .contact-card {
        border-radius: 16px;
    }
}
