/* ===== CSS 变量 ===== */
:root {
    --bg-primary: #fafaf9;
    --bg-card: #ffffff;
    --bg-section: #f3f2f0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #8c8c8c;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.12);
    --accent-subtle: rgba(124, 58, 237, 0.06);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(124, 58, 237, 0.25);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --max-width: 1040px;
    --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-en: "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-cn);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

/* ===== 背景光效 ===== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    animation: bgPulse 10s ease-in-out infinite alternate;
}

.bg-glow--top {
    width: 500px; height: 320px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.5) 0%, transparent 70%);
    top: -160px; right: -100px;
}

.bg-glow--mid {
    width: 400px; height: 280px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    bottom: 10%; left: -140px;
    animation-delay: -5s;
}

@keyframes bgPulse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.16; }
    50% { transform: translate(20px, -15px) scale(1.06); opacity: 0.26; }
    100% { transform: translate(-15px, 10px) scale(0.96); opacity: 0.18; }
}

.bg-grid {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    opacity: 0.1;
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 25%, transparent 70%);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 32px;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.header.scrolled {
    background: rgba(250, 250, 249, 0.82);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 1px 0 var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
    flex-shrink: 0;
}

.logo-cn {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.logo-en {
    font-size: 0.6rem;
    font-family: var(--font-en);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.logo:hover .logo-cn,
.logo:hover .logo-en { color: var(--accent); }

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 1;
}

.nav { display: flex; gap: 28px; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.25s;
    white-space: nowrap;
}

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

/* 语言切换下拉 */
.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
}

.lang-switch select:hover { border-color: var(--border-hover); }
.lang-switch select:focus { border-color: var(--accent); color: var(--accent); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 64px;
    z-index: 1;
    overflow: hidden;
}

/* 光束 */
.hero-beam {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%) rotate(-12deg);
    width: 1px; height: 180%;
    pointer-events: none; z-index: 0;
    animation: beamSweep 8s ease-in-out infinite alternate;
}

.hero-beam::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(167, 139, 250, 0.4) 15%,
        rgba(124, 58, 237, 0.5) 25%,
        rgba(167, 139, 250, 0.35) 35%,
        transparent 50%
    );
    animation: beamGlow 5s ease-in-out infinite alternate;
}

@keyframes beamSweep {
    0% { transform: translateX(-60%) rotate(-12deg); opacity: 0.3; }
    100% { transform: translateX(60%) rotate(-12deg); opacity: 0.6; }
}

@keyframes beamGlow {
    0%, 100% { opacity: 0.25; filter: blur(40px); }
    50% { opacity: 0.55; filter: blur(60px); }
}

/* 粒子 */
.hero-particles {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 0;
}

.hero-particles span {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

.hero-particles span:nth-child(1) { left: 10%; top: 30%; animation-duration: 8s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 25%; top: 60%; animation-duration: 11s; animation-delay: -2s; }
.hero-particles span:nth-child(3) { left: 40%; top: 20%; animation-duration: 9s; animation-delay: -4s; }
.hero-particles span:nth-child(4) { left: 55%; top: 70%; animation-duration: 7s; animation-delay: -1s; }
.hero-particles span:nth-child(5) { left: 70%; top: 35%; animation-duration: 10s; animation-delay: -5s; }
.hero-particles span:nth-child(6) { left: 85%; top: 55%; animation-duration: 12s; animation-delay: -3s; }
.hero-particles span:nth-child(7) { left: 15%; top: 80%; animation-duration: 9s; animation-delay: -6s; }
.hero-particles span:nth-child(8) { left: 60%; top: 15%; animation-duration: 8s; animation-delay: -2.5s; }
.hero-particles span:nth-child(9) { left: 35%; top: 50%; animation-duration: 10s; animation-delay: -4.5s; }
.hero-particles span:nth-child(10) { left: 78%; top: 80%; animation-duration: 11s; animation-delay: -7s; }

@keyframes particleFloat {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    30% { transform: translateY(-60px) scale(1); opacity: 0.55; }
    60% { opacity: 0.15; }
    100% { transform: translateY(-140px) scale(0); opacity: 0; }
}

.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.ht-main {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.ht-sub {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.hero-company {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-divider {
    width: 50px;
    height: 1px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* 滚动指示器 */
.hero-scroll {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 20px; height: 32px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    position: relative;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 7px; opacity: 0.3; }
    50% { top: 15px; opacity: 1; }
}

/* ===== Section 通用 ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 56px 0;
}

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

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

.section-num {
    font-family: var(--font-en);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

/* ===== 卡片 ===== */
.glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-glow) inset;
}

.glass-card__glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.4s;
    opacity: 0;
}

.glass-card:hover .glass-card__glow { opacity: 1; }

.glass-card__content {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
}

.glass-card__content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-card__icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    transition: background 0.4s, box-shadow 0.4s;
}

.contact-card:hover .contact-card__icon {
    background: rgba(124, 58, 237, 0.14);
    box-shadow: 0 0 24px var(--accent-glow);
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-val {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    transition: color 0.3s;
    word-break: break-all;
}

a.contact-val:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer-inner { text-align: center; }

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.footer-copy-en {
    font-family: var(--font-en);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ===== 滚动渐显 ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.hero .reveal:nth-child(1) { transition-delay: 0.04s; }
.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.2s; }
.hero .reveal:nth-child(5) { transition-delay: 0.24s; }

.section-header.reveal { transition-delay: 0.05s; }
.about-grid .reveal,
.contact-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.contact-grid .reveal:nth-child(2) { transition-delay: 0.18s; }
.contact-grid .reveal:nth-child(3) { transition-delay: 0.26s; }

/* ================================================
   响应式 —— 平板 (768px–1024px)
   ================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .contact-card { padding: 24px 16px; }
    .contact-val { font-size: 0.82rem; }
}

/* ================================================
   响应式 —— 平板竖屏 / 大屏手机 (≤768px)
   ================================================ */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .header { padding: 0 20px; }
    .header .container { height: 52px; }

    .logo-cn { font-size: 1.05rem; letter-spacing: 1px; }
    .logo-en { font-size: 0.55rem; }

    .header-right { gap: 16px; }
    .nav { gap: 16px; }
    .nav-link { font-size: 0.82rem; letter-spacing: 0.5px; }

    .lang-switch select {
        font-size: 0.72rem;
        padding: 5px 26px 5px 10px;
    }

    .hero {
        padding: 90px 0 56px;
    }

    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 3px; margin-bottom: 12px; }
    .ht-main { font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: 3px; }
    .ht-sub { font-size: clamp(0.8rem, 3vw, 1rem); }
    .hero-company { font-size: 0.72rem; margin-bottom: 16px; }
    .hero-divider { margin-bottom: 16px; }
    .hero-tagline { font-size: 0.9rem; letter-spacing: 1px; }
    .hero-scroll { bottom: 18px; }

    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 1.4rem; }

    .about-grid { max-width: 100%; }
    .glass-card__content { padding: 24px 20px; }
    .glass-card__content p { font-size: 0.95rem; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card { padding: 24px 20px; }

    .footer { padding: 24px 0; }
    .footer-copy { font-size: 0.75rem; }
}

/* ================================================
   响应式 —— 小屏手机 (≤480px)
   ================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header { padding: 0 16px; }

    .header .container { height: 48px; }

    .logo-cn { font-size: 0.95rem; letter-spacing: 1px; }
    .logo-en { display: none; }

    .header-right { gap: 10px; }
    .nav { gap: 10px; }
    .nav-link { font-size: 0.75rem; letter-spacing: 0; }

    .lang-switch select {
        font-size: 0.68rem;
        padding: 4px 24px 4px 8px;
    }

    .hero { padding: 80px 0 48px; }

    .hero-eyebrow { font-size: 0.6rem; letter-spacing: 2px; }
    .ht-main { font-size: 1.6rem; letter-spacing: 2px; }
    .ht-sub { font-size: 0.78rem; letter-spacing: 1px; }
    .hero-company { font-size: 0.65rem; }
    .hero-tagline { font-size: 0.82rem; }

    .hero-scroll { display: none; }

    .section { padding: 32px 0; }
    .section-header { margin-bottom: 24px; }
    .section-num { font-size: 0.6rem; }
    .section-title { font-size: 1.25rem; letter-spacing: 2px; }

    .glass-card__content { padding: 20px 16px; }
    .glass-card__content p { font-size: 0.9rem; line-height: 1.75; }

    .contact-card { padding: 20px 16px; }
    .contact-card__icon { width: 40px; height: 40px; margin-bottom: 10px; }
    .contact-card h3 { font-size: 0.9rem; }
    .contact-val { font-size: 0.82rem; }

    .footer-copy { font-size: 0.7rem; }
    .footer-copy-en { font-size: 0.58rem; }

    .bg-glow--top { width: 300px; height: 200px; top: -100px; right: -80px; }
    .bg-glow--mid { width: 250px; height: 180px; }
}
