/* ==========================================================================
   政岸 AI 服务平台 — 设计令牌
   视觉基线取自 zaai.world 生产包（index-CVR0rPqg.css）实测值
   ========================================================================== */

:root {
  /* 底色 */
  --bg-primary: #050508;
  --bg-secondary: #0a0a0f;
  --bg-elevated: #0d111c;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-input: rgba(255, 255, 255, 0.04);

  /* 描边 */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(59, 130, 246, 0.5);

  /* 文本 */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  /* 品牌 */
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --purple: #8b5cf6;
  --purple-dark: #9333ea;
  --cyan: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #f43f5e;

  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  --accent-gradient-btn: linear-gradient(90deg, #2563eb, #9333ea);

  /* 尺寸 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --nav-h: 64px;

  --shadow-glow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  --font: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ------------------------------ reset ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: content-box;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* --------------------------- 品牌通用元素 ------------------------------- */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

.glass-card-hover { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.glass-card-hover:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.section-title {
  margin-bottom: 1rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}
.section-subtitle {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text-secondary);
}

/* 品牌标记 */
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand__mark span { color: #fff; font-weight: 700; font-size: 0.875rem; letter-spacing: -0.02em; }
.brand__name { color: #fff; font-weight: 600; font-size: 1.125rem; }
.brand--lg .brand__mark { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); }
.brand--lg .brand__name { font-size: 1.25rem; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--primary { background: var(--accent-gradient-btn); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover:not(:disabled) { background: linear-gradient(90deg, #3b82f6, #a855f7); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--xs { padding: 0.3125rem 0.625rem; font-size: 0.75rem; border-radius: 6px; }
.btn--md { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
.btn--block { width: 100%; padding: 0.75rem; font-size: 0.9375rem; }

.btn--ghost { color: var(--text-secondary); border-color: var(--border-strong); }
.btn--ghost:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn--danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.btn--danger:hover:not(:disabled) { background: rgba(244, 63, 94, 0.1); color: #fff; }

/* 表单 */
.field { margin-bottom: 1.25rem; }
.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}
.field__hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s;
}
.input::placeholder { color: #475569; }
.input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}
.input:disabled { opacity: 0.6; cursor: not-allowed; }
.input--error { border-color: rgba(244, 63, 94, 0.5); }

/* 防御性规则：带 list 属性的输入框，Chrome / Edge 会在右侧绘制原生下拉三角，
   与站点风格不符，统一隐藏。（园区字段已改用自定义候选标签，不依赖此规则） */
.input::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.input[list] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

select.input { appearance: none; cursor: pointer; }
select.input option { background: #0d111c; color: var(--text-primary); }

/* 提示条 */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.alert--error { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); color: #fda4af; }
.alert--success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.alert--warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); color: #fcd34d; }
.alert--info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); color: #93c5fd; }

/* 徽标 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.tag--blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.tag--purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.tag--green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.tag--amber { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.tag--red { background: rgba(244, 63, 94, 0.15); color: #fda4af; }
.tag--slate { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

/* 加载态 */
.spinner { width: 1rem; height: 1rem; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn__loading { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* 工具类 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}