/* =========================================================
   智配 AgentMatching · 全局样式
   设计语言：科技感交易市场（深海军蓝 + 青色 + 活力橙）
   ========================================================= */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --brand: #0e7490;
  --brand-2: #06b6d4;
  --brand-3: #22d3ee;
  --accent: #f97316;
  --accent-2: #fbbf24;
  --ok: #10b981;
  --danger: #ef4444;
  --line: #e2e8f0;
  --dark: #0b1220;
  --dark-2: #111c33;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px -20px rgba(15, 23, 42, .22);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

img, svg { vertical-align: middle; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #0e7490, #22d3ee);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 900;
  box-shadow: 0 4px 12px -2px rgba(14, 116, 144, .5);
}
.brand small { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; display: block; line-height: 1.2; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.main-nav a:hover { color: var(--ink); background: #f1f5f9; }
.main-nav a.active { color: var(--brand); background: #ecfeff; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.wallet-chip {
  display: flex; align-items: center; gap: 6px;
  background: #fff7ed; color: #c2410c;
  border: 1px solid #fed7aa; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit;
  border-radius: 12px; font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; transition: all .18s ease; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, #f97316, #fb923c); color: #fff; box-shadow: 0 6px 16px -6px rgba(249, 115, 22, .6); }
.btn-primary:hover { background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; }
.btn-brand { background: linear-gradient(135deg, #0e7490, #06b6d4); color: #fff; box-shadow: 0 6px 16px -6px rgba(6, 182, 212, .55); }
.btn-brand:hover { background: linear-gradient(135deg, #155e75, #0891b2); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); background: #f0f9ff; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #94a3b8; margin-top: 72px; }
.footer-inner { padding: 48px 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 320px; }
.footer-col h4 { color: #e2e8f0; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: #94a3b8; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #22d3ee; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, .15);
  padding: 18px 0 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #22d3ee; }

/* ---------- 通用卡片 ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.section-more { font-size: 14px; font-weight: 600; }

/* ---------- 技能卡片 ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.skill-card { display: flex; flex-direction: column; padding: 18px; gap: 10px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden; }
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.skill-card-top { display: flex; gap: 12px; align-items: flex-start; }
.skill-avatar {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
  border: 1px solid #cffafe;
}
.skill-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.skill-model { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.skill-summary { font-size: 13px; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; background: #f1f5f9; color: #475569; border-radius: 6px; padding: 3px 8px; }
.skill-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 10px; }
.skill-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.rating { color: #d97706; font-weight: 700; }
.price-free { color: var(--ok); font-weight: 800; font-size: 15px; }
.price-paid { color: var(--accent); font-weight: 800; font-size: 15px; }

/* ---------- 徽章 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.badge-free { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-paid { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-agent { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.badge-human { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-ai { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.status-matched { background: #f1f5f9; color: #475569; }
.status-settled { background: #eff6ff; color: #1d4ed8; }
.status-delivering { background: #ecfeff; color: #0e7490; }
.status-delivered { background: #ecfdf5; color: #047857; }
.status-completed { background: #f0fdf4; color: #15803d; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark);
  color: #e2e8f0;
  padding: 88px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(34, 211, 238, .22), transparent 65%),
    radial-gradient(700px 380px at 88% 100%, rgba(249, 115, 22, .16), transparent 65%),
    radial-gradient(500px 300px at 70% 10%, rgba(6, 182, 212, .12), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35);
  color: #67e8f9; font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; color: #fff; max-width: 720px; }
.hero h1 .grad { background: linear-gradient(90deg, #22d3ee, #38bdf8, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: 16.5px; color: #94a3b8; max-width: 640px; }
.hero-search {
  margin-top: 34px; display: flex; gap: 10px; max-width: 640px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 16px; padding: 8px; backdrop-filter: blur(8px);
}
.hero-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 15px; padding: 8px 12px; font-family: inherit;
}
.hero-search input::placeholder { color: #64748b; }
.hero-hints { margin-top: 12px; font-size: 12.5px; color: #64748b; }
.hero-hints .tag { background: rgba(148, 163, 184, .12); color: #94a3b8; }
.hero-stats {
  margin-top: 52px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 720px;
}
.stat-box { background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 184, .16); border-radius: 14px; padding: 16px; }
.stat-box .num { font-size: 26px; font-weight: 800; color: #fff; }
.stat-box .num em { font-style: normal; color: #22d3ee; }
.stat-box .lbl { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }

/* ---------- 首页：流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { padding: 22px 20px; position: relative; }
.step-num {
  position: absolute; top: 14px; right: 18px;
  font-size: 44px; font-weight: 900; color: #f1f5f9; line-height: 1;
}
.step-icon {
  width: 46px; height: 46px; border-radius: 13px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecfeff, #e0f2fe); margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--ink-2); }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: center; cursor: pointer; transition: all .18s ease;
}
.cat-item:hover { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-item .ico { font-size: 26px; }
.cat-item .nm { font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.cat-item .ds { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, #0e7490, #0891b2 55%, #0f172a);
  border-radius: 22px; padding: 44px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  margin-top: 64px;
}
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { color: #a5f3fc; margin-top: 6px; font-size: 14.5px; }

/* ---------- 市场页 ---------- */
.page-head { padding: 34px 0 0; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: var(--ink-3); margin-top: 4px; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.search-bar {
  flex: 1; min-width: 240px; display: flex; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px;
}
.search-bar input { flex: 1; border: none; outline: none; padding: 6px 10px; font-size: 14px; font-family: inherit; background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.select {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 9px 12px; font-size: 13.5px; font-family: inherit; cursor: pointer;
}
.result-count { font-size: 13px; color: var(--ink-3); margin: 18px 0 14px; }
.result-count b { color: var(--ink); }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 24px; align-items: start; }
.detail-main { padding: 26px; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.detail-avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ecfeff, #e0f2fe); border: 1px solid #cffafe; flex-shrink: 0; }
.detail-head h1 { font-size: 22px; font-weight: 800; }
.detail-meta-line { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.detail-meta-line b { color: var(--ink); }
.detail-keys { display: flex; flex-wrap: wrap; gap: 20px; margin: 20px 0; padding: 16px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.detail-key .v { font-size: 18px; font-weight: 800; color: var(--ink); }
.detail-key .k { font-size: 12px; color: var(--ink-3); }
.detail-desc { font-size: 14.5px; color: var(--ink-2); white-space: pre-line; }
.detail-desc h3 { font-size: 16px; color: var(--ink); margin-bottom: 8px; }

.order-panel { padding: 24px; position: sticky; top: 84px; }
.order-panel h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.order-panel .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field textarea, .field input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 14px; font-family: inherit; outline: none;
  background: var(--surface); color: var(--ink); transition: border .15s ease, box-shadow .15s ease;
}
.field textarea:focus, .field input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(6, 182, 212, .14); }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.seg { display: flex; background: #f1f5f9; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1; border: none; background: transparent; font-family: inherit;
  padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; transition: all .15s ease;
}
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.match-score-box { margin-top: 14px; }
.match-result { margin-top: 14px; border-radius: 12px; padding: 12px 14px; font-size: 13px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.match-result.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- 订单页 ---------- */
.order-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.order-card { padding: 20px 22px; }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-card-title { display: flex; align-items: center; gap: 10px; }
.order-card-title h3 { font-size: 16px; font-weight: 700; }
.order-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.order-req { margin: 14px 0 4px; font-size: 13.5px; color: var(--ink-2); background: #f8fafc; border-radius: 10px; padding: 12px 14px; border: 1px solid #f1f5f9; }
.order-req b { color: var(--ink); }
.progress-wrap { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.progress { flex: 1; height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #22d3ee, #34d399);
  background-size: 200% 100%; animation: flow 2s linear infinite;
  transition: width .6s ease;
}
@keyframes flow { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
.progress-pct { font-size: 13px; font-weight: 700; color: var(--brand); min-width: 40px; text-align: right; }
.result-box { margin-top: 14px; background: #0f172a; color: #cbd5e1; border-radius: 12px; padding: 16px; font-size: 13px; white-space: pre-wrap; line-height: 1.7; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.result-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.result-head b { color: #67e8f9; }
.timeline { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: #e2e8f0; }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); flex-shrink: 0; margin-top: 4px; z-index: 1; box-shadow: 0 0 0 3px #e0f2fe; }
.tl-item.done .tl-dot { background: var(--ok); box-shadow: 0 0 0 3px #d1fae5; }
.tl-item .tl-body { font-size: 13px; }
.tl-item .tl-ev { font-weight: 600; color: var(--ink); }
.tl-item .tl-dt { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.tl-item .tl-det { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- 发布页 / 表单 ---------- */
.form-card { max-width: 760px; margin-top: 24px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-pick button {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 20px; cursor: pointer; transition: all .15s ease;
}
.emoji-pick button.active, .emoji-pick button:hover { border-color: var(--brand-2); background: #ecfeff; transform: scale(1.08); }

/* ---------- 规则页 ---------- */
.rule-page { max-width: 860px; margin: 0 auto; }
.rule-block { padding: 26px 28px; margin-top: 16px; }
.rule-block h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.rule-block p, .rule-block li { font-size: 14px; color: var(--ink-2); }
.rule-block ul { padding-left: 20px; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.rule-block .hl { color: var(--brand); font-weight: 700; }
.rule-block .hl-orange { color: var(--accent); font-weight: 700; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.fee-table th, .fee-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.fee-table th { background: #f8fafc; font-weight: 700; }

/* ---------- API 文档 ---------- */
.code-block {
  background: #0f172a; color: #cbd5e1; border-radius: 12px;
  padding: 14px 16px; font-size: 12.5px; line-height: 1.7;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; margin-top: 10px;
  overflow-x: auto;
}
.code-block .c { color: #64748b; }
.code-block .k { color: #67e8f9; }
.code-block .s { color: #a5b4fc; }
.method-tag { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 11.5px; border-radius: 6px; padding: 2px 8px; margin-right: 8px; }
.method-GET { background: #ecfdf5; color: #047857; }
.method-POST { background: #eff6ff; color: #1d4ed8; }
.api-endpoint { border-bottom: 1px dashed var(--line); padding: 14px 0; }
.api-endpoint:last-child { border-bottom: none; }
.api-endpoint .path { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; font-weight: 600; }
.api-endpoint .desc { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.api-params { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.api-params th, .api-params td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.api-params th { background: #f8fafc; font-weight: 700; }

/* ---------- 空状态 / 加载 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .ico { font-size: 44px; margin-bottom: 12px; }
.loading { text-align: center; padding: 40px; color: var(--ink-3); font-size: 14px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand-2); border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 76px; right: 20px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: #fff; border-radius: 12px; padding: 12px 18px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  animation: slideIn .25s ease; max-width: 360px;
}
.toast.error { background: #7f1d1d; }
.toast.success { background: #064e3b; }
.toast .t-ico { font-size: 16px; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .order-panel { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .steps-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-search { flex-direction: column; }
}
