/*
Theme Name: 彩界引路人
Theme URI: https://bocai.tech/
Author: 彩界引路人
Description: 面向出号分析、信誉平台评测与玩彩攻略的中文资讯主题。
Version: 1.0.0
Text Domain: cai-guide
*/

:root {
  --ink: #10231f;
  --ink-soft: #52635f;
  --paper: #f5f7f4;
  --card: #ffffff;
  --line: #dfe7e3;
  --green: #0d765d;
  --green-dark: #075544;
  --green-pale: #e5f3ee;
  --gold: #d99c34;
  --gold-pale: #fff4dc;
  --navy: #101b2d;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(16, 35, 31, .08);
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.site-wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(223, 231, 227, .8);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(15px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(13, 118, 93, .2);
  color: white;
  font-size: 18px;
}
.site-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 28px; list-style: none; }
.site-nav a { color: #40514d; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--green); }
.header-note { padding: 8px 14px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 66px;
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 156, 52, .16), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(13, 118, 93, .16), transparent 30%),
    linear-gradient(135deg, #f8fbf9 0%, #edf4f1 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(13, 118, 93, .055);
  border-radius: 50%;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .75fr; align-items: center; gap: 70px; }
.hero h1 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(42px, 5vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { max-width: 650px; margin: 0 0 32px; color: var(--ink-soft); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); box-shadow: 0 12px 26px rgba(13, 118, 93, .22); color: white; }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.hero-panel { padding: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.hero-panel-label { margin-bottom: 14px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.hero-panel h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.35; }
.hero-panel p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.hero-panel-meta { display: flex; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); justify-content: space-between; color: #71807c; font-size: 12px; }
.trust-strip { position: relative; z-index: 3; display: grid; width: var(--wrap); margin: -24px auto 0; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.trust-item { display: flex; min-height: 92px; padding: 20px 26px; align-items: center; gap: 15px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--green-pale); color: var(--green); font-weight: 900; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { color: var(--ink-soft); font-size: 12px; }

/* Sections */
.content-section { padding: 92px 0; }
.content-section.compact { padding-top: 42px; }
.section-alt { background: #edf2ef; }
.section-dark { background: var(--navy); color: white; }
.section-head { display: flex; margin-bottom: 34px; align-items: end; justify-content: space-between; gap: 24px; }
.section-head h2 { margin: 9px 0 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.section-head p { max-width: 520px; margin: 0; color: var(--ink-soft); }
.section-link { color: var(--green); font-size: 13px; font-weight: 900; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-cover { position: relative; display: grid; min-height: 190px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #dcebe5, #f9f4e6); }
.post-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.post-cover-symbol { display: grid; width: 68px; height: 68px; place-items: center; border: 1px solid rgba(13,118,93,.18); border-radius: 22px; background: rgba(255,255,255,.72); color: var(--green); font-size: 24px; font-weight: 900; }
.post-body { padding: 24px; }
.post-meta { display: flex; margin-bottom: 12px; align-items: center; gap: 10px; color: #7b8986; font-size: 12px; }
.post-tag { padding: 3px 9px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); font-weight: 800; }
.post-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.45; letter-spacing: -.02em; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.empty-card { padding: 32px; border: 1px dashed #b9c8c2; border-radius: var(--radius); background: rgba(255,255,255,.55); color: var(--ink-soft); text-align: center; }

/* Platform section */
.platform-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.rating-panel { padding: 34px; border-radius: var(--radius); background: var(--navy); color: white; }
.rating-panel h3 { margin: 8px 0 12px; font-size: 30px; line-height: 1.25; }
.rating-panel > p { margin: 0; color: #b8c4d3; }
.rating-list { display: grid; margin: 28px 0 0; padding: 0; gap: 12px; list-style: none; }
.rating-list li { display: flex; padding: 13px 15px; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; color: #d7dfeb; font-size: 13px; }
.rating-list b { color: #f0c875; }
.platform-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.platform-card-top { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; }
.verified { padding: 5px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); font-size: 11px; font-weight: 900; }
.platform-card h3 { margin: 0 0 10px; font-size: 20px; }
.platform-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }

/* Guide / responsibility */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.guide-number { color: #f0c875; font-size: 13px; font-weight: 900; }
.guide-card h3 { margin: 14px 0 10px; font-size: 21px; }
.guide-card p { margin: 0; color: #b9c4d2; font-size: 14px; }
.responsibility { display: flex; margin-top: 28px; padding: 20px 24px; align-items: flex-start; gap: 14px; border: 1px solid rgba(240,200,117,.25); border-radius: 18px; background: rgba(240,200,117,.07); color: #d7dfeb; font-size: 13px; }
.responsibility strong { color: #f0c875; white-space: nowrap; }

/* Inner pages */
.page-hero { padding: 70px 0 45px; background: linear-gradient(135deg, #eef5f1, #f8f9f6); }
.page-hero h1 { margin: 10px 0 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.15; letter-spacing: -.045em; }
.archive-layout { display: grid; padding: 58px 0 90px; grid-template-columns: minmax(0, 1fr) 290px; gap: 42px; }
.sidebar-box { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.sidebar-box h3 { margin: 0 0 12px; font-size: 17px; }
.sidebar-box p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.article-shell { max-width: 840px; margin: 0 auto; padding: 72px 20px 100px; }
.article-shell h1 { margin: 14px 0 18px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.18; letter-spacing: -.045em; }
.article-meta { margin-bottom: 38px; color: #778682; font-size: 13px; }
.article-content { font-size: 17px; }
.article-content h2 { margin-top: 2.2em; font-size: 30px; line-height: 1.35; }
.article-content a { color: var(--green); text-decoration: underline; }
.article-content blockquote { margin: 30px 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--gold-pale); }

/* Footer */
.site-footer { padding: 58px 0 30px; background: #091713; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; }
.footer-brand p { max-width: 520px; color: #9fb0aa; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; align-content: start; }
.footer-links a { color: #c9d3cf; font-size: 13px; }
.footer-bottom { display: flex; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); justify-content: space-between; gap: 20px; color: #81938c; font-size: 12px; }

@media (max-width: 980px) {
  .header-note { display: none; }
  .site-nav ul { gap: 16px; }
  .hero-grid, .platform-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 680px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 68px; }
  .site-nav { display: none; }
  .hero { padding: 62px 0 58px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: 36px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
  .content-section { padding: 66px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .post-grid, .platform-posts { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0 34px; }
  .footer-bottom { flex-direction: column; }
}

