:root {
  --bg: #0a0a0f;
  --bg-soft: #111118;
  --card: #15151f;
  --card-hover: #1b1b28;
  --border: #26263a;
  --text: #e8e8f0;
  --text-dim: #9a9ab0;
  --cyan: #22d3ee;
  --magenta: #e879f9;
  --gold: #fbbf24;
  --green: #34d399;
  --grad: linear-gradient(135deg, var(--cyan), var(--magenta));
}

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

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(34,211,238,.10), transparent 62%),
    radial-gradient(900px 500px at 4% 10%, rgba(232,121,249,.08), transparent 60%),
    radial-gradient(780px 520px at 50% 112%, rgba(251,191,36,.05), transparent 62%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

::selection { background: rgba(34,211,238,.28); color: #fff; }

a { color: inherit; text-decoration: none; }

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

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.logo .dot { color: var(--cyan); }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); }
.nav-links a { position: relative; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .2s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--grad); color: #000; transition: box-shadow .18s, transform .18s;
}
.nav-cta:hover { box-shadow: 0 6px 20px rgba(34,211,238,.35); transform: translateY(-1px); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-dim); font-size: 17px; max-width: 620px; margin: 0 auto 32px; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tag {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--border); color: var(--text-dim);
}
.tag.hot { border-color: rgba(34,211,238,.4); color: var(--cyan); }

/* 区块标题 */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.section-head span { color: var(--text-dim); font-size: 14px; }

/* 工具卡片墙 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
  display: block; position: relative;
}
.card:hover {
  background: var(--card-hover); border-color: rgba(34,211,238,.42);
  transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(34,211,238,.12);
}
.card .icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.13), rgba(232,121,249,.13));
  border: 1px solid rgba(34,211,238,.18);
  transition: transform .18s, box-shadow .18s;
}
.card:hover .icon { transform: scale(1.07); box-shadow: 0 0 24px rgba(34,211,238,.24); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--text-dim); }
.card .badge {
  position: absolute; top: 18px; right: 18px; font-size: 11px; padding: 2px 8px;
  border-radius: 6px; background: rgba(52,211,153,.12); color: var(--green);
}
.card .badge.soon { background: rgba(251,191,36,.12); color: var(--gold); }
.card.locked { opacity: .55; cursor: not-allowed; }
.card.locked:hover { transform: none; border-color: var(--border); background: var(--card); }

/* 定制区 */
.cta-box {
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(232,121,249,.08));
  border: 1px solid var(--border); border-radius: 16px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-box h2 { font-size: 22px; margin-bottom: 8px; }
.cta-box p { color: var(--text-dim); font-size: 14px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)); color: #000; white-space: nowrap;
}
.btn:hover { opacity: .9; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* 工具页通用 */
.tool-body { padding: 40px 0 80px; }
.tool-back { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; display: inline-block; }
.tool-back:hover { color: var(--text); }
.tool-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .tool-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.btn-primary {
  width: 100%; padding: 12px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)); color: #000;
  font-size: 15px; font-weight: 700;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.result { margin-top: 16px; }
.result img { width: 100%; border-radius: 10px; border: 1px solid var(--border); }
.result .actions { display: flex; gap: 10px; margin-top: 12px; }
.result .actions a, .result .actions button {
  flex: 1; text-align: center; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); cursor: pointer;
}
.error { color: #f87171; font-size: 13px; margin-top: 12px; }
.loading { color: var(--cyan); font-size: 14px; margin-top: 12px; }
.prompt-box { margin-top: 12px; font-size: 12px; color: var(--text-dim); background: var(--bg-soft); border-radius: 8px; padding: 10px; word-break: break-all; display: none; }

/* ============ 品牌视觉系统（门户精修） ============ */

/* Hero 光晕装饰 */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -120px; transform: translateX(-50%);
  width: 680px; height: 340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(34,211,238,.16), rgba(232,121,249,.08) 55%, transparent 75%);
  filter: blur(30px);
}

/* 信任数字条 */
.trust-bar {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.trust-item { text-align: center; }
.trust-item .num { font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-item .label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* 商城卡片图标容器（覆盖 shop 页 inline 定义） */
.shop-card .icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34,211,238,.13), rgba(232,121,249,.13));
  border: 1px solid rgba(34,211,238,.18);
  transition: transform .18s, box-shadow .18s;
}
.shop-card:hover .icon { transform: scale(1.07); box-shadow: 0 0 24px rgba(34,211,238,.24); }
.shop-card { transition: border-color .18s, transform .18s, box-shadow .18s, background .18s; }
.shop-card:not(.custom-state):not(.soon-state):hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(34,211,238,.12);
}

/* 入口卡（首页三条业务线）图标容器 */
.entry-card .num {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--cyan);
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.18); margin-bottom: 12px;
}
.entry-card .go { transition: transform .18s; }
.entry-card:hover .go { transform: translateX(4px); }

/* 按钮微交互 */
.btn:hover { box-shadow: 0 8px 24px rgba(34,211,238,.35); transform: translateY(-1px); }
.btn { transition: box-shadow .18s, transform .18s, opacity .18s; }

/* 响应式：移动端标题字号 */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .trust-bar { gap: 24px; }
}
