/* ============ 品牌色变量 ============ */
:root {
    --ink-black: #0A0E14;
    --white: #FFFFFF;
    --off-white: #F5F7FA;
    --mist-gray: #8E9DAB;
    --electric-blue: #0667FC;
    --electric-blue-light: #E8F1FE;
    --font: -apple-system, "SF Pro Display", "Helvetica Neue",
            "PingFang SC", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--ink-black);
    overflow-x: hidden;
}

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

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(10,14,20,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px 0;
}
/* 浅色导航（滚动超过首屏后） */
.navbar.light.scrolled {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.4s var(--ease);
}
.nav-logo:hover { opacity: 0.85; }
.logo-icon {
    width: 109px;
    height: 58px;
    display: block;
    margin-bottom: 6px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-menu a {
    font-size: 0.85rem;
    color: var(--white);
    opacity: 0.85;
    transition: opacity 0.3s, color 0.4s var(--ease);
    position: relative;
}
.nav-menu a:hover { opacity: 1; }
.nav-cta {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 20px;
    border-radius: 40px;
    transition: all 0.3s var(--ease), border-color 0.4s var(--ease) !important;
}
.nav-cta:hover {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}
/* 浅色导航下的文字和按钮 */
.navbar.light .nav-menu a { color: var(--ink-black); }
.navbar.light .nav-cta {
    border-color: rgba(0,0,0,0.2);
}
.navbar.light .nav-cta:hover {
    background: var(--electric-blue);
    color: var(--white);
    border-color: var(--electric-blue);
}
.navbar.light .nav-toggle span { background: var(--ink-black); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
    width: 26px; height: 2px; background: var(--white);
    transition: 0.3s var(--ease);
}

/* ============ 加载页 ============ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #f0f4ff 0%, #e8f1fe 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    width: 85%;
}
.loader-logo {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 48px;
    animation: loaderPulse 2.2s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}
.loader-bar-track {
    width: 100%;
    height: 3px;
    background: rgba(6,103,252,0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.loader-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: var(--electric-blue);
    border-radius: 3px;
    transition: width 0.3s ease-out;
}
.loader-text {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-top: 20px;
    opacity: 0.75;
    text-align: center;
}

/* ============ Hero 首屏视频 ============ */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--ink-black);
}
.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-video-container .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;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.hero-video-container .hero-video.active {
    opacity: 1;
}
.hero-video-container .hero-video:first-child {
    animation: heroMediaIn 2s linear both;
}
.hero-overlay {
    animation: heroMediaIn 2s linear both;
}
@keyframes heroMediaIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10,14,20,0.15) 0%,
        rgba(10,14,20,0.05) 50%,
        rgba(10,14,20,0.9) 100%);
    z-index: 2;
}
.hero-content {
    position: absolute;
    bottom: 100px;
    left: 60px;
    z-index: 3;
    text-align: left;
    max-width: 640px;
    padding-right: 40px;
    animation: fadeUp 2s var(--ease) 0.6s both;
}
.hero-title {
    font-size: clamp(1.8rem, 4.5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--white);
    line-height: 1.15;
}
.hero-subtitle {
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}
.hero-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--white);
    background: var(--electric-blue);
    border-radius: 40px;
    transition: all 0.35s var(--ease);
}
.hero-cta:hover {
    background: #0056D6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6,103,252,0.4);
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.6;
    color: var(--white);
    animation: pulse 2.5s infinite;
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
}
@keyframes pulse {
    0%,100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.85; transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ 通用区块 ============ */
section {
    padding: 140px 0;
    background: var(--white);
}
.section-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--electric-blue);
    margin-bottom: 24px;
    font-weight: 500;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 80px;
    max-width: 900px;
    color: var(--ink-black);
}

/* ============ Intro / 使命 ============ */
.intro {
    padding: 180px 0 120px;
    text-align: center;
    background: var(--white);
    min-height: 80vh;
}
.intro-heading {
    font-size: clamp(1.5rem, 3.2vw, 2.8rem);
    font-weight: 400;
    line-height: 1.5;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--ink-black);
    letter-spacing: -0.01em;
}
.intro-heading em {
    font-style: normal;
    font-weight: 600;
    color: var(--electric-blue);
}
/* 打字光标 */
.intro-heading em.typing::after,
.intro-heading em.typed::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--electric-blue);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}
.intro-heading em.typed::after {
    animation: blink 1.6s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============ Announcement / 最新动态 ============ */
.announcement {
    background: var(--white);
    text-align: center;
}
.announcement-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink-black);
    max-width: 900px;
    margin: 0 auto 20px;
}
.announcement-sub {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 400;
    color: var(--electric-blue);
    margin-bottom: 48px;
}
.announcement-image {
    max-width: 760px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
}
.announcement-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease);
}
.announcement-image:hover img {
    transform: scale(1.04);
}
.announcement-body {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}
.announcement-date {
    font-size: 0.9rem;
    color: var(--mist-gray);
    margin-bottom: 16px;
}
.announcement-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ============ Technology / 核心技术 ============ */
.technology {
    background: var(--off-white);
}
.tech-showcase {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 视频播放区 */
.tech-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ink-black);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
}
.tech-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.tech-video.active {
    opacity: 1;
    pointer-events: auto;
}

/* 切换标签 */
.tech-tabs {
    display: flex;
    gap: 0;
    margin-top: 36px;
}
.tech-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.35s var(--ease);
    color: var(--mist-gray);
}
.tech-tab:hover {
    color: var(--ink-black);
    border-bottom-color: rgba(0,0,0,0.25);
}
.tech-tab.active {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
}
.tab-num {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.5;
}
.tech-tab.active .tab-num { opacity: 1; }
.tab-label {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 文字说明 */
.tech-info {
    text-align: center;
    margin-top: 40px;
    max-width: 640px;
}
.tech-info h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: var(--ink-black);
}
.tech-info p {
    color: var(--mist-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============ Process / 移动实验室 ============ */
.process { background: var(--white); }
.process-showcase {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 视频播放区 */
.process-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: var(--ink-black);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    margin-top: 28px;
}
.process-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.process-video.active {
    opacity: 1;
    pointer-events: auto;
}

/* 左右切换箭头 */
.proc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s var(--ease);
}
.proc-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.proc-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}
.proc-prev { left: 16px; }
.proc-prev span { transform: rotate(135deg); margin-left: 4px; }
.proc-next { right: 16px; }
.proc-next span { transform: rotate(-45deg); margin-right: 4px; }

/* 切换标签（三列两行） */
.process-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 28px;
    max-width: 720px;
    width: 100%;
}
.process-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    transition: all 0.35s var(--ease);
    color: var(--mist-gray);
}
.process-tab:hover {
    color: var(--ink-black);
    border-bottom-color: rgba(0,0,0,0.25);
}
.process-tab.active {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
}
.ptab-num {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.5;
}
.process-tab.active .ptab-num { opacity: 1; }
.ptab-label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 文字说明（视频下方，两列） */
.process-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 36px;
    max-width: 720px;
    width: 100%;
}
.process-info h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: var(--ink-black);
}
.process-info p {
    color: var(--mist-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============ Achievements / 成果 ============ */
.achievements {
    background: var(--off-white);
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 40px;
}
.stat-num {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 16px;
    color: var(--ink-black);
}
.stat-item p {
    color: var(--mist-gray);
    font-size: 1.1rem;
}

/* ============ Vision / 愿景 ============ */
.vision {
    text-align: center;
    padding: 200px 0;
    background: var(--white);
}
.vision-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--ink-black);
}
.vision-heading em {
    font-style: normal;
    color: var(--electric-blue);
}
.vision-image {
    max-width: 760px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
}
.vision-image img {
    width: 100%;
    display: block;
    transition: transform 0.6s var(--ease);
}
.vision-image:hover img {
    transform: scale(1.04);
}
.vision-text {
    max-width: 760px;
    margin: 0 auto;
    color: var(--mist-gray);
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 300;
}

/* ============ Contact / 联系我们 ============ */
.contact-form {
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
}
.contact-card {
    text-align: center;
}
.contact-card-image {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--off-white);
}
.contact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.contact-card:hover .contact-card-image img {
    transform: scale(1.05);
}
.contact-card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 28px;
    background: linear-gradient(180deg, transparent 0%, rgba(10,14,20,0.75) 100%);
    color: var(--white);
    text-align: left;
}
.contact-card-text h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 8px;
}
.contact-card-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* ============ Footer ============ */
.footer {
    background: var(--off-white);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--ink-black);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}
.footer-brand p {
    color: var(--mist-gray);
    margin-top: 16px;
}
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--ink-black);
}
.footer-col a {
    display: block;
    color: var(--mist-gray);
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--electric-blue); }
.footer-en {
    font-size: 0.85rem;
    color: var(--mist-gray);
    margin-top: 4px;
}
.footer-info-item {
    margin-bottom: 14px;
    line-height: 1.5;
}
.footer-info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-black);
    font-weight: 500;
    margin-bottom: 2px;
}
.footer-info-item span + span,
.footer-info-item a {
    font-size: 0.9rem;
    color: var(--mist-gray);
}
.footer-info-item a {
    display: inline;
}
.footer-info-item a:hover { color: var(--electric-blue); }
.footer-qrcode {
    display: block;
    width: 100px;
    height: 100px;
    margin-top: 8px;
    border-radius: 8px;
}
.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--mist-gray);
    font-size: 0.9rem;
}

/* ============ 滚动显现动画 ============ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 划入动画 */
.reveal-slide-up {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .tech-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(10,14,20,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s var(--ease);
    }
    .nav-menu.open { right: 0; }
    .navbar.light .nav-menu {
        background: rgba(255,255,255,0.97);
    }
    .navbar.light .nav-menu a {
        color: var(--ink-black);
    }
    .nav-toggle { display: flex; z-index: 1100; }
    .container { padding: 0 24px; }
    section { padding: 90px 0; }
    .hero-content {
        bottom: 80px;
        left: 24px;
        padding-right: 24px;
    }
    .hero-scroll { display: none; }
    .tech-tabs { gap: 0; }
    .tech-tab { padding: 12px 16px; }
    .tab-label { font-size: 0.85rem; }
    .process-tabs { grid-template-columns: repeat(3, 1fr); }
    .process-tab { padding: 10px 12px; }
    .ptab-label { font-size: 0.78rem; }
    .process-info { grid-template-columns: 1fr; gap: 16px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-content {
        bottom: 60px;
        left: 20px;
        padding-right: 20px;
    }
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }
}




/* ============ Hero 图片轮播层 ============ */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--ink-black);
}
.hero-slide {
    will-change: opacity;
}
/* 视频层在图片层之上，初始透明 */
.hero-video {
    z-index: 2 !important;
    transition: opacity 1.2s ease;
}

/* Tech / Process poster 过渡 */
.tech-poster, .process-poster {
    z-index: 2;
    transition: opacity 0.8s ease;
}
.tech-poster.active, .process-poster.active {
    z-index: 3;
}

/* 隐藏原 hero 视频入场动画（已用图片替代） */
.hero-video-container .hero-video:first-child {
    animation: none;
}
.hero-overlay {
    animation: none;
}

/* ============ 去掉预加载页（保留兼容） ============ */
.page-loader {
    display: none !important;
}


/* ============ 公安备案号 ============ */
.footer-bottom .beian-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.footer-bottom .beian-police { display: inline-flex; align-items: center; gap: 5px; }
.footer-bottom .beian-badge { width: 15px; height: 15px; flex-shrink: 0; }
