/* css/jaguar.css - 最终完整版 */
/* 最后更新时间：2025年7月21日 */

/* --- 变量 --- */
:root { --primary: #3457b2; --font-main: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; --navbar-height: 70px; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: #1f1f1f; overflow-x: hidden; background-color: #fff; }

/* --- 核心组件：遮罩、动画、导航、菜单 --- */
.page-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; z-index: 1005; }
.page-overlay.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
.is-visible .fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
#navbar { background: transparent; transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease; height: var(--navbar-height); font-weight: 500; z-index: 1020; border-bottom: 1px solid transparent; }
#navbar.is-scrolled { background-color: rgba(255, 255, 255, 0.95); border-color: #dee2e6; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
#navbar.mega-menu-is-open { background-color: #fff; border-color: transparent !important; box-shadow: none !important; }
#navbar .navbar-brand, #navbar .nav-link, #navbar .navbar-side a { color: #fff !important; transition: color 0.5s ease; }
body:not(:has(main>#video)):not(:has(main>.model-viewer-hero)) #navbar { background-color: #fff; border-color: #dee2e6; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
body:not(:has(main>#video)):not(:has(main>.model-viewer-hero)) #navbar .navbar-brand, body:not(:has(main>#video)):not(:has(main>.model-viewer-hero)) #navbar .nav-link, body:not(:has(main>#video)):not(:has(main>.model-viewer-hero)) #navbar .navbar-side a { color: #333 !important; }
#navbar.is-scrolled .navbar-brand, #navbar.is-scrolled .nav-link, #navbar.is-scrolled .navbar-side a, #navbar.mega-menu-is-open .navbar-brand, #navbar.mega-menu-is-open .nav-link, #navbar.mega-menu-is-open .navbar-side a { color: #333 !important; }
#navbar .nav-item { position: relative; }
#navbar .nav-link { margin: 0 1rem; position: relative; padding-bottom: 6px; cursor: pointer; }
#navbar .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: var(--primary); transition: width 0.3s ease; }
#navbar .nav-link:hover::after, #navbar .nav-link.active::after { width: 100%; }
.mega-menu { position: fixed; top: var(--navbar-height); left: 0; width: 100%; background-color: #fff; padding: 2.5rem 1rem 3.5rem; border-bottom: 1px solid #dee2e6; box-shadow: 0 8px 16px rgba(0,0,0,0.05); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s; z-index: 1010; }
.mega-menu.is-active { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.mega-menu .container { max-width: 1200px; }
.mega-menu-divider { border-left: 1px solid #e9ecef; padding-left: 2rem !important; }
.mega-menu-item { display: block; text-decoration: none; border-radius: 8px; padding: 1rem; background-color: #fff; border: 1px solid #f1f3f5; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; opacity: 0; transform: translateY(15px); }
.mega-menu.is-active .mega-menu-item { animation: fadeInUp 0.5s ease-out forwards; animation-delay: var(--animation-delay); }
.mega-menu-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: transparent; }
.mega-menu-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; transition: transform 0.3s ease; }
.mega-menu-item:hover img { transform: scale(1.05); }
.mega-menu-item h6 { color: #212529; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.95rem; }
.mega-menu-item p { color: #6c757d; font-size: 0.8rem; margin-bottom: 0; }
.mega-menu-section-title { font-size: 1rem; font-weight: 600; color: #000; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.mega-menu-link { display: block; color: #333; text-decoration: none; padding: 0.5rem 0; transition: color 0.2s; }
.mega-menu-link:hover { color: var(--primary); }

/* --- 首页 (index.php) 特有样式 --- */
.panel { position: relative; height: 100vh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; /* 改为完全居中 */ padding: var(--navbar-height) 1rem 4rem; background-color: #000; overflow: hidden; }
/* 【重要修正】首页视频层级 */
.video-hero video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; object-fit: cover; z-index: 1; }
.cover-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent, rgba(0,0,0,0.6)); z-index: 2; }
.panel-content { position: relative; z-index: 3; }
.scroll-cue-wrapper { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; cursor: pointer; }
.scroll-cue { font-size: 2.5rem; opacity: 0.9; animation: cuedown 1.8s infinite ease-in-out; }
@keyframes cuedown { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(15px); opacity: 0.3; } }
.feature-section, .industries-section, .news-section, .showcase-panel { padding: 100px 0; }
.section-header { margin-bottom: 4rem; text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: #6c757d; max-width: 600px; margin: 0 auto; }
.feature-card { padding: 2rem; background-color: #f8f9fa; border-radius: 10px; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1.5rem; }
.feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.feature-text { font-size: 0.95rem; color: #6c757d; line-height: 1.6; }
.industries-section { background-color: #171a20; background-image: linear-gradient(rgba(23, 26, 32, 0.8), rgba(23, 26, 32, 0.8)), url('../images/industry-bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.industry-card { color: #fff; padding: 1.5rem 0.5rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; transition: background-color 0.3s ease; text-align: center; }
.industry-card:hover { background-color: rgba(255,255,255,0.1); }
.industry-card i { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.industry-card span { font-weight: 500; }
.news-section { background-color: #f8f9fa; }
.news-card { background-color: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.news-card-meta { font-size: 0.8rem; color: #6c757d; margin-bottom: 0.5rem; }
.news-card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; flex-grow: 1; }
.news-card-link { font-weight: 600; color: var(--primary); text-decoration: none; transition: color 0.2s; }
.news-card-link:hover { color: #00448f; }
.news-card-link i { transition: transform 0.2s; display: inline-block; }
.news-card-link:hover i { transform: translateX(5px); }
/* 沿用产品页的暗色全屏面板样式 */
.dark-feature-panel { height: 70vh; min-height: 500px; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-attachment: fixed; }
.dark-feature-panel::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.dark-feature-panel .container { position: relative; z-index: 2; }


/* --- 产品页 (product-air-1.php) 样式 --- */
.model-viewer-hero { height: 100vh; width: 100%; display: flex; flex-direction: column; background-color: #fff; }
.model-viewer-container { flex-grow: 1; position: relative; background-color: #202020; }
model-viewer { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.model-viewer-container .hero-fallback { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.model-title-container { flex-shrink: 0; padding: 3rem 0; background-color: #fff; border-top: 1px solid #dee2e6; }
.product-intro-section, .specs-image-section, .cta-section { padding: 100px 0; text-align: center; }
.specs-section { padding: clamp(90px, 10vw, 160px) 0; background-color: #fff; }
.specs-section .container { max-width: 1200px; }
.specs-header { display: flex; justify-content: center; margin-bottom: clamp(40px, 6vw, 70px); }
.specs-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: 0.01em; color: #171a20; margin: 0; text-align: center; }
.specs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px); }
.specs-block { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.specs-block-title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #555; margin: 0; }
.specs-list { margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.6vw, 18px); }
.specs-list div { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); align-items: baseline; }
.specs-list dt { margin: 0; font-size: 0.95rem; color: #6b7280; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.specs-list dd { margin: 0; font-size: clamp(1rem, 1.8vw, 1.2rem); color: #171a20; font-weight: 600; }
.section-title-dark { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; color: #171a20; }
.section-subtitle-dark { font-size: 1.1rem; line-height: 1.8; color: #5c5c5c; max-width: 700px; margin: 0 auto; }
.dark-feature-panel { height: 90vh; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-attachment: fixed; }
.dark-feature-panel::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.dark-feature-panel .container { position: relative; z-index: 2; }
.split-feature-section { background-color: #fff; }
.split-feature-section.bg-light { background-color: #f8f9fa; }
.split-feature-section .text-pane { display: flex; align-items: center; justify-content: center; padding: 5rem; }
.split-feature-section .text-pane-content { max-width: 500px; }
.split-feature-section .image-pane { min-height: 600px; background-size: cover; background-position: center; }
.parallax-feature-panel { position: relative; height: 90vh; min-height: 520px; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; justify-content: center; padding: 0 1.5rem; }
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.68) 100%); z-index: 1; }
.parallax-content { position: relative; z-index: 2; max-width: 720px; }
.full-bleed-feature { position: relative; padding: clamp(60px, 8vw, 110px) clamp(1.5rem, 6vw, 5rem) 8rem; }
.full-bleed-feature .feature-visual { width: 100%; min-height: clamp(520px, 90vh, 840px); background-size: cover; background-position: center; border-radius: 28px; box-shadow: 0 25px 45px rgba(15, 24, 42, 0.16); }
.full-bleed-feature .feature-caption { max-width: 760px; margin: -5rem auto 0; padding: 3rem 3.5rem; background: rgba(255,255,255,0.94); border-radius: 22px; box-shadow: 0 25px 45px rgba(15, 24, 42, 0.14); position: relative; z-index: 3; }
.full-bleed-feature .feature-caption::before { content: ''; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 120px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.85); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.product-highlights { padding: clamp(90px, 14vw, 210px) 0; background-color: #fff; }
.product-highlights__wrap { width: 100%; margin: 0 auto; padding: 0; }
.product-highlights__headline { display: flex; align-items: center; gap: 0.75rem; margin-bottom: clamp(26px, 3.8vw, 56px); padding-left: clamp(4rem, 10vw, 16rem); }
.product-highlights__dot { width: 0.42em; height: 0.42em; border-radius: 50%; background-color: #111; display: inline-block; transform: translateY(0.08em); }
.product-highlights__title { margin: 0; font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: 0.01em; color: #111; }
.product-highlights__stage { position: relative; height: clamp(504px, 70vw, 744px); overflow-x: clip; overflow-y: visible; }
.product-highlights__slide { position: absolute; top: 0; left: 0; width: 720px; height: 100%; border-radius: 28px; background-color: #000; box-shadow: 0 24px 60px rgba(10,16,35,0.32), 0 10px 28px rgba(12,20,38,0.22); overflow: hidden; transition: transform 820ms cubic-bezier(.22,.61,.36,1); will-change: transform; contain: layout paint size style; }
.product-highlights__slide::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(140% 140% at 50% 100%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 50%), linear-gradient(180deg, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0) 35%); }
.product-highlights__veil { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 420ms cubic-bezier(.22,.61,.36,1); z-index: 2; }
.product-highlights__slide.dimmed .product-highlights__veil { opacity: 0.28; }
.product-highlights__slide.settled .product-highlights__veil { opacity: 0; }
.product-highlights__media { position: absolute; inset: 0; }
.product-highlights__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.02); filter: saturate(1.04) contrast(1.02); will-change: transform; backface-visibility: hidden; }
.product-highlights__slide[data-broken="1"]::after { content: '图片未找到（检查路径）'; position: absolute; left: 14px; bottom: 14px; z-index: 4; background: rgba(255,73,73,0.95); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.product-highlights__slide[data-broken="1"] .product-highlights__media img { filter: grayscale(100%); opacity: 0.65; }
.product-highlights__slide.settled .product-highlights__media img { animation: productHighlightsKen 9s ease-in-out forwards; }
.product-highlights__tabs { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(22px, 4.6vw, 64px); margin-top: clamp(20px, 3vw, 32px); padding-bottom: 16px; flex-wrap: wrap; }
.product-highlights__tab { background: none; border: none; color: #6b7280; font-weight: 700; letter-spacing: 0.02em; font-size: clamp(0.88rem, 1.6vw, 1.1rem); padding: 10px 0; cursor: pointer; transition: color 0.3s ease; }
.product-highlights__tab:hover, .product-highlights__tab:focus { color: #111; outline: none; }
.product-highlights__tab.active { color: #111; }
.product-highlights__underline { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background-color: #111; transform: translateX(0); transition: transform 0.45s cubic-bezier(.22,.61,.36,1), width 0.45s cubic-bezier(.22,.61,.36,1); }
.product-highlights__desc { text-align: center; max-width: min(980px, 92vw); margin: 12px auto 0; }
.product-highlights__desc .lead { color: #111; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.25rem); margin: 6px 0 10px; }
.product-highlights__desc .text { color: #4b5563; font-size: clamp(0.85rem, 1.45vw, 1rem); line-height: 1.7; margin: 0; }

@keyframes productHighlightsKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.075); }
}
.feature-split-title { font-size: 2.2rem; font-weight: 600; margin-bottom: 1.5rem; }
.feature-split-text { font-size: 1.1rem; line-height: 1.8; color: #393c41; }

/* --- “关于我们” 页面样式 --- */
.about-page-tesla .tesla-hero { height: 100vh; width: 100vw; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-page-tesla .tesla-hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 1; }
.about-page-tesla .tesla-hero-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.4); z-index: 2; }
.about-page-tesla .tesla-hero .container { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; justify-content: center; }
.about-page-tesla .stats-section { padding: 100px 0; background-color: #fff; }
.about-page-tesla .stats-number { font-size: 3.5rem; font-weight: 600; color: #000; }
.about-page-tesla .stats-label { font-size: 1rem; color: #5c5c5c; margin-top: 0.5rem; }
.about-page-tesla .narrative-section { padding: 120px 0; background-color: #fff; }
.about-page-tesla .narrative-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 2rem; color: #171a20; }
.about-page-tesla .narrative-text { font-size: 1.1rem; line-height: 1.8; color: #393c41; }
.about-page-tesla .full-width-image-showcase { position: relative; width: 100%; height: 60vh; background-color: #222; overflow: hidden; }
.about-page-tesla .full-width-image-showcase img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 0.5s ease; }
.about-page-tesla .full-width-image-showcase:hover img { transform: scale(1.05); }
.about-page-tesla .image-text-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; text-align: center; background: rgba(0,0,0,0.3); }
.about-page-tesla .timeline-section { padding: 100px 0; background-color: #f8f9fa; }
.about-page-tesla .timeline { position: relative; max-width: 800px; margin: 0 auto; }
.about-page-tesla .timeline::after { content: ''; position: absolute; width: 4px; background-color: #dee2e6; top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.about-page-tesla .timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.about-page-tesla .timeline-item:nth-child(odd) { left: 0; }
.about-page-tesla .timeline-item:nth-child(even) { left: 50%; }
.about-page-tesla .timeline-dot { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: #fff; border: 4px solid var(--primary); top: 25px; border-radius: 50%; z-index: 1; }
.about-page-tesla .timeline-item:nth-child(even) .timeline-dot { left: -8px; }
.about-page-tesla .timeline-content { padding: 20px 30px; background-color: #fff; position: relative; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.about-page-tesla .timeline-content h3 { font-weight: 600; }
.about-page-tesla .certs-section { padding: 100px 0; }
.about-page-tesla .cert-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.about-page-tesla .cert-item img { max-height: 80px; margin-bottom: 1rem; filter: grayscale(100%); transition: filter 0.3s ease; }
.about-page-tesla .cert-item:hover img { filter: grayscale(0%); }
.about-page-tesla .cert-item span { font-size: 0.9rem; color: #555; font-weight: 500; }
.about-page-tesla .cta-section { padding: 100px 0; background-color: #fff; }

/* --- 通用页脚样式 --- */
.site-footer { background-color: #343a40; color: #adb5bd; padding: 30px 0; text-align: center; font-size: 0.9rem; }
.site-footer p { margin-bottom: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: #adb5bd; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.icp-divider { margin: 0 10px; color: #6c757d; }

/* --- 响应式 --- */
@media (max-width: 991px) { 
    .mega-menu-divider { border-left: none !important; padding-left: 1rem !important; border-top: 1px solid #e9ecef; padding-top: 2rem !important; margin-top: 1rem; } 
    .dark-feature-panel { background-attachment: scroll; height: 60vh; }
}
@media (max-width: 768px) { 
    .mega-menu-item img { height: 120px; }
    .section-title, .section-title-dark { font-size: 2rem; }
    .feature-section, .industries-section, .news-section, .showcase-panel { padding: 60px 0; }
}
/* --- 新增：联系我们页面样式 --- */
.contact-page .page-header {
    border-bottom: 1px solid #dee2e6;
}
.contact-details {
    background-color: #fff;
    padding: 2.25rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.contact-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-item:last-child {
    margin-bottom: 0;
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}
.contact-item strong {
    display: block;
    font-weight: 600;
}
.contact-item span {
    color: #6c757d;
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.contact-form-wrapper {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.contact-form-wrapper .form-control {
    padding: 0.75rem 1rem;
}
.contact-form-wrapper .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}
/* --- 联系我们页面布局修正 --- */
main.contact-page {
    padding-top: var(--navbar-height);
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--navbar-height));
}

.contact-page .page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.contact-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.contact-overview .overview-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}
.contact-overview .overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.contact-overview .overview-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.contact-overview .overview-card h5 {
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.contact-overview .overview-card p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.contact-highlights {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact-highlights h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.contact-highlights .feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}
.contact-highlights .feature-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    color: #495057;
}
.contact-highlights .feature-list i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}
.contact-highlights .feature-list strong {
    display: block;
    color: #212529;
    margin-bottom: 0.35rem;
}
.contact-highlights .feature-list p {
    margin: 0;
}
.service-commitments {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}
.service-commitments h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}
.service-commitments .service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.service-commitments .service-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #495057;
}
.service-commitments .service-list li:last-child {
    margin-bottom: 0;
}
.service-commitments .service-list span {
    font-weight: 600;
    color: var(--primary);
    min-width: 90px;
}
.contact-cta {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12), rgba(52, 87, 178, 0.05));
    border-radius: 10px;
    padding: 1.75rem;
}
.contact-cta h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.contact-cta p {
    margin-bottom: 0;
    color: #495057;
}
.contact-resources .resource-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-resources .resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.contact-resources .resource-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.contact-resources .resource-card h5 {
    margin: 0;
    font-weight: 600;
}
.contact-resources .resource-card p {
    margin: 0;
    color: #6c757d;
}

.contact-note {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #495057;
}
.contact-note i {
    color: var(--primary);
    font-size: 1.35rem;
    margin-top: 0.2rem;
}
.contact-note p {
    margin: 0;
}
@media (min-width: 992px) {
    .contact-highlights .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.contact-resources .resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.contact-resources .resource-link::after {
    content: '\f285';
    font-family: 'bootstrap-icons';
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}
.contact-resources .resource-link:hover::after {
    transform: translateX(2px);
}
@media (max-width: 767px) {
    .contact-overview {
        grid-template-columns: 1fr;
    }
    .contact-overview .overview-card {
        padding: 1.75rem;
    }
    .contact-highlights {
        padding: 1.75rem;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
    .contact-resources .resource-card {
        padding: 1.75rem;
    }
    .contact-note {
        flex-direction: column;
    }
}
/* --- 响应式优化 (平板与手机) --- */

/* =============== 针对平板设备 (宽度小于 992px) =============== */
@media (max-width: 991px) {
    /* --- 全局导航 --- */
    /* 隐藏桌面版的文字导航链接 */
    #navMenu .navbar-nav {
        display: none;
    }
    /* 确保移动端切换按钮可用 (如果您的header.php里有) */
    .navbar-toggler {
        display: block;
    }
    /* 隐藏超级菜单的分隔线，并调整布局 */
    .mega-menu-divider {
        border-left: none !important;
        padding-left: 1rem !important;
        border-top: 1px solid #e9ecef;
        padding-top: 2rem !important;
        margin-top: 1rem;
    }

    /* --- 首页 (jaguar.php) --- */
    /* 核心优势：从4列变为2x2网格 */
    .feature-section .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    /* 应用行业：从6列变为2x3网格 */
    .industries-section .col-lg-2 {
        margin-bottom: 1rem;
    }
    /* 最新资讯：从3列变为单列堆叠 */
    .news-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    /* 首页全屏面板在平板上可以适当减小高度 */
    .dark-feature-panel {
        background-attachment: scroll; /* 在移动端禁用视差效果以提高性能 */
        height: 60vh;
    }

    /* --- 产品页 (product-air-1.php) --- */
    .split-feature-section .row {
        display: flex;
        flex-direction: column;
    }
    .split-feature-section .row.flex-row-reverse {
        flex-direction: column;
    }
    .split-feature-section .image-pane {
        min-height: 400px; /* 在平板上给图片一个固定高度 */
    }
    .split-feature-section .text-pane {
        padding: 3rem;
        text-align: center; /* 居中文字更美观 */
    }
    .parallax-feature-panel {
        background-attachment: scroll;
        height: 65vh;
        min-height: 440px;
    }
    .full-bleed-feature {
        padding: 0 2rem 6rem;
    }
    .full-bleed-feature .feature-visual {
        min-height: 480px;
        border-radius: 22px;
    }
    .full-bleed-feature .feature-caption {
        margin-top: -4rem;
        padding: 2.5rem 2.75rem;
    }
    .product-highlights { padding: 90px 0 150px; }
    .product-highlights__wrap { width: 100%; padding: 0; }
    .product-highlights__stage { height: clamp(440px, 88vw, 640px); }
    .product-highlights__slide { border-radius: 26px; }
    .product-highlights__tabs { gap: clamp(18px, 3vw, 36px); }

    /* --- “关于我们”页 (about.php) --- */
    /* 调整时间线布局 */
    .about-page-tesla .timeline::after { left: 15px; }
    .about-page-tesla .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
    .about-page-tesla .timeline-item:nth-child(even) { left: 0%; }
    .about-page-tesla .timeline-dot, 
    .about-page-tesla .timeline-item:nth-child(even) .timeline-dot { 
        left: 7px; 
    }
}

/* =============== 针对手机设备 (宽度小于 768px) =============== */
@media (max-width: 767px) {
    /* --- 调整标题字体大小 --- */
    .section-title, .section-title-dark,
    .about-page-tesla .narrative-title {
        font-size: 2rem;
    }
    .feature-split-title {
        font-size: 1.8rem;
    }
    .product-page-final .product-hero-final .display-3 {
        font-size: 2.5rem;
    }
    .model-title-container .display-4 {
        font-size: 2.2rem;
    }

    /* --- 调整间距 --- */
    .feature-section, .industries-section, .news-section,
    .product-intro-section, .specs-image-section, .cta-section,
    .about-page-tesla .stats-section, .about-page-tesla .narrative-section {
        padding: 60px 0;
    }

    .product-highlights {
        padding: 70px 0 110px;
    }
    .product-highlights__wrap {
        width: 100%;
        padding: 0;
    }
    .product-highlights__stage {
        height: clamp(340px, 98vw, 520px);
    }
    .product-highlights__slide {
        border-radius: 20px;
    }
    .product-highlights__tabs {
        gap: 14px;
    }
    .product-highlights__tab {
        font-size: 0.88rem;
    }

    .specs-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 36px;
    }
    .specs-list div {
        grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
    }

    /* --- 首页英雄区 --- */
    .panel-content h1 { font-size: 2.5rem; }
    .panel-content p { font-size: 1.1rem; }

    /* --- 超级菜单 --- */
    .mega-menu-item img { height: 120px; }
    .mega-menu { padding: 2rem 1rem; }
    /* 超级菜单变为单列或双列 */
    .mega-menu .row {
        --bs-gutter-x: 1.5rem;
    }
    .mega-menu .col-lg-5, .mega-menu .col-lg-3, .mega-menu .col-lg-4 {
        width: 100%; /* 在小屏上强制全宽 */
    }


    /* --- 产品页 --- */
    .model-viewer-hero { height: auto; }
    .model-viewer-container { height: 70vh; }
    .model-title-container { padding: 2rem 1rem; }
    .parallax-feature-panel {
        height: 55vh;
        min-height: 360px;
        padding: 0 1rem;
    }
    .full-bleed-feature {
        padding: 0 1.25rem 4rem;
    }
    .full-bleed-feature .feature-visual {
        min-height: 360px;
        border-radius: 18px;
    }
    .full-bleed-feature .feature-caption {
        margin-top: -2.5rem;
        padding: 2rem 1.75rem;
    }
    .full-bleed-feature .feature-caption::before {
        width: 90px;
        top: -18px;
    }
    .product-highlights { padding: 55px 0 80px; }
    .product-highlights__stage { height: clamp(300px, 70vh, 420px); }
    .product-highlights__slide { border-radius: 18px; }
    .product-highlights__tabs { gap: 16px; }
    .product-highlights__tab { font-size: 0.9rem; }
    .product-highlights__desc { margin-top: 16px; }

    /* --- “关于我们”页 --- */
    .about-page-tesla .full-width-image-showcase { height: 40vh; }
}
/* --- 针对 iPad 等平板设备的专项优化 (宽度 768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    /* --- 首页 (jaguar.php) --- */
    /* 首页视频 hero 区文字缩小 */
    .panel.video-hero .panel-content h1 {
        font-size: 3rem; /* 略微减小标题 */
    }
    .panel.video-hero .panel-content p {
        font-size: 1.2rem; /* 略微减小副标题 */
    }

    /* 核心优势：保持两列，但调整内边距 */
    .feature-section .col-md-6 {
        margin-bottom: 2rem;
    }
    .feature-card {
        padding: 1.5rem; /* 减小卡片内边距 */
    }
    .feature-icon {
        font-size: 2.5rem; /* 减小图标大小 */
        margin-bottom: 1rem;
    }
    .feature-title {
        font-size: 1.1rem; /* 减小标题大小 */
    }
    .feature-text {
        font-size: 0.9rem; /* 减小文本大小 */
    }

    /* 应用行业：调整图标大小和间距 */
    .industry-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    .industry-card span {
        font-size: 0.9rem;
    }

    /* 最新资讯：保持两列，调整间距 */
    .news-section .col-lg-4 {
        width: 50%; /* 调整为两列 */
        margin-bottom: 1.5rem;
    }
    .news-card-img {
        height: 180px; /* 略微减小图片高度 */
    }
    .news-card-body {
        padding: 1rem; /* 减小内容内边距 */
    }
    .news-card-title {
        font-size: 1rem; /* 减小标题大小 */
        margin-bottom: 0.75rem;
    }

    /* 首页全屏展示面板 */
    .showcase-panel .container h2 {
        font-size: 2.8rem; /* 减小主标题 */
    }
    .showcase-panel .container p {
        font-size: 1.4rem; /* 减小副标题 */
    }
    .showcase-panel .container .btn {
        font-size: 1rem; /* 减小按钮文字大小 */
        padding: 0.8rem 2rem; /* 减小按钮内边距 */
    }

    /* --- 产品页 (例如 product-air-1.php) --- */
    .product-page-final .product-hero-final .display-3 {
        font-size: 3.5rem; /* 减小产品主标题 */
    }
    .product-page-final .product-hero-final .lead {
        font-size: 1.3rem; /* 减小产品副标题 */
    }
    .specs-image-section .col-md-6 {
        margin-bottom: 2rem; /* 调整规格图片部分间距 */
    }
    .split-feature-section .image-pane {
        min-height: 350px; /* 调整图文分割区域图片高度 */
    }
    .split-feature-section .text-pane {
        padding: 2rem; /* 减小图文分割区域文字内边距 */
        text-align: left; /* 平板上恢复左对齐 */
    }
    .parallax-feature-panel {
        height: 70vh;
        min-height: 480px;
    }
    .full-bleed-feature {
        padding: 0 2.75rem 7rem;
    }
    .full-bleed-feature .feature-visual {
        min-height: 500px;
        border-radius: 24px;
    }
    .full-bleed-feature .feature-caption {
        margin-top: -3.5rem;
        padding: 2.75rem 3rem;
    }
    .specs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-highlights { padding: 75px 0 130px; }
    .product-highlights__stage { height: clamp(380px, 58vw, 560px); }
    .product-highlights__slide { border-radius: 24px; }
    .product-highlights__tabs { gap: clamp(20px, 3.4vw, 38px); }
}
/* --- 新增：导航栏用户下拉菜单样式 --- */
#navbar .navbar-side .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    margin-top: 1rem !important; /* 微调与图标的距离 */
}
#navbar .navbar-side .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
#navbar .navbar-side .dropdown-item i {
    color: var(--primary);
    font-size: 1.1rem;
    vertical-align: middle;
}
