/* =============================================
   AI智研 — 品牌官网全局样式
   ============================================= */

/* --- CSS Variables --- */
:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1e40af;
  --color-primary-light: #dbeafe;
  --color-primary-bg: #eff6ff;
  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --color-success-bg: #d1fae5;
  --color-danger: #ef4444;
  --color-muted: #94a3b8;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial,
    sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
  color: white;
  text-align: center;
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--color-bg));
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero .hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-grid.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.col2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Card --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-icon.blue {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.card-icon.green {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.card-icon.amber {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag.active {
  background: var(--color-success-bg);
  color: #065f46;
}

.tag.weekly {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.tag.upcoming {
  background: var(--color-bg-alt);
  color: var(--color-muted);
}

/* Highlight card */
.card.featured {
  border: 2px solid var(--color-accent);
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.card.featured .card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--color-accent), #fbbf24);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Muted / placeholder card */
.card.muted {
  opacity: 0.55;
  cursor: default;
  background: var(--color-bg-alt);
  border-style: dashed;
}

.card.muted:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

/* --- Co-creation Banner --- */
.cocreate-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #fef9e7 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  text-align: center;
}

.cocreate-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.cocreate-banner .flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.cocreate-banner .flow-step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.cocreate-banner .flow-arrow {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
}

.cocreate-banner .email {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* --- Page Header (for subpages) --- */
.page-header {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  color: white;
  text-align: center;
  padding: 48px 24px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--color-primary);
}

/* --- Product Interaction Page --- */
.product-page {
  padding: 40px 0 64px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: start;
}

/* Input Column */
.input-col {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.input-col h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.input-col .input-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.input-col label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.input-col textarea,
.input-col input[type='text'],
.input-col input[type='email'] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: border var(--transition), box-shadow var(--transition);
  resize: vertical;
  background: var(--color-bg);
}

.input-col textarea:focus,
.input-col input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
  background: white;
}

.input-col textarea {
  min-height: 140px;
}

/* File Upload */
.file-upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}

.file-upload:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-outline {
  background: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-bg);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

/* Result Column */
.result-col {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 400px;
}

.result-col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: var(--color-text-light);
  text-align: center;
}

.result-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.result-empty p {
  font-size: 0.95rem;
}

.result-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* Accordion / Collapse */
.accordion {
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.accordion-toggle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: var(--font-sans);
  transition: color var(--transition);
}

.accordion-toggle:hover {
  color: var(--color-primary);
}

.accordion-body {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  display: none;
}

.accordion-body.open {
  display: block;
}

.accordion-body ol {
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 6px;
}

/* --- About Page --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--color-text);
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.85;
  font-size: 1rem;
}

/* --- Cases Page --- */
.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
}

.case-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.case-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-body p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.case-body .case-result {
  font-size: 0.85rem;
  color: var(--color-success);
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border var(--transition), box-shadow var(--transition);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
  background: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-info .info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-info .info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-info .info-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ */
.faq {
  margin-top: 48px;
}

.faq h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 10px;
}

.faq-item .faq-q {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.faq-item .faq-a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.progress-step {
  font-size: 0.78rem;
  color: var(--color-text-light);
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--color-bg-alt);
}

.progress-step.active {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 600;
}

/* Notice */
.notice {
  margin-top: 20px;
  padding: 12px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}

/* Custom step flow */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0;
}

.step-flow .step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* =============================================================
   视觉优化 2.0
   =============================================================

   背景（2026-09-20 用户反馈）：
     ① 首页整体太大、留白太多 —— 字数和内容其实不多
     ② 界面看着不好看

   原尺寸的问题（实测数值）：
     · hero 上下内边距 80px + 70px = 光留白就 150px
     · section 上下各 64px，4 个区块之间累计 512px 纯留白
     · section-header 下边距 40px，标题和卡片之间空一大块
     · 卡片内边距 28px，而内容只有 3 行字 → 显得空
     · h1 2.8rem，在一屏里占的比例过大

   为什么用覆盖而不改原值：
     原样式被 8 个页面共用，逐个改容易漏，也不好回退。
     集中在这里覆盖，一眼看得出改了什么；撤销只需删掉本段。

   ★★★ 重要：本段必须放在 @media 之前 ★★★
     如果追加到文件末尾，这些桌面端规则会盖掉手机端规则，
     手机版会崩（媒体查询的优先级只看出现顺序，不看具体值）。

   两条主线：
     缩小 —— 字号、内边距、区块间距整体收紧约 25-35%
     美化 —— 标题改左对齐加色条 / 卡片加顶部渐变条 / 阴影改柔和 /
             占位卡片改浅色实线 / 特色卡片描边改细
   ============================================================= */

/* --- 1. 全局尺度收紧 --- */
:root {
  --max-width: 1120px;
  --nav-height: 58px;
  --radius: 9px;
  --radius-lg: 13px;
  --radius-xl: 18px;

  /* 阴影改为「低对比 + 大扩散」：原来的阴影比较硬，看着旧 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 5px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 6px 14px rgba(15, 23, 42, 0.08), 0 16px 34px rgba(15, 23, 42, 0.07);
  --shadow-xl: 0 10px 24px rgba(15, 23, 42, 0.10), 0 24px 48px rgba(15, 23, 42, 0.08);
}

body {
  line-height: 1.62;
}

/* --- 2. 导航栏更薄 --- */
.nav-inner { padding: 0 20px; }

.nav-brand {
  font-size: 1.2rem;
  gap: 8px;
  letter-spacing: 0.3px;
}

.nav-brand .brand-icon {
  width: 31px;
  height: 31px;
  font-size: 0.98rem;
  border-radius: 7px;
}

.nav-links { gap: 4px; }

.nav-links a {
  padding: 7px 15px;
  font-size: 0.9rem;
}

/* --- 3. Hero 压缩 + 加细点阵纹理 --- */
.hero {
  padding: 44px 20px 38px;
}

.hero::before {
  background:
    radial-gradient(ellipse at 18% 45%, rgba(59, 130, 246, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 22%, rgba(245, 158, 11, 0.13) 0%, transparent 48%),
    /* 第三层是细点阵：大面积渐变容易显得空，点缀纹理后层次感更好 */
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
  background-size: auto, auto, 26px 26px;
}

.hero::after { height: 32px; }

.hero-inner { max-width: 680px; }

.hero .hero-badge {
  padding: 4px 14px;
  font-size: 0.78rem;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  line-height: 1.28;
}

.hero .subtitle {
  font-size: 0.98rem;
  max-width: 500px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- 4. 区块间距收紧，标题改左对齐加色条 --- */
.section { padding: 34px 0; }

.section-header {
  text-align: left;          /* 居中标题 + 左对齐卡片会让两边留白不一致，改左对齐更整 */
  margin-bottom: 18px;
  padding-left: 13px;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-primary), #60a5fa);
}

.section-header h2 {
  font-size: 1.36rem;
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.section-header p {
  font-size: 0.88rem;
  max-width: none;
  margin: 0;
  line-height: 1.55;
}

/* --- 5. 卡片收紧 + 顶部渐变条 --- */
.card-grid { gap: 13px; }

.card {
  padding: 16px 16px 15px;
  gap: 7px;
  border-radius: 13px;
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s;
}

/* 顶部渐变条：hover 时从左往右展开，比单纯浮起更有"被选中"的感觉 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 37px;
  height: 37px;
  font-size: 1.12rem;
  border-radius: 9px;
}

.card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.card p {
  font-size: 0.825rem;
  line-height: 1.52;
}

.card .tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* 特色卡片：原来 2px 实线金框有点土，改细描边 + 极浅金底 */
.card.featured {
  border: 1px solid #fcd34d;
  background: linear-gradient(140deg, #ffffff 0%, #fffdf4 100%);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.08), 0 10px 24px rgba(245, 158, 11, 0.06);
}

.card.featured::before {
  background: linear-gradient(90deg, var(--color-accent), #fbbf24);
}

.card.featured:hover { border-color: var(--color-accent); }

.card.featured .card-badge {
  top: 11px;
  right: 11px;
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 999px;
}

/* 占位卡片：原来虚线 + 低透明度显得像"没做完"，改浅色实线 */
.card.muted {
  opacity: 0.62;
  background: #fbfcfe;
  border: 1px dashed #dbe3ec;
  box-shadow: none;
}

.card.muted::before { display: none; }

/* --- 6. 共创横幅收紧 --- */
.cocreate-banner {
  padding: 26px 22px;
  border-radius: 18px;
}

.cocreate-banner h3 {
  font-size: 1.22rem;
  margin-bottom: 5px;
}

.cocreate-banner .flow {
  gap: 9px;
  margin: 16px 0 10px;
}

.cocreate-banner .flow-step {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.cocreate-banner .flow-arrow { font-size: 1.05rem; }

.cocreate-banner .email {
  margin-top: 6px;
  font-size: 0.95rem;
}

/* 这一段的说明文字要压小点，否则和上面的流程图抢视线 */
.cocreate-banner > p {
  font-size: 0.875rem !important;
  line-height: 1.6;
}

/* --- 7. 页脚收紧 --- */
.footer {
  padding: 22px 0;
  font-size: 0.83rem;
}

.footer-links {
  gap: 22px;
  margin-bottom: 8px;
}

/* --- 8. 子页面页头收紧（关于我们 / 案例 / 联系）--- */
.page-header {
  padding: 36px 20px 30px;
}

.page-header h1 {
  font-size: 1.68rem;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 0.94rem;
}

/* =============================================================
   「即将上线」提示块
   =============================================================

   背景（2026-09-20）：巡检发现 6 个产品页挂着价格，但表单没有接口，
   客户填完点提交什么都不发生 —— 客户会以为网站坏了 ✗
   这比少几个功能严重得多，所以先止血。

   设计要点：
     · 明确说"即将上线"，不含糊（不能假装能用）
     · 同时给出人工替代方案（转化线索，不白丢客户）
     · 用中性灰蓝，不用红色警告 —— 这是"还没做"不是"出错了"
   ============================================================= */
.soon-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px dashed #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
}

.soon-box .soon-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.soon-box h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.soon-box p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
}

.soon-box p:last-of-type {
  margin-bottom: 16px;
}

.soon-box .soon-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.soon-box .btn {
  font-size: 0.875rem;
  padding: 9px 18px;
}

/* 结果区右侧的对应提示 */
.result-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-secondary);
}

.result-soon .empty-icon {
  font-size: 2.4rem;
  opacity: 0.55;
}

.result-soon p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* 手机端的尺寸随「视觉优化 2.0」同步收紧，
     否则手机上的值会反过来比桌面还大（媒体查询只按出现顺序覆盖）*/
  .hero {
    padding: 32px 16px 28px;
  }

  .hero h1 {
    font-size: 1.72rem;
  }

  .hero .subtitle {
    font-size: 0.92rem;
  }

  .section {
    padding: 26px 0;
  }

  .section-header {
    margin-bottom: 14px;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.col3 {
    grid-template-columns: 1fr;
  }

  .card-grid.col2 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
  }

  .nav-toggle {
    display: block;
  }

  .cocreate-banner .flow {
    flex-direction: column;
    gap: 8px;
  }

  .cocreate-banner .flow-arrow {
    transform: rotate(90deg);
  }

  .case-card {
    flex-direction: column;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Utility: margin helpers for forms */
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-20 {
  margin-bottom: 20px;
}
.text-center {
  text-align: center;
}

/* =============================================================
   异步任务流 UI（阶段二新增）
   —— 进度显示 / 结果展示 / Markdown 渲染
   ============================================================= */

/* --- 涉密提示（表单内）--- */
.form-warn {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 7px 10px;
}

/* --- 表单提交结果提示（留言表单用）--- */
.form-msg {
  display: none;
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  border-radius: 8px;
  padding: 10px 12px;
}
.form-msg.ok {
  display: block;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.form-msg.err {
  display: block;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

/* --- 进度卡片 --- */
.ai-progress {
  text-align: center;
  padding: 36px 20px;
}

.ai-progress-spin {
  width: 42px;
  height: 42px;
  margin: 0 auto 20px;
  border: 4px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: ai-spin 0.9s linear infinite;
}

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

.ai-progress-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px;
}

.ai-progress-sub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 6px;
}

.ai-progress-queue {
  font-size: 0.82rem;
  color: #b45309;
  margin: 6px 0 0;
}

.ai-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin: 20px auto 12px;
  max-width: 340px;
}

.ai-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #3b82f6);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.ai-progress-time {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 14px;
}

.ai-progress-time b {
  color: var(--color-primary);
}

.ai-progress-hint {
  font-size: 0.8rem;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
  line-height: 1.6;
  margin: 0;
}

/* --- 结果卡片 --- */
.ai-result {
  text-align: left;
}

.ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.ai-result-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  border-radius: 99px;
  padding: 4px 12px;
}

.ai-result-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.ai-result-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.btn-mini {
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-primary-light);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mini:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
}

.ai-result-body {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #334155;
  word-wrap: break-word;
}

.ai-result-disclaimer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* --- Markdown 渲染样式 --- */
.ai-result-body .md-h {
  color: var(--color-text);
  line-height: 1.4;
  margin: 22px 0 10px;
  font-weight: 700;
}

.ai-result-body .md-h1 {
  font-size: 1.15rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}

.ai-result-body .md-h2 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.ai-result-body .md-h3 { font-size: 0.98rem; }

.ai-result-body .md-h4,
.ai-result-body .md-h5,
.ai-result-body .md-h6 { font-size: 0.92rem; color: #475569; }

.ai-result-body .md-p {
  margin: 0 0 12px;
}

.ai-result-body .md-list {
  margin: 0 0 12px;
  padding-left: 22px;
}

.ai-result-body .md-list li {
  margin-bottom: 6px;
}

.ai-result-body strong {
  color: var(--color-text);
  font-weight: 700;
}

.ai-result-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.84em;
  background: #f1f5f9;
  color: #be123c;
  padding: 2px 5px;
  border-radius: 4px;
}

.ai-result-body .md-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.65;
}

.ai-result-body .md-code code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.ai-result-body .md-quote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-bg);
  border-radius: 0 6px 6px 0;
  color: #334155;
}

.ai-result-body .md-quote .md-p:last-child {
  margin-bottom: 0;
}

.ai-result-body hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

.ai-result-body .md-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.ai-result-body .md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ai-result-body .md-table th {
  background: #f1f5f9;
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.ai-result-body .md-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.ai-result-body .md-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.ai-result-body a {
  color: var(--color-primary);
  text-decoration: underline;
  word-break: break-all;
}

.ai-result-body img {
  max-width: 100%;
  border-radius: 6px;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
  .ai-result-body {
    max-height: none;
    font-size: 0.86rem;
  }
  .ai-progress {
    padding: 24px 10px;
  }
  .ai-result-actions {
    flex-wrap: wrap;
  }
  .ai-result-body .md-table {
    font-size: 0.74rem;
  }
}

/* ══════════════════════════════════════════════════════════
   账号与登录
   ══════════════════════════════════════════════════════════ */

/* --- 导航栏右侧登录态 --- */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.nav-login {
  display: inline-block;
  padding: 7px 18px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-login:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--color-primary-bg);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.nav-account:hover {
  background: var(--color-primary-light);
}

.nav-acc-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}

.nav-acc-quota {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-success);
  white-space: nowrap;
}

.nav-acc-quota.quota-low { color: var(--color-accent); }
.nav-acc-quota.quota-none { color: var(--color-danger); }

.nav-logout {
  font-size: 0.82rem;
  color: var(--color-text-light) !important;
  white-space: nowrap;
}

.nav-logout:hover { color: var(--color-danger) !important; }

/* --- 登录页容器 --- */
.auth-wrap {
  min-height: calc(100vh - var(--nav-height) - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  background: linear-gradient(180deg, var(--color-primary-bg) 0%, var(--color-bg) 60%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 34px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.auth-sub {
  margin: 0 0 28px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-align: center;
}

/* --- 表单 --- */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text);
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#account {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

#password {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}

.auth-field input::placeholder {
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: normal;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.auth-hint {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--color-text-light);
}

/* --- 按钮 --- */
.auth-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 20px;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.auth-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-btn-ghost {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.auth-btn-ghost:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* --- 提示消息 --- */
.auth-msg {
  margin-top: 14px;
  min-height: 20px;
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.5;
}

.auth-msg-err { color: var(--color-danger); font-weight: 600; }
.auth-msg-ok { color: var(--color-success); font-weight: 600; }

/* --- 底部说明 --- */
.auth-help {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.7;
}

.auth-help p { margin: 0 0 6px; }

.auth-help-title {
  font-weight: 700;
  color: var(--color-text);
}

.auth-mail {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-primary) !important;
  word-break: break-all;
}

.auth-sec {
  margin-top: 18px;
  padding: 11px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- 账号详情 --- */
.acc-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-border);
}

.acc-row:last-child { border-bottom: none; }

.acc-row-big { padding: 17px 18px; }

.acc-label {
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.acc-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.acc-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--color-primary-dark);
}

.acc-quota {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-success);
}

.acc-quota-low { color: var(--color-accent); }
.acc-quota-none { color: var(--color-danger); }

/* --- 额度进度条 --- */
.acc-bar-wrap {
  height: 7px;
  margin: 16px 0 0;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.acc-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-success), #34d399);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-bar-low { background: linear-gradient(90deg, var(--color-accent), #fbbf24); }
.acc-bar-none { background: var(--color-danger); }

.acc-note {
  margin-top: 14px;
  padding: 11px 14px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.acc-note-warn {
  background: var(--color-accent-light);
  color: #92400e;
  font-weight: 600;
}

.acc-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-go { margin-top: 0; }

/* --- 登录页移动端 --- */
@media (max-width: 768px) {
  .nav-auth { margin-left: 8px; gap: 6px; }
  .nav-acc-name { display: none; }
  .nav-login { padding: 6px 13px; font-size: 0.82rem; }
  .auth-wrap { padding: 28px 14px 44px; align-items: flex-start; }
  .auth-card { padding: 30px 22px 26px; }
  .auth-title { font-size: 1.4rem; }
  .acc-quota { font-size: 1.15rem; }
}
/* ── 管理员账号标识（不受额度限制）───────────────────
   2026-09-20 新增。区分管理员和普通用户，一眼能看出当前登录的是谁。
   用金色系是因为它不像绿色那样容易被误认为"额度充足"。 */
.nav-acc-quota.quota-unlimited {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
  font-weight: 600;
}
.nav-acc-quota.quota-unlimited::before {
  content: "★ ";
  font-size: 0.9em;
}