/* EA China visual foundation */
:root {
  --ink: #12231c;
  --ink-soft: #33463e;
  --muted: #6f7d76;
  --forest-950: #0d2c23;
  --forest-900: #12392d;
  --forest-800: #174d3c;
  --forest: #174d3c;
  --green: #1d7a58;
  --green-hover: #16694b;
  --green-soft: #e5f3ec;
  --mint: #d7eee4;
  --cream: #f4f1e8;
  --canvas: #f7f9f6;
  --paper: #ffffff;
  --line: #dde5e0;
  --line-strong: #cbd6d0;
  --orange: #df8b59;
  --danger: #b54d43;
  --shadow-sm: 0 5px 20px rgba(19, 48, 38, .05);
  --shadow-md: 0 18px 48px rgba(19, 48, 38, .09);
  --shadow: 0 18px 48px rgba(19, 48, 38, .09);
  --border: #dde5e0;
  --text: #12231c;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --serif: Georgia, "Songti SC", "STSong", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px 8px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .pagination-current { border-color: transparent; background: transparent; }
.pagination .disabled { opacity: .45; cursor: not-allowed; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared brand and navigation */
.site-header { height: 76px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(215,224,219,.9); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--forest-800); color: #fff; border-radius: 12px; font-size: 14px; font-weight: 850; letter-spacing: -.4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 20px; letter-spacing: -.7px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .7px; margin-top: 4px; }
.main-nav { display: flex; height: 100%; align-items: stretch; gap: 8px; }
.main-nav a { min-width: 68px; padding: 0 13px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #51625a; position: relative; line-height: 1.25; }
.main-nav a:after { content: ""; height: 2px; border-radius: 4px; background: var(--green); position: absolute; left: 13px; right: 13px; bottom: -1px; transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--forest-800); }
.main-nav a.active:after { transform: scaleX(1); }
.main-nav span { font-weight: 720; font-size: 14px; }
.main-nav small { font-size: 9px; color: #9aa49f; margin-top: 3px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-search { width: 210px; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf9; color: #839089; transition: .2s; }
.header-search:focus-within { border-color: #91b7a5; background: #fff; box-shadow: 0 0 0 3px rgba(29,122,88,.08); }
.header-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.nav-login { color: var(--ink-soft); font-weight: 700; font-size: 13px; padding: 8px; }
.account-menu { position: relative; }
.account-menu details > summary { list-style: none; min-width: 45px; height: 42px; padding: 0 7px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.account-menu details > summary::-webkit-details-marker { display: none; }
.account-menu details[open] > summary { border-color: #91b7a5; background: var(--green-soft); }
.account-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 750; }
.account-chevron { color: var(--muted); font-size: 11px; }
.account-popover { position: absolute; width: 235px; right: 0; top: 50px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 8px; box-shadow: var(--shadow-md); z-index: 45; }
.account-summary { padding: 9px 10px 11px; border-bottom: 1px solid #edf1ef; display: flex; flex-direction: column; overflow: hidden; }
.account-summary strong { font-size: 12px; }
.account-summary small { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.account-popover > a { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
.account-popover > a:hover { background: #f1f6f3; color: var(--green); }
.account-popover > a small { color: var(--muted); font-size: 9px; }
.account-popover > a strong { min-width: 21px; padding: 1px 5px; border-radius: 10px; background: var(--green-soft); color: var(--green); text-align: center; font-size: 9px; }
.account-admin-link { color: #815c3e !important; }
.account-popover form { border-top: 1px solid #edf1ef; padding-top: 5px; margin-top: 4px; }
.account-logout { width: 100%; border: 0; background: transparent; color: #7f4f49; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 11px; cursor: pointer; }
.account-logout:hover { background: #fff1ef; }

/* Buttons and feedback */
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 9px 17px; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 7px 20px rgba(29,122,88,.18); }
.button-primary:hover { background: var(--green-hover); box-shadow: 0 10px 24px rgba(29,122,88,.22); }
.button-light { background: #fff; border-color: rgba(255,255,255,.76); color: var(--forest-900); }
.button-ghost { border-color: var(--line); background: #fff; color: var(--ink-soft); box-shadow: none; }
.button-large { min-height: 48px; padding-inline: 23px; }
.button-small { min-height: 32px; padding: 5px 11px; font-size: 11px; border-color: var(--line); }
.block, .full-button { width: 100%; }
.link-button { color: var(--ink-soft); background: none; border: 0; cursor: pointer; }
.flash { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--forest-900); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-md); font-size: 12px; }
.flash-alert { background: #943f37; }

/* Typography and reusable surfaces */
.eyebrow { display: inline-block; color: #b4d4c6; font-size: 10px; line-height: 1; letter-spacing: 2.3px; text-transform: uppercase; font-weight: 850; }
.eyebrow.dark { color: var(--green); }
.content-panel, .side-card, .narrow-panel, .detail-card, .topic-header-card, .post-card, .reply-card, .form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.section-link { color: var(--green); font-size: 12px; font-weight: 750; white-space: nowrap; }
.section-link:hover { color: var(--forest-800); }
.empty-state { text-align: center; color: #8a9690; padding: 45px 20px; }
.card-index { display: block; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 13px; }

/* Home */
.home-hero { color: #fff; background: var(--forest-950); position: relative; overflow: hidden; }
.home-hero:before { content: ""; width: 620px; height: 620px; position: absolute; right: -180px; top: -315px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 74px rgba(255,255,255,.022), 0 0 0 160px rgba(255,255,255,.018); }
.home-hero:after { content: ""; width: 260px; height: 2px; position: absolute; left: calc(50% - 580px); bottom: 0; background: var(--orange); opacity: .85; }
.home-hero-grid { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.2fr) 360px; gap: 110px; align-items: center; position: relative; z-index: 1; }
.home-hero-copy { padding: 72px 0 64px; }
.home-hero h1 { font-family: var(--serif); font-size: clamp(49px, 5.2vw, 70px); line-height: 1.08; letter-spacing: -2.7px; margin: 18px 0 22px; font-weight: 700; }
.home-hero h1 em { color: #efad7e; font-style: normal; }
.home-hero-copy > p { max-width: 670px; color: #c8d8d1; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; margin-top: 29px; }
.community-stats { display: flex; gap: 0; margin: 38px 0 0; }
.community-stats div { min-width: 120px; padding-right: 26px; margin-right: 26px; border-right: 1px solid rgba(255,255,255,.14); }
.community-stats div:last-child { border: 0; }
.community-stats dt { font-size: 22px; font-weight: 800; line-height: 1.2; }
.community-stats dd { margin: 5px 0 0; color: #a8c0b5; font-size: 10px; }
.hero-principle { padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.065); backdrop-filter: blur(12px); }
.principle-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: #efad7e; color: var(--forest-950); font-size: 11px; font-weight: 850; margin-bottom: 25px; }
.hero-principle > span { color: #a9c8ba; font-size: 9px; letter-spacing: 1.7px; font-weight: 800; }
.hero-principle h2 { margin: 9px 0 12px; font-family: var(--serif); font-size: 28px; line-height: 1.35; }
.hero-principle p { color: #c4d5cd; font-size: 12px; }
.hero-principle a { color: #efad7e; font-size: 11px; font-weight: 750; }
.home-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 22px; padding-top: 34px; padding-bottom: 75px; }
.discussion-panel { overflow: hidden; }
.panel-header { min-height: 96px; padding: 22px 25px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.panel-header h2, .section-heading h2 { font-family: var(--serif); font-size: 28px; letter-spacing: -.5px; margin: 6px 0 0; line-height: 1.25; }
.home-guide { display: flex; flex-direction: column; gap: 14px; }
.side-card { padding: 21px; }
.side-card h3 { font-size: 16px; margin: 0 0 8px; }
.side-card p { color: var(--muted); font-size: 12px; margin: 0 0 17px; }
.starter-card { border-top: 3px solid var(--green); }
.community-rules-card { background: #f3f0e8; border-color: #e7ddca; }
.community-rules-card ul { list-style: none; margin: 0 0 14px; padding: 0; }
.community-rules-card li { padding: 8px 0; border-bottom: 1px solid #e4dccd; color: #5e655f; font-size: 11px; }
.community-rules-card li:before { content: "✓"; color: var(--green); font-weight: 850; margin-right: 7px; }
.community-rules-card a { color: var(--green); font-size: 11px; font-weight: 750; }
.ea-section { padding: 65px 0 78px; background: #edf2ee; border-top: 1px solid #e3e9e5; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.section-heading p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }

/* Topic list */
.topic-row { min-height: 88px; display: grid; grid-template-columns: 40px minmax(0,1fr) 46px 46px; gap: 14px; align-items: center; padding: 15px 22px; border-bottom: 1px solid #edf1ef; transition: background .16s; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: #fafcfb; }
.avatar, .mini-avatar { display: grid; place-items: center; background: linear-gradient(145deg,#d9eee5,#9dccb8); color: var(--forest-800); font-weight: 850; }
.avatar { width: 40px; height: 40px; border-radius: 11px; }
.mini-avatar { width: 29px; height: 29px; border-radius: 8px; font-size: 11px; }
.topic-main { min-width: 0; }
.topic-main h3 { display: inline; margin: 0; font-size: 14px; line-height: 1.4; }
.topic-badges { display: inline-flex; gap: 4px; margin-right: 5px; vertical-align: 1px; }
.topic-title { font-weight: 730; }
.topic-title:hover { color: var(--green); }
.topic-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; color: #8a9690; font-size: 10px; white-space: nowrap; overflow: hidden; }
.topic-meta > * { overflow: hidden; text-overflow: ellipsis; }
.category-dot:before { content: ""; width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; background: var(--category-color); }
.tag { color: #708f82; }
.badge { display: inline-flex; align-items: center; min-height: 19px; padding: 1px 7px; background: #eef2f0; border-radius: 5px; font-size: 9px; white-space: nowrap; }
.badge-warm { background: #fff0df; color: #925d31; }
.badge-success { background: #dff3e8; color: #227151; }
.topic-stat { text-align: center; }
.topic-stat strong { display: block; font-size: 13px; line-height: 1.2; }
.topic-stat span { color: #98a29d; font-size: 9px; }

/* EA cards and library */
.ea-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.ea-card { min-width: 0; min-height: 338px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); position: relative; display: flex; flex-direction: column; transition: transform .18s, border .18s, box-shadow .18s; cursor: pointer; }
.ea-card:hover { transform: translateY(-3px); border-color: #bdcec5; box-shadow: var(--shadow-md); }
.ea-card:focus-within { outline: 3px solid rgba(29,122,88,.18); outline-offset: 3px; }
.ea-card-link:after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.ea-card .ea-author a, .ea-card .compare-check { position: relative; z-index: 2; }
.ea-card-top, .ea-author { display: flex; align-items: center; gap: 8px; }
.ea-card-top { justify-content: space-between; }
.platform-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 6px; background: var(--forest-800); color: #fff; font-size: 9px; font-weight: 850; }
.risk { font-size: 9px; font-weight: 800; }
.risk-low { color: #28775b; }.risk-medium { color: #a36a26; }.risk-high,.risk-extreme { color: #b7463d; }
.ea-card h3 { font-size: 17px; line-height: 1.35; margin: 16px 0 8px; }
.ea-card > p { color: var(--muted); font-size: 11.5px; line-height: 1.7; margin: 0 0 17px; }
.ea-card-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding: 12px 0; margin: auto 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ea-card-facts div { min-width: 0; }
.ea-card-facts dt { color: #98a29d; font-size: 8px; }
.ea-card-facts dd { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #516159; font-size: 9px; font-weight: 720; }
.ea-author { padding-top: 12px; font-size: 10px; }
.ea-author a:hover { color: var(--green); }
.maintenance { margin-left: auto; color: var(--green); font-size: 9px; }
.compare-check { margin-bottom: 12px; font-size: 10px; color: var(--muted); }
.library-shell { padding: 27px 0 78px; }
.library-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.library-filter-group, .library-filter-actions { display: flex; align-items: center; gap: 8px; }
.library-filter-group > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .5px; margin-right: 5px; }
.library-toolbar select { height: 38px; min-width: 135px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf9; color: var(--ink-soft); font-size: 11px; }
.library-summary { display: flex; align-items: baseline; gap: 6px; padding: 23px 2px 14px; color: var(--muted); }
.library-summary strong { color: var(--ink); font-size: 21px; }
.library-summary span { font-size: 11px; }
.library-summary small { margin-left: auto; font-size: 9px; }
.library-grid { margin-bottom: 0; }

/* General page heads and listings */
.page-head { padding: 54px 0 38px; background: linear-gradient(180deg,#edf4ef 0%,#f6f8f5 100%); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 9px 0 6px; font-family: var(--serif); font-size: 39px; line-height: 1.2; letter-spacing: -1px; }
.page-head p { color: var(--muted); margin: 0; font-size: 13px; }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.listing-shell { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 20px; padding-top: 27px; padding-bottom: 75px; align-items: start; }
.listing-shell > .content-panel { overflow: hidden; }
.listing-sidebar { display: flex; flex-direction: column; gap: 13px; }
.filter-bar { min-height: 56px; padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; }
.filter-bar a, .tabs a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: 11px; }
.filter-bar a:hover, .tabs a:hover { background: #f1f5f2; }
.filter-bar a.active { background: var(--green-soft); color: var(--green); font-weight: 750; }
.risk-note { background: #fff9f1; border-color: #ecdcc7; }
.risk-note strong { color: #8c5d39; font-size: 11px; }
.narrow-panel { margin-top: 28px; margin-bottom: 70px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--forest-950); color: #b9ccc3; padding: 44px 0 18px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; padding-bottom: 32px; }
.footer-brand .brand-mark { background: #174d3c; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #8da99c; }
.footer-intro p, .footer-risk p { color: #97afa4; font-size: 11px; max-width: 360px; margin: 15px 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.footer-links div { display: flex; flex-direction: column; gap: 7px; }
.footer-links strong { color: #fff; font-size: 11px; margin-bottom: 3px; }
.footer-links a { color: #a9beb4; font-size: 10px; }
.footer-links a:hover { color: #fff; }
.footer-risk span { color: #efad7e; font-size: 10px; font-weight: 800; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; display: flex; justify-content: space-between; color: #6f8a7d; font-size: 9px; }

/* Forms and authentication */
.form-page { padding: 55px 0 80px; }
.form-shell { display: grid; grid-template-columns: 320px minmax(0,650px); gap: 65px; justify-content: center; }
.form-intro h1 { margin: 11px 0; font-family: var(--serif); font-size: 37px; line-height: 1.2; }
.form-intro p, .form-intro li { color: var(--muted); }
.form-intro ul { padding-left: 20px; }
.form-card { padding: 28px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 750; font-size: 12px; }
.field input, .field select, .field textarea, .reply-card textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 13px; background: #fcfdfc; outline: 0; transition: border .18s, box-shadow .18s, background .18s; }
.field input:focus, .field select:focus, .field textarea:focus, .reply-card textarea:focus { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(29,122,88,.09); }
.field > small { color: var(--muted); font-size: 9px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row.three { grid-template-columns: repeat(3,1fr); }
.form-errors { background: #fff0ed; color: #963c33; border-radius: 9px; padding: 12px; margin-bottom: 18px; font-size: 11px; }
.form-errors ul { margin: 5px 0; }
.auth-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 55px 20px; background: radial-gradient(circle at 15% 12%,#dcece4,transparent 31%),#f3f5f1; }
.auth-card { width: min(430px,100%); padding: 34px; border-radius: 19px; box-shadow: var(--shadow-md); }
.auth-brand { width: max-content; margin-bottom: 33px; }
.auth-card h1 { margin: 0 0 5px; font-family: var(--serif); font-size: 34px; letter-spacing: -.7px; }
.auth-card > p { color: var(--muted); margin: 0 0 27px; }
.auth-card .button { margin-top: 5px; }
.auth-links { display: flex; justify-content: space-between; gap: 15px; margin-top: 21px; color: var(--muted); font-size: 10px; }
.auth-links a { color: var(--green); font-weight: 750; }
.registration-login { justify-content: center; }
.qq-number-field { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fcfdfc; overflow: hidden; }
.qq-number-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,122,88,.09); }
.field .qq-number-field input { min-width:0; flex:1; border:0; border-radius:0; box-shadow:none; background:transparent; }
.qq-number-field span { padding: 0 14px; color: var(--muted); white-space: nowrap; border-left: 1px solid var(--line); }

/* Registration */
.registration-page { padding:24px 20px 38px; place-items:start center; background:radial-gradient(circle at 9% 7%,rgba(151,220,190,.28),transparent 30%),#f4f7f4; }
.registration-card { width:min(680px,100%); padding:25px 36px 29px; border:1px solid rgba(21,69,52,.12); box-shadow:0 20px 48px rgba(21,55,42,.09); }
.registration-heading { display:flex; align-items:center; justify-content:flex-end; min-height:20px; }
.registration-heading > span { color:var(--muted); font-size:10px; white-space:nowrap; }
.registration-heading a { color:var(--green); font-weight:800; }
.registration-title { margin:6px 0 19px; }.registration-title h1 { margin:5px 0 4px; font-family:var(--serif); font-size:31px; letter-spacing:-.6px; }
.registration-title p { margin:0; color:var(--muted); font-size:11px; }.registration-kicker { color:var(--green); font-size:8px; font-weight:850; letter-spacing:1.8px; }
.registration-card form > .field { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:13px; margin-bottom:11px; }
.registration-card form > .field label { font-size:11px; }
.registration-card form > .field > input,
.registration-card form > .field > .qq-number-field { height:44px; }
.registration-card form > .field > input { padding-block:9px; }
.registration-card .field-error { display:none; grid-column:2; margin:-6px 0 0; color:#b5473c; font-size:9px; font-weight:700; line-height:1.4; }
.registration-card .field-error.is-visible { display:block; }
.registration-card form > .field.is-invalid > input,
.registration-card form > .field.is-invalid > .qq-number-field { border-color:#d96b60; background:#fff9f8; box-shadow:0 0 0 3px rgba(217,107,96,.09); }
.registration-terms-wrap { margin:14px 0 15px 89px; }
.registration-terms { display:flex; align-items:flex-start; gap:9px; margin:0; color:var(--muted); font-size:9px; line-height:1.55; cursor:pointer; }
.registration-terms input { width:15px; height:15px; margin-top:1px; accent-color:var(--green); }.registration-terms a { color:var(--green); font-weight:800; }
.registration-terms-wrap .field-error { margin:5px 0 0 24px; }
.registration-submit { width:calc(100% - 89px); min-height:44px; margin:0 0 0 89px!important; }

@media (max-width: 560px) {
  .registration-page { padding:18px 12px 34px; }
  .registration-card { padding:22px 20px 26px; }
  .registration-heading > span { display:none; }
  .registration-title { margin-top:0; }
  .registration-card form > .field { grid-template-columns:1fr; gap:6px; margin-bottom:13px; }
  .registration-card .field-error { grid-column:1; }
  .registration-terms-wrap { margin-left:0; }
  .registration-submit { width:100%; margin-left:0!important; }
}

/* Topic detail */
.topic-page { padding: 31px 0 72px; }
.topic-shell { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 20px; }
.topic-header-card { padding: 25px; margin-bottom: 14px; }
.breadcrumbs { color: var(--green); font-size: 10px; margin-bottom: 11px; }
.topic-header-card h1 { margin: 0 0 18px; font-family: var(--serif); font-size: 31px; line-height: 1.3; }
.topic-byline { display: flex; align-items: center; gap: 10px; }
.topic-byline div { display: flex; flex-direction: column; }
.topic-byline span { color: var(--muted); font-size: 9px; }
.topic-header-actions { margin-top: 15px; }
.post-card { position: relative; padding: 24px; margin-bottom: 11px; }
.post-number { position: absolute; right: 18px; top: 16px; color: #a6afaa; font-size: 9px; }
.post-author { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.post-body { margin-top: 20px; font-size: 14px; }
.post-actions { display: flex; align-items: center; gap: 12px; padding-top: 15px; margin-top: 17px; border-top: 1px solid #eef1ef; color: var(--muted); font-size: 9px; }
.text-action { border: 0; background: none; color: var(--green); cursor: pointer; padding: 0; font-size: 9px; }
.reply-card { padding: 24px; margin-top: 19px; }
.reply-card textarea { margin-bottom: 10px; }
.topic-sidebar { display: flex; flex-direction: column; gap: 14px; }
.topic-sidebar > .side-card:first-child { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.topic-sidebar > .side-card strong { font-size: 20px; }
.topic-sidebar > .side-card span { color: var(--muted); font-size: 9px; }

/* EA detail and generic details */
.ea-profile-head { padding: 39px 0; background: linear-gradient(135deg,#e7f0eb,#f7f8f4); border-bottom: 1px solid var(--line); }
.ea-title-row { display: grid; grid-template-columns: minmax(0,1fr) 165px; gap: 65px; align-items: end; }
.ea-title-row h1 { margin: 12px 0 8px; font-family: var(--serif); font-size: 42px; line-height: 1.2; }
.ea-title-row p { max-width: 750px; color: var(--muted); }
.ea-labels { display: flex; align-items: center; gap: 7px; }
.ea-version-block { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; }
.ea-version-block strong { font-size: 23px; }
.ea-version-block span, .ea-version-block small { color: var(--muted); font-size: 10px; }
.ea-profile-grid { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 23px; padding-top: 27px; padding-bottom: 70px; }
.detail-card { padding: 24px; margin-bottom: 19px; }
.section-heading.compact { margin-bottom: 14px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.fact-grid > div { padding: 14px; border-bottom: 1px solid var(--line); }
.fact-grid dt { color: var(--muted); font-size: 10px; }
.fact-grid dd { margin: 3px 0; font-weight: 750; }
.metric span { display: block; color: var(--muted); font-size: 9px; }
.metric strong { font-size: 15px; }.metric.danger strong { color: #aa4a40; }
.author-card { margin-bottom: 15px; }
.version-row { display: grid; grid-template-columns: 75px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.prose { max-width: 800px; padding: 40px 52px; margin-top: 30px; margin-bottom: 70px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.prose h2 { margin-top: 30px; font-family: var(--serif); }.prose p { color: #4e5d56; }
.prose-callout { padding: 16px 20px; margin-top: 28px; border-left: 4px solid var(--orange); background: #fff8ed; }

/* Member profile */
.profile-hero { padding: 43px 0; background: linear-gradient(125deg,var(--forest-950),#185843); color: #fff; position: relative; overflow: hidden; }
.profile-hero:after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -205px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.022); }
.profile-heading { display: grid; grid-template-columns: 88px minmax(0,1fr) auto auto; gap: 22px; align-items: center; position: relative; z-index: 1; }
.profile-avatar { display: grid; place-items: center; background: #d9eee5; color: var(--forest-800); font-weight: 850; }
.profile-avatar-large { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; font-size: 32px; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity h1 { margin: 5px 0 0; font-family: var(--serif); font-size: 37px; line-height: 1.2; }
.profile-handle { margin: 2px 0 0; color: #b9d0c6; font-size: 11px; }
.profile-meta { display: flex; gap: 13px; margin-top: 7px; color: #a9c1b6; font-size: 9px; }
.profile-meta a { color: #efb087; }
.profile-stats { min-width: 210px; display: grid; grid-template-columns: repeat(3,1fr); margin: 0; padding: 12px 0; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.06); }
.profile-stats div { padding: 0 13px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }.profile-stats div:last-child { border: 0; }
.profile-stats dt { font-size: 18px; font-weight: 800; }.profile-stats dd { margin: 2px 0 0; color: #a8c1b5; font-size: 8px; }
.profile-actions { display: flex; gap: 7px; }
.profile-actions form { margin: 0; }
.profile-actions .button { white-space: nowrap; }
.profile-more-actions { position: relative; }
.profile-more-actions > summary { list-style: none; min-height: 40px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; cursor: pointer; font-size: 11px; }
.profile-more-actions form { position: absolute; right: 0; top: 45px; min-width: 120px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow-md); }
.profile-grid { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 22px; padding-top: 27px; padding-bottom: 70px; align-items: start; }
.profile-section { padding: 0; overflow: hidden; }
.profile-section > .section-heading { padding: 22px 23px 15px; margin: 0; border-bottom: 1px solid var(--line); }
.profile-ea-grid { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px; }
.profile-ea-grid .ea-card { min-height: 315px; }
.section-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.recent-contributions { margin-top: 18px; }
.profile-sidebar { display: flex; flex-direction: column; gap: 13px; }
.profile-about p { white-space: pre-line; }
.profile-safety-note { background: #f2f4f1; }
.profile-safety-note span { color: var(--muted); font-size: 9px; font-weight: 800; }.profile-safety-note p { margin: 5px 0 0; }
.decorative-member-badge { display: inline-flex; padding: 2px 7px; margin-left: 6px; border-radius: 10px; background: rgba(255,255,255,.1); color: #efb087; }

/* Points */
.points-hero { padding: 44px 0; background: var(--forest-950); color: #fff; }
.points-hero-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.points-hero h1 { margin: 8px 0 5px; font-family: var(--serif); font-size: 40px; }.points-hero p { margin: 0; color: #afc4ba; font-size: 12px; }
.points-balance { min-width: 145px; padding: 15px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.07); text-align: center; display: flex; flex-direction: column; }
.points-balance strong { color: #efb087; font-size: 32px; line-height: 1; }.points-balance span { margin-top: 5px; color: #a6beb3; font-size: 9px; }
.balance-pair { display:flex; gap:10px; }
.experience-balance strong { color:#6bd8ad; }
.dual-system-card { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr); gap:24px; margin-bottom:17px; }
.dual-system-copy h2 { margin:6px 0 8px; font-family:var(--serif); font-size:28px; }
.dual-system-copy p { margin:0; color:var(--muted); font-size:10px; line-height:1.7; }
.level-meter { height:8px; margin:18px 0 7px; overflow:hidden; border-radius:999px; background:#e6eee9; }
.level-meter i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--green),#45c994); }
.dual-system-copy>small { color:var(--muted); font-size:8px; }
.dual-system-rules { display:grid; gap:9px; }
.dual-system-rules article { display:grid; grid-template-columns:45px 1fr; column-gap:10px; padding:13px; border:1px solid var(--line); border-radius:10px; background:#fafcfb; }
.dual-system-rules article>span { grid-row:1/3; width:40px; height:40px; display:grid; place-items:center; border-radius:9px; background:var(--green-soft); color:var(--green); font-size:9px; font-weight:850; }
.dual-system-rules strong { font-size:10px; }
.dual-system-rules small { margin-top:3px; color:var(--muted); font-size:8px; line-height:1.5; }
.points-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 22px; padding-top: 27px; padding-bottom: 70px; align-items: start; }
.check-in-card { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 3px solid var(--green); }
.check-in-copy h2 { margin: 7px 0 5px; font-family: var(--serif); font-size: 27px; }.check-in-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.streak-chip { display: inline-flex; margin-top: 13px; padding: 4px 8px; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: 9px; }
.check-in-action { min-width: 160px; display: flex; justify-content: center; }
.checked-in-mark { padding: 11px 16px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 750; }
.points-usage { margin-top: 17px; }
.usage-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.usage-grid article { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.usage-grid article > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 850; }
.usage-grid article div { display: flex; flex-direction: column; }.usage-grid strong { font-size: 11px; }.usage-grid small { color: var(--muted); font-size: 8px; }
.points-coming { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #f4f1e9; color: #766b5d; font-size: 9px; }
.point-history-card { margin-top: 17px; }
.point-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-top: 1px solid var(--line); }
.point-row > div { display: flex; flex-direction: column; }.point-row strong { font-size: 11px; }.point-row span { color: var(--muted); font-size: 9px; }.point-row > b { font-size: 17px; }
.point-positive { color: var(--green); }.point-negative { color: var(--danger); }
.points-sidebar { display: flex; flex-direction: column; gap: 13px; }
.points-sidebar ul { list-style: none; padding: 0; margin: 0; }.points-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; }.points-sidebar li:before { content: "+"; color: var(--green); font-weight: 850; margin-right: 7px; }

@media (max-width: 1000px) {
  .header-search { width: 165px; }
  .account-name, .account-chevron { display: none; }
  .home-hero-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 55px; }
  .ea-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .container { width: min(100% - 30px,1160px); }
  .main-nav { display: none; }
  .home-hero-grid, .home-content-grid, .listing-shell, .form-shell, .topic-shell, .ea-profile-grid, .profile-grid, .points-layout { grid-template-columns: 1fr; }
  .home-hero-grid { min-height: 0; gap: 0; padding-bottom: 48px; }
  .home-hero-copy { padding-bottom: 38px; }
  .hero-principle { max-width: 520px; }
  .home-guide { display: grid; grid-template-columns: 1fr 1fr; }
  .listing-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .topic-sidebar { display: none; }
  .form-shell { gap: 25px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1/-1; }
  .ea-title-row { gap: 22px; }
  .profile-heading { grid-template-columns: 84px minmax(0,1fr) auto; }
  .profile-stats { grid-column: 1/-1; width: min(360px,100%); }
  .profile-sidebar, .points-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px,1160px); }
  .site-header { height: 64px; }
  .nav-wrap { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-copy strong { font-size: 17px; }
  .header-search { flex: 1; width: auto; max-width: 150px; height: 38px; }
  .header-search input::placeholder { color: transparent; }
  .nav-publish, .nav-login { display: none; }
  .nav-actions > .button-primary { min-height: 38px; padding-inline: 12px; font-size: 11px; }
  .home-hero:after { left: 12px; width: 130px; }
  .home-hero-copy { padding: 52px 0 32px; }
  .home-hero h1 { font-size: 41px; letter-spacing: -1.8px; }
  .home-hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .community-stats div { min-width: 0; flex: 1; padding-right: 10px; margin-right: 10px; }
  .community-stats dt { font-size: 18px; }
  .home-guide, .listing-sidebar { grid-template-columns: 1fr; }
  .panel-header { min-height: 86px; padding-inline: 17px; }
  .topic-row { grid-template-columns: 34px minmax(0,1fr) 34px; gap: 10px; padding: 13px 12px; }
  .topic-row .views { display: none; }
  .avatar { width: 34px; height: 34px; }
  .topic-meta span:nth-of-type(2) { display: none; }
  .topic-main h3 { font-size: 13px; }
  .ea-grid { grid-template-columns: 1fr; }
  .ea-card { min-height: 310px; }
  .page-head { padding: 40px 0 29px; }
  .page-head-row, .section-heading { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 32px; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .library-filter-group { display: grid; grid-template-columns: 1fr 1fr; }
  .library-filter-group > span { grid-column: 1/-1; }
  .library-toolbar select { width: 100%; min-width: 0; }
  .library-filter-actions .button { flex: 1; }
  .library-summary small { display: none; }
  .form-row, .form-row.three, .fact-grid { grid-template-columns: 1fr; }
  .form-card, .auth-card { padding: 23px; }
  .auth-links { flex-direction: column; gap: 8px; }
  .ea-title-row { grid-template-columns: 1fr; }
  .ea-version-block { width: 160px; }
  .footer-main { grid-template-columns: 1fr; gap: 27px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { gap: 15px; }
  .prose { padding: 25px 20px; }
  .profile-heading { grid-template-columns: 64px minmax(0,1fr); gap: 15px; }
  .profile-avatar-large { width: 62px; height: 62px; border-radius: 17px; font-size: 24px; }
  .profile-identity h1 { font-size: 30px; }
  .profile-stats, .profile-actions { grid-column: 1/-1; }
  .profile-actions { width: 100%; }.profile-actions form, .profile-actions .button { flex: 1; }.profile-actions .button { width: 100%; }
  .profile-ea-grid { grid-template-columns: 1fr; padding: 14px; }
  .profile-sidebar, .points-sidebar { grid-template-columns: 1fr; }
  .points-hero-grid { align-items: flex-start; flex-direction: column; }
  .balance-pair { width:100%; }.points-balance { width: 100%; }
  .dual-system-card { grid-template-columns:1fr; }
  .check-in-card { align-items: flex-start; flex-direction: column; }
  .check-in-action { min-width: 0; }
  .usage-grid { grid-template-columns: 1fr; }
}
