/* ==========================================================================
   365weixinqun.com — 首页（日历日报 / 编辑索引）
   米白纸底 + 朱红 + 深绿点缀；大字号刊头与日历格，内页不共用此骨架。
   ========================================================================== */

.page-home {
  background: var(--paper);
}

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  padding: 22px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(217, 83, 58, .07), transparent 40%),
    var(--paper);
}
.hero-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: #9a9382;
}
.hero-masthead span:nth-child(2) { color: var(--accent-deep); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
  padding-top: 46px;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.6px;
  color: var(--accent-deep);
}
.hero-copy h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
}
.hero-copy h1 em {
  display: block;
  margin-top: 16px;
  font-family: var(--font);
  font-style: normal;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  color: #6b6455;
}
.hero-lead {
  margin-top: 20px;
  max-width: 550px;
  font-size: 15px;
  line-height: 2.05;
  color: #4a463c;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn-primary { background: var(--accent); }
.hero-actions .btn-room { color: var(--ink); border-color: var(--line-strong); }
.hero-actions .btn-room b { color: var(--accent-deep); }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta > div { padding: 14px 12px 14px 0; }
.hero-meta > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-meta strong {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.hero-meta span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8d8776;
  letter-spacing: .5px;
}
.hero-figure {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  padding: 10px;
  box-shadow: 0 26px 54px rgba(70, 55, 35, .13);
}
.hero-figure img { width: 100%; }
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9a9382;
}

/* ---------- ticker ---------- */
.home-ticker {
  background: var(--ink);
  color: #d9d3c5;
  padding: 13px 0;
}
.home-ticker .marquee-track {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: #b9b2a3;
}
.home-ticker span { white-space: nowrap; }
.home-ticker b { color: #f0a895; margin-right: 8px; }
.home-ticker em {
  font-style: normal;
  margin-left: 8px;
  color: #8fbf9a;
  font-size: 10px;
}

/* ---------- section ---------- */
.home-section { padding: 76px 0; }
.home-section.is-tint { background: var(--paper-2); }
.home-section.is-dark { background: #1b1c17; color: #ece7da; }
.home-section .container.narrow { max-width: 900px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}
.section-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2.4px;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
}
.section-note {
  max-width: 350px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  text-align: right;
}

/* ---------- 线路卡 ---------- */
.line-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.line-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 22px;
  background: #fffdf8;
  transition: background .2s, transform .2s;
}
.line-card:hover { background: #ffffff; transform: translateY(-2px); }
.line-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #a09885;
}
.line-top b { color: var(--accent-deep); font-weight: 700; }
.line-card h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.line-card p {
  margin-top: 8px;
  flex: 1;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.line-go {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--accent-deep);
}

/* ---------- 数据条 ---------- */
.home-band { background: var(--ink); color: #e9e3d6; }
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band-item {
  padding: 30px 10px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.band-item:first-child { border-left: 0; }
.band-item strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #f0a895;
  letter-spacing: -1px;
}
.band-item span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: #8f8b7e;
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.about-grid article {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.about-no {
  font-family: Georgia, serif;
  font-size: 32px;
  color: var(--accent);
}
.about-grid h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}
.about-grid p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ---------- 路径 ---------- */
.route-box {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fffdf8;
}
.route-box .tab {
  border-radius: 2px;
  border-color: var(--line);
}
.route-box .tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
}
.route-box .tab-panel { margin-top: 24px; }
.route-box h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}
.route-box p {
  margin-top: 10px;
  max-width: 800px;
  font-size: 14px;
  line-height: 2;
  color: #4a463c;
}
.route-box p a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-line); }
.route-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.route-points li {
  padding: 6px 12px;
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--muted);
}
.route-points li::before { content: "· "; color: var(--accent); font-weight: 700; }

/* ---------- 步骤 ---------- */
.first-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
}
.first-steps li {
  position: relative;
  padding: 22px 20px 0 0;
}
.first-steps li::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.first-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.first-steps span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  color: var(--accent-deep);
}
.first-steps h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}
.first-steps p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 对照表 ---------- */
.dir-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fffdf8; }
.dir-table { min-width: 620px; font-size: 13.5px; }
.dir-table th, .dir-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.dir-table tbody tr:last-child th,
.dir-table tbody tr:last-child td { border-bottom: 0; }
.dir-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 400;
  color: #8d8776;
  background: var(--paper-2);
}
.dir-table tbody th { font-weight: 700; color: var(--ink); }
.dir-table tbody td { color: #4a463c; }
.dir-table tbody td a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-line); }
.dir-table tbody tr:hover td { background: rgba(217, 83, 58, .03); }

/* ---------- 房间 ---------- */
.home-section.is-dark .section-kicker { color: #f0a895; }
.home-section.is-dark .section-head h2 { color: #fff; }
.home-section.is-dark .section-note { color: #a09a8b; }
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.room-grid article {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03);
}
.room-grid span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: #f0a895;
}
.room-grid h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.room-grid p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #a09a8b;
}
.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.room-actions .btn-room { color: #fff; border-color: rgba(255, 255, 255, .3); }
.room-actions .btn-room b { color: #f0a895; }

/* ---------- 双栏 ---------- */
.column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.column-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
}
.column-card.is-tool { background: #fffdf8; border-top: 3px solid var(--sage); }
.column-card.is-culture { background: #f7f1e6; border-top: 3px solid var(--accent); }
.column-card > span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: #8d8776;
}
.column-card h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}
.column-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.95;
  color: #4a463c;
}
.column-card a {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-line);
}

/* ---------- 安全 ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.safety-grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.safety-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.safety-grid h3::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.safety-grid p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

/* ---------- CTA ---------- */
.home-cta {
  padding: 64px 0;
  background: var(--accent);
  color: #fff;
}
.home-cta .section-kicker { color: #ffd9cf; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
}
.cta-inner p {
  margin-top: 10px;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #ffe4dc;
}
.cta-inner p strong { color: #fff; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-actions .tg-link { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-actions .tg-link:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.cta-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }

/* ---------- 延伸阅读 ---------- */
.read-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.read-grid a {
  padding: 22px 22px;
  background: #fffdf8;
  transition: background .2s;
}
.read-grid a:hover { background: #fff; }
.read-grid span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: #a09885;
}
.read-grid h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.read-grid p {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 深色区折叠覆盖 ---------- */
.home-section.is-dark .acc-list,
.home-section.is-dark .acc-item { border-color: rgba(255, 255, 255, .14); }
.home-section.is-dark .acc-trigger { color: #ece7da; }
.home-section.is-dark .acc-panel { color: #a09a8b; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { max-width: 700px; }
  .line-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .first-steps { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .first-steps li:nth-child(4) { padding-left: 0; border-left: 0; }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .read-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .home-section { padding: 52px 0; }
  .home-hero { padding: 16px 0 46px; }
  .hero-masthead { font-size: 9px; letter-spacing: 1.4px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero-meta > div:nth-child(4) { border-top: 1px solid var(--line); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-note { text-align: left; max-width: none; }
  .line-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-item:nth-child(3) { border-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .route-box { padding: 20px; }
  .first-steps { grid-template-columns: 1fr; row-gap: 22px; }
  .first-steps li { padding-left: 0 !important; border-left: 0 !important; padding-right: 0; }
  .room-grid { grid-template-columns: 1fr; }
  .column-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; gap: 22px; }
  .read-grid { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .tg-link,
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero-copy h1 { letter-spacing: -.5px; }
  .hero-figure figcaption { flex-direction: column; gap: 2px; }
}
