/* Product-first layout: deliberate hierarchy, generous space, and no ornamental movement. */
:root {
  --page: #000;
  --surface: #101010;
  --surface-raised: #171717;
  --line: #2d2d2d;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --quiet: #6e6e73;
}

body { background: var(--page); color: var(--text); }
button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", Arial, sans-serif; }

/* Landing */
.gate-view { min-height: 100svh; display: flex; flex-direction: column; background: #000; }
.gate-header { width: min(100% - 48px, 1220px); height: 72px; margin: 0 auto; padding: 0; border: 0; }
.gate-header .mono { color: var(--quiet); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.brand { gap: 9px; font-size: 15px; font-weight: 600; }
.brand-mark { width: 28px; height: 28px; border: 0; border-radius: 7px; background: #fff; color: #000; font-weight: 700; }
.gate-hero { width: min(100% - 48px, 1220px); max-width: 1220px; margin: auto; padding: 70px 0 112px; }
.gate-hero .eyebrow { color: var(--secondary); font-size: 11px; letter-spacing: .04em; }
.gate-hero h1 { max-width: 810px; margin: 20px 0 24px; font-size: clamp(58px, 8vw, 118px); font-weight: 600; letter-spacing: -.07em; line-height: .94; }
.gate-hero h1 br + * { color: var(--secondary); }
.cn-title { margin: 0 0 22px; color: var(--secondary); font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.intro { max-width: 470px; margin-bottom: 38px; color: var(--secondary); font-size: 16px; line-height: 1.6; }
.invite-form { width: min(100%, 530px); padding: 0; border: 0; background: transparent; }
.invite-form label { margin-bottom: 10px; color: var(--secondary); font-size: 13px; }
.input-line { height: 58px; padding-left: 18px; border: 1px solid #383838; border-radius: 14px; background: var(--surface); }
.input-line:focus-within { border-color: #8e8e93; }
.input-line input { font-size: 15px; letter-spacing: 0; }
.input-line button { height: 42px; min-height: 42px; margin-right: 7px; padding: 0 17px; border: 0; border-radius: 10px; background: #fff; color: #000; font-size: 13px; }
.input-line button span { display: none; }
.form-note { margin: 13px 0 0; color: var(--quiet); font-family: inherit; font-size: 11px; }
.side-caption { position: static; width: min(100% - 48px, 1220px); margin: 0 auto 28px; color: var(--quiet); writing-mode: initial; font-family: inherit; font-size: 11px; letter-spacing: .02em; }

/* Member product shell — warm white, with the public invite gate remaining black. */
.app-view { --page: #fff; --surface: #f5f5f7; --surface-raised: #fff; --line: #d2d2d7; --text: #1d1d1f; --secondary: #6e6e73; --quiet: #86868b; display: block; min-height: 100svh; background: #fff; color: var(--text); }
.member-sidebar { position: sticky; z-index: 4; top: 0; width: 100%; height: 72px; min-height: 72px; padding: 0 max(24px, calc((100vw - 1220px) / 2)); flex-direction: row; align-items: center; gap: 32px; border: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.member-sidebar .brand { margin: 0; }
.member-sidebar .brand { color: var(--text); }
.member-sidebar .brand-mark { background: var(--text); color: #fff; }
.member-nav { display: flex; width: auto; gap: 3px; }
.nav-button { width: auto; padding: 8px 12px; border: 0; border-radius: 8px; color: var(--secondary); font-size: 13px; }
.nav-button:hover, .nav-button.active { border: 0; background: #f2f2f4; color: var(--text); }
.membership { display: flex; align-items: center; gap: 7px; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.membership .eyebrow { display: none; }
.membership strong { display: inline; margin: 0; color: var(--secondary); font-family: inherit; font-size: 12px; font-weight: 400; }
.membership span { color: var(--quiet); font-family: inherit; font-size: 11px; }
.member-sidebar .quiet-button { padding: 8px 0 8px 14px; color: var(--secondary); font-size: 12px; }
.member-main { width: min(100% - 48px, 1220px); margin: 0 auto; padding: 76px 0 112px; }
.member-top { margin-bottom: 70px; }
.member-top .mono { color: var(--quiet); font-size: 11px; letter-spacing: .02em; }
.member-page h2 { margin: 12px 0 18px; font-size: clamp(42px, 5vw, 68px); font-weight: 600; letter-spacing: -.06em; line-height: .98; }
.member-page > .eyebrow { color: var(--secondary); font-size: 11px; letter-spacing: .04em; }
.member-intro { max-width: 510px; margin-bottom: 54px; color: var(--secondary); font-size: 16px; line-height: 1.65; }
.city-selector { margin: 0 0 42px; padding: 0; border: 0; }
.city-selector-copy { display: grid; gap: 5px; margin-bottom: 16px; }
.city-selector-copy span { color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.city-selector-copy small { color: var(--secondary); font-size: 13px; }
.city-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.city-option { min-height: 152px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 18px; border: 1px solid transparent; border-radius: 20px; background: var(--surface); color: var(--text); text-align: left; }
.city-option:hover { border-color: #bcbcc2; color: var(--text); }
.city-code { margin-bottom: auto; color: var(--quiet); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.city-name { font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.city-note { margin-top: 4px; color: var(--secondary); font-size: 12px; }
.city-option.active { border-color: var(--text); background: var(--text); color: #fff; }
.city-option.active .city-code, .city-option.active .city-note { color: #d2d2d7; }

/* Tier selection: calm, circular choices rather than dashboard-like rectangles. */
.tier-cards { display: grid; width: min(100%, 720px); max-width: 720px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; border: 0; }
.tier-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 326px); aspect-ratio: 1; min-height: 0; margin: 0 auto; padding: 34px; border: 1px solid transparent; border-radius: 50%; background: #f2f4ff !important; color: var(--text); text-align: center; }
.tier-5kw { background: #f0f7f4 !important; }
.tier-card::before, .tier-card::after { content: none; display: none; }
.tier-card:hover { transform: none; border-color: #9ca1b2; background: #f2f4ff !important; }
.tier-5kw:hover { background: #f0f7f4 !important; }
.tier-card:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.tier-number { position: absolute; top: 30px; right: 35px; color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.tier-card .eyebrow { margin: 0 0 15px; color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.tier-card strong { margin: 0; color: var(--text); font-family: inherit; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.tier-arrow { margin: 20px 0 0; color: var(--secondary); font-size: 13px; }

/* Browsing: one Telegram-like message card per post, with the album visible before its text. */
.section-heading { align-items: end; margin-bottom: 36px; }
.section-heading .quiet-button { padding: 8px 0; color: var(--secondary); }
#contentPage { max-width: 704px; margin: 0 auto; padding: 10px; border-radius: 24px; background-color: #b9dd99; background-image: radial-gradient(rgba(48, 103, 53, .17) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .38) 1px, transparent 1.5px); background-position: 0 0, 10px 10px; background-size: 20px 20px; }
#contentPage .section-heading { min-height: 58px; align-items: center; margin: 0; padding: 8px 10px; background: #fff; }
#contentPage .section-heading .eyebrow { display: none; }
#contentPage .section-heading h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
#contentPage .section-heading .quiet-button { padding: 8px 0; font-size: 12px; }
.content-list { display: grid; width: 100%; grid-template-columns: 1fr; gap: 12px; }
.content-post { overflow: hidden; padding: 0 0 14px; margin: 0; background: #fff; color: #111; }
.content-post-copy { padding: 12px 14px 0; }
.content-post .eyebrow { display: block; margin-bottom: 9px; color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.content-post h3 { margin: 0 0 10px; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.content-post-body { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.content-date { display: inline-block; color: var(--quiet); font-size: 11px; }
.post-media { display: grid; gap: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 4px; overflow: hidden; background: #fff; }
.media-grid > img, .media-tile { display: block; position: relative; min-width: 0; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #dfe8d7; }
.media-grid > img { object-fit: cover; }
.media-count-1 { grid-template-columns: 1fr; }
.media-count-1 > * { aspect-ratio: 16 / 10; }
.media-count-2 > * { grid-column: span 3; }
.media-count-3 > :nth-child(-n + 2), .media-count-4 > *, .media-count-5 > :nth-child(-n + 2), .media-count-6 > :nth-child(-n + 2), .media-count-7 > :nth-child(-n + 2), .media-count-8 > :nth-child(-n + 2), .media-count-9 > :nth-child(-n + 2), .media-count-10 > :nth-child(-n + 2) { grid-column: span 3; }
.media-count-3 > :nth-child(3) { grid-column: span 6; aspect-ratio: 2 / 1; }
.media-count-5 > :nth-child(n + 3), .media-count-6 > :nth-child(n + 3):nth-child(-n + 5), .media-count-7 > :nth-child(n + 3):nth-child(-n + 5), .media-count-8 > :nth-child(n + 3):nth-child(-n + 5), .media-count-9 > :nth-child(n + 3):nth-child(-n + 5), .media-count-10 > :nth-child(n + 3):nth-child(-n + 5) { grid-column: span 2; }
.media-count-6 > :nth-child(6), .media-count-8 > :nth-child(8) { grid-column: span 6; aspect-ratio: 2 / 1; }
.media-count-7 > :nth-child(6), .media-count-7 > :nth-child(7), .media-count-8 > :nth-child(6), .media-count-8 > :nth-child(7), .media-count-9 > :nth-child(n + 6), .media-count-10 > :nth-child(6), .media-count-10 > :nth-child(7) { grid-column: span 3; }
.media-count-10 > :nth-child(n + 8) { grid-column: span 2; }
.media-video { color: #fff; }
.video-poster, .media-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #20211f; }
.video-play-mark { position: absolute; z-index: 1; top: 50%; left: 50%; width: 48px; height: 48px; translate: -50% -50%; border-radius: 50%; background: rgba(0, 0, 0, .42); }
.video-play-mark::after { content: ""; position: absolute; top: 50%; left: 53%; width: 0; height: 0; translate: -50% -50%; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; }
.media-video.is-playing::before { content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: media-spin .7s linear infinite; }
.media-video.is-playing:not(.is-buffering)::before { display: none; }
.media-video video { position: relative; z-index: 1; }
.post-media .file-link { display: block; margin: 0 12px; padding: 10px; border: 1px solid #d2d2d7; border-radius: 10px; color: #0071e3; font-size: 13px; overflow-wrap: anywhere; }
.empty-message { border: 1px solid var(--line); border-radius: 14px; color: var(--secondary); background: var(--surface); }

@keyframes media-spin { to { transform: rotate(360deg); } }

/* Admin uses the same product framing. */
.console { width: min(100% - 48px, 1220px); max-width: none; padding: 0 0 80px; }
.console-header { height: 72px; padding: 0; border-color: var(--line); }
.console-layout { grid-template-columns: 172px minmax(0, 1fr); gap: 54px; padding-top: 66px; }
.console-nav { gap: 4px; }
.console-nav-button { padding: 9px 10px; border: 0; border-radius: 8px; color: var(--secondary); }
.console-nav-button.active, .console-nav-button:hover { background: #202020; color: #fff; }
.admin-page h1 { font-size: 48px; }
.admin-description { max-width: 540px; color: var(--secondary); font-size: 14px; }
.metric-grid { gap: 10px; }
.metric { padding: 20px; border-radius: 12px; border-color: var(--line); background: var(--surface); }
.metric strong { color: #fff; font-family: inherit; font-size: 32px; font-weight: 600; letter-spacing: -.04em; }
.metric span { color: var(--secondary); font-family: inherit; font-size: 11px; }
.filter-row { gap: 6px; }
.filter, .small-action { padding: 8px 11px; border-radius: 8px; border-color: #3a3a3a; color: var(--secondary); }
.filter.active, .filter:hover, .small-action:hover { border-color: #707070; color: #fff; }
.sync-list, .admin-list { gap: 8px; background: transparent; }
.sync-row, .admin-row { padding: 17px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.setting-grid { gap: 10px; }
.setting { padding: 20px; border-radius: 12px; border-color: var(--line); background: var(--surface); }
.dialog { border-radius: 18px; border-color: #3a3a3a; background: #161616; }
.dialog-card { padding: 28px; }
.gold-button { min-height: 42px; border: 0; border-radius: 9px; background: #fff; color: #000; font-weight: 600; }

@media (max-width: 760px) {
  .gate-header, .gate-hero, .side-caption, .member-main, .console { width: min(100% - 32px, 1220px); }
  .gate-header { height: 64px; }
  .gate-header .mono, .membership { display: none; }
  .gate-hero { padding: 86px 0 72px; }
  .gate-hero h1 { font-size: 56px; }
  .intro, .member-intro { font-size: 15px; }
  .member-sidebar { position: sticky; height: auto; min-height: 64px; padding: 0 16px; gap: 13px; background: rgba(255, 255, 255, .96); }
  .member-sidebar .brand span:last-child { display: none; }
  .member-nav { flex: 1; justify-content: flex-end; gap: 1px; }
  .nav-button { padding: 8px 7px; font-size: 11px; }
  .member-sidebar .quiet-button { padding-left: 5px; font-size: 0; }
  .member-sidebar .quiet-button::after { content: "退出"; font-size: 11px; }
  .member-main { padding: 48px 0 72px; }
  .member-top { margin-bottom: 48px; }
  .city-selector { margin-bottom: 30px; }
  .city-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .city-option { min-height: 128px; padding: 16px; }
  .city-name { font-size: 20px; }
  .content-list { grid-template-columns: 1fr; }
  .tier-cards { width: min(100%, 540px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tier-card { width: 100%; padding: 16px; }
  .tier-number { top: 17px; right: 19px; font-size: 10px; }
  .tier-card .eyebrow { display: none; }
  .tier-card strong { font-size: clamp(19px, 6vw, 31px); line-height: .98; }
  .tier-arrow { margin-top: 13px; font-size: 11px; }
  #contentPage { padding: 6px; border-radius: 18px; }
  #contentPage .section-heading { min-height: 50px; padding: 7px 8px; }
  #contentPage .section-heading h2 { font-size: 15px; }
  .video-play-mark { width: 42px; height: 42px; }
  .console-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
  .console-nav { display: flex; overflow-x: auto; padding-bottom: 2px; }
  .console-nav-button { flex: 0 0 auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
