/* AISC-WEB — AI / 现代科技风设计系统 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #070a12;
  --bg-base: #0c101c;
  --panel: rgba(18, 26, 42, 0.65);
  --panel-solid: #121a2a;
  --border: rgba(99, 102, 241, 0.18);
  --border-strong: rgba(34, 211, 238, 0.35);
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --danger: #fb7185;
  --success: #34d399;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* 环境光 + 网格 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 90%, rgba(192, 132, 252, 0.14), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 40%, #06080f 100%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 20%, transparent 75%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a:hover {
  color: #67e8f9;
}

/* —— 顶栏 —— */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.brand-link:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(129, 140, 248, 0.35));
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.brand-mark:empty::after {
  content: 'AI';
  font-size: 0.65rem;
  font-weight: 800;
  color: #f1f5ff;
  letter-spacing: -0.06em;
  line-height: 1;
}

.brand-text {
  background: linear-gradient(105deg, #e0e7ff 0%, #a5b4fc 40%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
}

.nav-user {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
}

.nav-user-phone {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.nav-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(129, 140, 248, 0.2));
  border: 1px solid var(--border);
  color: #e0e7ff !important;
}

.nav-pill:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  color: #fff !important;
}

.nav-pill--ghost {
  background: rgba(15, 23, 42, 0.5);
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

/* —— 主内容区 —— */
.main-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.main-narrow {
  max-width: 460px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-center {
  max-width: 460px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, #f8fafc 20%, #a5b4fc 55%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 1rem 0 2.5rem;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

.text-gradient {
  background: linear-gradient(105deg, #22d3ee, #818cf8 45%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta a {
  font-weight: 600;
}

/* 特性卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.feature-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  filter: grayscale(0.2);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— 卡片 / 玻璃 —— */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card h2 {
  font-size: 1.15rem;
}

/* —— 表单 —— */
label {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a8b9d4;
  letter-spacing: 0.02em;
}

input,
textarea,
select {
  font: inherit;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(8, 12, 22, 0.75);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(120deg, #06b6d4, #6366f1 55%, #8b5cf6);
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.25);
  color: #fff !important;
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0 !important;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(30, 41, 59, 0.85);
  color: #fff !important;
}

button:not([class*='btn-']):not(.btn) {
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, #06b6d4, #6366f1 55%, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
  transition: filter 0.15s, transform 0.12s;
}

button:not([class*='btn-']):not(.btn):hover {
  filter: brightness(1.08);
}

button:not([class*='btn-']):not(.btn):disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.btn-secondary {
  margin-top: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

button.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.95);
  filter: none;
}

.form-msg {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.form-msg--error {
  color: var(--danger);
}

.form-msg--ok {
  color: var(--success);
}

/* 代码 */
code,
.code-inline {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
}

.pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  background: rgba(8, 12, 22, 0.85);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

/* —— 侧栏布局 —— */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  background: rgba(10, 14, 26, 0.5);
  backdrop-filter: blur(8px);
}

.sidebar h2 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c8ea8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.35rem;
}

.sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.sidebar a.active,
.sidebar a:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.1));
  border-color: rgba(34, 211, 238, 0.25);
  color: #f1f5f9;
}

main {
  padding: 1.35rem 1.5rem 2rem;
  max-width: 960px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .topnav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
}
