/* ============================================================
   映创 AI 工具门户 · 首页样式
   深色科技风 + 现代软件商城
   色值 / 字号 / 间距严格按《视觉设计与实施规范》表 3-1/3-2/3-3
   ============================================================ */

:root {
  /* 色彩（表 3-1） */
  --bg:        #06080F;
  --bg-sub:    #0B1020;
  --card:      rgba(255,255,255,0.055);
  --card-solid:#121722;
  --line:      rgba(255,255,255,0.09);
  --blue:      #4C7DFF;
  --purple:    #8B5CF6;
  --cyan:      #38D9E8;
  --green:     #5FE3B6;
  --orange:    #FFC46B;
  --text:      #E9EDF7;
  --text-sub:  #8A94AB;
  --text-weak: #6C7790;

  /* 字号（表 3-2） */
  --fs-h1: 48px;
  --fs-page: 31px;
  --fs-sec: 24px;
  --fs-card: 17px;
  --fs-body: 14.5px;
  --fs-aux: 13px;
  --fs-min: 11px;

  /* 空间（表 3-3） */
  --content: 1200px;
  --gap: 18px;
  --radius: 16px;
  --radius-sm: 12px;
  --pad: 22px;
  --section-gap: 62px;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --mono: "Consolas", "SFMono-Regular", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* 内容宽度容器 */
.nav-inner, .hero-inner, .section, .footer-inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============ 01 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,8,15,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 66px;
  display: flex; align-items: center; gap: 40px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.nav-links { display: flex; gap: 30px; font-size: var(--fs-aux); color: var(--text-sub); }
.nav-links a { transition: color .18s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: var(--fs-aux); }
.nav-login { color: var(--text-sub); transition: color .18s; }
.nav-login:hover { color: var(--text); }
.nav-mine { color: var(--blue); }

/* ============ 02 首屏 ============ */
.hero { padding: 30px 0 4px; }
.hero-inner { text-align: center; }
.hero-tags { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.htag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-min); color: var(--text-sub);
  padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card);
}
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-green { background: var(--green); }
.dot-blue  { background: var(--blue); }
.dot-cyan  { background: var(--cyan); }

.hero-title {
  font-size: var(--fs-h1); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.grad {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: var(--fs-body); color: var(--text-sub); margin-bottom: 20px; }

.search-wrap { max-width: 720px; margin: 0 auto 26px; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow);
}
.s-icon { font-size: 19px; color: var(--text-weak); }
.search-box input {
  flex: 1; min-width: 0; height: 46px;
  background: none; border: none; outline: none;
  color: var(--text); font-size: var(--fs-body);
}
.search-box input::placeholder { color: var(--text-weak); }
.s-btn {
  height: 46px; padding: 0 30px; border-radius: 9px;
  color: #fff; font-size: var(--fs-body); font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transition: filter .18s;
}
.s-btn:hover { filter: brightness(1.08); }

.hot-words {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; margin-top: 11px;
  font-size: var(--fs-aux); color: var(--text-weak);
}
.hw-label { margin-right: 2px; }
.hw { color: var(--text-sub); padding: 3px 9px; border-radius: 6px; transition: all .18s; }
.hw:hover { color: var(--text); background: var(--card); }

/* ============ 通用区块 ============ */
.section { padding: var(--section-gap) 0 0; }
.sec-head { margin-bottom: 26px; }
.sec-title { font-size: var(--fs-sec); font-weight: 700; letter-spacing: .3px; }
.sec-desc { font-size: var(--fs-aux); color: var(--text-sub); margin-top: 6px; }

/* ============ 03 分类导航 ============ */
.feat-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.fh-title { flex-shrink: 0; }
.cat-bar { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: var(--fs-aux); color: var(--text-sub);
  transition: all .18s;
}
.cat-chip:hover { color: var(--text); border-color: rgba(76,125,255,.5); }
.cat-chip.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.cat-chip .cc-num { font-size: var(--fs-min); opacity: .75; font-family: var(--mono); }

/* ============ 04 精品推荐卡片 ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  display: flex; flex-direction: column;
  padding: var(--pad); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: all .18s; min-height: 214px;
}
.card:hover { border-color: rgba(76,125,255,.55); transform: translateY(-2px); }
.card-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.card-ico {
  width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 21px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, rgba(76,125,255,.9), rgba(139,92,246,.9));
  overflow: hidden;
}
.card-head { flex: 1; min-width: 0; }
.card-name { font-size: var(--fs-card); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.badge {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
  color: #1a1206; background: var(--orange); white-space: nowrap;
}
.badge.new { color: #06231a; background: var(--green); }
.card-sum { font-size: var(--fs-aux); color: var(--text-sub); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px;
}
.pf {
  font-size: var(--fs-min); color: var(--text-sub);
  padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.card-ver { font-size: var(--fs-min); color: var(--text-weak); font-family: var(--mono); margin-left: auto; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-size: var(--fs-aux); font-weight: 700; }
.price.free { color: var(--green); }
.price.paid { color: var(--orange); }
.btn-card {
  font-size: var(--fs-aux); font-weight: 600; color: #fff;
  padding: 9px 20px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transition: filter .18s;
}
.btn-card:hover { filter: brightness(1.08); }
.btn-card.link { background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-guide {
  font-size: var(--fs-aux); font-weight: 600; color: var(--green);
  padding: 9px 13px; border-radius: 9px;
  background: rgba(95,227,182,.1); border: 1px solid rgba(95,227,182,.3);
  transition: all .18s; white-space: nowrap;
}
.card-guide:hover { background: rgba(95,227,182,.18); }

/* 骨架屏 */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--card); min-height: 214px;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: sk 1.3s infinite;
}
@keyframes sk { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }

/* 空状态 */
.empty-state { text-align: center; padding: 56px 0; }
.empty-icon { font-size: 40px; color: var(--text-weak); margin-bottom: 14px; }
.empty-text { color: var(--text-sub); margin-bottom: 18px; }
.empty-btn {
  display: inline-block; font-size: var(--fs-aux); color: #fff;
  padding: 10px 22px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

/* ============ 05 最新上架列表 ============ */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr 1fr auto;
  align-items: center; gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: rgba(255,255,255,.03); }
.list-head { background: var(--bg-sub); font-size: var(--fs-min); color: var(--text-weak); }
.lr-name { display: flex; align-items: center; gap: 10px; font-size: var(--fs-aux); font-weight: 600; }
.lr-dot { width: 8px; height: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--purple)); }
.lr-cell { font-size: var(--fs-aux); color: var(--text-sub); }
.lr-cell.mono { font-family: var(--mono); font-size: var(--fs-min); }
.lr-act { font-size: var(--fs-aux); color: var(--blue); font-weight: 600; }

/* ============ 06 信任区 ============ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.trust-item {
  padding: var(--pad); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.trust-ico {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 15px;
  display: grid; place-items: center; font-size: 19px;
  color: var(--green); background: rgba(95,227,182,.1);
  border: 1px solid rgba(95,227,182,.25);
}
.trust-name { font-size: var(--fs-card); font-weight: 700; margin-bottom: 7px; }
.trust-desc { font-size: var(--fs-aux); color: var(--text-sub); }

/* ============ 07 需求留言 ============ */
.feedback { padding-bottom: 80px; }
.fb-card {
  display: flex; align-items: center; gap: 28px;
  padding: 34px 38px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(76,125,255,.14), rgba(139,92,246,.14));
  border: 1px solid rgba(76,125,255,.3);
}
.fb-body { flex: 1; }
.fb-title { font-size: var(--fs-sec); font-weight: 700; margin-bottom: 8px; }
.fb-desc { font-size: var(--fs-aux); color: var(--text-sub); }
.fb-btn {
  flex-shrink: 0; font-size: var(--fs-body); font-weight: 600; color: #fff;
  padding: 14px 32px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  transition: filter .18s;
}
.fb-btn:hover { filter: brightness(1.08); }

.fb-form { margin-top: 24px; padding: 30px 34px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); }
.fb-row { margin-bottom: 18px; }
.fb-label { display: block; font-size: var(--fs-aux); color: var(--text-sub); margin-bottom: 8px; }
.fb-input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--bg-sub); border: 1px solid var(--line);
  color: var(--text); font-size: var(--fs-body); outline: none;
  transition: border-color .18s;
}
.fb-input:focus { border-color: rgba(76,125,255,.6); }
.fb-input::placeholder { color: var(--text-weak); }
.fb-area { resize: vertical; }
.fb-actions { display: flex; gap: 12px; }
.btn-primary {
  font-size: var(--fs-body); font-weight: 600; color: #fff;
  padding: 12px 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.btn-ghost {
  font-size: var(--fs-body); color: var(--text-sub);
  padding: 12px 26px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.fb-ok { margin-top: 16px; font-size: var(--fs-aux); color: var(--green); }

/* ============ 08 页脚 ============ */
.footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 42px 0 60px; background: var(--bg-sub); }
.footer-inner { text-align: center; }
.ft-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 20px; font-size: var(--fs-aux); }
.ft-links a { color: var(--text-sub); transition: color .18s; }
.ft-links a:hover { color: var(--text); }
.ft-legal { font-size: var(--fs-min); color: var(--text-weak); line-height: 1.8; max-width: 900px; margin: 0 auto 16px; }
.ft-copy { font-size: var(--fs-min); color: var(--text-weak); }
.ft-copy a { color: var(--text-sub); }

/* ============ 移动端底部 Tab ============ */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(11,16,32,0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar .tb {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--text-weak); font-size: 10px;
}
.tabbar .tb.on { color: var(--blue); }
.tb-ico { font-size: 19px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: rgba(18,23,34,.96); border: 1px solid var(--line);
  color: var(--text); font-size: var(--fs-aux);
  padding: 12px 24px; border-radius: 10px; z-index: 999;
  opacity: 0; transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   响应式（表 8-1）
   ============================================================ */
@media (max-width: 1199px) {
  .nav-inner, .hero-inner, .section, .footer-inner { padding-left: 40px; padding-right: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .nav-inner, .hero-inner, .section, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  :root { --fs-h1: 40px; }
}
@media (max-width: 767px) {
  .nav-inner, .hero-inner, .section, .footer-inner { padding-left: 20px; padding-right: 20px; }
  :root { --fs-h1: 32px; --fs-sec: 21px; --fs-page: 24px; --section-gap: 40px; }
  .nav-right .nav-mine { display: none; }
  .hero { padding-top: 24px; }
  .cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .feat-head { gap: 12px; }
  .fh-title { width: 100%; }
  .cat-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; width: 100%; justify-content: flex-start; }
  .cat-chip { flex-shrink: 0; }
  .list-row { grid-template-columns: 2fr 1fr auto; gap: 10px; padding: 14px 16px; }
  .list-row .col-sm-hide { display: none; }
  .fb-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 24px; }
  .fb-form { padding: 24px 20px; }
  .tabbar { display: flex; }
  body { padding-bottom: 68px; }
  .footer { padding-bottom: 30px; }
}
@media (max-width: 399px) {
  .nav-inner, .hero-inner, .section, .footer-inner { padding-left: 16px; padding-right: 16px; }
  :root { --fs-h1: 28px; --fs-body: 13.5px; }
}

/* 工具 logo（可选） */
.card-logo { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; border-radius: 13px; }

/* ============ 广告位招商卡片 ============ */
.ad-card {
  position: absolute; top: 22px; right: 24px; z-index: 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 190px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,196,107,.12), rgba(139,92,246,.1));
  border: 1px solid rgba(255,196,107,.35);
  transition: all .18s;
}
.ad-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.ad-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--orange);
  padding: 2px 7px; border: 1px solid rgba(255,196,107,.4); border-radius: 4px;
}
.ad-title { font-size: var(--fs-card); font-weight: 700; color: var(--text); margin-top: 2px; }
.ad-desc { font-size: var(--fs-min); color: var(--text-sub); }
.ad-btn {
  font-size: var(--fs-aux); font-weight: 600; color: var(--orange); margin-top: 8px;
}
.hero { position: relative; }

/* ============ 联系方式弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-mask[hidden] { display: none; }
.modal-box {
  position: relative; width: 100%; max-width: 400px;
  background: var(--bg-sub); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 30px 30px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px;
  font-size: 22px; line-height: 1; color: var(--text-weak);
  background: rgba(255,255,255,.05);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.modal-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--orange);
  background: rgba(255,196,107,.12); border: 1px solid rgba(255,196,107,.35);
}
.modal-title { font-size: 20px; font-weight: 700; }
.modal-sub { font-size: var(--fs-aux); color: var(--text-sub); margin-top: 3px; }
.modal-body { text-align: center; }
.contact-label { font-size: var(--fs-aux); color: var(--text-sub); margin-bottom: 8px; }
.contact-phone {
  display: block; font-size: 28px; font-weight: 700; color: var(--green);
  font-family: var(--mono); letter-spacing: 1px;
}
.contact-phone:hover { text-decoration: underline; }
.contact-hint { font-size: var(--fs-min); color: var(--text-weak); margin-top: 4px; }
.contact-divider { height: 1px; background: var(--line); margin: 22px 0; }
.contact-qr {
  width: 200px; height: 200px; object-fit: contain;
  margin: 0 auto; border-radius: 10px; background: #fff; padding: 6px;
}

@media (max-width: 1023px) {
  .ad-card { position: static; width: auto; margin: 0 20px 18px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  .ad-btn { margin-top: 0; margin-left: auto; }
  .ad-desc { width: 100%; }
}
@media (max-width: 399px) {
  .ad-card { margin: 0 16px 16px; padding: 13px 15px; }
  .contact-phone { font-size: 24px; }
  .contact-qr { width: 170px; height: 170px; }
}

/* ============ 访问计数 ============ */
.visit-count {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: var(--fs-aux); color: var(--text-sub);
}
.visit-count b { color: var(--green); font-family: var(--mono); font-weight: 700; }
.vc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(95,227,182,.15);
}

/* ============ 赚点零花推广横幅 ============ */
.hero-earn { max-width: 860px; margin: 4px auto 0; text-align: left; }
.search-section { padding-top: 30px; }
.search-section .search-wrap { margin-bottom: 0; }
.earn-section { padding-top: 26px; }
.earn-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 30px; border-radius: 18px;
  background: linear-gradient(115deg, rgba(95,227,182,.13), rgba(56,217,232,.09) 60%, rgba(76,125,255,.08));
  border: 1px solid rgba(95,227,182,.32);
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.earn-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 22px 60px rgba(0,0,0,.55); }
.earn-main { min-width: 0; }
.earn-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--green); padding: 3px 9px; border: 1px solid rgba(95,227,182,.45); border-radius: 5px;
}
.earn-title { font-size: 21px; font-weight: 700; margin-top: 10px; }
.earn-desc { font-size: var(--fs-body); color: var(--text-sub); margin-top: 6px; }
.earn-points { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.earn-points span { font-size: var(--fs-aux); color: var(--green); }
.earn-note { font-size: var(--fs-min); color: var(--text-weak); margin-top: 10px; }
.earn-cta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.earn-amount { font-size: 22px; font-weight: 700; color: var(--green); font-family: var(--mono); }
.earn-btn {
  margin-top: 12px; padding: 11px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green), #38bfa0);
  color: #04271e; font-size: var(--fs-card); font-weight: 700;
}
.earn-hint { font-size: 10px; color: var(--text-weak); margin-top: 8px; }
@media (max-width: 767px) {
  .earn-card { flex-direction: column; align-items: stretch; padding: 22px 20px; gap: 18px; }
  .earn-cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .earn-btn { margin-top: 0; }
  .earn-title { font-size: 18px; }
  .earn-points { gap: 12px; }
}

/* ============ 选型指南入口 ============ */
.guides .sec-head { margin-bottom: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.guide-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line);
  transition: all .18s;
}
.guide-card:hover { border-color: var(--blue); transform: translateY(-2px); background: rgba(76,125,255,.07); }
.gc-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--blue);
  padding: 2px 8px; border: 1px solid rgba(76,125,255,.4); border-radius: 4px;
}
.gc-title { font-size: var(--fs-card); font-weight: 700; line-height: 1.5; margin: 12px 0 8px; }
.gc-sum { font-size: var(--fs-aux); color: var(--text-sub); line-height: 1.7; flex: 1; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.gc-tag {
  font-size: var(--fs-min); color: var(--text-sub);
  padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.gc-go { font-size: var(--fs-aux); font-weight: 600; color: var(--blue); }
@media (max-width: 767px) { .guide-grid { grid-template-columns: 1fr; } }

/* ============ 热门订阅推广横幅 ============ */
.sub-section { padding-top: 26px; }
.sub-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border-radius: 18px;
  background: linear-gradient(115deg, rgba(255,196,107,.14), rgba(139,92,246,.12) 55%, rgba(76,125,255,.1));
  border: 1px solid rgba(255,196,107,.3);
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.sub-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 22px 60px rgba(0,0,0,.55); }
.sub-main { min-width: 0; }
.sub-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--orange); padding: 3px 9px; border: 1px solid rgba(255,196,107,.45); border-radius: 5px;
}
.sub-title { font-size: 22px; font-weight: 700; margin-top: 10px; }
.sub-services { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.sub-services span {
  font-size: var(--fs-min); color: var(--text); background: rgba(255,255,255,.07);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.sub-note { font-size: var(--fs-min); color: var(--text-weak); margin-top: 12px; }
.sub-cta { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.sub-price { font-size: 26px; font-weight: 700; color: var(--orange); font-family: var(--mono); line-height: 1.1; }
.sub-btn {
  margin-top: 12px; padding: 11px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ff9f6b);
  color: #1a1206; font-size: var(--fs-card); font-weight: 700;
}
.sub-hint { font-size: 10px; color: var(--text-weak); margin-top: 8px; }
@media (max-width: 767px) {
  .sub-card { flex-direction: column; align-items: stretch; padding: 22px 20px; gap: 18px; }
  .sub-cta { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .sub-btn { margin-top: 0; }
  .sub-title { font-size: 19px; }
}
