:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --brand:#fe2c55;
  --radius:16px;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --max:1100px;
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  background:linear-gradient(180deg,#ffffff 0%, var(--bg) 22%, var(--bg) 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

a{
  color:inherit;
  text-decoration:none;
  transition:.2s;
}

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

/* ===== 状态栏 ===== */
.status-bar{
  background:#0b0b0f;
  color:#fff;
  padding:8px 0;
  font-size:11px;
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

@media (max-width:480px){
  .status-bar span:last-child{display:none;}
}

/* ===== Topbar ===== */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(229,231,235,.8);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.logo-img{
  width:32px;
  height:32px;
  border-radius:8px;
  object-fit:cover;
}

.brand-title b{
  font-size:15px;
  white-space:nowrap;
}

.nav{
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
}

.nav::-webkit-scrollbar{display:none;}

.nav a{
  font-size:13px;
  padding:6px 12px;
  border-radius:999px;
  white-space:nowrap;
}

.nav a.active{
  background:rgba(0,0,0,.04);
  color:var(--brand);
  font-weight:bold;
}

/* ===== Layout ===== */
.layout{
  padding:20px 0 60px;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

@media (min-width:980px){
  .grid{grid-template-columns:1fr 320px;}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  margin-bottom:20px;
}

/* ===== 内容块 ===== */
.pink-lead{
  background:#fff5f6;
  border:1px solid #ffe4e6;
  padding:18px;
  border-radius:12px;
  margin-bottom:24px;
  font-size:14px;
}

/* ===== 通用 Hero（替代黑色） ===== */
.black-hero{
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.03) 0%,
      #ffffff 70%
    );
  color:#111827;
  padding:40px 20px;
  text-align:center;
  border-radius:20px;
  margin:24px 0;
  max-width:100%;
  overflow:hidden;
  border:1px solid #f1f5f9;
}

.official-auth{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#22c55e;
  font-size:13px;
  font-weight:bold;
  margin-bottom:12px;
  background:rgba(34,197,94,.15);
  padding:5px 12px;
  border-radius:999px;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 40px;
  border-radius:14px;
  background:var(--brand);
  color:#fff;
  font-weight:bold;
  font-size:16px;
  box-shadow:0 10px 25px rgba(0,0,0,.15);
  max-width:100%;
}

.hero-btn:active{
  transform:scale(.97);
}

/* ===== 表格 ===== */
.table-scroll{
  overflow-x:auto;
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:10px;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:400px;
  font-size:13px;
}

th,td{
  padding:12px;
  border-bottom:1px solid var(--line);
  text-align:left;
}

th{
  background:#f8fafc;
  color:var(--muted);
}

/* ===== 侧栏 ===== */
.side-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px;
  margin-bottom:20px;
}

.side-title{
  font-size:15px;
  font-weight:bold;
  margin-bottom:15px;
  display:flex;
  align-items:center;
  gap:8px;
}

.click-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  background:#f9fafb;
  border:1px solid #f1f5f9;
  border-radius:12px;
  margin-bottom:10px;
  font-size:13px;
  cursor:pointer;
  transition:.2s;
}

.click-item:hover{
  border-color:var(--brand);
  background:#fff;
}

.click-item:active{
  transform:scale(.96);
}

.check-icon{
  color:#22c55e;
  font-weight:bold;
}

.article-item{
  display:block;
  padding:15px;
  border:1px solid #f1f5f9;
  border-radius:12px;
  margin-bottom:12px;
  transition:.2s;
}

.article-item:hover{
  border-color:var(--brand);
  background:#fff;
}

.article-item:active{
  transform:scale(.98);
}

.article-item b{
  font-size:14px;
  display:block;
  margin-bottom:4px;
}

.article-item span{
  font-size:12px;
  color:var(--muted);
}

/* ===== Footer ===== */
footer{
  background:#fff;
  border-top:1px solid #eee;
  padding:40px 0;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}

/* ===== 移动端 ===== */
@media (max-width:480px){
  .black-hero{
    padding:28px 14px;
    border-radius:16px;
  }

  .hero-btn{
    width:100%;
    padding:14px 16px;
    font-size:15px;
  }

  .black-hero div[style*="font-size:26px"]{
    font-size:20px !important;
    letter-spacing:.5px !important;
    word-break:break-word;
  }
}
/* =========================
   Hero 移动端自适应终极补丁
   解决：溢出、撑宽、按钮挤压、横向滚动
   ========================= */

.black-hero{
  max-width: 100%;
  overflow: hidden;
}

.black-hero *{
  max-width: 100%;
}

.black-hero svg{
  flex: 0 0 auto;
}

/* 标题行：允许换行，防止长词/缩放溢出 */
.black-hero .hero-title,
.black-hero div[style*="font-size:26px"],
.black-hero div[style*="font-size:22px"]{
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 按钮：小屏一定占满，padding 变小 */
.black-hero .hero-btn{
  max-width: 100%;
  white-space: nowrap;
}

/* 极小屏：把所有可能撑宽的地方强制收紧 */
@media (max-width: 480px){
  .black-hero{
    padding: 22px 12px !important;
    border-radius: 16px;
  }

  .black-hero .official-auth{
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .black-hero .hero-btn{
    width: 100% !important;
    display: flex !important;
    padding: 14px 14px !important;
    font-size: 15px !important;
  }

  /* 主标题：按手机降字号 */
  .black-hero div[style*="font-size:26px"]{
    font-size: 20px !important;
    letter-spacing: .3px !important;
    margin-bottom: 10px !important;
  }

  /* 你现在用的中文主标题如果是 22px，也兜底 */
  .black-hero div[style*="font-size:22px"]{
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  /* 副标题（官方比例那行）更紧凑 */
  .black-hero div[style*="color:var(--muted)"]{
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }
}

/* 防止页面出现横向滚动条（微信内置浏览器常见） */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}
