:root {
  --ink: #171917;
  --paper: #f7f8f5;
  --white: #fff;
  --copy: #4a4e49;
  --muted: #767c75;
  --line: #d2d6cf;
  --dark-line: #3a3e39;
  --surface: #eceee9;
  --accent: #c9ff55;
  --green: #36c277;
  --max: 1440px;
  --pad: clamp(22px, 4.5vw, 68px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; transform: translateY(-150%); background: var(--accent); padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; display: flex; height: 76px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,25,23,.1); background: rgba(247,248,245,.94); color: var(--ink); padding: 0 var(--pad); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-emblem { display: grid; width: 52px; height: 52px; place-items: center; background: transparent; }
.brand-emblem img { display: block; width: 42px; height: auto; }
.brand-wordmark { color: var(--ink); font-size: 22px; font-weight: 850; line-height: 1; letter-spacing: 0; }
.site-nav { display: flex; height: 100%; align-items: center; gap: clamp(17px, 2vw, 34px); font-size: 12px; font-weight: 700; }
.site-nav > a { display: grid; height: 100%; place-items: center; color: var(--copy); }
.site-nav > a:hover, .site-nav > a.active { color: var(--ink); }
.site-nav .nav-action { height: 40px; margin-left: 8px; background: var(--ink); color: var(--white); padding: 0 17px; }
.site-nav .nav-action:hover { background: var(--accent); color: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 11px; }
.menu-toggle i { display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--ink); transition: transform .2s ease; }

.hero { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); padding: 104px var(--pad) 0; }
.hero-center { text-align: center; }
.hero-brand-logo { display: block; width: 86px; height: 62px; object-fit: contain; margin: 0 auto 22px; }
.hero h1 { margin: 0; font-size: clamp(48px, 5.5vw, 84px); font-weight: 850; line-height: .95; white-space: nowrap; }
.hero-signature { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; font-size: clamp(13px, 1.4vw, 18px); }
.hero-signature b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 13px; }
.hero-poster { display: flex; width: min(100%, var(--max)); height: clamp(260px, 25vw, 360px); flex-direction: column; margin: 42px auto 0; border-radius: 8px 8px 0 0; background: #080808; color: var(--white); padding: 24px 30px; }
.poster-head, .hero-foot { display: flex; align-items: center; justify-content: space-between; color: #959b95; font: 10px Consolas, monospace; }
.poster-head i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.poster-words { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 28px; font-size: clamp(30px, 3.8vw, 58px); font-weight: 850; line-height: 1; }
.poster-words span:nth-child(2) { color: var(--accent); }
.hero-foot { color: var(--white); }

.score-bar { display: grid; width: min(100%, var(--max)); grid-template-columns: repeat(4, 1fr); margin: 0 auto; background: var(--paper); }
.score-bar > div { min-height: 110px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 18px; }
.score-bar > div:last-child { border-right: 0; }
.score-bar span, .score-bar strong { display: block; }
.score-bar > div > span { color: var(--muted); font-size: 11px; }
.score-bar strong { margin-top: 18px; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; }
.score-bar .open-state { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.8vw, 40px); }
.open-state i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(54,194,119,.14); }

.section-shell { width: min(100%, var(--max)); margin: 0 auto; padding: 112px var(--pad); }
.section-head, .section-label, .panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head { border-bottom: 1px solid var(--ink); padding-bottom: 22px; }
.eyebrow { display: block; margin: 0 0 8px; color: var(--muted); font: 10px Consolas, monospace; }
.section-head h2 { margin: 0; font-size: clamp(38px, 4.8vw, 68px); line-height: .95; }
.section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.section-label { border-top: 1px solid currentColor; padding-top: 11px; color: var(--muted); font: 10px Consolas, monospace; }

.directory-list a { display: grid; grid-template-columns: 76px minmax(0,1fr) 42px; align-items: center; gap: 20px; min-height: 120px; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.directory-list a:hover { background: var(--white); padding: 0 18px; }
.directory-list > a > span { align-self: start; margin-top: 32px; color: var(--muted); font: 11px Consolas, monospace; }
.directory-list h3 { margin: 0; font-size: clamp(24px, 2.5vw, 36px); }
.directory-list p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.directory-list b { font-size: 22px; font-weight: 400; text-align: right; }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark .section-label { color: #7e857d; }
.events-intro, .members-intro, .news-intro, .archive-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9vw; align-items: end; padding: 86px 0 58px; }
.events-intro h2, .members-intro h2, .news-intro h2, .archive-intro h2, .join-main h2 { margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; }
.events-intro p, .members-intro p, .archive-intro p { margin: 0; color: #a8aea7; line-height: 1.8; }
.segment-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--dark-line); }
.segment-control button { min-height: 64px; border: 0; border-right: 1px solid var(--dark-line); background: transparent; color: #a5aca4; text-align: left; padding: 0 22px; cursor: pointer; }
.segment-control button:last-child { border-right: 0; }
.segment-control button small { float: right; color: #727972; }
.segment-control button.active { background: var(--accent); color: var(--ink); font-weight: 800; }
.segment-control button.active small { color: #52651b; }
.event-list { border-top: 1px solid var(--dark-line); margin-top: 32px; }
.event-row { display: grid; grid-template-columns: 100px 140px minmax(0,1fr) minmax(180px,.45fr) 34px; gap: 25px; align-items: center; min-height: 140px; border-bottom: 1px solid var(--dark-line); cursor: pointer; }
.event-row:hover { background: #202320; }
.event-date strong, .event-date span { display: block; }
.event-date strong { color: var(--accent); font-size: 30px; }
.event-date span, .event-type, .event-location { color: #8d948d; font-size: 11px; }
.event-row h3 { margin: 0 0 8px; font-size: clamp(18px, 2vw, 26px); }
.event-row p { margin: 0; color: #a9b0a8; font-size: 13px; line-height: 1.6; }
.event-row > b { color: var(--accent); font-size: 19px; font-weight: 400; }
.idea-band { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; margin-top: 58px; border: 1px solid var(--dark-line); padding: 24px; }
.idea-band > span { color: var(--accent); font: 12px Consolas, monospace; }
.idea-band h3, .idea-band p { margin: 0; }
.idea-band h3 { font-size: 19px; }
.idea-band p { margin-top: 6px; color: #929992; font-size: 12px; }
.idea-band a { background: var(--accent); color: var(--ink); padding: 14px 18px; font-size: 12px; font-weight: 800; }

.members-intro { padding-bottom: 50px; }
.members-intro > div { display: flex; min-height: 160px; flex-direction: column; justify-content: space-between; }
.members-intro p { color: var(--copy); }
.members-intro strong { color: var(--muted); font-size: 12px; font-weight: 500; }
.members-intro strong span { margin-right: 8px; color: var(--ink); font-size: 38px; font-weight: 850; }
.member-list { border-top: 2px solid var(--ink); }
.member-row { display: grid; grid-template-columns: 70px 1fr 1.25fr 1.3fr 30px; gap: 24px; align-items: center; min-height: 130px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s ease, padding .2s ease; }
.member-row:hover { background: var(--white); padding: 0 16px; }
.member-no { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 4px; background: var(--ink); color: var(--accent); font: 10px Consolas, monospace; }
.member-name h3, .member-name small { display: block; margin: 0; }
.member-name h3 { font-size: 22px; }
.member-name small { margin-top: 6px; color: var(--muted); font: 9px Consolas, monospace; }
.member-role { font-size: 14px; font-weight: 750; }
.member-skills { color: var(--muted); font-size: 12px; }
.member-row > b { font-size: 18px; font-weight: 400; }

.news { padding-top: 50px; }
.news-intro { padding-bottom: 42px; }
.news-intro > div > p { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.search-box { display: flex; height: 58px; align-items: center; gap: 13px; background: var(--surface); padding: 0 18px; }
.search-box span { color: var(--muted); font-size: 22px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 26px; }
.category-tabs button { flex: none; min-width: 68px; min-height: 38px; border: 0; border-radius: 4px; background: var(--surface); color: var(--copy); font-size: 12px; cursor: pointer; }
.category-tabs button.active { background: var(--ink); color: var(--white); }
.feed-head, .news-row { display: grid; grid-template-columns: 80px minmax(0,1fr) 120px; gap: 24px; }
.feed-head { border-bottom: 1px solid var(--ink); padding: 10px 0; color: var(--muted); font: 9px Consolas, monospace; }
.news-row { align-items: start; border-bottom: 1px solid var(--line); padding: 27px 0; cursor: pointer; }
.news-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.news-index { color: var(--muted); font: 11px Consolas, monospace; }
.news-row h3 { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; }
.news-row p { max-width: 800px; margin: 10px 0 0; color: var(--copy); font-size: 13px; line-height: 1.7; }
.news-source { display: flex; gap: 13px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.news-date { color: var(--muted); font: 10px Consolas, monospace; text-align: right; }
.empty-state { min-height: 230px; display: grid; align-content: center; justify-items: center; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 20px; }
.empty-state p { margin: 8px 0 0; font-size: 12px; }

.archive { padding-top: 50px; }
.archive-intro p { color: var(--copy); }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.archive-grid > section { min-height: 520px; padding: 32px; }
.archive-grid > section:first-child { border-right: 1px solid var(--line); }
.panel-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.panel-head h3 { margin: 0; font-size: 30px; }
.panel-head strong { font-size: 42px; }
.archive-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; cursor: pointer; }
.archive-item > span { color: var(--muted); font: 10px Consolas, monospace; }
.archive-item h4, .archive-item p { margin: 0; }
.archive-item h4 { font-size: 18px; }
.archive-item p { margin-top: 8px; color: var(--copy); font-size: 12px; line-height: 1.6; }
.archive-item small { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; }
.archive-grid .empty-state { border-bottom: 0; }

.join-shell { padding-top: 92px; }
.join-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 9vw; padding: 82px 0; }
.join-main > .eyebrow { color: var(--accent); }
.join-main > p { max-width: 600px; margin: 28px 0 0; color: #aab1a9; line-height: 1.85; }
.join-steps { margin-top: 45px; border-top: 1px solid var(--dark-line); }
.join-steps div { display: grid; grid-template-columns: 50px 1fr; border-bottom: 1px solid var(--dark-line); padding: 17px 0; }
.join-steps span { color: var(--accent); font: 10px Consolas, monospace; }
.join-steps p { margin: 0; color: #d4d9d3; font-size: 13px; }
.wechat-card { align-self: center; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; border: 1px solid var(--dark-line); padding: 24px; }
.wechat-card img { display: block; width: 190px; height: 190px; object-fit: cover; }
.wechat-card span { color: var(--accent); font: 9px Consolas, monospace; }
.wechat-card h3 { margin: 15px 0 9px; font-size: 22px; }
.wechat-card p { margin: 0; color: #929991; font-size: 12px; line-height: 1.65; }
.cooperate-band { display: flex; align-items: center; justify-content: space-between; gap: 34px; border-top: 1px solid var(--dark-line); padding-top: 32px; }
.cooperate-band span { color: var(--accent); font: 9px Consolas, monospace; }
.cooperate-band h3 { margin: 8px 0 0; font-size: 24px; }
.cooperate-band p { margin: 8px 0 0; color: #8f968e; font-size: 12px; }
.cooperate-band a { flex: none; background: var(--accent); color: var(--ink); padding: 16px 20px; font-size: 12px; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; background: #090a09; color: var(--white); padding: 68px var(--pad) 26px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-emblem { width: 52px; height: 52px; background: transparent; }
.footer-brand .brand-emblem img { width: 42px; filter: invert(1); }
.footer-brand .brand-wordmark { color: var(--white); font-size: 22px; }
.site-footer > p { margin: 0; color: #969c95; font-size: 13px; line-height: 1.7; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; font-size: 11px; }
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 56px; border-top: 1px solid #272a27; padding-top: 20px; color: #666b66; font: 9px Consolas, monospace; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: center; gap: 22px; color: #666b66; font: 10px Consolas, monospace; }
.footer-meta span + span { border-left: 1px solid #3a3e39; padding-left: 22px; }

.detail-dialog { width: min(660px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); overflow-y: auto; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); padding: 0; }
.detail-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-close { position: sticky; z-index: 2; top: 16px; float: right; width: 42px; height: 42px; margin: 16px 16px 0 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 26px; cursor: pointer; }
#dialog-content { padding: 70px 42px 44px; }
.dialog-kicker { color: var(--muted); font: 10px Consolas, monospace; }
#dialog-content h2 { margin: 16px 0; font-size: clamp(28px, 5vw, 48px); line-height: 1.15; }
.dialog-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; color: var(--muted); font-size: 11px; }
.dialog-copy { margin: 24px 0 0; color: var(--copy); line-height: 1.85; }
.dialog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.dialog-tags span { border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 10px; }
.dialog-registration { display: grid; gap: 10px; margin-top: 28px; border-left: 3px solid var(--accent); background: var(--surface); padding: 18px; }
.dialog-registration strong { font-size: 14px; }
.dialog-registration > span { color: var(--copy); font-size: 12px; line-height: 1.6; }
.registration-action { display: inline-flex; width: fit-content; align-items: center; background: var(--ink); color: var(--white); padding: 11px 15px; font-size: 12px; font-weight: 700; }
.registration-action:hover { background: var(--accent); color: var(--ink); }
.registration-qr { display: block; width: 220px; height: 220px; object-fit: contain; background: #fff; padding: 8px; }
.registration-note { color: var(--muted) !important; font-size: 11px !important; }
.registration-ended, .registration-unavailable { border-left-color: var(--line-strong); }
.source-link { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .site-header { height: 66px; backdrop-filter: none; }
  .brand { gap: 9px; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-emblem img { width: 32px; }
  .brand-wordmark { font-size: 18px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; top: 66px; right: 0; left: 0; display: none; width: 100vw; height: calc(100vh - 66px); overflow-y: auto; align-items: stretch; flex-direction: column; gap: 0; background: var(--paper); padding: 28px var(--pad); }
  .site-nav.open { display: flex; }
  .site-nav > a { display: flex; height: auto; min-height: 62px; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 20px; }
  .site-nav .nav-action { height: 54px; margin: 28px 0 0; justify-content: center; border: 0; font-size: 14px; }
  .hero { padding-top: 86px; }
  .hero h1 { font-size: clamp(50px, 10vw, 76px); }
  .hero-poster { height: 320px; }
  .score-bar { grid-template-columns: 1fr 1fr; }
  .score-bar > div:nth-child(2) { border-right: 0; }
  .events-intro, .members-intro, .news-intro, .archive-intro, .join-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-row { grid-template-columns: 82px 115px minmax(0,1fr) 26px; }
  .event-location { display: none; }
  .member-row { grid-template-columns: 52px 1fr 1.2fr 26px; }
  .member-skills { display: none; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid > section:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 2; grid-row: 1 / 3; align-items: flex-end; flex-direction: column; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 12px 0; }
  .hero-brand-logo { width: 70px; height: 52px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); }
  .hero-signature { margin-top: 20px; }
  .hero-signature b { width: 28px; height: 28px; font-size: 11px; }
  .hero-poster { height: 270px; margin-top: 42px; border-radius: 7px 7px 0 0; padding: 16px; }
  .poster-head, .hero-foot { font-size: 8px; }
  .poster-words { align-items: flex-start; justify-content: center; flex-direction: column; gap: 0; font-size: 32px; }
  .score-bar > div { min-height: 100px; }
  .section-shell { padding-top: 82px; padding-bottom: 82px; }
  .section-head { align-items: flex-start; }
  .section-head p { max-width: 100px; text-align: right; }
  .directory-list a { grid-template-columns: 42px minmax(0,1fr) 26px; gap: 12px; min-height: 108px; }
  .directory-list > a > span { margin-top: 29px; }
  .directory-list h3 { font-size: 23px; }
  .events-intro, .members-intro, .news-intro, .archive-intro { padding-top: 62px; }
  .segment-control button { padding: 0 15px; }
  .segment-control button small { display: block; float: none; margin-top: 3px; }
  .event-row { grid-template-columns: 64px minmax(0,1fr) 20px; gap: 14px; padding: 22px 0; }
  .event-type { display: none; }
  .event-row h3 { font-size: 18px; }
  .event-row p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .idea-band { grid-template-columns: 44px 1fr; }
  .idea-band a { grid-column: 2; width: fit-content; }
  .member-row { grid-template-columns: 42px 1fr 22px; gap: 12px; padding: 20px 0; }
  .member-role { grid-column: 2; }
  .feed-head, .news-row { grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
  .feed-head span:last-child, .news-date { display: none; }
  .archive-grid > section { min-height: 430px; padding: 24px 0; }
  .wechat-card { grid-template-columns: 112px 1fr; gap: 18px; padding: 18px; }
  .wechat-card img { width: 112px; height: 112px; }
  .wechat-card h3 { font-size: 18px; }
  .cooperate-band { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { grid-column: 1; grid-row: auto; align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-meta { align-items: center; flex-wrap: wrap; gap: 10px; font-size: 8px; }
  .footer-meta span + span { padding-left: 10px; }
  #dialog-content { padding-right: 24px; padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
