/* ============================================================
   ZIRO Product Registry
   暗黑电竞风 · 高对比 · 锐利几何
   ============================================================ */

:root {
  --bg:          #07080a;
  --bg-elev:    #0d0f12;
  --bg-card:    #10131a;
  --bg-input:   #14171e;

  --line:        rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-accent: rgba(255, 255, 255, 0.28);

  --text:        #f4f5f7;
  --text-dim:    #8b909a;
  --text-mute:   #545861;

  --accent:      #ffffff;       /* 主强调：纯白 */
  --accent-cool: #5fd4ff;        /* 次强调：电光蓝（呼应 ZIRO 锋利 Z 标志） */
  --accent-glow: rgba(95, 212, 255, 0.12);

  --danger:      #ff4d4d;
  --success:     #5fd4ff;

  --font-display: "Oswald", "Noto Sans SC", -apple-system, sans-serif;
  --font-body:    "Inter", "Noto Sans SC", -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- 背景层 --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
}

.bg-noise {
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.055 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.bg-vignette {
  background: radial-gradient(ellipse at 50% 100%, transparent 0%, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.08));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--text);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cool);
  box-shadow: 0 0 8px var(--accent-cool);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.header-sep {
  color: var(--text-mute);
  opacity: 0.6;
}

/* --- 主容器 --- */
.container {
  position: relative;
  z-index: 5;
  max-width: 580px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.view {
  animation: fadeUp 0.45s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Eyebrow --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 28px;
}

.eyebrow-bar {
  width: 28px;
  height: 1px;
  background: var(--accent-cool);
}

/* --- 标题 --- */
.title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.title-line-1 {
  display: block;
  font-size: clamp(26px, 5.5vw, 38px);
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.title-line-2 {
  display: block;
  font-size: clamp(52px, 12vw, 88px);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.9;
  background: linear-gradient(180deg, #ffffff 0%, #d1d3d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line-3 {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0.25em;
  margin-top: 12px;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

/* --- SN 输入表单 --- */
.sn-form { margin-bottom: 36px; }

.input-wrap {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  padding: 14px 18px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.input-wrap::before,
.input-wrap::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent-cool);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.input-wrap::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.input-wrap::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.input-wrap:focus-within {
  border-color: var(--accent-cool);
  background: var(--bg-card);
}

.input-wrap:focus-within::before,
.input-wrap:focus-within::after { opacity: 1; }

.input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

#sn-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0;
  width: 100%;
  text-transform: uppercase;
}

#sn-input::placeholder {
  color: var(--text-mute);
  opacity: 0.6;
}

/* --- 主按钮 --- */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.1s var(--ease);
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
  background: #e8e9ec;
}

.btn-primary:active { transform: translateY(1px); }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary .btn-label { position: relative; z-index: 1; }
.btn-primary .btn-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-card { margin-top: 24px; }

/* --- Ghost 按钮 --- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-cool);
}

.btn-large {
  padding: 14px 28px;
  font-size: 13px;
}

/* --- Help 块 --- */
.help-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.help-row {
  background: var(--bg-elev);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cool);
}

.help-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.help-note {
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.7;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* --- 错误文本 --- */
.error-text {
  margin-top: 12px;
  font-size: 12px;
  color: var(--danger);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* --- Loading --- */
.loading-block {
  padding: 100px 20px;
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  margin-bottom: 18px;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

/* --- Result --- */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.result-header .eyebrow { margin-bottom: 0; }

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

/* 卡片装饰角 */
.product-card::before,
.product-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--accent-cool);
  pointer-events: none;
}

.product-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.product-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* 顶部状态条 */
.card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.card-sn {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* Hero 区 */
.card-hero {
  padding: 36px 24px 28px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background:
    radial-gradient(ellipse at top right, var(--accent-glow) 0%, transparent 60%),
    var(--bg-card);
}

.hero-model {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-layout {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cool);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-color {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Spec Grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-item {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item dt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spec-item dd {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.spec-item.spec-full {
  grid-column: span 2;
}

.spec-item.warranty-highlight {
  background:
    linear-gradient(180deg, transparent 0%, var(--accent-glow) 100%),
    var(--bg-card);
  grid-column: span 2;
}

.spec-item.warranty-highlight dt { color: var(--accent-cool); }
.spec-item.warranty-highlight dd {
  color: var(--accent-cool);
  font-size: 18px;
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* 已登记通知 */
.registered-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  margin: 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(95, 212, 255, 0.2);
}

.notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent-cool);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.notice-title {
  color: var(--accent-cool);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}

.notice-body {
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font-mono);
}

#btn-register.btn-primary {
  margin: 20px;
  width: calc(100% - 40px);
}

/* --- Trust Row --- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin-top: 20px;
}

.trust-item {
  background: var(--bg-card);
  padding: 20px 12px;
  text-align: center;
}

.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-unit {
  font-size: 14px;
  color: var(--accent-cool);
  font-weight: 500;
  margin-left: 2px;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.2em;
}

/* --- Form --- */
.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.form-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  font-weight: 500;
}

.field-optional {
  color: var(--text-mute);
  opacity: 0.6;
  letter-spacing: 0.1em;
}

.field input, .field select {
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%238b909a' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  padding-right: 40px;
}

.field input:focus, .field select:focus {
  border-color: var(--accent-cool);
  background: var(--bg-card);
}

/* --- Success / Error --- */
.success-block, .error-block {
  padding: 80px 20px;
  text-align: center;
}

.success-mark {
  color: var(--accent-cool);
  margin-bottom: 24px;
  display: inline-block;
  animation: popIn 0.5s var(--ease) both;
}

.error-mark {
  color: var(--danger);
  margin-bottom: 24px;
  display: inline-block;
  animation: popIn 0.5s var(--ease) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.success-title, .error-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success-text, .error-text-big {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 5;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-mark {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--text);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
}

.sep { opacity: 0.4; }

/* --- Mobile --- */
@media (max-width: 480px) {
  .site-header { padding: 14px 18px; }
  .container { padding: 40px 18px 60px; }
  .card-hero { padding: 28px 20px 22px; }
  .spec-item { padding: 14px 16px; }
  .trust-num { font-size: 24px; }
  #btn-register.btn-primary { margin: 16px; width: calc(100% - 32px); }
  .registered-notice { margin: 16px; padding: 14px 16px; }

  .title-line-2 { font-size: 56px; }
}

/* 触屏设备移除 hover 动效 */
@media (hover: none) {
  .btn-primary:hover::before { transform: translateX(-100%); }
}
