/* ========== CSS 变量 ========== */
:root {
    --primary: #0047BB;
    --primary-hover: #003790;
    --primary-light: #206CE7;
    --primary-glow: rgba(0, 71, 187, 0.12);
    --primary-surface: rgba(0, 71, 187, 0.04);
    --gradient: linear-gradient(135deg, #0047BB 0%, #206CE7 100%);
    --gradient-light: linear-gradient(135deg, rgba(0,71,187,0.06) 0%, rgba(32,108,231,0.06) 100%);
    --text: #141413;
    --text-secondary: #6B6B6B;
    --text-dim: #B0AEA5;
    --white: #FFFFFF;
    --bg: #F0F4F8;
    --bg-elevated: #FFFFFF;
    --bg-subtle: #D0D8E4;
    --bg-warm: #E4E9F0;
    --border: rgba(20, 20, 19, 0.08);
    --border-strong: rgba(20, 20, 19, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,71,187,0.08);
    --shadow-xl: 0 20px 64px rgba(0,71,187,0.12);
    --radius-sm: 12px;
    --radius: 24px;
    --radius-lg: 40px;
    --container: 1280px;
    --header-h: 76px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Outfit', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ========== 容器 ========== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.96);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.logo-img {
    height: 38px;
    width: auto;
    display: block;
}
.logo-text span { color: var(--primary); }

.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
    position: relative;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: #4A4A4A;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.3px;
}
.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    background: var(--primary-surface);
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform 0.3s ease;
}
.nav-item:hover::after,
.nav-item.active::after { transform: translateX(-50%) scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-contact-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn-contact-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,71,187,0.28);
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: none;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}
.mobile-menu-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .nav-item {
    display: block;
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
}

/* ========== 内页 Banner ========== */
.page-banner {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, #002766 0%, #0047BB 50%, #206CE7 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-top: var(--header-h);
    overflow: hidden;
}
.page-banner .container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 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='%23ffffff' fill-opacity='0.04'%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");
}
.page-banner-content { position: relative; z-index: 1; color: var(--white); }
.page-banner-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.page-banner-content p {
    font-size: 1.08rem;
    opacity: 0.8;
    font-weight: 300;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 14px 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-dim);
}
.breadcrumb-inner a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-dim); }

/* ========== Footer ========== */
.site-footer {
    background: #0B1E3D;
    color: rgba(255,255,255,0.65);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-col h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2.5px;
    background: var(--primary-light);
    border-radius: 3px;
}
.footer-col p { margin-bottom: 8px; font-size: 0.88rem; line-height: 1.8; }
.footer-col a { display: block; font-size: 0.88rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; opacity: 0.5; }

/* ========== 通用板块 ========== */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-surface);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: 1px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,71,187,0.3);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ========== 卡片 ========== */
.card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate { opacity: 0; }
.animate.visible { animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ========== Hero 轮播图 ========== */
.hero-carousel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: var(--header-h);
}
.hero-carousel .swiper {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}
.hero-carousel .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel .slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-carousel .slide-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: heroZoom 15s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}
.hero-carousel .slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, rgba(0,26,61,0.82) 0%, rgba(0,71,187,0.65) 70%, rgba(32,108,231,0.5) 100%);
    z-index: 1;
}
.hero-carousel .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    color: var(--white);
}
.hero-carousel .slide-content .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
}
.hero-carousel .slide-content h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.hero-carousel .slide-content h1 em {
    font-style: normal;
    color: inherit;
}
.hero-carousel .slide-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}
.hero-carousel .hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-carousel .hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-carousel .hero-stat-item { text-align: center; }
.hero-carousel .hero-stat-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: #8BB8FF;
    letter-spacing: 1px;
}
.hero-carousel .hero-stat-label { font-size: 0.84rem; opacity: 0.55; margin-top: 4px; letter-spacing: 1px; }

/* Swiper 导航按钮 */
.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}
.hero-carousel .swiper-button-next::after,
.hero-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}
.hero-carousel .swiper-button-next:hover,
.hero-carousel .swiper-button-prev:hover {
    background: var(--primary);
    border-color: transparent;
    transform: scale(1.1);
}
.hero-carousel .swiper-button-next { right: 40px; }
.hero-carousel .swiper-button-prev { left: 40px; }

/* Swiper 分页器 */
.hero-carousel .swiper-pagination-bullet {
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: var(--transition);
}
.hero-carousel .swiper-pagination-bullet-active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

.hero-carousel .scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
    letter-spacing: 1px;
}
.hero-carousel .scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 11px;
    position: relative;
}
.hero-carousel .scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

/* 产品预览图片样式 */
.product-preview-img {
    flex-shrink: 0;
    width: 60px; height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--primary-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-preview-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-preview-img .placeholder-icon {
    width: 30px; height: 30px;
    opacity: 0.5;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-nav { display: none; }
    .header-actions .btn-contact-header { display: none; }
    .mobile-menu-btn { display: flex; }
    .page-banner { height: 240px; }
    .page-banner-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .hero-carousel .slide-content h1 { font-size: 2.2rem; }
    .hero-carousel .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-carousel .swiper-button-next { right: 12px; }
    .hero-carousel .swiper-button-prev { left: 12px; }
    .hero-carousel .swiper-button-next,
    .hero-carousel .swiper-button-prev { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .page-banner { height: 200px; }
    .page-banner-content h1 { font-size: 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .section { padding: 48px 0; }
    .hero-carousel .slide-content h1 { font-size: 1.6rem; }
    .hero-carousel .hero-stats { flex-direction: column; gap: 16px; }
}
