/* ARCSS 锋泽微芯 - 主样式
 * 设计语言：工业科技 / 硬核电子
 * 色调：深色基底 + ARCSS 蓝 (#1E62D0)
 * 字体：Sora 英文/JetBrains Mono 技术/思源黑中文
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

:root {
  /* 色彩系统 */
  --arcss-blue: #1E62D0;
  --arcss-blue-bright: #2d7aff;
  --arcss-blue-deep: #0a3a8f;
  --arcss-blue-glow: rgba(30, 98, 208, 0.35);

  --ink-900: #ffffff;
  --ink-800: #f8fafc;
  --ink-700: #f1f5f9;
  --ink-600: #e2e8f0;
  --ink-500: #cbd5e1;
  --ink-400: #94a3b8;

  --chrome-100: #0f172a;
  --chrome-200: #1e293b;
  --chrome-300: #334155;
  --chrome-400: #475569;
  --chrome-500: #64748b;

  --signal-green: #00e676;
  --signal-amber: #ffb020;
  --signal-red: #ff3d5a;

  /* 排版 */
  --font-display: 'Sora', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* 层级 */
  --z-header: 100;
  --z-modal: 1000;
  --z-toast: 1500;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ink-900);
  color: var(--chrome-200);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ========== 公共装饰元素 ========== */

/* 网格背景 */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 98, 208, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 98, 208, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

/* 扫描线 */
.scanline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 3px
  );
  pointer-events: none;
}

/* 角标装饰（工业 HUD 风格） */
.corner-marks {
  position: relative;
}
.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--arcss-blue);
}
.corner-marks::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-marks::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ========== 导航栏 ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 98, 208, 0.95);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: none;
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  position: relative;
  display: inline-block;
}
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-logo .cn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--chrome-400);
  letter-spacing: 0.12em;
  border-left: 1px solid var(--ink-500);
  padding-left: 10px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a.active { color: #ffffff; font-weight: 700; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: #ffffff;
}

/* Level 1 Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-top: 2px solid var(--arcss-blue);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-links li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown > li {
  position: relative;
  border-bottom: 1px solid var(--ink-700);
}
.nav-dropdown > li:last-child {
  border-bottom: none;
}
.nav-dropdown > li > a {
  padding: 14px 18px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  color: var(--chrome-300);
  transition: all 0.2s;
  font-size: 14px;
}
.nav-dropdown > li:hover > a {
  background: var(--ink-800);
  color: var(--chrome-100);
}
.nav-dropdown > li > a::after {
  display: none !important;
}

/* Level 2 Dropdown (Flyout) */
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  width: 240px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-left: none;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 101;
  padding: 0;
  margin: 0;
  list-style: none;
  min-height: 100%;
}
.nav-dropdown > li:hover .sub-dropdown {
  opacity: 1;
  visibility: visible;
}
.sub-dropdown > li > a {
  padding: 12px 18px;
  display: block;
  font-size: 13px;
  color: var(--chrome-400);
  border-bottom: 1px solid var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.sub-dropdown > li:last-child > a {
  border-bottom: none;
}
.sub-dropdown > li:hover > a {
  background: var(--ink-700);
  color: var(--arcss-blue-bright);
}
.sub-dropdown > li > a::after {
  display: none !important;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--chrome-500);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--arcss-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--arcss-blue-bright);
  box-shadow: 0 0 24px var(--arcss-blue-glow);
}
.btn-outline {
  background: transparent;
  border-color: var(--ink-500);
  color: var(--chrome-200);
}
.btn-outline:hover {
  border-color: var(--arcss-blue);
  color: var(--chrome-100);
  background: rgba(30, 98, 208, 0.08);
}
.btn-ghost {
  background: transparent;
  color: var(--chrome-300);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--chrome-100); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ========== 通用排版 ========== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--arcss-blue-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--arcss-blue-bright);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--chrome-100);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--chrome-100);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  color: var(--chrome-100);
}

.lead { font-size: 18px; color: var(--chrome-300); max-width: 680px; }

/* 强调蓝色 */
.accent { color: var(--arcss-blue-bright); }
.accent-glow { color: var(--arcss-blue-bright); text-shadow: 0 0 20px var(--arcss-blue-glow); }

/* ========== 布局 ========== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer {
  background: var(--ink-800);
  border-top: 1px solid var(--ink-600);
  padding: 80px 0 40px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .logo-cn {
  font-size: 24px;
  font-weight: 700;
  color: var(--chrome-100);
  margin-top: 16px;
  letter-spacing: 0.1em;
}
.footer-brand p {
  color: var(--chrome-400);
  font-size: 14px;
  margin-top: 16px;
  max-width: 360px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--arcss-blue-bright);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--chrome-400);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--chrome-100); }

.footer-bottom {
  border-top: 1px solid var(--ink-600);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--chrome-500);
  flex-wrap: wrap;
  gap: 20px;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink-700);
  border: 1px solid var(--ink-500);
  padding: 14px 24px;
  color: var(--chrome-100);
  font-size: 14px;
  z-index: var(--z-toast);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  border-left: 3px solid var(--arcss-blue);
  max-width: 400px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left-color: var(--signal-green); }
.toast.error { border-left-color: var(--signal-red); }

/* ========== Case Details Sidebar Layout ========== */
.case-layout-split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}
.case-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 4px;
  padding: 16px 0;
}
.case-main {
  flex: 1;
  min-width: 0;
}
.case-sidebar-category {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--chrome-100);
  padding: 14px 20px 8px;
  border-top: 1px solid var(--ink-700);
}
.case-sidebar-category:first-child {
  border-top: none;
  padding-top: 4px;
}
.case-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.case-sidebar-list li a {
  display: block;
  padding: 8px 20px 8px 30px;
  font-size: 13px;
  color: var(--chrome-400);
  transition: all 0.2s;
  position: relative;
}
.case-sidebar-list li a::before {
  content: '·';
  position: absolute;
  left: 20px;
  color: var(--chrome-600);
}
.case-sidebar-list li a:hover {
  background: var(--ink-700);
  color: var(--arcss-blue-bright);
}
.case-sidebar-list li a.active {
  background: var(--arcss-blue);
  color: #ffffff;
}
.case-sidebar-list li a.active::before {
  color: var(--chrome-100);
}

@media (max-width: 900px) {
  .case-layout-split { flex-direction: column; gap: 24px; }
  .case-sidebar { width: 100%; position: relative; top: 0; }
}

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--ink-900);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--ink-800);
  border: 1px solid var(--ink-500);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chrome-400);
  font-size: 22px;
}
.modal-close:hover { color: var(--chrome-100); }
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--chrome-100);
  margin-bottom: 8px;
}
.modal-subtitle {
  color: var(--chrome-400);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ========== 表单 ========== */
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--chrome-400);
  margin-bottom: 6px;
  font-weight: 500;
}
.field label .req { color: var(--signal-red); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-900);
  border: 1px solid var(--ink-500);
  padding: 12px 14px;
  color: var(--chrome-100);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--arcss-blue);
  box-shadow: 0 0 0 3px rgba(30, 98, 208, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
/ *   = = = = = = = = = =   R T L   /ec  = = = = = = = = = =   * /   h t m l [ d i r = " r t l " ]   {   d i r e c t i o n :   r t l ;   }   h t m l [ d i r = " r t l " ]   . n a v - l o g o   . c n   {   b o r d e r - l e f t :   n o n e ;   b o r d e r - r i g h t :   1 p x   s o l i d   v a r ( - - i n k - 5 0 0 ) ;   p a d d i n g - l e f t :   0 ;   p a d d i n g - r i g h t :   1 0 p x ;   m a r g i n - l e f t :   0 ;   m a r g i n - r i g h t :   4 p x ;   }   h t m l [ d i r = " r t l " ]   . t o a s t   {   b o r d e r - l e f t :   n o n e ;   b o r d e r - r i g h t :   3 p x   s o l i d   v a r ( - - a r c s s - b l u e ) ;   }   h t m l [ d i r = " r t l " ]   . m o d a l - c l o s e   {   r i g h t :   a u t o ;   l e f t :   1 6 p x ;   }   h t m l [ d i r = " r t l " ]   . c o r n e r - m a r k s : : b e f o r e   {   l e f t :   a u t o ;   r i g h t :   - 1 p x ;   b o r d e r - r i g h t :   1 p x   s o l i d   v a r ( - - a r c s s - b l u e ) ;   b o r d e r - l e f t :   n o n e ;   }   h t m l [ d i r = " r t l " ]   . c o r n e r - m a r k s : : a f t e r   {   r i g h t :   a u t o ;   l e f t :   - 1 p x ;   b o r d e r - l e f t :   1 p x   s o l i d   v a r ( - - a r c s s - b l u e ) ;   b o r d e r - r i g h t :   n o n e ;   }  
 