/* ============================================
   顺为凌峰 · 数字创意软件信息站
   全新 UI: 深空导航 + 靛紫渐变 + 卡片化版式
   ============================================ */

:root {
  --color-primary: #4338CA;
  --color-primary-dark: #3730A3;
  --color-primary-light: #818CF8;
  --color-accent: #7C3AED;
  --color-accent-dark: #5B21B6;
  --color-text: #1E2235;
  --color-text-light: #6B7280;
  --color-bg: #F5F6FA;
  --color-bg-soft: #EEF0F7;
  --color-bg-section: #F5F6FA;
  --color-bg-dark: #12142B;
  --color-border: #E3E6F0;
  --color-danger: #DC2626;
  --color-success: #059669;
  --color-warning: #D97706;
  --shadow-sm: 0 1px 3px rgba(23, 26, 56, .07), 0 1px 2px rgba(23, 26, 56, .05);
  --shadow: 0 4px 14px rgba(23, 26, 56, .09);
  --shadow-lg: 0 18px 48px rgba(23, 26, 56, .16);
  --grad-brand: linear-gradient(135deg, #4338CA 0%, #7C3AED 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}
a { color: var(--color-primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.4; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--color-text); }
table { border-collapse: collapse; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: #1B1E44;
  color: #AEB4DE;
  font-size: 12.5px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 14px; }
.topbar-links a, .topbar-info span { color: #AEB4DE; }
.topbar-links a:hover { color: #fff; }

/* ---------- 导航栏 ---------- */
.navbar {
  background: var(--color-bg-dark);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 14px rgba(10, 12, 34, .35);
}
.navbar-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .5px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav-list a {
  display: block;
  color: #C6CAEE;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .18s;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-list a.active {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(93, 76, 236, .4);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions a { color: #C6CAEE; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-actions a:hover { color: #fff; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 15%, rgba(124, 58, 237, .4), transparent 65%),
    radial-gradient(500px 280px at 10% 90%, rgba(67, 56, 202, .5), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: #E4E1FF;
}
.hero-title { font-size: 40px; line-height: 1.25; margin-bottom: 18px; letter-spacing: .5px; }
.hero-title .hl {
  background: linear-gradient(100deg, #A78BFA 0%, #67E8F9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: 15.5px; color: rgba(235, 236, 255, .82); line-height: 1.9; margin-bottom: 24px; max-width: 560px; }
.hero-search { display: flex; max-width: 480px; margin-bottom: 22px; background: #fff; border-radius: 12px; padding: 5px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: none; outline: none; padding: 10px 14px; font-size: 14.5px; background: transparent; color: var(--color-text); box-shadow: none; }
.hero-search button { border: none; background: var(--grad-brand); color: #fff; font-size: 14.5px; font-weight: 600; padding: 10px 22px; border-radius: 9px; transition: opacity .18s; }
.hero-search button:hover { opacity: .88; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
  display: block;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 20px 18px;
  color: #fff;
  transition: all .2s;
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .13); color: #fff; border-color: rgba(167, 139, 250, .6); }
.hero-card .ic { font-size: 26px; margin-bottom: 10px; }
.hero-card .ttl { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.hero-card .desc { font-size: 12.5px; color: rgba(230, 231, 255, .72); line-height: 1.7; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .18s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 13px 30px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(84, 68, 226, .32);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 8px 20px rgba(84, 68, 226, .42); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: var(--color-bg-soft); color: var(--color-text); }
.btn-ghost:hover { background: #E1E4F0; color: var(--color-primary); }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.section-title h2 { font-size: 24px; position: relative; padding-left: 16px; }
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 4px;
  background: var(--grad-brand);
}
.section-title small { display: block; font-size: 13px; color: var(--color-text-light); font-weight: 400; margin-top: 4px; }
.section-title > a { font-size: 14px; color: var(--color-primary); font-weight: 500; }

/* ---------- 栅格 / 卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }

/* ---------- 入口按钮墙 ---------- */
.entry-btn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.entry-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  overflow: hidden;
  transition: all .2s;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.entry-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(64, 52, 190, .14); border-color: var(--bc, var(--color-primary)); color: var(--color-text); }
.entry-btn-glow {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bc2, var(--color-accent));
  opacity: .1;
  transition: all .25s;
}
.entry-btn:hover .entry-btn-glow { transform: scale(1.5); opacity: .18; }
.entry-btn-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bc, var(--color-primary)) 0%, var(--bc2, var(--color-accent)) 100%);
  box-shadow: 0 6px 14px rgba(64, 52, 190, .25);
}
.entry-btn-text { flex: 1; min-width: 0; }
.entry-btn-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.entry-btn-desc { display: block; font-size: 12px; color: var(--color-text-light); line-height: 1.55; }
.entry-btn-arrow { color: var(--bc, var(--color-primary)); font-weight: 700; transition: transform .2s; }
.entry-btn:hover .entry-btn-arrow { transform: translateX(3px); }

/* ---------- 内容卡片 ic-card ---------- */
.ic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-text);
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.ic-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(64, 52, 190, .14); color: var(--color-text); border-color: var(--band-color, var(--color-primary)); }
.ic-card-band { height: 4px; background: var(--band-color, var(--grad-brand)); flex-shrink: 0; }
.ic-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; gap: 10px; }
.ic-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--band-soft, var(--color-bg-soft));
  color: var(--band-color, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ic-card-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ic-card-tag {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--band-soft, var(--color-bg-soft));
  color: var(--band-color, var(--color-primary));
  font-weight: 500;
  white-space: nowrap;
}
.ic-card-tag.muted { background: var(--color-bg-soft); color: var(--color-text-light); }
.ic-card-tag.accent { background: #FEF3C7; color: #92400E; }
.ic-card-body { padding: 14px 18px; flex: 1; }
.ic-card-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.ic-card-summary {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.ic-card-metric { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 10px; gap: 8px; }
.ic-card-metric .lbl { color: var(--color-text-light); }
.ic-card-metric .val { font-weight: 700; color: var(--color-text); }
.ic-card-metric .val.price { color: var(--color-danger); font-size: 14px; }
.ic-card-metric .val.region { color: var(--color-text-light); font-weight: 500; font-size: 12px; }
.ic-card-stars { color: #F59E0B; letter-spacing: 1px; }
.ic-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--color-text-light); flex-wrap: wrap; }
.ic-card-meta .dot::before { content: "·"; margin-right: 10px; color: var(--color-border); }
.ic-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--color-border);
  background: #FAFAFE;
}
.ic-card-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ic-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic-card-author-name { font-size: 12.5px; color: var(--color-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-card-cta { font-size: 12.5px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.ic-card:hover .ic-card-cta { color: var(--color-accent); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 13.5px;
  color: var(--color-text-light);
  font-weight: 500;
  transition: all .18s;
}
.tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(84, 68, 226, .3); }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--color-border); font-size: 13px; padding: 12px 0; }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: #C4C8DC; }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* ---------- 详情页 ---------- */
.detail-hero { color: #fff; padding: 52px 0; position: relative; overflow: hidden; }
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 88% 10%, rgba(255, 255, 255, .14), transparent 60%);
  pointer-events: none;
}
.detail-hero .container { position: relative; }
.detail-hero h1 { font-size: 28px; margin-bottom: 14px; line-height: 1.35; }
.crumb { font-size: 13px; margin-bottom: 18px; color: rgba(255, 255, 255, .75); }
.crumb a { color: rgba(255, 255, 255, .75); }
.crumb a:hover { color: #fff; }
.crumb .sep { margin: 0 8px; color: rgba(255, 255, 255, .4); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.pill.soft { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .85); }

.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.detail-toc {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.detail-toc strong { font-size: 13.5px; margin-right: 4px; }
.detail-toc a { color: var(--color-text-light); padding: 3px 10px; border-radius: 999px; background: var(--color-bg-soft); }
.detail-toc a:hover { background: var(--color-primary); color: #fff; }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dblock { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.dblock p { color: #374151; line-height: 1.9; font-size: 14.5px; margin-bottom: 10px; }
.dblock ul { padding-left: 4px; margin: 8px 0; }
.dblock ul li { position: relative; padding-left: 20px; color: #374151; line-height: 1.9; font-size: 14px; margin-bottom: 4px; }
.dblock ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--band-color, var(--color-primary)); transform: rotate(45deg); }
.dblock h4 { font-size: 15px; margin: 16px 0 8px; color: var(--color-text); }
.dblock-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.dblock-title .ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--band-soft, var(--color-bg-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.score-board { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
.score-board .big { text-align: center; padding: 20px; border-radius: var(--radius); background: var(--band-soft, var(--color-bg-soft)); }
.score-board .num { font-size: 42px; font-weight: 800; color: var(--band-color, var(--color-primary)); line-height: 1.1; }
.score-board .lbl { font-size: 12.5px; color: var(--color-text-light); margin: 4px 0 8px; }
.score-board .stars { color: #F59E0B; letter-spacing: 2px; }
.score-row { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.score-row .name { color: var(--color-text-light); }
.score-row .bar { height: 8px; border-radius: 999px; background: var(--color-bg-soft); overflow: hidden; }
.score-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }
.score-row .v { font-weight: 700; text-align: right; color: var(--band-color, var(--color-primary)); }

.spec-table { width: 100%; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th { text-align: left; padding: 10px 12px 10px 0; color: var(--color-text-light); font-weight: 500; width: 140px; vertical-align: top; }
.spec-table td { padding: 10px 0; color: var(--color-text); font-weight: 500; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pros-cons .col { border-radius: var(--radius-sm); padding: 16px 18px; }
.pros-cons .pros { background: #ECFDF5; }
.pros-cons .cons { background: #FEF2F2; }
.pros-cons h5 { font-size: 14px; margin-bottom: 10px; }
.pros-cons .pros h5 { color: #047857; }
.pros-cons .cons h5 { color: #B91C1C; }
.pros-cons li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.8; color: #374151; margin-bottom: 4px; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 700; }
.pros-cons .cons li::before { content: "✗"; position: absolute; left: 0; color: #DC2626; font-weight: 700; }

.fit-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.fit-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--band-soft, var(--color-bg-soft));
  color: var(--band-color, var(--color-primary));
  font-weight: 500;
}

.publish-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.publish-info .item { display: flex; gap: 8px; align-items: baseline; background: var(--color-bg-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.publish-info .k { color: var(--color-text-light); white-space: nowrap; }
.publish-info .v { color: var(--color-text); font-weight: 600; word-break: break-all; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--color-border); }

.detail-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.aside-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-size: 15px; margin-bottom: 14px; }
.aside-author { text-align: center; }
.aside-author .avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.aside-author .name { font-weight: 700; font-size: 15px; }
.aside-author .role { font-size: 12px; color: var(--color-text-light); margin: 2px 0 6px; }
.aside-rel { display: block; padding: 10px 0; border-bottom: 1px dashed var(--color-border); color: var(--color-text); }
.aside-rel:last-child { border-bottom: none; }
.aside-rel .t { font-size: 13.5px; font-weight: 500; line-height: 1.6; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aside-rel:hover .t { color: var(--color-primary); }
.aside-rel .m { font-size: 12px; color: var(--color-text-light); }
.aside-cta { background: var(--grad-brand); border-radius: var(--radius); padding: 20px; color: #fff; }
.aside-cta h4 { font-size: 15.5px; margin-bottom: 8px; color: #fff; }
.aside-cta p { font-size: 12.5px; color: rgba(255, 255, 255, .85); line-height: 1.7; margin-bottom: 14px; }
.aside-cta .btn { background: #fff; color: var(--color-primary); width: 100%; font-weight: 700; }
.aside-cta .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); color: var(--color-primary); }

.loading { color: var(--color-text-light); text-align: center; padding: 40px; font-size: 14px; }

/* ---------- 搜索结果卡 ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card-meta { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.info-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--color-text-light); line-height: 1.7; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  background: var(--color-bg-soft);
  color: var(--color-text-light);
  font-weight: 500;
}
.tag-primary { background: #E4E1FB; color: var(--color-primary); }
.tag-success { background: #D1FAE5; color: #065F46; }
.tag-warn { background: #FEF3C7; color: #92400E; }
.tag-danger { background: #FEE2E2; color: #991B1B; }
.tag-info { background: #E0E7FF; color: #3730A3; }
.tag-default { background: var(--color-bg-soft); color: var(--color-text-light); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, .13);
}
textarea { resize: vertical; min-height: 80px; }
.form-help { font-size: 12px; color: var(--color-text-light); margin-top: 5px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.radio-item, .checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
}
.radio-item.checked, .checkbox-item.checked { border-color: var(--color-primary); background: #F4F3FE; }
.radio-item input, .checkbox-item input { width: auto; margin-top: 3px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 38, .55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask.active { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 26px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-soft);
  border-radius: 50%;
  color: var(--color-text-light);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--color-border); color: var(--color-text); }
.modal-title { font-size: 18px; margin: 0 0 18px; font-weight: 700; }
.modal-body { font-size: 14px; }
.modal-amount { font-weight: 600; }
.modal-tip { font-size: 13px; }
.modal-actions { margin-top: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 16px);
  background: #26294A;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: linear-gradient(135deg, #059669, #10B981); }
.toast.error { background: linear-gradient(135deg, #DC2626, #EF4444); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-bg-dark);
  color: #A6ABD3;
  padding: 52px 0 0;
  margin-top: 24px;
  font-size: 13.5px;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer h4::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 3px; background: var(--grad-brand); }
.footer p { line-height: 1.9; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.footer-info p { font-size: 13px; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { color: #A6ABD3; }
.footer-list a:hover { color: #fff; padding-left: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7B80B0;
}
.footer-bottom .beian { color: #A6ABD3; }
.footer-bottom .beian:hover { color: #fff; }

/* ---------- 工具类 ---------- */
.text-sm { font-size: 13px; }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-mono { font-family: Consolas, "Courier New", monospace; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------- 响应式 ---------- */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav-list a { padding: 8px 9px; font-size: 13.5px; }
  .brand-text { max-width: 200px; }
  .navbar-inner { gap: 10px; }
}
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .entry-btn-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 30px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu-btn { display: block; margin-left: auto; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 6px;
    box-shadow: 0 14px 24px rgba(10, 12, 34, .4);
  }
  .nav-list.mobile-open { display: flex; }
  .nav-list a { padding: 11px 14px; border-radius: 10px; }
  .nav-actions { margin-left: 0; }
  .navbar-inner { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .entry-btn-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 20px; }
  .score-board { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .publish-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search button { width: 100%; }
}
@media (max-width: 520px) {
  .entry-btn-grid { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: 1fr; }
  .topbar-info { gap: 10px; }
}


/* ==========================================================
   Legal Document Pages (协议/政策/规则)
   ========================================================== */
.doc-hero {
  position: relative;
  background: linear-gradient(120deg, #14173B 0%, #312E81 55%, #4C1D95 100%);
  border-radius: var(--radius-lg, 20px);
  padding: 44px 40px;
  color: #fff;
  overflow: hidden;
  margin-bottom: 26px;
}
.doc-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 88% 10%, rgba(124,58,237,.55), transparent 65%),
              radial-gradient(360px 200px at 6% 95%, rgba(67,56,202,.55), transparent 65%);
  pointer-events: none;
}
.doc-hero-icon {
  width: 54px; height: 54px; border-radius: 15px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.doc-hero h1 { color: #fff; font-size: 26px; margin: 0 0 10px; letter-spacing: 1px; }
.doc-hero .doc-lead { color: #C9C6F2; font-size: 14.5px; line-height: 1.8; max-width: 640px; margin: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; position: relative; }
.doc-meta span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #E4E1FF; font-size: 12.5px;
  padding: 5px 14px; border-radius: 999px;
}
.doc-layout { display: grid; grid-template-columns: 212px 1fr; gap: 28px; align-items: start; }
.doc-toc {
  position: sticky; top: 86px;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 16px; padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.doc-toc .toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--color-text-light); text-transform: uppercase;
  margin: 0 0 12px; padding-left: 2px;
}
.doc-toc a {
  display: block; padding: 7px 10px; border-radius: 9px;
  color: var(--color-text-light); font-size: 13.5px;
  text-decoration: none; transition: all .16s; line-height: 1.5;
}
.doc-toc a:hover { background: #F1EFFF; color: #4338CA; }
.doc-body {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 20px; padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}
.doc-body .clause { padding: 22px 0; border-bottom: 1px dashed var(--color-border); }
.doc-body .clause:first-child { padding-top: 0; }
.doc-body .clause:last-of-type { border-bottom: none; padding-bottom: 0; }
.clause-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.clause-no {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #4338CA, #7C3AED);
  color: #fff; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(84,68,226,.3);
}
.clause-head h2 { font-size: 17.5px; margin: 0; }
.clause p { line-height: 1.9; color: var(--color-text-light); font-size: 14.5px; margin: 0; }
.clause ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; color: var(--color-text-light); font-size: 14.5px; }
.doc-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #F4F3FE, #FAF9FF);
  border: 1px solid #DDD8F8; border-radius: 14px;
  padding: 16px 18px; margin: 22px 0 0;
}
.doc-tip .tip-ic { font-size: 20px; line-height: 1.3; }
.doc-tip p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #5551A8; }
.doc-contact {
  background: linear-gradient(120deg, #1E1B4B 0%, #312E81 100%);
  border-radius: 18px; padding: 26px 30px; margin-top: 26px;
  color: #fff; display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.doc-contact h3 { color: #fff; font-size: 16px; margin: 0 0 6px; }
.doc-contact p { color: #B9BCE8; font-size: 13.5px; margin: 0; line-height: 1.8; }
.doc-contact .doc-links { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #E4E1FF; }
.doc-links b { color: #fff; font-weight: 600; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-body { padding: 24px 20px; }
  .doc-hero { padding: 32px 24px; }
}
