/* ==========================================================================
   瑞盾官方电子质保溯源系统专属样式 (RUIDUN OPTICAL WARRANTY SYSTEM)
   设计规范严格遵循: Automotive_Window_Film_Design_System.md
   风格定位: 极夜工业美学 (Dark Luxury) + 光学科技感 (Optical Tech) + 玻璃拟态 (Glassmorphism)
   调色板比例: Deep Space Dark (60%) + Slate Charcoal (30%) + Racing Crimson (5%) + Nano Ice Cyan (5%)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  /* ------------------------------------------------------------------------
     1. 基础与中性色 (Neutrals & Backgrounds - 60% + 30%)
     ------------------------------------------------------------------------ */
  --color-bg-base: #0B0C10;           /* 页面全局背景、最底层画布 (60%) */
  --color-bg-surface: #13161C;        /* 次级板块背景、导航底栏 */
  --color-bg-card: #1A1D24;           /* 卡片/容器底色 (30%) */
  --color-bg-card-hover: #222631;     /* 卡片 Hover 悬停与聚焦状态 */
  --color-border-subtle: #2E3440;     /* 卡片分割线、表头边框 rgba(255,255,255,0.08) */
  --color-border-hover: #4C566A;      /* 交互组件高亮外边框 rgba(255,255,255,0.18) */
  --color-border-highlight: rgba(0, 168, 232, 0.4);

  /* ------------------------------------------------------------------------
     2. 品牌与强调色 (Accents & Brand Colors - 各 5%)
     ------------------------------------------------------------------------ */
  --color-accent-primary: #E50914;       /* 竞技烈焰红 (Racing Crimson) - 核心 CTA */
  --color-accent-primary-hover: #FF1E27;
  --color-accent-primary-dark: #B30006;

  --color-accent-optical: #00A8E8;       /* 冰川冷蓝 (Nano Ice Cyan) - 光学科技 / 纳米功能 */
  --color-accent-optical-light: #00E5FF;
  --color-accent-gold: #F5A623;          /* 质保金 (10-Yr Warranty) - 官方认证与10年质保徽章 */
  --color-accent-gold-light: #FFB703;
  --color-accent-luxury: #8A2BE2;        /* 磁控高端紫 */
  --color-accent-success: #00E5A3;       /* 正品有效绿 */

  /* ------------------------------------------------------------------------
     3. 文字与层级 (Typography Colors)
     ------------------------------------------------------------------------ */
  --color-text-primary: #FFFFFF;      /* 大标题 (H1/H2)、核心数据 */
  --color-text-secondary: #D1D5DB;    /* 模块副标题、导航菜单、正文 */
  --color-text-muted: #9CA3AF;        /* 参数单位、脚注说明、未选状态 */
  --color-text-disabled: #4B5563;     /* 禁用状态 */

  /* ------------------------------------------------------------------------
     4. 特效与光影渐变 (Gradients & Glow Effects)
     ------------------------------------------------------------------------ */
  --gradient-primary-red: linear-gradient(135deg, #FF1E27 0%, #D90429 100%);
  --gradient-ceramic-cyan: linear-gradient(135deg, #00E5FF 0%, #0072FF 100%);
  --gradient-gold: linear-gradient(135deg, #FFB703 0%, #F5A623 100%);
  --gradient-dark-card: linear-gradient(180deg, rgba(26, 29, 36, 0.95) 0%, rgba(19, 22, 28, 0.98) 100%);

  /* 发光投影 (Glow Shadows) */
  --glow-red: 0 0 25px rgba(229, 9, 20, 0.45);
  --glow-cyan: 0 0 25px rgba(0, 168, 232, 0.45);
  --glow-gold: 0 0 25px rgba(245, 166, 35, 0.4);
  --glow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.45);

  /* ------------------------------------------------------------------------
     5. 字体族 (Typography Families)
     ------------------------------------------------------------------------ */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
  --font-seal: 'Noto Serif SC', serif;

  /* ------------------------------------------------------------------------
     6. 圆角与容器 (Radius & Layout)
     ------------------------------------------------------------------------ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --container-max-width: 1200px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 融合暗夜微点阵与冷蓝光晕背景 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 168, 232, 0.08) 0%, transparent 75%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(229, 9, 20, 0.04) 0%, transparent 60%);
  background-size: 32px 32px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.warranty-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   1. 顶部玻璃拟态导航栏 (Glassmorphic Header - 设计系统 5.1 节)
   -------------------------------------------------------------------------- */
.w-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 74px;
}

.w-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.w-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.w-brand-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1A1D24 0%, #13161C 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-primary);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
  transition: all 0.3s ease;
}

.w-brand:hover .w-brand-badge {
  border-color: var(--color-accent-primary-hover);
  box-shadow: var(--glow-red);
  transform: scale(1.04);
}

.w-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.w-brand-title span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-optical-light);
}

.w-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.w-nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.w-nav-link:hover {
  color: var(--color-text-primary);
}

.w-btn-login {
  background: rgba(0, 168, 232, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.35);
  color: var(--color-accent-optical-light);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.w-btn-login:hover {
  background: rgba(0, 168, 232, 0.18);
  border-color: var(--color-accent-optical-light);
  box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   2. 标头 Banner (Hero Banner)
   -------------------------------------------------------------------------- */
.w-hero {
  padding: 56px 0 32px;
  text-align: center;
}

.w-shield-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.w-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.w-hero-title .highlight {
  background: linear-gradient(135deg, #00E5FF 0%, #0072FF 50%, #E50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.w-hero-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   3. 质保查询核心控制台 (Search Console Card)
   -------------------------------------------------------------------------- */
.w-search-box {
  background: var(--gradient-dark-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--glow-card);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.w-search-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-optical-light), var(--color-accent-primary), transparent);
}

/* Tab 切换 */
.w-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.w-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.w-tab-btn.active {
  color: var(--color-text-primary);
  background: rgba(0, 168, 232, 0.12);
  border: 1px solid rgba(0, 168, 232, 0.4);
  box-shadow: 0 0 14px rgba(0, 168, 232, 0.2);
}

/* 输入表单群 */
.w-input-group {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.w-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.w-input-wrap svg {
  position: absolute;
  left: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: color 0.2s;
}

.w-input {
  width: 100%;
  height: 56px;
  background: rgba(11, 12, 16, 0.85);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 0 20px 0 52px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  outline: none;
}

.w-input:focus {
  border-color: var(--color-accent-optical-light);
  background: rgba(11, 12, 16, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15), var(--glow-cyan);
}

.w-input:focus + svg,
.w-input-wrap:focus-within svg {
  color: var(--color-accent-optical-light);
}

/* 核心 CTA 按钮：严格按照设计系统 5.4 节 - 竞技红高光 */
.w-btn-search {
  height: 56px;
  padding: 0 38px;
  background: var(--gradient-primary-red);
  border: none;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(229, 9, 20, 0.39);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.w-btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(229, 9, 20, 0.6);
  background: linear-gradient(135deg, #FF2A36 0%, #E50914 100%);
}

.w-btn-search:active {
  transform: translateY(0);
}

/* 快速填入演示码与提示条 */
.w-search-hints {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.w-quick-codes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.w-code-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--color-border-subtle);
  color: var(--color-accent-optical-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.w-code-chip:hover {
  background: rgba(0, 168, 232, 0.15);
  border-color: var(--color-accent-optical);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. 溯源扫描高科技动效 (Verification Scanning Animation)
   -------------------------------------------------------------------------- */
.w-scanner-panel {
  display: none;
  background: var(--color-bg-card-hover);
  border: 1px solid var(--color-border-highlight);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.w-scanner-laser {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00E5FF, #E50914, transparent);
  box-shadow: 0 0 15px #00E5FF;
  position: absolute;
  top: 0;
  left: 0;
  animation: laserScan 1.6s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0.4; }
  100% { top: 98%; opacity: 1; }
}

.w-scanner-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 168, 232, 0.15);
  border-top-color: var(--color-accent-optical-light);
  border-right-color: var(--color-accent-primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: wSpin 0.9s linear infinite;
}

@keyframes wSpin {
  to { transform: rotate(360deg); }
}

.w-scanner-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.w-scanner-steps {
  font-size: 0.85rem;
  color: var(--color-accent-optical-light);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   5. 质保结果主卡片 (Warranty Result Container)
   -------------------------------------------------------------------------- */
.w-result-container {
  display: none;
  margin-bottom: 50px;
}

.w-result-card {
  background: var(--gradient-dark-card);
  border: 1px solid var(--color-border-highlight);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--glow-cyan), var(--glow-card);
  position: relative;
  overflow: hidden;
}

/* 结果卡片顶栏状态 */
.w-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.w-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 163, 0.1);
  border: 1px solid rgba(0, 229, 163, 0.4);
  color: var(--color-accent-success);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
}

.w-status-pulse {
  width: 10px;
  height: 10px;
  background: var(--color-accent-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent-success);
  animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.w-cert-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-btn-action {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* 证书主按钮：10年质保金 (10-Yr Gold) */
.w-btn-action-primary {
  background: var(--gradient-gold);
  color: #1A1202;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}

.w-btn-action-primary:hover {
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

/* 打印次按钮：光学冷蓝幽灵按钮 (设计系统 5.4 节) */
.w-btn-action-outline {
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid rgba(0, 168, 232, 0.4);
  color: var(--color-accent-optical-light);
}

.w-btn-action-outline:hover {
  background: rgba(0, 168, 232, 0.2);
  border-color: var(--color-accent-optical-light);
  box-shadow: 0 0 15px rgba(0, 168, 232, 0.3);
  transform: translateY(-2px);
}

/* 拟真电子质保卡 (Digital Warranty Pass) */
.w-pass-card {
  background: linear-gradient(145deg, #1A1D24 0%, #13161C 100%);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-card);
}

/* 全息反射微光纹理 */
.w-pass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(0, 168, 232, 0.08) 45%,
    rgba(229, 9, 20, 0.06) 55%,
    rgba(245, 166, 35, 0.06) 65%,
    transparent 85%
  );
  pointer-events: none;
}

.w-pass-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.w-pass-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.w-pass-brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent-gold);
}

.w-pass-code-pill {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-md);
}

.w-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.w-info-item {
  display: flex;
  flex-direction: column;
}

.w-info-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.w-info-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
}

.w-info-value.mono {
  font-family: var(--font-mono);
}

.w-info-value.gold {
  color: var(--color-accent-gold);
}

.w-info-value.success {
  color: var(--color-accent-success);
}

/* 施工明细表格：深黑卡片斑马纹 (设计系统 5.3 节) */
.w-section-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.w-section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--color-accent-optical);
  border-radius: 2px;
}

.w-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface);
}

.w-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.w-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  white-space: nowrap;
}

.w-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
}

.w-table tr:nth-child(even) td {
  background: rgba(26, 29, 36, 0.4);
}

.w-table tr:last-child td {
  border-bottom: none;
}

.w-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------------------------------
   5.5 极简施工项目与防伪卷号卡片 (Service Package & Roll No. Badges)
   面向客服极简录入与车主秒懂查验
   -------------------------------------------------------------------------- */
.w-service-summary-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
}

.w-service-meta-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--color-border-subtle);
}

.w-service-item-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.w-service-item-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.w-service-item-val.optical {
  color: var(--color-accent-optical-light);
}

.w-roll-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.w-roll-badge-item {
  background: linear-gradient(145deg, #1A1D24 0%, #10131A 100%);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.w-roll-badge-item:hover {
  border-color: var(--color-accent-gold);
  box-shadow: 0 4px 18px rgba(245, 166, 35, 0.2);
  transform: translateY(-2px);
}

.w-roll-badge-info {
  display: flex;
  flex-direction: column;
}

.w-roll-badge-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.w-roll-badge-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 0.5px;
}

.w-roll-badge-tag {
  background: rgba(0, 229, 163, 0.1);
  border: 1px solid rgba(0, 229, 163, 0.3);
  color: var(--color-accent-success);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 门店与质检标签 */
.w-store-panel {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.w-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.w-chip {
  background: rgba(0, 168, 232, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.25);
  color: var(--color-accent-optical-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. 质保未查到防呆状态卡片 (Not Found State)
   -------------------------------------------------------------------------- */
.w-not-found-card {
  display: none;
  background: var(--color-bg-card);
  border: 1px solid rgba(229, 9, 20, 0.5);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--glow-red);
  margin-bottom: 40px;
}

.w-not-found-icon {
  width: 60px;
  height: 60px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 50%;
  color: var(--color-accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   7. 官方防伪指南与质保权益 (Anti-Counterfeit & Warranty Guide)
   -------------------------------------------------------------------------- */
.w-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.w-feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
}

.w-feature-card:hover {
  transform: translateY(-3px);
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  box-shadow: var(--glow-card);
}

.w-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 168, 232, 0.1);
  color: var(--color-accent-optical-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.w-feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.w-feature-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. 页脚 (Footer)
   -------------------------------------------------------------------------- */
.w-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 40px;
  background: var(--color-bg-surface);
}

.w-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s;
}

.w-footer a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. 深度移动端响应式适配 (Mobile & Tablet Responsive System)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .warranty-container {
    padding: 0 16px;
  }

  /* 顶栏适配 */
  .w-header {
    height: 62px;
  }
  .w-brand-badge {
    width: 36px;
    height: 36px;
  }
  .w-brand-title {
    font-size: 1.05rem;
  }
  .w-brand-title span {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  .w-nav-links .w-nav-link {
    display: none;
  }
  .w-btn-login {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  /* 首屏 Hero 适配 */
  .w-hero {
    padding: 32px 0 20px;
  }
  .w-shield-pill {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 14px;
    max-width: 100%;
    line-height: 1.4;
  }
  .w-hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .w-hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* 控制台卡片 */
  .w-search-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

  /* Tab 导航支持平滑横向滚动 */
  .w-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    scrollbar-width: none; /* Firefox */
  }
  .w-tab-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .w-tab-btn {
    padding: 8px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 输入控件堆叠 */
  .w-input-group {
    flex-direction: column;
    gap: 12px;
  }
  .w-input {
    height: 50px;
    font-size: 0.95rem;
    padding: 0 16px 0 46px;
  }
  .w-input-wrap svg {
    left: 15px;
    width: 18px;
    height: 18px;
  }
  .w-input-wrap#wPhoneWrap {
    max-width: 100% !important;
  }
  .w-input-wrap#wPhoneWrap .w-input {
    padding-left: 16px !important;
  }
  .w-btn-search {
    width: 100%;
    height: 50px;
    font-size: 0.95rem;
    justify-content: center;
  }

  /* 快捷案例群 */
  .w-search-hints {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    margin-top: 14px;
  }
  .w-quick-codes {
    gap: 6px;
  }
  .w-code-chip {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  /* 扫描面板 */
  .w-scanner-panel {
    padding: 20px 14px;
    margin-bottom: 24px;
  }
  .w-scanner-spinner {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
  }
  .w-scanner-title {
    font-size: 0.98rem;
  }
  .w-scanner-steps {
    font-size: 0.8rem;
  }

  /* 结果卡片 */
  .w-result-container {
    margin-bottom: 36px;
  }
  .w-result-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
  .w-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }
  .w-status-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 7px 14px;
  }
  .w-cert-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .w-btn-action {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  /* 拟真数码质保卡 */
  .w-pass-card {
    padding: 18px 14px;
    margin-bottom: 22px;
  }
  .w-pass-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .w-pass-brand {
    font-size: 1.15rem;
  }
  .w-pass-brand small {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
  .w-pass-code-pill {
    font-size: 0.95rem;
    padding: 4px 12px;
  }
  .w-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
  .w-info-item:nth-child(7),
  .w-info-item:nth-child(8) {
    grid-column: 1 / -1;
  }
  .w-info-label {
    font-size: 0.72rem;
  }
  .w-info-value {
    font-size: 0.88rem;
    word-break: break-all;
  }

  /* 表格与极简卡片横向触屏适配 */
  .w-section-heading {
    font-size: 1rem;
    margin: 24px 0 12px;
  }
  .w-service-summary-card {
    padding: 16px 14px;
    margin-bottom: 20px;
  }
  .w-service-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }
  .w-service-item-val {
    font-size: 0.98rem;
  }
  .w-roll-badges-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .w-roll-badge-item {
    padding: 12px 14px;
  }
  .w-roll-badge-code {
    font-size: 0.95rem;
  }
  .w-table th,
  .w-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  /* 门店与质检 */
  .w-store-panel {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 16px;
  }
  .w-chip {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  /* 未查到防呆卡片 */
  .w-not-found-card {
    padding: 26px 16px;
  }

  /* 底部四卡片 */
  .w-features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
  }
  .w-feature-card {
    padding: 18px 14px;
  }
  .w-feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
  .w-feature-title {
    font-size: 0.98rem;
  }
  .w-feature-desc {
    font-size: 0.82rem;
  }

  /* 页脚 */
  .w-footer {
    padding: 24px 0;
    font-size: 0.78rem;
  }
}

/* 超小屏专调 (iPhone SE / 375px) */
@media (max-width: 400px) {
  .w-info-grid {
    grid-template-columns: 1fr;
  }
  .w-hero-title {
    font-size: 1.6rem;
  }
  .w-brand-title {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   8.5 官方质保系统后台登录模块 (Backend Login Console)
   -------------------------------------------------------------------------- */
.w-login-wrapper {
  min-height: calc(100vh - 74px - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}

/* 背景粒子流光画布 */
.w-login-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.w-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--gradient-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 168, 232, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

/* 动态全息激光流光边 (光束循环跑马灯) */
.w-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent-optical) 25%,
    var(--color-accent-optical-light) 45%,
    var(--color-accent-primary) 70%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: beamFlow 3.5s linear infinite;
}

@keyframes beamFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.w-login-header {
  text-align: center;
  margin-bottom: 28px;
}

/* 盾牌徽标脉冲呼吸动效 */
.w-login-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-md);
  color: var(--color-accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: radarPulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6), 0 0 16px rgba(229, 9, 20, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 9, 20, 0), 0 0 26px rgba(229, 9, 20, 0.7);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0), 0 0 16px rgba(229, 9, 20, 0.3);
    transform: scale(1);
  }
}

.w-login-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.w-login-subtitle {
  font-size: 0.78rem;
  color: var(--color-accent-optical-light);
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

.w-form-field {
  margin-bottom: 18px;
}

.w-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.w-field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.w-field-input-wrap svg.input-prefix-icon {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.w-field-input {
  width: 100%;
  height: 48px;
  background: rgba(11, 12, 16, 0.85);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 0 16px 0 46px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.w-field-input:focus {
  border-color: var(--color-accent-optical-light);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), var(--glow-cyan);
  background: rgba(11, 12, 16, 0.95);
}

.w-field-input:focus + svg.input-prefix-icon,
.w-field-input-wrap:focus-within svg.input-prefix-icon {
  color: var(--color-accent-optical-light);
}

.w-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.w-password-toggle:hover {
  color: #fff;
}

.w-captcha-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.w-captcha-img-box {
  width: 124px;
  height: 48px;
  background: rgba(26, 29, 36, 0.9);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
  transition: all 0.2s;
}

.w-captcha-img-box:hover {
  border-color: var(--color-accent-optical-light);
  box-shadow: 0 0 12px rgba(0, 168, 232, 0.2);
}

.w-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.w-login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.w-login-btn {
  width: 100%;
  height: 50px;
  background: var(--gradient-primary-red);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.39);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* 按钮金属高光流光扫射 */
.w-login-btn::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -90%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(28deg);
  animation: btnShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btnShimmer {
  0% { left: -90%; }
  32% { left: 150%; }
  100% { left: 150%; }
}

.w-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.65);
  background: linear-gradient(135deg, #FF2A36 0%, #E50914 100%);
}

.w-demo-hint-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border-subtle);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   8.8 全屏高科技 HUD 解密与进入中台加载遮罩 (HUD Loading Transition)
   -------------------------------------------------------------------------- */
.w-hud-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.96);
  backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.w-hud-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.w-hud-box {
  width: 90%;
  max-width: 460px;
  background: linear-gradient(145deg, #1A1D24 0%, #10131A 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 168, 232, 0.25), 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.w-hud-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00E5FF, #E50914, transparent);
  animation: beamFlow 2.5s linear infinite;
}

.w-hud-radar {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-hud-radar-ring {
  position: absolute;
  border-radius: 50%;
}

.w-hud-radar-ring.outer {
  inset: 0;
  border: 1.5px dashed rgba(0, 229, 255, 0.55);
  animation: radarSpin 8s linear infinite;
}

.w-hud-radar-ring.inner {
  inset: 12px;
  border: 1.5px solid rgba(229, 9, 20, 0.45);
  animation: radarSpin 5s linear infinite reverse;
}

.w-hud-radar-beam {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.45) 0deg, transparent 90deg);
  animation: radarSpin 2s linear infinite;
}

.w-hud-center-icon {
  color: var(--color-accent-gold);
  z-index: 2;
  animation: radarPulse 2s ease-in-out infinite;
}

@keyframes radarSpin {
  100% { transform: rotate(360deg); }
}

.w-hud-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.w-hud-step {
  font-size: 0.85rem;
  color: var(--color-accent-optical-light);
  font-family: var(--font-mono);
  margin-bottom: 24px;
  min-height: 20px;
}

.w-hud-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.w-hud-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00A8E8, #00E5FF, #FF1E27);
  border-radius: 3px;
  transition: width 0.15s ease-out;
}

.w-hud-status-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   9. 官方质保业务中台专属样式 (Backend Admin Console)
   -------------------------------------------------------------------------- */
.w-admin-layout {
  padding: 28px 0 60px;
}

.w-admin-header-panel {
  background: var(--gradient-dark-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.w-admin-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.w-admin-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.w-admin-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--color-accent-optical-light);
}

.w-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.w-stat-card {
  background: var(--gradient-dark-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.w-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.35);
}

.w-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.w-stat-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.w-stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9.2 侧边栏菜单中台框架 (Sidebar Navigation Console Layout)
   -------------------------------------------------------------------------- */
.w-console-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-bg-base);
}

.w-console-sidebar {
  width: 260px;
  background: #10131A;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.w-sidebar-brand {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.w-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.w-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.w-sidebar-item.active {
  background: rgba(0, 168, 232, 0.12);
  color: var(--color-accent-optical-light);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 168, 232, 0.15);
}

.w-sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.w-console-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--color-bg-base);
}

.w-console-topbar {
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(15px);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.w-console-body {
  padding: 28px 36px 60px;
  flex: 1;
}

.w-console-view {
  display: none;
  animation: viewFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.w-console-view.active {
  display: block;
}

@keyframes viewFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 宽屏专业中台容器 (最大 1820px) */
.w-admin-widescreen-container {
  width: 100%;
  max-width: 1820px;
  padding: 0 36px;
  margin: 0 auto;
}

.w-admin-main-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1200px) {
  .w-admin-widescreen-container {
    padding: 0 20px;
  }
  .w-admin-main-grid {
    grid-template-columns: 1fr;
  }
}

.w-form-card, .w-table-card {
  background: var(--gradient-dark-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.w-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.w-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w-card-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--color-accent-primary);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   10. 打印专用样式 (@media print)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  body::before {
    display: none !important;
  }
  .w-header,
  .w-hero,
  .w-search-box,
  .w-scanner-panel,
  .w-features-grid,
  .w-footer,
  .w-cert-actions,
  .w-not-found-card {
    display: none !important;
  }
  .w-result-container {
    display: block !important;
  }
  .w-result-card {
    border: 2px solid #D4AF37 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    padding: 20px !important;
  }
  .w-pass-card {
    background: #FAFAFA !important;
    border: 1px solid #CCC !important;
    color: #000 !important;
  }
  .w-pass-brand, .w-info-value, .w-section-heading {
    color: #000 !important;
  }
  .w-table th {
    background: #F0F0F0 !important;
    color: #333 !important;
  }
  .w-table td {
    color: #222 !important;
    border-bottom: 1px solid #EEE !important;
  }
  .w-status-badge {
    background: #E8F5E9 !important;
    color: #2E7D32 !important;
    border: 1px solid #81C784 !important;
  }
/* --------------------------------------------------------------------------
   9.3 中台全国工单数据大表专属防错位排版 (Admin Table Layout & Anti-wrapping)
   -------------------------------------------------------------------------- */
.w-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.w-table {
  width: 100%;
  min-width: 1240px; /* 锁死横向安全尺寸，杜绝狭窄挤压导致文字竖折 */
  border-collapse: collapse;
  table-layout: auto;
}

.w-table th,
.w-table td {
  padding: 14px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.w-table th {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.5px;
  white-space: nowrap !important;
}

.w-table td {
  font-size: 0.85rem;
}

/* 官方质保卡号徽章：强制单行无折行并带优雅金标微光 */
.w-card-code-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-accent-gold);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.w-card-code-badge:hover {
  background: rgba(245, 166, 35, 0.2);
  border-color: rgba(245, 166, 35, 0.6);
  transform: translateY(-1px);
}

/* 状态徽章：强制单行无折行 */
.w-table .w-chip {
  display: inline-block !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  padding: 5px 12px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  border-radius: 4px !important;
}

/* 操作列按钮容器：强制水平单行紧凑并排，禁止伸缩变形 */
.w-table-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: auto !important;
}

.w-table-actions .w-btn-action {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   10. 中台单条质保编辑模态框 (Edit Warranty Modal - 绝对居中视口全屏)
   -------------------------------------------------------------------------- */
.w-modal-overlay,
#editWarrantyModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 5, 8, 0.82) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  animation: modalFadeIn 0.2s ease-out;
}

.w-modal-overlay.active,
#editWarrantyModal.active {
  display: flex !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.w-modal-dialog {
  background: #12151D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 168, 232, 0.12);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.w-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.w-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.w-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.w-modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.w-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.w-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
}
