/* ================================================================
   香蕉社区  |  xiangjiaoshequ520.cn
   Original editorial design system.  Desktop / tablet / mobile.
   Sections: tokens, reset, header, hero, content, detail, footer.
   ================================================================ */

:root {
  --navy: #10213a;
  --navy-deep: #09172d;
  --ink: #142139;
  --muted: #667286;
  --gold: #ffd54c;
  --gold-soft: #fff3b4;
  --paper: #f8f9fc;
  --white: #ffffff;
  --line: #e7ebf0;
  --radius: 22px;
  --shadow: 0 14px 44px rgba(25, 38, 60, .07);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #b17e00; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #faaf19; outline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; top: -60px; left: 18px; z-index: 200; padding: 8px 14px; background: var(--gold); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { height: 84px; position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 900; font-size: 25px; letter-spacing: -.8px; }
.brand:hover { color: var(--navy); }
.brand-icon { background: var(--gold); width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; font-size: 27px; transform: rotate(-8deg); }
.brand-light { font-weight: 400; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.main-nav a { font-size: 14px; font-weight: 650; white-space: nowrap; transition: color .18s; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: #bb8900; }
.header-action { flex: none; margin-left: 5px; padding: 9px 15px; background: var(--navy); color: white; border-radius: 999px; font-size: 13px; font-weight: 700; }
.header-action:hover { color: var(--gold); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 7px 12px; font-weight: 700; }

/* Hero */
.hero { position: relative; min-height: 550px; overflow: hidden; background: var(--navy-deep); color: white; }
.hero-visual { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 27, 52, .79) 0%, rgba(10, 27, 52, .53) 32%, rgba(10,27,52,.05) 72%), url('/assets/img/banana-community-hero.webp') center 49% / cover no-repeat; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 550px; padding-block: 64px; }
.hero-copy { max-width: 630px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 23px; font-size: 12px; letter-spacing: 3px; color: #ffe79a; font-weight: 700; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.hero h1 { font-size: clamp(46px, 6vw, 77px); line-height: 1.13; letter-spacing: -2px; margin: 0; font-weight: 900; }
.hero-subheading { display: block; margin-top: 16px; font-size: clamp(27px, 3.2vw, 43px); line-height: 1.45; font-weight: 650; letter-spacing: -.6px; }
.hero-copy > p { max-width: 590px; font-size: 16px; color: #d9e5f6; line-height: 2; margin: 23px 0 29px; }
.hero-buttons { display: flex; gap: 13px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border-radius: 11px; font-size: 14px; font-weight: 800; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { color: var(--navy); background: var(--gold); }
.btn-yellow:hover { color: var(--navy); }
.btn-outline { color: white; border: 1px solid rgba(255,255,255,.45); }
.btn-outline:hover { color: white; }
.hero-index { display: flex; align-items: center; gap: 15px; position: absolute; bottom: 25px; left: 24px; color: #dce5f3; font-size: 10px; letter-spacing: 2px; }
.hero-index span:first-child { color: var(--gold); font-weight: 900; }
.hero-index i { height: 1px; width: 70px; background: #a8b6ca; }

/* Sections */
.intro-strip { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -1px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: var(--shadow); background: white; }
.intro-strip > div { position: relative; padding: 29px 28px; display: grid; grid-template-columns: 35px auto; column-gap: 11px; align-items: center; }
.intro-strip > div + div:before { content: ""; position: absolute; height: 44px; width: 1px; top: 28px; left: 0; background: var(--line); }
.intro-mark { grid-row: span 2; display: grid; place-items: center; width: 35px; height: 35px; background: #fff4c5; border-radius: 12px; color: #957400; font-weight: 900; font-size: 13px; }
.intro-strip strong { font-size: 15px; line-height: 1.4; }
.intro-strip small { font-size: 12px; color: var(--muted); }
.section { padding-block: 65px 6px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-kicker { display: block; color: #ab8200; font-size: 11px; letter-spacing: 2.2px; font-weight: 900; margin-bottom: 10px; }
.section-heading h2, .story-section h2, .topic-extra h2 { font-size: clamp(25px, 3.3vw, 34px); letter-spacing: -.7px; line-height: 1.4; margin: 0; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.section-more, .text-link { color: var(--navy); font-weight: 800; font-size: 13px; white-space: nowrap; }
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.topic-card { position: relative; overflow: hidden; min-height: 214px; border: 1px solid #e7eaf2; border-radius: 18px; padding: 24px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.topic-creative { background: #fff5d5; } .topic-life { background: #f1f7e5; }
.topic-film { background: #eaf2ff; } .topic-visual { background: #fff0ee; }
.topic-culture { background: #f1edff; } .topic-guides { background: #eff8f5; }
.topic-no { font-size: 10px; letter-spacing: 2px; font-weight: 850; color: #686f7a; }
.topic-card h3 { font-size: 23px; margin: 23px 0 5px; }
.topic-card p { max-width: 280px; color: #607081; margin: 0 0 14px; font-size: 13px; line-height: 1.7; }
.topic-glyph { position: absolute; right: 17px; top: 18px; font-size: 61px; line-height: 1; color: rgba(23,40,65,.12); }
.topic-go { font-size: 12px; font-weight: 850; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: white; transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { position: relative; display: block; overflow: hidden; background: #e8eef2; aspect-ratio: 1.62; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.article-card:hover .card-image img { transform: scale(1.045); }
.card-corner { position: absolute; right: 13px; top: 13px; display: grid; place-items: center; height: 31px; width: 31px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); }
.card-body { padding: 19px 19px 22px; }
.eyebrow { font-size: 12px; letter-spacing: .6px; font-weight: 850; color: #a57c00; }
.card-body h3 { font-size: 18px; line-height: 1.6; margin: 7px 0 10px; }
.card-body h3 a:hover { color: #b58b03; }
.card-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.85; }
.card-read { display: block; margin-top: 15px; font-size: 12px; color: #8a6900; font-weight: 750; }
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.split-feature { position: relative; background: var(--navy); color: white; border-radius: 22px; padding: 42px; overflow: hidden; }
.split-feature h2 { font-size: clamp(27px, 3.1vw, 40px); line-height: 1.4; margin: 0 0 22px; }
.split-feature p { font-size: 14px; line-height: 2; color: #dce6f3; max-width: 350px; margin-bottom: 30px; }
.feature-deco { position: absolute; right: -28px; bottom: -124px; font-size: 330px; color: rgba(255,213,76,.07); pointer-events: none; }
.reading-list { padding: 26px 30px; border: 1px solid var(--line); border-radius: 22px; }
.reading-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.reading-head h2 { font-size: 22px; margin: 0; }
.reading-head span { font-size: 10px; color: var(--muted); letter-spacing: 2px; }
.reading-line { display: grid; grid-template-columns: 38px 1fr 24px; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.reading-line:last-child { border-bottom: 0; }
.line-count { color: #c1cbd6; font-weight: 850; font-size: 17px; }
.reading-line strong { display: block; font-size: 14px; line-height: 1.5; }
.reading-line small { color: var(--muted); font-size: 11px; }
.line-arrow { color: #9c7700; }
.story-section { margin-block: 60px 75px; padding: 37px 40px; background: #fff8e6; border-radius: 22px; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.story-columns p { color: #616c79; font-size: 14px; line-height: 2.05; }
.story-section h2 { font-size: 26px; }

/* Inner pages */
.page-main { padding-top: 23px; padding-bottom: 90px; }
.breadcrumbs { color: #6f7b8d; font-size: 12px; margin-bottom: 22px; }
.breadcrumbs a:hover { color: #997300; }
.topic-banner, .simple-banner { border-radius: 23px; padding: 53px 60px; background: radial-gradient(circle at 90% 10%, rgba(255,213,76,.19), transparent 30%), var(--navy); color: white; }
.topic-banner h1, .simple-banner h1 { font-size: clamp(34px, 4vw, 53px); margin: 0 0 10px; line-height: 1.25; }
.topic-banner p, .simple-banner p { max-width: 700px; color: #dce6f1; line-height: 1.85; }
.topic-back { display: inline-block; margin-top: 15px; color: var(--gold); font-size: 13px; font-weight: 750; }
.topic-extra { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 35px; margin-top: 44px; }
.topic-extra h2 { font-size: 23px; }
.topic-extra p, .about-prose p { color: #596779; line-height: 2.15; }
.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 24px; }
.filter-row a { padding: 8px 14px; background: #fff7df; border-radius: 999px; font-size: 13px; font-weight: 700; }
.archive-title { font-size: 24px; }
.about-prose { max-width: 850px; margin: 35px auto; }
.about-prose h2 { font-size: 24px; margin-top: 32px; }
.about-prose a { color: #9d7300; text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 43px; align-items: start; }
.article-intro h1 { font-size: clamp(29px, 4vw, 43px); line-height: 1.4; margin: 12px 0 18px; }
.article-abstract { font-size: 17px; color: #5e6c7d; line-height: 1.85; }
.article-meta { font-size: 12px; color: #8994a1; padding-top: 10px; }
.detail-image { margin: 26px 0 34px; }
.detail-image img { width: 100%; aspect-ratio: 1.62; object-fit: cover; border-radius: 18px; }
.detail-image figcaption { margin-top: 10px; color: #8390a1; font-size: 11px; }
.article-content { font-size: 16px; line-height: 2.1; }
.article-content p { margin: 0 0 19px; }
.article-content .lead { color: #3d5068; font-size: 17px; }
.article-section h2, .article-summary h2 { font-size: 23px; line-height: 1.4; margin: 35px 0 15px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-summary { padding: 12px 22px 8px; margin-top: 32px; background: #fff9e8; border-radius: 18px; }
.article-bottom { display: flex; justify-content: space-between; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.article-sidebar { position: sticky; top: 32px; }
.aside-panel { border: 1px solid var(--line); border-radius: 19px; padding: 20px; }
.aside-panel h2 { margin: 0 0 15px; font-size: 20px; }
.aside-panel > a { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; font-weight: 700; font-size: 13px; }
.aside-note { border-radius: 14px; background: #fff8e6; padding: 19px; color: #76683f; font-size: 12px; line-height: 1.9; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: white; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: inline-block; font-weight: 900; font-size: 24px; }
.footer-about p, .footer-note p { font-size: 13px; color: #adbacf; line-height: 2; }
.footer-col h2, .footer-note h2 { font-size: 15px; margin: 0 0 13px; }
.footer-col a { display: block; color: #bcc9d9; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; font-size: 11px; color: #9eabc1; }

/* Responsive */
@media (max-width: 1110px) {
  .main-nav { gap: 13px; }
  .header-inner { gap: 14px; }
  .main-nav a { font-size: 12px; }
  .brand { font-size: 21px; }
  .header-action { display: none; }
}
@media (max-width: 800px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header { height: 70px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; margin: 0; padding: 12px 18px 19px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: 15px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .hero, .hero-content { min-height: 525px; }
  .hero-visual { background-position: 61% center; }
  .hero-copy { max-width: 540px; }
  .topics-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-strip { grid-template-columns: 1fr; }
  .intro-strip > div { padding: 17px 22px; }
  .intro-strip > div + div:before { height: 1px; width: calc(100% - 44px); top: 0; left: 22px; }
  .split-section { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .aside-panel { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand { font-size: 21px; }
  .hero, .hero-content { min-height: 570px; }
  .hero-visual { background: linear-gradient(90deg, rgba(10,27,52,.91), rgba(10,27,52,.51)), url('/assets/img/banana-community-hero.webp') 65% center / cover no-repeat; }
  .hero-content { justify-content: flex-start; padding-top: 72px; }
  .hero h1 { font-size: 46px; }
  .hero-subheading { font-size: 28px; }
  .hero-copy > p { font-size: 14px; }
  .hero-kicker { font-size: 10px; letter-spacing: 1.5px; }
  .hero-index { left: 15px; }
  .section { padding-top: 50px; }
  .section-heading { align-items: start; flex-direction: column; gap: 11px; }
  .topics-grid, .article-grid, .category-grid, .story-columns { grid-template-columns: 1fr; }
  .topic-card { min-height: 198px; }
  .story-section { padding: 28px 23px; margin-block: 40px 50px; }
  .split-feature { padding: 30px 25px; }
  .reading-list { padding: 20px; }
  .reading-head span { display: none; }
  .topic-banner, .simple-banner { padding: 35px 25px; }
  .article-intro h1 { font-size: 30px; }
  .article-content { font-size: 15px; }
  .article-bottom { gap: 15px; }
  .footer-grid { gap: 23px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
