/* ==================== 全局变量与重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3b90;
    --primary-light: #3b66d9;
    --primary-dark: #0f2866;
    --primary-glow: rgba(26, 59, 144, 0.15);
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0b1a3d;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(26, 59, 144, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 通用区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-en {
    display: block;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto;
    border-radius: 2px;
}

/* 滚动渐入动画 */
.section-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮通用样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 59, 144, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 59, 144, 0.35);
}

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

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

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* ==================== 导航栏 ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-full {
    height: 40px;
    width: auto;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.site-header:not(.scrolled) .nav-link {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.site-header:not(.scrolled) .nav-link::after {
    background: white;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.site-header:not(.scrolled) .nav-link:hover,
.site-header:not(.scrolled) .nav-link.active {
    color: white;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.site-header:not(.scrolled) .menu-toggle span {
    background: white;
}

.mobile-menu {
    display: none;
}

.site-main {
    padding-top: 0;
}

/* ==================== 首页 Banner 轮播 ==================== */
.banner-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 40, 102, 0.7) 0%, rgba(26, 59, 144, 0.4) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 680px;
}

.banner-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.banner-subtitle {
    font-size: 20px;
    opacity: 0.92;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.banner-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 1s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.banner-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.banner-prev {
    left: 32px;
}

.banner-next {
    right: 32px;
}

.banner-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-indicators .indicator-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.banner-indicators .indicator-dot.active {
    background: white;
    width: 48px;
}

/* ==================== 企业文化 ==================== */
.culture-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.culture-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: var(--primary-glow);
    border-radius: 0 0 0 100%;
    transition: var(--transition);
}

.culture-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.culture-card:hover::before {
    background: rgba(26, 59, 144, 0.08);
    transform: scale(1.2);
}

.culture-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.culture-card:hover .culture-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.culture-en {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.culture-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.culture-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ==================== 发展历程时间轴 ==================== */
.timeline-section {
    padding: 120px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), var(--border));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.timeline-left {
    justify-content: flex-start;
}

.timeline-right {
    justify-content: flex-end;
}

.timeline-content {
    width: 42%;
    background: white;
    padding: 28px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 36px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
    z-index: 2;
}

.timeline-year {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ==================== 产品全屏滚动页 ==================== */
.products-fullpage {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.products-fullpage::-webkit-scrollbar {
    display: none;
}

.product-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-section:nth-child(even) {
    background: var(--bg-light);
}

.product-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-container.reverse .product-text {
    order: 2;
}

.product-container.reverse .product-image {
    order: 1;
}

.product-index {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.product-name {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.product-features {
    list-style: none;
    margin-bottom: 40px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 15px;
}

.product-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

.product-buttons {
    display: flex;
    gap: 16px;
}

.product-image {
    position: relative;
}

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.scroll-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.scroll-indicator .indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator .indicator-dot.active {
    background: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ==================== 新闻动态页 ==================== */
.news-page {
    padding: 140px 0 100px;
    min-height: 100vh;
    background: var(--bg-light);
}

.news-search {
    max-width: 600px;
    margin: 0 auto 48px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    background: white;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.news-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.news-summary {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 加入我们页 ==================== */
.join-page {
    padding: 140px 0 100px;
    min-height: 100vh;
    background: white;
}

.job-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-light);
}

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    cursor: pointer;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.job-location {
    font-size: 14px;
    color: var(--primary);
}

.job-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.job-card.expanded .job-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.job-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 28px;
}

.job-card.expanded .job-content {
    max-height: 500px;
    padding-bottom: 28px;
}

.job-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.job-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.job-requirements {
    list-style: none;
    margin-bottom: 20px;
}

.job-requirements li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.job-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== 弹窗通用样式 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 40, 102, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

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

.modal-content {
    padding: 40px;
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

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

.footer-logo {
    height: 36px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

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

/* ==================== 响应式适配 ==================== */
@media (max-width: 968px) {
    .section-title {
        font-size: 32px;
    }

    .banner-title {
        font-size: 40px;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .product-container.reverse .product-text {
        order: 1;
    }

    .product-container.reverse .product-image {
        order: 2;
    }

    .product-name {
        font-size: 32px;
    }

    .product-features {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-buttons {
        justify-content: center;
    }

    .scroll-indicator {
        right: 20px;
    }

    .nav-list {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 100px 32px;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .mobile-menu.open {
        right: 0;
    }

    .mobile-nav-list {
        list-style: none;
    }

    .mobile-nav-list li {
        margin-bottom: 24px;
    }

    .mobile-nav-link {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .banner-btn {
        width: 40px;
        height: 40px;
    }

    .banner-prev {
        left: 16px;
    }

    .banner-next {
        right: 16px;
    }

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

    .product-name {
        font-size: 28px;
    }

    .modal-content {
        padding: 28px 20px;
    }
}

.news-page {
    min-height: calc(100vh - 72px);
    padding: 140px 0 100px;
    background: var(--bg-light);
}