/* ============================================
   芯纬科技 PLM 官网 — Digital Foundry 色彩系统
   设计语言: 精密工业 × 数字智能 × 温暖人性
   ============================================ */

/* ----- CSS Variables ----- */
:root {
  /* 基础色板 */
  --navy-950: #0a1120;
  --navy-900: #0f1b33;
  --navy-800: #14264a;
  --navy-700: #1a3360;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* 核心品牌色 */
  --cyan-400:    #00d4c8;
  --cyan-500:    #00bfb3;
  --cyan-600:    #00a89c;
  --cyan-light:  #e0faf7;
  --cyan-glow:   rgba(0,212,200,0.18);

  /* 辅助强调色 */
  --amber-400:   #f59e0b;
  --amber-500:   #f08c00;
  --amber-light: #fff8ed;
  --amber-glow:  rgba(245,158,11,0.2);

  /* 品质/成功色 */
  --emerald-500: #10b981;
  --emerald-light:#ecfdf5;

  /* 深色科技渐变 */
  --grad-cyan:   linear-gradient(135deg, #00d4c8 0%, #06b6d4 50%, #3b82f6 100%);
  --grad-amber:  linear-gradient(135deg, #f59e0b 0%, #f08c00 50%, #ea580c 100%);
  --grad-deep:   linear-gradient(180deg, #0a1120 0%, #0f1b33 40%, #14264a 100%);
  --grad-hero:   linear-gradient(180deg, #0a1120 0%, #0f1b33 25%, #132244 50%, #0f1b33 85%, #1e293b 100%);
  --grad-section-dark: linear-gradient(180deg, #0f1b33 0%, #14264a 40%, #0f1b33 100%);

  /* 应用变量映射 */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc;
  --bg-warm:       #fefdf7;
  --bg-nav:        rgba(10,17,32,0.82);
  --bg-card:       #ffffff;
  --bg-card-hover: #f0fcfa;
  --bg-section:    #f1f5f9;
  --bg-surface:    rgba(255,255,255,0.9);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #e2e8f0;

  --accent:         #00bfb3;
  --accent-glow:    var(--cyan-glow);
  --accent-dim:     #00a89c;
  --accent-light:   var(--cyan-light);
  --accent-warm:    var(--amber-500);
  --accent-warm-glow: var(--amber-glow);

  --border-subtle:  rgba(15,23,42,0.06);
  --border-card:    rgba(15,23,42,0.08);
  --border-active:  rgba(0,191,179,0.4);
  --border-glow:    rgba(0,212,200,0.25);

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;

  --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-body:    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono:    "SF Mono", "Cascadia Code", "Consolas", monospace;

  --shadow-card: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.03);
  --shadow-card-hover: 0 2px 6px rgba(15,23,42,0.06), 0 8px 28px rgba(15,23,42,0.05);
  --shadow-glow: 0 0 0 1px rgba(0,191,179,0.15), 0 4px 24px rgba(0,212,200,0.12);
  --shadow-amber: 0 0 0 1px rgba(245,158,11,0.15), 0 4px 20px rgba(245,158,11,0.15);

  --transition-fast: 0.18s ease;
  --transition-smooth: 0.35s cubic-bezier(0.22,0.61,0.36,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #fff;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ----- Selection ----- */
::selection { background: var(--cyan-light); color: var(--cyan-600); }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ========== Typography ========== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ----- Decorative corner accent ----- */
.corner-accent {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.3;
  pointer-events: none;
}
.corner-accent.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.corner-accent.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.corner-accent.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.corner-accent.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ========== Navigation ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s;
  will-change: transform;
  transform: translateZ(0);
}
.navbar.scrolled {
  border-bottom-color: rgba(0,212,200,0.25);
  background: rgba(10,17,32,0.94);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: #fff; letter-spacing: 0.03em;
}
.logo-icon { height: 36px; width: auto; }
.logo-text { font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a {
  display: block; padding: 7px 15px;
  color: rgba(255,255,255,0.72); font-size: 0.84rem; font-weight: 500;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.nav-menu a:hover { color: #fff; background: rgba(0,212,200,0.12); }
.nav-menu a.active {
  color: var(--cyan-400);
  background: rgba(0,212,200,0.10);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.8); transition: all var(--transition-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ========== Hero — Deep Tech Atmosphere ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: var(--grad-hero);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
/* Layered radial glows for rich deep atmosphere */
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 35%, rgba(0,212,200,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(59,130,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 80% 15%, rgba(0,212,200,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 30% 45% at 70% 80%, rgba(245,158,11,0.06) 0%, transparent 50%);
}
/* Tech grid overlay — warmer, more pronounced */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 42%, black 30%, transparent 70%);
}

/* Floating tech nodes — multicolor */
.hero-nodes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-node {
  position: absolute; width: 5px; height: 5px; border-radius: 0;
  opacity: 0; animation: nodeFloat 6s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-node::before {
  content: ''; position: absolute; inset: -6px;
  border: 1px solid; border-radius: 0; opacity: 0.3;
}
.hero-node:nth-child(1) { left: 12%; top: 25%; background: var(--cyan-400); animation-delay: 0s; }
.hero-node:nth-child(1)::before { border-color: var(--cyan-400); }
.hero-node:nth-child(2) { left: 78%; top: 18%; background: #3b82f6; animation-delay: 1.2s; }
.hero-node:nth-child(2)::before { border-color: #3b82f6; }
.hero-node:nth-child(3) { left: 22%; top: 70%; background: var(--cyan-400); animation-delay: 2.4s; }
.hero-node:nth-child(3)::before { border-color: var(--cyan-400); }
.hero-node:nth-child(4) { left: 68%; top: 75%; background: var(--amber-400); animation-delay: 3.6s; }
.hero-node:nth-child(4)::before { border-color: var(--amber-400); }
.hero-node:nth-child(5) { left: 48%; top: 8%; background: var(--cyan-400); animation-delay: 4.8s; }
.hero-node:nth-child(5)::before { border-color: var(--cyan-400); }

@keyframes nodeFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.6; transform: translateY(-10px) scale(1.3); }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 20px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 22px; letter-spacing: -0.02em;
  color: #fff;
}
.hero-title-line {
  display: block;
  background: var(--grad-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0,212,200,0.3));
}
.hero-title-sub {
  display: block; margin-top: 12px;
  font-size: 0.46em; font-weight: 500;
  color: rgba(255,255,255,0.55); letter-spacing: 0.08em;
  -webkit-text-fill-color: rgba(255,255,255,0.55);
}

.hero-desc {
  font-size: 1.08rem; color: rgba(255,255,255,0.55);
  max-width: 580px; margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  letter-spacing: 0.02em; font-family: var(--font-body);
  position: relative; overflow: hidden;
}

/* 主按钮 — 琥珀色温暖 CTA */
.btn-primary {
  background: var(--grad-amber);
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,158,11,0.35), 0 0 0 1px rgba(245,158,11,0.2);
}
.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(245,158,11,0.5), 0 0 0 2px rgba(245,158,11,0.3);
  transform: translateY(-2px);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}

/* 描边按钮 — 青色科技感 */
.btn-outline {
  background: transparent; color: var(--cyan-400);
  border-color: rgba(0,212,200,0.35);
}
.btn-outline:hover {
  background: rgba(0,212,200,0.08);
  border-color: var(--cyan-400);
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(0,212,200,0.15);
}

/* 浅色底描边按钮 */
.btn-outline-dark {
  background: transparent; color: var(--text-secondary);
  border-color: var(--border-card);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dim);
  box-shadow: var(--shadow-glow);
}

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #f87171; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ========== Sections ========== */
.section {
  position: relative;
  padding: 100px 0;
  min-height: 100vh;
  display: flex; align-items: center;
}

/* 亮色基础 section */
.section-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 50%, #ffffff 100%);
}
/* 暖色 section */
.section-warm {
  background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 50%, var(--bg-warm) 100%);
}
/* 深色科技 section */
.section-dark {
  background: var(--grad-section-dark);
  color: var(--text-inverse);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,0.55); }
.section-dark .card-title { color: var(--text-primary); }
.section-dark .card-desc { color: var(--text-secondary); }

/* 青色 section — 产品区 */
.section-cyan {
  background: linear-gradient(180deg, #f0fcfa 0%, #ffffff 30%, #f8fcfd 100%);
}

/* 蓝紫 section — 解决方案区 */
.section-gradient {
  background: linear-gradient(180deg, #eff6ff 0%, #f0fcfa 40%, #fefdf7 100%);
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-desc {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 560px; margin: 0 auto; line-height: 1.65;
}

/* Gradient accent line under section title */
.section-title::after {
  content: ''; display: block;
  width: 48px; height: 3px;
  background: var(--grad-cyan);
  margin: 16px auto 0;
}
.section-dark .section-title::after {
  background: var(--grad-cyan);
  box-shadow: 0 0 8px rgba(0,212,200,0.3);
}

.section-footer { text-align: center; margin-top: 48px; }

/* Section decorative background elements */
.section-bg-dot {
  position: absolute; pointer-events: none; opacity: 0.06;
  border-radius: 50%; z-index: 0;
}

/* ========== Cards ========== */
.cards-grid { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 32px 28px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
  will-change: transform;
  overflow: hidden;
}

/* Card top color bar on hover */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-cyan);
  opacity: 0; transition: opacity var(--transition-smooth);
}
.card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

/* Card variants — colored left accents */
.card-accent-cyan  { border-left: 3px solid transparent; }
.card-accent-cyan:hover  { border-left-color: var(--cyan-400); }
.card-accent-blue  { border-left: 3px solid transparent; }
.card-accent-blue:hover  { border-left-color: #3b82f6; }
.card-accent-amber { border-left: 3px solid transparent; }
.card-accent-amber:hover { border-left-color: var(--amber-400); }

.card-icon {
  width: 52px; height: 52px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-light) 0%, #e0f2fe 100%);
  border: 1px solid rgba(0,212,200,0.2);
}
.card-icon svg { color: var(--cyan-600); }
.card-title {
  font-size: 1.08rem; font-weight: 600; margin-bottom: 10px;
  color: var(--text-primary);
}
.card-desc {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 16px;
}
.card-features {
  display: flex; flex-direction: column; gap: 6px;
}
.card-features li {
  font-size: 0.84rem; color: var(--text-secondary);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.card-features li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--accent);
}

.card-center { text-align: center; padding: 36px 24px; }
.card-center .card-icon { margin: 0 auto 18px; }

.card-link { display: block; text-decoration: none; }
.card-link::after {
  content: '→'; position: absolute; top: 24px; right: 24px;
  font-size: 1.1rem; color: var(--text-muted);
  transition: all var(--transition-fast);
}
.card-link:hover::after { color: var(--accent); right: 20px; }

.card-date {
  display: block; font-size: 0.78rem;
  color: var(--cyan-600);
  font-family: var(--font-mono); letter-spacing: 0.03em; margin-bottom: 6px;
}

.card-cover {
  width: 100%; height: 160px; overflow: hidden;
  margin-bottom: 16px;
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s;
}
.card:hover .card-cover img { transform: scale(1.05); }

.card-horizontal {
  display: flex; gap: 0; flex-direction: column;
  padding: 36px 32px;
}
.card-body { flex: 1; }

/* News cards — subtle colored accents */
.card-news-item:nth-child(3n+1) .card { border-top: 2px solid transparent; }
.card-news-item:nth-child(3n+1) .card:hover { border-top-color: var(--cyan-400); }
.card-news-item:nth-child(3n+2) .card { border-top: 2px solid transparent; }
.card-news-item:nth-child(3n+2) .card:hover { border-top-color: #3b82f6; }
.card-news-item:nth-child(3n+3) .card { border-top: 2px solid transparent; }
.card-news-item:nth-child(3n+3) .card:hover { border-top-color: var(--amber-400); }

/* ========== Products Section — Teal Atmosphere ========== */
#products { background: linear-gradient(180deg, #f0fcfa 0%, #ffffff 30%, #f8fcfd 100%); }
#products .section-title::after { background: linear-gradient(90deg, var(--cyan-400), #06b6d4); }
#products .card:nth-child(1):hover { border-color: rgba(0,212,200,0.35); box-shadow: 0 4px 24px rgba(0,212,200,0.1); }
#products .card:nth-child(1):hover::before { background: linear-gradient(90deg, var(--cyan-400), #06b6d4); }
#products .card:nth-child(2):hover { border-color: rgba(59,130,246,0.35); box-shadow: 0 4px 24px rgba(59,130,246,0.1); }
#products .card:nth-child(2):hover::before { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
#products .card:nth-child(3):hover { border-color: rgba(16,185,129,0.35); box-shadow: 0 4px 24px rgba(16,185,129,0.1); }
#products .card:nth-child(3):hover::before { background: linear-gradient(90deg, #10b981, var(--cyan-400)); }

/* ========== Solutions Section — Deep Blue Atmosphere ========== */
#solutions {
  background: linear-gradient(180deg, #0f1b33 0%, #14264a 40%, #0f1b33 100%);
  color: var(--text-inverse);
}
#solutions .section-title { color: #fff; }
#solutions .section-desc { color: rgba(255,255,255,0.55); }
#solutions .section-title::after {
  background: linear-gradient(90deg, var(--cyan-400), #3b82f6);
  box-shadow: 0 0 8px rgba(0,212,200,0.3);
}
#solutions .card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
#solutions .card-title { color: #e2e8f0; }
#solutions .card-desc { color: #94a3b8; }
#solutions .card-features li { color: #94a3b8; }
#solutions .card-features li::before { background: var(--cyan-400); }
#solutions .card:hover {
  background: rgba(0,212,200,0.05);
  border-color: rgba(0,212,200,0.3);
  box-shadow: 0 4px 24px rgba(0,212,200,0.08);
}
#solutions .card:hover::before { background: var(--grad-cyan); }

/* Solution cards — alternating colors */
#solutions .card:nth-child(1):hover { border-color: rgba(0,212,200,0.4); }
#solutions .card:nth-child(2):hover { border-color: rgba(59,130,246,0.4); }

/* ========== About Section — Warm Trust ========== */
#about { background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 50%, var(--bg-warm) 100%); }
#about .section-title::after {
  background: linear-gradient(90deg, var(--amber-400), var(--amber-500));
}
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p {
  color: var(--text-secondary); font-size: 0.94rem;
  line-height: 1.8; margin-bottom: 16px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.stat-item {
  background: var(--bg-card); border: 1px solid var(--border-card);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  position: relative; overflow: hidden;
}
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-amber); opacity: 0;
  transition: opacity var(--transition-smooth);
}
.stat-item:hover {
  border-color: rgba(245,158,11,0.35);
  box-shadow: var(--shadow-amber);
}
.stat-item:hover::before { opacity: 1; }
.stat-number {
  display: block; font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.stat-label {
  display: block; margin-top: 6px;
  font-size: 0.84rem; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

/* ========== Support Section — Multi-color Cards ========== */
#support { background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 40%, #f0fdf4 100%); }
#support .card:nth-child(1):hover { border-color: rgba(0,212,200,0.3); box-shadow: 0 4px 20px rgba(0,212,200,0.08); }
#support .card:nth-child(1):hover::before { background: linear-gradient(90deg, #00d4c8, #06b6d4); }
#support .card:nth-child(2):hover { border-color: rgba(59,130,246,0.3); box-shadow: 0 4px 20px rgba(59,130,246,0.08); }
#support .card:nth-child(2):hover::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
#support .card:nth-child(3):hover { border-color: rgba(245,158,11,0.3); box-shadow: 0 4px 20px rgba(245,158,11,0.08); }
#support .card:nth-child(3):hover::before { background: linear-gradient(90deg, var(--amber-400), #f08c00); }
#support .card:nth-child(4):hover { border-color: rgba(16,185,129,0.3); box-shadow: 0 4px 20px rgba(16,185,129,0.08); }
#support .card:nth-child(4):hover::before { background: linear-gradient(90deg, #10b981, #06b6d4); }

/* ========== News Section ========== */
#news { background: linear-gradient(180deg, #fefdf7 0%, #ffffff 50%, #f8fcfa 100%); }
#news .section-title::after {
  background: linear-gradient(90deg, var(--cyan-400), #6366f1);
}

/* ========== Contact Section — Premium Dark ========== */
#contact {
  background: linear-gradient(180deg, #0a1120 0%, #0f1b33 40%, #132244 60%, #1e293b 100%);
  color: var(--text-inverse);
}
#contact .section-title { color: #fff; }
#contact .section-desc { color: rgba(255,255,255,0.55); }
#contact .section-title::after {
  background: linear-gradient(90deg, var(--cyan-400), var(--amber-400));
  box-shadow: 0 0 12px rgba(0,212,200,0.3);
}
.contact-wrapper { max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}
.contact-form:hover {
  border-color: rgba(0,212,200,0.2);
  box-shadow: 0 8px 48px rgba(0,212,200,0.06), 0 4px 24px rgba(0,0,0,0.2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 7px;
  font-size: 0.83rem; font-weight: 500; color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  font-size: 0.9rem; font-family: var(--font-body);
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  outline: none; transition: all var(--transition-smooth);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan-400);
  background: rgba(0,212,200,0.06);
  box-shadow: 0 0 0 3px rgba(0,212,200,0.1), 0 0 20px rgba(0,212,200,0.06);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-message { text-align: center; margin-top: 12px; font-size: 0.85rem; min-height: 20px; }
.form-message.success { color: #34d399; }
.form-message.error { color: #f87171; }

/* ========== Footer ========== */
.footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(0,212,200,0.1);
  padding: 56px 0 28px;
}
.footer, .footer h4, .footer p, .footer a, .footer li { color: #94a3b8; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
.footer-col h3 {
  color: #e2e8f0; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-col h3 .logo-icon {
  display: inline-block; vertical-align: middle;
  height: 28px; width: auto;
}
.footer-col h4 {
  font-size: 0.82rem; color: var(--cyan-400);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
  font-weight: 600;
}
.footer-col p { font-size: 0.86rem; color: #64748b; line-height: 1.65; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 0.84rem; }
.footer-col a { color: #64748b; transition: color var(--transition-fast); font-size: 0.84rem; }
.footer-col a:hover { color: var(--cyan-400); }

.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: 0.78rem; color: #475569; }
.footer-bottom a { color: #475569; transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  padding: 100px 0 48px; text-align: center;
  background: linear-gradient(180deg, #0f1b33 20%, #14264a 100%);
  border-bottom: 1px solid rgba(0,212,200,0.12);
}
.page-hero h1 {
  font-size: 2rem; font-weight: 700; margin-bottom: 6px;
  color: #fff;
}
.page-hero p {
  color: rgba(255,255,255,0.5);
}
.page-hero .page-hero-sub {
  font-size: 0.88rem; color: rgba(255,255,255,0.4);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

/* ========== News List ========== */
.news-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.news-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px; background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  text-decoration: none;
}
.news-item:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}
.news-item-date {
  flex-shrink: 0; text-align: center;
  min-width: 56px; padding: 10px 12px;
  background: linear-gradient(135deg, var(--cyan-light), #e0f2fe);
  border: 1px solid rgba(0,212,200,0.2);
}
.news-item-date .news-day {
  display: block; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  background: var(--grad-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.news-item-date .news-month {
  display: block; font-size: 0.7rem; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 0.03em; margin-top: 4px;
}
.news-item-body { flex: 1; min-width: 0; }
.news-item-body .news-item-title {
  font-size: 1.02rem; font-weight: 600; margin-bottom: 6px;
  color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-item-body .news-item-summary { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; }
.news-item-thumb {
  flex-shrink: 0; width: 120px; height: 80px;
  overflow: hidden;
}
.news-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item-arrow {
  flex-shrink: 0; color: var(--text-muted);
  font-size: 1.2rem; align-self: center;
  transition: all var(--transition-fast);
}
.news-item:hover .news-item-arrow { color: var(--accent); transform: translateX(3px); }

.search-bar {
  max-width: 500px; margin: 0 auto 36px; display: flex; gap: 10px;
}
.search-bar input {
  flex: 1; padding: 11px 16px; font-size: 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-family: var(--font-body); outline: none; transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(15,23,42,0.02);
}
.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-result-count { text-align: center; margin-bottom: 24px; font-size: 0.85rem; color: var(--text-muted); }
.search-clear { text-align: center; margin-top: 20px; }
.search-clear a { color: var(--accent); font-size: 0.85rem; }
.empty-text { text-align: center; color: var(--text-muted); padding: 60px 20px; font-size: 0.95rem; }

/* ========== News Detail ========== */
.news-detail-wrapper { max-width: 780px; margin: 0 auto; }
.news-cover { margin-bottom: 32px; overflow: hidden; }
.news-cover img { width: 100%; }
.news-content { max-width: 780px; margin: 0 auto; line-height: 1.85; }
.news-content p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.94rem; }
.news-content ul { margin: 16px 0 16px 20px; }
.news-content li { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; list-style: disc; }
.news-content strong { color: var(--text-primary); }
.news-back { margin-top: 32px; }

.related-news { max-width: 780px; margin: 56px auto 0; }
.related-news h3 {
  font-size: 1.1rem; margin-bottom: 20px;
  background: var(--grad-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
}

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination .page-btn, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; font-size: 0.85rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-card);
  color: var(--text-secondary); background: var(--bg-card);
}
.pagination .page-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.pagination .page-active {
  background: var(--grad-cyan);
  color: #fff; border-color: transparent; font-weight: 600;
}

/* ========== 404 / Alert ========== */
.error-page { text-align: center; padding: 140px 24px 80px; }
.error-page .error-code {
  font-size: 5rem; font-weight: 800;
  background: var(--grad-cyan);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page .error-desc { color: var(--text-secondary); margin: 16px 0 32px; font-size: 1rem; }

.alert { padding: 12px 20px; font-size: 0.85rem; margin-bottom: 20px; }
.alert-info { background: var(--accent-light); border: 1px solid var(--border-active); color: var(--accent-dim); }

/* ========== Scroll Reveal ========== */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(24px); }
.reveal-stagger.visible > *:nth-child(1) { transition: all 0.55s 0.05s cubic-bezier(0.22,0.61,0.36,1); opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition: all 0.55s 0.12s cubic-bezier(0.22,0.61,0.36,1); opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition: all 0.55s 0.19s cubic-bezier(0.22,0.61,0.36,1); opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition: all 0.55s 0.26s cubic-bezier(0.22,0.61,0.36,1); opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition: all 0.55s 0.33s cubic-bezier(0.22,0.61,0.36,1); opacity: 1; transform: translateY(0); }

.stat-item { opacity: 0; transform: scale(0.92); }
.stat-item.visible { opacity: 1; transform: scale(1); transition: all 0.55s cubic-bezier(0.22,0.61,0.36,1); }

/* ========== Fullpage (Scroll Snap) ========== */
.fullpage-container {
  height: 100vh; overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}
.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  contain: layout style paint;
}

.snap-section#footer-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  contain: layout style paint;
}

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.35); font-size: 0.75rem; z-index: 3;
  animation: bob 2s ease-in-out infinite;
  will-change: transform;
}
.scroll-hint svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.35); }
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Section Dots */
.section-dots {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 14px;
}
.section-dot {
  width: 8px; height: 8px;
  background: rgba(148,163,184,0.5); cursor: pointer;
  transition: all 0.3s; position: relative;
}
.section-dot:hover { background: var(--cyan-400); transform: scale(1.3); }
.section-dot.active {
  background: var(--cyan-400);
  height: 24px;
  box-shadow: 0 0 12px rgba(0,212,200,0.4);
}
.section-dot::after {
  content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; color: var(--text-muted); white-space: nowrap;
  opacity: 0; transition: opacity var(--transition-fast);
  font-family: var(--font-mono); letter-spacing: 0.03em;
}
.section-dot:hover::after { opacity: 1; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

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

  .navbar { background: rgba(10,17,32,0.94); }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: rgba(10,17,32,0.96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,212,200,0.12); padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; color: rgba(255,255,255,0.65); }
  .nav-menu a:hover { color: #fff; background: rgba(0,212,200,0.1); }
  .nav-menu a.active { color: var(--cyan-400); }

  .section { padding: 72px 0; min-height: auto; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .news-item { flex-wrap: wrap; gap: 16px; }
  .news-item-thumb { width: 100%; height: 160px; }
  .news-item-arrow { display: none; }

  .hero-title { font-size: 1.9rem; }
  .hero-desc { font-size: 0.92rem; }
  .contact-form { padding: 28px 20px; }
  .page-hero { padding: 80px 0 36px; }
  .page-hero h1 { font-size: 1.5rem; }
  .section-dots { display: none; }
}
