/* ============================================================
   JIIL NetTech Studio — 官网主样式
   assets/css/main.css
   ------------------------------------------------------------
   设计语言：企业级「大厂」风格
   - 近黑墨色 + 单一克制强调色(azure)，中性灰阶
   - 精细 1px 边框 + 低透明度分层阴影（拒绝默认重阴影）
   - Manrope 正文 / Space Grotesk 标题
   - 区块统一节奏：eyebrow 眉标 + 大标题 + 副标题
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
    --bg: #ffffff;
    --bg-alt: #f6f7f9;
    --surface: #ffffff;
    --ink: #0c0f14;
    --muted: #5b6472;
    --border: #e7e9ee;
    --border-strong: #d5dae2;

    --accent: #2f6bff;
    --accent-deep: #1a4fd8;
    --accent-soft: rgba(47, 107, 255, 0.08);
    --accent-line: rgba(47, 107, 255, 0.28);

    --gradient-primary: linear-gradient(135deg, #0c0f14 0%, #232a35 100%);
    --gradient-secondary: linear-gradient(135deg, #2f6bff 0%, #1a4fd8 100%);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(12, 15, 20, 0.08);

    --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 2px 4px rgba(15, 23, 42, 0.05), 0 24px 48px -16px rgba(15, 23, 42, 0.16);

    --font-display: 'Space Grotesk', 'Manrope', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Manrope', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;

    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --section-pad: 112px;
}

.dark-mode {
    --bg: #0a0c10;
    --bg-alt: #0d1015;
    --surface: #13161c;
    --ink: #f2f4f7;
    --muted: #9aa3b2;
    --border: #232730;
    --border-strong: #2e3540;

    --accent: #5b8bff;
    --accent-deep: #7ca4ff;
    --accent-soft: rgba(91, 139, 255, 0.12);
    --accent-line: rgba(91, 139, 255, 0.4);

    --gradient-primary: linear-gradient(135deg, #1a2332 0%, #2f6bff 100%);
    --gradient-secondary: linear-gradient(135deg, #2f6bff 0%, #5b8bff 100%);

    --glass-bg: rgba(10, 12, 16, 0.78);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

/* ---------- 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss01' 1, 'cv05' 1;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---------- 关键帧 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-10px); }
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---------- 滚动进场 ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ---------- 布局 ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- 错误状态 ---------- */
.error-container {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.error-message {
    max-width: 600px;
    width: 100%;
    padding: 44px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    text-align: center;
}
.error-message h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #ef4444;
}
.error-message p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 28px;
}
.error-message code {
    display: block;
    background: var(--bg-alt);
    padding: 18px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-align: left;
    margin-top: 18px;
    overflow-x: auto;
    color: #dc2626;
}
.error-message button {
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.error-message button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* ---------- 加载动画 ---------- */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
}
.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
.loader-text {
    font-size: 15px;
    color: var(--muted);
}

/* ---------- 顶部导航 ---------- */
header {
    padding: 20px 0;
    background-color: var(--glass-bg);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    opacity: 1;
}
header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}
header.header-shrink {
    padding: 10px 0;
    box-shadow: var(--shadow-1);
}
header.header-shrink .logo-img { height: 32px; width: 32px; }
header.header-shrink .logo-text h1 { font-size: 17px; }
header.header-shrink .logo-text span { font-size: 10px; }
header.header-shrink nav a { font-size: 13px; }
header.header-shrink .game-website-button { padding: 6px 14px; font-size: 13px; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.logo-text h1 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.2;
}
.logo-text span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}
nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}
nav a:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
nav a:hover { color: var(--accent); }
nav a:hover:after { width: 100%; }

.game-website-button {
    background: var(--gradient-secondary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 12px -4px var(--accent-line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-website-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -6px var(--accent-line);
}
.game-website-button:after { display: none; }

.theme-toggle, .lang-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--ink);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-toggle:hover, .lang-toggle:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* ---------- Hero 区域 ---------- */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 96px;
    margin-top: 72px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 18% 38%, var(--accent-soft) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 82% 18%, rgba(124, 108, 255, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 62% 82%, rgba(14, 165, 233, 0.05) 0%, transparent 52%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(circle at 30% 40%, var(--accent-soft) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(14, 165, 233, 0.04) 0%, transparent 35%);
    animation: float 22s ease-in-out infinite;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ink) 30%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero p {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--muted);
    margin-bottom: 38px;
    max-width: 640px;
    line-height: 1.75;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.hero-button.primary {
    background: var(--ink);
    color: var(--bg);
}
.hero-button.secondary {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 8px 20px -8px var(--accent-line);
}
.hero-button.outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink);
}
.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.hero-carousel-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--ink);
    font-size: 15px;
}
.hero-carousel-nav:hover {
    background: var(--surface);
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-1);
}
.hero-carousel-nav.prev { left: 12px; }
.hero-carousel-nav.next { right: 12px; }
@media (min-width: 769px) {
    .hero-carousel-nav.prev { left: -60px; }
    .hero-carousel-nav.next { right: -60px; }
}

.hero-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}
.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border-strong);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.hero-carousel-dot:hover { background: var(--muted); }
.hero-carousel-dot.active {
    background: var(--accent);
    width: 26px;
}
.hero-carousel-dot.has-badge::after {
    content: '';
    position: absolute;
    top: -3px; right: -3px;
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.hero-slide-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    animation: pulse-badge 2.2s ease-in-out infinite;
}

/* ---------- 区块通用 ---------- */
.section {
    padding: var(--section-pad) 0;
}
.section-title {
    text-align: center;
    margin-bottom: 56px;
}
.section-title .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--ink);
}
.section-title p {
    font-size: 15px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- 数据统计 ---------- */
.stats-section {
    padding: var(--section-pad) 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.stat-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2);
}
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}
.stat-value .stat-prefix,
.stat-value .stat-suffix {
    font-size: 0.55em;
    color: var(--accent);
    font-weight: 700;
}
.stat-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================================
   产品 / 服务卡片（重做：视觉锚点 + 高级感）
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.45s ease,
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 顶部强调线：hover 时从卡片左侧展开 */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--card-accent, var(--accent)), transparent 70%);
    opacity: 0;
    transform: scaleX(0.2);
    transform-origin: left;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
}
.project-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

/* 媒体区：有图用图，无图用渐变 + 图标块 */
.project-media {
    position: relative;
    height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 120% at 20% 0%, var(--tile-soft, var(--accent-soft)) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-alt) 0%, var(--surface) 100%);
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-media img { transform: scale(1.04); }

.project-icon-tile {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tile-a, var(--accent)), var(--tile-b, var(--accent-deep)));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 14px 28px -10px var(--tile-glow, rgba(15, 23, 42, 0.35));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-icon-tile { transform: translateY(-3px) scale(1.04); }

/* 已停服状态 */
.project-card.is-stopped .project-media { filter: grayscale(1); opacity: 0.75; }
.project-card.is-stopped .project-icon-tile { background: linear-gradient(135deg, #6b7280, #9ca3af); box-shadow: none; }
.project-card.is-stopped .project-body { opacity: 0.72; }
.stopped-badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 12px;
    background: rgba(12, 15, 20, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 999px;
}

.project-body {
    padding: 24px 26px 26px;
}
/* 类别眉标：克制的小号大写（替代原蓝色 pill） */
.project-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--card-accent, var(--accent));
    margin-bottom: 10px;
}
.project-body h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--ink);
    line-height: 1.3;
}
.project-body > p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 14px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.project-tag {
    display: inline-block;
    padding: 3px 11px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--muted);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.project-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--card-accent, var(--accent));
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: opacity 0.3s ease;
}
.project-link i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-size: 12px; }
.project-link:hover i { transform: translateX(4px); }

/* ---------- 软件产品（复用项目卡片） ---------- */
.software-section { background: var(--bg-alt); }

/* ---------- 发展历程 ---------- */
.milestones-section { background: var(--bg); }
.milestones-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.milestones-timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: 0; bottom: 0;
    background: linear-gradient(180deg, var(--border) 0%, var(--accent-line) 50%, var(--border) 100%);
}
.milestone-item {
    display: flex;
    align-items: center;
    margin-bottom: 44px;
    position: relative;
}
.milestone-item:nth-child(odd) { flex-direction: row-reverse; }
.milestone-year {
    flex: 0 0 104px;
    text-align: center;
    padding: 9px 16px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.02em;
    z-index: 1;
    box-shadow: 0 8px 18px -8px var(--accent-line);
    transition: transform 0.3s ease;
}
.milestone-item:hover .milestone-year { transform: scale(1.06); }
.milestone-content {
    flex: 1;
    padding: 22px 24px;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 0 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.milestone-content:hover {
    border-color: var(--accent-line);
    box-shadow: var(--shadow-1);
    transform: translateY(-2px);
}
.milestone-content h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}
.milestone-content p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}
.milestone-item:nth-child(even) .milestone-content { margin-left: 24px; }
.milestone-item:nth-child(odd) .milestone-content { margin-right: 24px; }

/* ---------- 最新动态 ---------- */
.events-section { background: var(--bg-alt); }
.events-list {
    max-width: 820px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    margin-bottom: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-item:hover {
    transform: translateX(6px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-2);
}
.event-date {
    flex: 0 0 148px;
    padding: 24px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.event-date::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.event-date .date-day {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.event-date .date-month { font-size: 15px; font-weight: 600; margin-top: 4px; }
.event-date .date-year { font-size: 13px; opacity: 0.85; margin-top: 2px; }
.event-content { flex: 1; padding: 24px 26px; }
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.event-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.event-time {
    font-size: 12px;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 4px 13px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
}
.event-description {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

/* ============================================================
   相关链接卡片（重做：品牌色图标块，接上 color 字段）
   ============================================================ */
.links-section { background: var(--bg-alt); }
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.link-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    text-align: left;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease,
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* 左侧品牌色细条 */
.link-card::before {
    content: '';
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 3px;
    border-radius: 3px;
    background: var(--link-accent, var(--accent));
    opacity: 0.85;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform: scaleY(0.6);
}
.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-1);
}
.link-card:hover::before {
    transform: scaleY(1);
    opacity: 1;
}
.link-tile {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--link-accent, var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 18px -8px var(--link-glow, rgba(15, 23, 42, 0.35));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.link-card:hover .link-tile { transform: translateY(-2px) scale(1.05); }
.link-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}
.link-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.link-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--link-accent, var(--accent));
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    margin-top: auto;
    transition: opacity 0.3s ease;
}
.link-card a i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-size: 12px; }
.link-card a:hover i { transform: translateX(4px); }

/* ---------- 关于我们 ---------- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content p {
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: justify;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

/* ============================================================
   页脚（重做：企业级多列）
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 72px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 44px;
    text-align: left;
}
.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    color: var(--muted);
    font-size: 14px;
    padding: 5px 0;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover {
    color: var(--accent);
    transform: translateX(3px);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 52px;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.copyright {
    font-size: 13px;
    color: var(--muted);
}
.footer-policies {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}
.footer-policies a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-policies a:hover { color: var(--accent); }
.footer-policies span { color: var(--border-strong); }
.socials {
    display: flex;
    align-items: center;
    gap: 10px;
}
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.25s ease;
}
.socials a:hover {
    color: var(--accent);
    border-color: var(--accent-line);
    transform: translateY(-2px);
}
.socials svg {
    width: 17px;
    height: 17px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 768px) {
    :root { --section-pad: 72px; }

    .hamburger { display: flex; }

    nav ul {
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--surface);
        padding: 84px 26px 26px;
        gap: 0;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        overflow-y: auto;
    }
    nav.active ul { transform: translateX(0); }
    nav ul li { border-bottom: 1px solid var(--border); }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a {
        display: block;
        padding: 16px 0;
        font-size: 15px;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
    }
    nav.active + .nav-overlay { display: block; }
    nav.active .hamburger i:before { content: '\f00d'; }

    .hero {
        padding: 108px 0 48px;
        margin-top: 56px;
    }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 16px; }

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

    .projects-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr 1fr; }

    .nav-right { gap: 8px; }

    .milestones-timeline:before { left: 28px; }
    .milestone-item { flex-direction: row !important; }
    .milestone-year { flex: 0 0 96px; font-size: 15px; }
    .milestone-content { margin-left: 20px !important; margin-right: 0 !important; }

    .event-item { flex-direction: column; }
    .event-date {
        flex: 0 0 auto;
        padding: 14px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .event-date .date-day { font-size: 20px; }
    .event-date .date-month { font-size: 13px; margin-top: 0; }
    .event-date .date-year { font-size: 12px; margin-top: 0; }

    header.header-shrink nav ul { top: 62px; }
    .hero-carousel-nav { display: none; }
    .hero-carousel-dots { margin-top: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .section-title h2 { font-size: 24px; }
    .links-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
