/* ================================================================
   首页（各国近 30 天销售额）· home.css
   ----------------------------------------------------------------
   只在 home.html 里加载，不改动 style.css：复用其中的 :root 变量、
   .brand / .logo-img / .curbox / .sess-banner / .muted 等基础样式。
   所有类名都用 h- 前缀或首页专属名，避免与 style.css 撞车。
   ================================================================ */

/* 首页用干净白底（覆盖 style.css 里 body 的光晕图） */
body.home {
  background: #fff;
  background-image: none;
  font-size: 14px;
}

/* ---------------- 按钮 ---------------- */
.btn-grad {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: none; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: inherit;
  font-size: 14px; font-weight: 700; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-primary); transition: filter .15s, transform .15s;
}
.btn-grad:hover { filter: brightness(1.06); }
.btn-grad:active { transform: translateY(1px); }
/* 顶栏「进入数据看板」：未登录时由 member.js 置 hidden（.btn-grad 是 inline-flex，需显式覆盖） */
#hdrDash[hidden] { display: none !important; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid var(--border-strong);
  border-radius: 12px; background: #fff; color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.btn-line:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 14px; }

/* ---------------- 顶栏 ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr-in {
  max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
}
.hdr .brand { text-decoration: none; color: var(--text); }
.hnav { display: flex; gap: 22px; }
.hnav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.hnav a:hover { color: var(--primary); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 68px 24px 48px; text-align: center; }
.hero::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: -220px; height: 680px;
  background:
    radial-gradient(560px 300px at 20% 42%, rgba(30, 111, 255, .17), transparent 70%),
    radial-gradient(520px 300px at 80% 30%, rgba(123, 92, 255, .16), transparent 70%),
    radial-gradient(760px 340px at 50% 12%, rgba(30, 111, 255, .11), transparent 72%);
  pointer-events: none;
}
.hero-in { position: relative; max-width: 980px; margin: 0 auto; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255, 255, 255, .8); color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.hero-chip i {
  width: 7px; height: 7px; border-radius: 50%; background: #12b76a;
  box-shadow: 0 0 0 0 rgba(18, 183, 106, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .55); }
  70% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}
.hero h1 {
  margin: 22px 0 0; font-size: clamp(32px, 5.1vw, 54px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.6px;
}
.grad-txt {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hero-sub {
  max-width: 640px; margin: 18px auto 0; font-size: 16px; line-height: 1.75; color: var(--muted);
}
.hero-search {
  display: flex; gap: 10px; max-width: 640px; margin: 30px auto 0;
}
.hero-search input {
  flex: 1; height: 52px; padding: 0 18px; font-family: inherit; font-size: 14.5px;
  color: var(--text); background: #fff; border: 1px solid var(--border-strong);
  border-radius: 14px; outline: none; box-shadow: var(--shadow-sm); transition: all .15s;
}
.hero-search input::placeholder { color: #98a2b3; }
.hero-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30, 111, 255, .12); }
.hero-search .btn-grad { height: 52px; border-radius: 14px; padding: 0 24px; font-size: 15px; }
.hero-hot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-hot button {
  padding: 6px 13px; font-family: inherit; font-size: 12.5px; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all .15s;
}
.hero-hot button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Hero 下的注册 / 登录快捷入口 */
.hero-auth {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  margin-top: 16px; font-size: 13.5px; color: var(--muted);
}
.hero-auth .sep { margin: 0 6px; color: var(--border-strong); }
.hero-auth .link-btn {
  border: none; background: transparent; padding: 2px 4px; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--primary); cursor: pointer;
  border-radius: 6px; transition: background .15s;
}
.hero-auth .link-btn:hover { background: var(--primary-soft); }

.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------------- 通用区块 ---------------- */
.sec { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.sec-hd { margin-bottom: 22px; }
.sec-hd h2 { font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.sec-hd p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.sec-hd p b { color: var(--text); }

/* ---------------- 销售额图表 ---------------- */
.chart-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px 18px; box-shadow: var(--shadow-md);
}
.chart-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.chart-total .ct-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.chart-total .ct-n {
  margin-top: 6px; font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -1px; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.chart-total .ct-s { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.unit-seg { display: flex; gap: 2px; background: #eef1f7; padding: 3px; border-radius: 10px; }
.unit-seg button {
  border: none; background: transparent; padding: 7px 15px; border-radius: 8px;
  cursor: pointer; font-family: inherit; font-size: 13px; color: var(--muted);
  font-weight: 500; transition: all .15s; white-space: nowrap;
}
.unit-seg button:hover { color: var(--text); }
.unit-seg button.on {
  background: #fff; color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm);
}

/* 横向条形图 */
.hbars { padding: 16px 0 4px; }
.hb {
  display: grid;
  grid-template-columns: 22px 22px 82px minmax(0, 1fr) 96px 56px;
  align-items: center; gap: 10px;
  padding: 7px 0; text-decoration: none; color: inherit;
  border-radius: 8px; transition: background .12s;
}
.hb:hover { background: #f7f9fd; }
.hb-rank {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-align: center; font-variant-numeric: tabular-nums;
}
.hb:nth-child(-n+3) .hb-rank { color: var(--primary); }
.hb-flag { font-size: 16px; line-height: 1; text-align: center; }
.hb-name {
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hb-track { display: block; height: 12px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.hb-fill {
  display: block; height: 12px; min-width: 3px; border-radius: 999px;
  background: linear-gradient(90deg, #1e6fff 0%, #7b5cff 100%);
  transition: width .5s cubic-bezier(.22, .61, .36, 1);
}
.hb-val {
  font-size: 13px; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hb-share {
  font-size: 11.5px; color: var(--muted); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chart-note {
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.75; color: var(--muted);
}

.skel {
  height: 34px; margin-bottom: 8px; border-radius: 10px;
  background: linear-gradient(90deg, #f1f4f9, #e8edf5, #f1f4f9);
  background-size: 200% 100%; animation: sk 1.3s infinite linear;
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- 功能卡 ---------------- */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard {
  padding: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-sm); transition: all .18s;
}
.fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfe0ff; }
.ficon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft);
  display: grid; place-items: center;
}
.ficon svg {
  width: 20px; height: 20px; fill: none; stroke: var(--primary);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ficon img { width: 34px; height: 34px; display: block; }
.fcard h3 { margin: 14px 0 8px; font-size: 16px; font-weight: 700; }
.fcard p { min-height: 68px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.fcard a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.fcard a:hover { text-decoration: underline; }

/* ---------------- 覆盖站点 ---------------- */
.rgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rcard {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: inherit; transition: all .15s;
}
.rcard:hover { border-color: var(--primary); background: var(--primary-soft); }
.rcard .fl { font-size: 20px; line-height: 1; }
.rcard .rn { font-size: 14px; font-weight: 600; }
.rcard .rc { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------------- FAQ ---------------- */
.faq details {
  margin-bottom: 10px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }

/* ---------------- CTA ---------------- */
.cta {
  width: calc(100% - 48px); max-width: 1072px; margin: 10px auto 60px;
  padding: 46px 32px; border-radius: 22px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1e6fff 0%, #7b5cff 100%);
  box-shadow: 0 18px 40px -18px rgba(30, 111, 255, .55);
}
.cta h2 { font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.cta p { max-width: 620px; margin: 12px auto 0; font-size: 14.5px; line-height: 1.75; color: rgba(255, 255, 255, .88); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.cta .btn-grad { background: #fff; color: var(--primary); box-shadow: none; }
.cta .btn-line { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta .btn-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------------- 页脚 ---------------- */
.hfoot { padding: 28px 24px 34px; background: #fff; border-top: 1px solid var(--border); }
.hfoot-in {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.hfoot-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.hfoot-brand small { font-size: 12px; font-weight: 400; color: var(--muted); }
.hfoot-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.hfoot-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.hfoot-links a:hover { color: var(--primary); }
.hfoot-note {
  max-width: 1120px; margin: 16px auto 0; font-size: 12px; line-height: 1.75; color: var(--muted);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hnav { display: none; }
  .hdr-in { gap: 12px; height: 60px; padding: 0 14px; }
  .hdr-right { gap: 8px; }
  .hdr-right .curbox .cur-label { display: none; }
  /* 首页顶栏会员入口：未登录只显示「登录」「注册」，按钮整体收窄 */
  #mbBox { gap: 6px; }
  #mbBox .mb-login, #mbBox .mb-reg { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
  #mbBox .mb-phone { font-size: 12.5px; }
  .hdr .brand { font-size: 15px; }
  .hdr-right .btn-grad { height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
  .hero { padding: 44px 18px 38px; }
  .hero-sub { font-size: 14.5px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn-grad { width: 100%; }
  .sec { padding: 36px 18px; }
  .sec-hd h2 { font-size: 21px; }
  .chart-card { padding: 18px 16px 14px; border-radius: 16px; }
  .hb { grid-template-columns: 20px 20px 68px minmax(0, 1fr) 78px; gap: 8px; }
  .hb-share { display: none; }
  .hb-val { font-size: 12.5px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fcard p { min-height: 0; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { width: calc(100% - 36px); padding: 34px 20px; border-radius: 18px; }
  .cta h2 { font-size: 21px; }
  .hfoot-links { margin-left: 0; }
}
