/* 香蕉社区 · 2026 原创编辑式兴趣导览主题 */
:root {
--bg: #f6f8f2;
--surface: #ffffff;
--ink: #172d26;
--muted: #5c736a;
--lime: #dff65b;
--green: #216c56;
--line: #dbe5d9;
--radius: 22px;
--shadow: 0 12px 35px rgba(23, 45, 38, .07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--green);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  padding: 8px 12px;
  background: var(--lime);
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 850;
  white-space: nowrap;
  letter-spacing: -.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 23px;
  transform: rotate(-7deg);
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  font-weight: 650;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 7px 11px;
  cursor: pointer;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  min-height: 470px;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 28px;
  background: #e5f1e9;
}
.hero-copy {
  padding: clamp(30px, 5vw, 65px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  max-width: 590px;
  margin: 13px 0 18px;
  font-size: clamp(35px, 4.1vw, 60px);
  line-height: 1.16;
  letter-spacing: -2px;
}
.hero p {
  color: #48665b;
  margin: 0 0 24px;
  max-width: 520px;
}
.hero-image {
  position: relative;
  min-height: 370px;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--ink);
  color: white;
  padding: 11px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
}
.pill:hover {
  color: var(--lime);
}
.stats {
  display: flex;
  gap: 25px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.stats strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}
.section {
  padding-block: 57px 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 23px;
}
.section-title h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 8px 0 0;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.view-more {
  font-weight: 750;
  color: var(--green);
  white-space: nowrap;
  font-size: 14px;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.topic-tile {
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  min-height: 190px;
  transition: transform .2s, box-shadow .2s;
}
.topic-tile:hover, .post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.topic-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: var(--lime);
  border-radius: 15px;
  font-size: 24px;
  margin-bottom: 17px;
}
.topic-tile h3 {
  margin: 0 0 5px;
  font-size: 21px;
}
.topic-tile p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.post-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.post-body {
  padding: 20px 21px 23px;
}
.tag {
  font-weight: 800;
  font-size: 12px;
  color: var(--green);
}
.post-card h3 {
  font-size: 19px;
  line-height: 1.5;
  margin: 7px 0 9px;
}
.post-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  min-height: 315px;
  margin-top: 58px;
  border-radius: 26px;
  background: #19392e;
  color: white;
  overflow: hidden;
}
.feature-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-copy .eyebrow {
  color: var(--lime);
}
.feature-copy h2 {
  margin: 12px 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.35;
}
.feature-copy p {
  color: #d1e3d5;
  margin: 0;
}
.feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note {
  margin-top: 55px;
  padding: 23px 28px;
  border-left: 5px solid var(--green);
  background: #eaf1e8;
  border-radius: 0 14px 14px 0;
  color: #48665b;
}
.note strong {
  color: var(--ink);
}
.page-heading {
  padding-block: 56px 28px;
}
.page-heading h1 {
  margin: 8px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}
.page-heading p {
  max-width: 780px;
  color: var(--muted);
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding-top: 30px;
}
.breadcrumb span {
  padding: 0 8px;
}
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 35px;
  padding: 34px 0 65px;
  align-items: start;
}
.article-main {
  min-width: 0;
  background: white;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.article-main h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.32;
  margin: 7px 0 17px;
}
.article-main .lead {
  color: var(--muted);
  font-size: 17px;
}
.article-main figure {
  margin: 24px 0 30px;
}
.article-main figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}
.article-main figcaption {
  font-size: 12px;
  color: var(--muted);
  padding-top: 9px;
}
.article-main h2 {
  font-size: 24px;
  line-height: 1.35;
  margin: 35px 0 12px;
}
.article-main p {
  margin: 0 0 17px;
}
.article-main .endline {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}
.side-box {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 18px;
}
.side-box h2 {
  font-size: 18px;
  margin: 0 0 13px;
}
.side-box a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.side-box a:last-child {
  border: 0;
}
.related {
  padding-bottom: 50px;
}
.footer {
  margin-top: 72px;
  padding: 39px 0 26px;
  background: #18382c;
  color: #d5e2d7;
}
.footer .brand {
  color: white;
}
.footer-inner {
  display: flex;
  gap: 35px;
  align-items: start;
  justify-content: space-between;
}
.footer p {
  max-width: 480px;
  color: #c1d6c9;
  font-size: 13px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
.footer-bottom {
  padding-top: 20px;
  margin-top: 25px;
  border-top: 1px solid #446052;
  font-size: 12px;
  color: #c1d6c9;
}
@media (max-width: 980px) {
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-shell {
    grid-template-columns: minmax(0, 1fr);
  }
.side-box {
  display: none;
}
.hero {
  grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .header-inner {
    min-height: 68px;
  }
.brand {
  font-size: 20px;
}
.nav-toggle {
  display: block;
}
.site-nav {
  display: none;
  position: absolute;
  z-index: 20;
  top: 68px;
  left: 0;
  right: 0;
  background: white;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero {
  grid-template-columns: 1fr;
  margin-top: 20px;
}
.hero-copy {
  padding: 29px 25px;
}
.hero-image {
  min-height: 260px;
  order: -1;
}
.hero h1 {
  letter-spacing: -1px;
}
.post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  grid-template-columns: 1fr;
}
.feature img {
  height: 260px;
}
.footer-inner {
  flex-direction: column;
}
}
@media (max-width: 470px) {
  .topic-grid {
    gap: 10px;
  }
  .topic-tile {
    padding: 17px;
    min-height: 180px;
  }
.post-grid {
  grid-template-columns: 1fr;
}
.section-title {
  align-items: flex-start;
}
.feature-copy {
  padding: 26px;
}
.stats {
  gap: 20px;
}
}
@media (prefers-reduced-motion: reduce) {
}

/* 统一辅助性视觉与交互规范 */
:where(a, button):focus-visible {
  outline: 3px solid #176b51;
  outline-offset: 3px;
}
.site-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px;
}
@media (max-width: 720px) {
  .site-header { position: relative; z-index: 30; }
  .site-nav { top: 100%; }
}
