:root {
  --portal-header-height: 70px;
  --bg: #08090a;
  --panel: #111214;
  --panel-soft: #151719;
  --panel-deep: #0c0d0f;
  --line: #27282b;
  --line-soft: #1e2023;
  --text: #f2eee7;
  --muted: #aaa49c;
  --gold: #efbd64;
  --gold-deep: #a87329;
  --red: #ff5544;
  --green: #55d47a;
  --blue: #4d95ed;
  --purple: #a45cf1;
  --body-glow: #151310;
  --body-mid: #090a0b;
  --header-bg: rgba(9,10,11,.97);
  --accent-light: #f6cb78;
  --accent-soft: rgba(220,161,69,.2);
  --accent-contrast: #281806;
  --control: #1b1d20;
  --table-head: #0d0f11;
  --row-hover: #16181a;
  --shadow: rgba(0,0,0,.36);
}

html[data-theme="ocean"] { --bg:#050c13; --panel:#0b151e; --panel-soft:#101e29; --panel-deep:#071019; --line:#203545; --line-soft:#172b39; --text:#edf6ff; --muted:#9fb2c2; --gold:#57b6ff; --gold-deep:#277bbb; --body-glow:#0c2b43; --body-mid:#07121c; --header-bg:rgba(5,13,20,.97); --accent-light:#8bceff; --accent-soft:rgba(71,164,235,.2); --accent-contrast:#061725; }
html[data-theme="ember"] { --bg:#100806; --panel:#1a100e; --panel-soft:#211411; --panel-deep:#120907; --line:#432820; --line-soft:#342018; --text:#fff2eb; --muted:#c1a092; --gold:#ff8355; --gold-deep:#bd4028; --body-glow:#43150d; --body-mid:#170b08; --header-bg:rgba(18,8,6,.97); --accent-light:#ffb079; --accent-soft:rgba(244,87,52,.2); --accent-contrast:#2b0b04; }
html[data-theme="jade"] { --bg:#04100d; --panel:#0a1915; --panel-soft:#10221c; --panel-deep:#06120f; --line:#214036; --line-soft:#17352c; --text:#effbf7; --muted:#9ab8ad; --gold:#4ed69f; --gold-deep:#1b9367; --body-glow:#0d3a2d; --body-mid:#071711; --header-bg:rgba(4,15,12,.97); --accent-light:#83ebbf; --accent-soft:rgba(55,203,144,.2); --accent-contrast:#052017; }
html[data-theme="violet"] { --bg:#0d0813; --panel:#171020; --panel-soft:#20162b; --panel-deep:#100a17; --line:#3a2a49; --line-soft:#2c2039; --text:#f8f1ff; --muted:#b2a0bf; --gold:#ba83ff; --gold-deep:#7541b7; --body-glow:#2d1744; --body-mid:#130b1c; --header-bg:rgba(13,8,19,.97); --accent-light:#d0a6ff; --accent-soft:rgba(165,99,235,.2); --accent-contrast:#1b082e; }
html[data-theme="ivory"] { --bg:#f2eee7; --panel:#fffdfa; --panel-soft:#f7f2e9; --panel-deep:#eee8dc; --line:#ddd3c2; --line-soft:#ebe4d8; --text:#29231c; --muted:#6c6257; --gold:#b77a25; --gold-deep:#8c5919; --body-glow:#fffaf1; --body-mid:#f5f1e9; --header-bg:rgba(255,253,249,.97); --accent-light:#d9a34e; --accent-soft:rgba(183,122,37,.14); --accent-contrast:#fffaf0; --control:#f3ede3; --table-head:#eee8dc; --row-hover:#faf6ef; --shadow:rgba(91,69,39,.16); }
html[data-theme="ice"] { --bg:#edf4f9; --panel:#ffffff; --panel-soft:#f3f8fc; --panel-deep:#e5eef5; --line:#ccdce8; --line-soft:#e0eaf1; --text:#1d2b36; --muted:#5f7484; --gold:#2f80c7; --gold-deep:#1f6098; --body-glow:#f9fcff; --body-mid:#eff6fb; --header-bg:rgba(252,254,255,.97); --accent-light:#67afe7; --accent-soft:rgba(47,128,199,.13); --accent-contrast:#ffffff; --control:#edf4f9; --table-head:#e7f0f6; --row-hover:#f4f9fc; --shadow:rgba(37,82,116,.14); }
html[data-theme="porcelain"] { --bg:#edf5f1; --panel:#ffffff; --panel-soft:#f1f8f5; --panel-deep:#e3f0ea; --line:#c9ddd3; --line-soft:#deebe5; --text:#203029; --muted:#60776c; --gold:#2d966c; --gold-deep:#1d704f; --body-glow:#f9fdfb; --body-mid:#eef7f3; --header-bg:rgba(253,255,254,.97); --accent-light:#61bd96; --accent-soft:rgba(45,150,108,.13); --accent-contrast:#ffffff; --control:#eaf4ef; --table-head:#e4f0ea; --row-hover:#f3f9f6; --shadow:rgba(38,91,69,.14); }
html[data-theme="skywarm"] { --bg:#edf1f3; --panel:#ffffff; --panel-soft:#f7f5f1; --panel-deep:#e8edef; --line:#d4dce0; --line-soft:#e5eaec; --text:#34414a; --muted:#66757d; --gold:#5aa5cf; --gold-deep:#337da6; --body-glow:#fcfdfd; --body-mid:#f2f5f6; --header-bg:rgba(255,255,255,.97); --accent-light:#86c4e5; --accent-soft:rgba(90,165,207,.14); --accent-contrast:#ffffff; --control:#f0f2f3; --table-head:#e9eef1; --row-hover:#f8fafb; --shadow:rgba(65,84,95,.13); }
html[data-theme="bluecream"] { --bg:#dcebf5; --panel:#fdfefe; --panel-soft:#f7fbfe; --panel-deep:#edf3f7; --line:#8ea7d9; --line-soft:#c6d3e8; --text:#3d4c5f; --muted:#68768a; --gold:#5d86e2; --gold-deep:#426cc7; --body-glow:#ffffff; --body-mid:#edf5fa; --header-bg:rgba(246,250,254,.98); --accent-light:#86a8f1; --accent-soft:rgba(82,126,218,.14); --accent-contrast:#ffffff; --control:#fff2c7; --table-head:#718fd7; --row-hover:#eaf2ff; --shadow:rgba(58,83,125,.14); }
html[data-theme="aurora"] { color-scheme:dark; --bg:#07101c; --panel:#101b2b; --panel-soft:#15243a; --panel-deep:#080f1b; --line:#2a405f; --line-soft:#1d304a; --text:#f4f8ff; --muted:#9eb0c5; --gold:#66a6ff; --gold-deep:#3976d4; --red:#ff7185; --green:#39d69c; --blue:#66a6ff; --purple:#aa85ff; --body-glow:#172f4e; --body-mid:#0a1726; --header-bg:rgba(7,16,28,.96); --accent-light:#8edcff; --accent-soft:rgba(102,166,255,.18); --accent-contrast:#061321; --control:#192a42; --table-head:#0b1727; --row-hover:#192c47; --shadow:rgba(0,5,14,.46); }

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: calc(var(--portal-header-height) + 12px); }
body { margin: 0; min-width: 320px; padding: var(--portal-header-height) 0 0; color: var(--text); background-color: var(--bg); background-image: var(--portal-global-background-image, none), radial-gradient(circle at 50% 0, var(--body-glow) 0, var(--body-mid) 34%, var(--bg) 100%); background-position: center top, center top; background-size: cover, auto; background-repeat: no-repeat, no-repeat; background-attachment: fixed, scroll; font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-rendering: optimizeLegibility; transition: color .2s ease, background-color .2s ease; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.site-shell { width: min(1480px, calc(100% - 36px)); margin: 0 auto; }

.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; width: 100%; height: var(--portal-header-height); border-bottom: 1px solid var(--line); background: var(--header-bg); box-shadow: 0 6px 20px var(--shadow); backdrop-filter: blur(16px); }
.header-row { height: 100%; display: grid; grid-template-columns: minmax(190px,230px) minmax(450px,1fr) auto; align-items: center; gap: 18px; }
.site-brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand-logo { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 44px; color: var(--accent-contrast); border: 2px solid var(--gold); background: linear-gradient(145deg,var(--accent-light),var(--gold-deep)); font-size: 14px; font-weight: 1000; clip-path: polygon(50% 0,94% 24%,94% 75%,50% 100%,6% 75%,6% 24%); }
.site-brand strong, .site-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-brand strong { color: var(--gold); font-size: 19px; line-height: 1.2; }
.site-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.main-nav { height: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(4px,.65vw,12px); scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { position: relative; height: 40px; padding: 0 clamp(10px,.9vw,16px); display: flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.main-nav a:hover { color: var(--gold); background: var(--panel-soft); }
.main-nav a.active { color: var(--gold); background: var(--accent-soft); }
.main-nav a.active::after { content: ""; position: absolute; right: 12px; bottom: 2px; left: 12px; height: 2px; border-radius: 2px; background: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 7px; }
.theme-picker { position: relative; }
.theme-toggle { height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--panel); font-size: 12px; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { color: var(--gold); border-color: var(--gold-deep); background: var(--panel-soft); }
.theme-toggle i { width: 13px; height: 13px; display: block; border: 2px solid var(--accent-light); border-radius: 50%; background: linear-gradient(135deg,var(--gold) 0 50%,var(--panel-deep) 50% 100%); box-shadow: 0 0 7px var(--accent-soft); }
.theme-menu { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: 236px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: 0 18px 45px var(--shadow); backdrop-filter: blur(16px); scrollbar-width: thin; scrollbar-color: var(--gold-deep) var(--panel-soft); }
.theme-menu[hidden] { display: none; }
.theme-menu::before { content: ""; position: absolute; top: -5px; right: 27px; width: 9px; height: 9px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--panel); transform: rotate(45deg); }
.theme-menu button { position: relative; width: 100%; min-height: 47px; padding: 7px 9px; display: grid; grid-template-columns: 28px minmax(0,1fr) 18px; align-items: center; gap: 9px; border: 0; border-radius: 5px; color: var(--text); background: transparent; text-align: left; }
.theme-menu button:hover { background: var(--panel-soft); }
.theme-menu button.active { background: var(--accent-soft); }
.theme-menu button > i { width: 24px; height: 24px; display: block; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(0,0,0,.18); }
.theme-menu button span, .theme-menu button strong, .theme-menu button small { display: block; min-width: 0; }
.theme-menu button strong { font-size: 12px; }
.theme-menu button small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.theme-menu button b { visibility: hidden; color: var(--gold); font-size: 13px; }
.theme-menu button.active b { visibility: visible; }
.swatch-gold { background: linear-gradient(135deg,#efbd64 0 50%,#17110a 50%); }
.swatch-ocean { background: linear-gradient(135deg,#57b6ff 0 50%,#071925 50%); }
.swatch-ember { background: linear-gradient(135deg,#ff8355 0 50%,#28100a 50%); }
.swatch-jade { background: linear-gradient(135deg,#4ed69f 0 50%,#072018 50%); }
.swatch-violet { background: linear-gradient(135deg,#ba83ff 0 50%,#1c0d29 50%); }
.swatch-ivory { background: linear-gradient(135deg,#ffffff 0 50%,#c58a35 50%); }
.swatch-ice { background: linear-gradient(135deg,#ffffff 0 50%,#2f80c7 50%); }
.swatch-porcelain { background: linear-gradient(135deg,#ffffff 0 50%,#2d966c 50%); }
.swatch-skywarm { background: conic-gradient(#72b8dc 0 33%,#ffffff 33% 66%,#dca463 66% 100%); }
.swatch-bluecream { background: conic-gradient(#809aeb 0 33%,#ffffff 33% 66%,#fff3b9 66% 100%); }
.swatch-aurora { background: conic-gradient(#5da9ff 0 25%,#38d7a2 25% 50%,#ffd166 50% 75%,#a985ff 75% 100%); }
html[data-theme="skywarm"] .register-button,
html[data-theme="skywarm"] .download-link,
html[data-theme="skywarm"] .sponsor-banner a,
html[data-theme="skywarm"] .sponsor-banner button,
html[data-theme="skywarm"] .tool-card a { color:#49311b; border-color:#d69a55; background:linear-gradient(#f3c680,#dfa05b); }
html[data-theme="skywarm"] .metric-item:nth-child(2) .metric-icon { color:#b87431; border-color:#ddb179; background:#fbf1e3; }
html[data-theme="skywarm"] .metric-item:nth-child(3) .metric-icon { color:#418d6c; border-color:#9bc9b6; background:#eaf6f1; }
html[data-theme="skywarm"] .metric-item:nth-child(4) .metric-icon { color:#8a70b0; border-color:#c7b8db; background:#f3eef8; }
html[data-theme="skywarm"] .tool-card:nth-child(3n+2) .tool-card-icon { background:linear-gradient(145deg,#68b999,#3d8e70); }
html[data-theme="skywarm"] .tool-card:nth-child(3n) .tool-card-icon { background:linear-gradient(145deg,#a68acc,#7862a2); }
html[data-theme="skywarm"] .topic-row:nth-child(3n+2) .topic-type { background:#56a882; }
html[data-theme="skywarm"] .topic-row:nth-child(3n) .topic-type { background:#d79a55; }
html[data-theme="bluecream"] .site-header { border-bottom-color:#91a9dc; background:linear-gradient(90deg,rgba(249,252,255,.98),rgba(241,247,252,.98)); box-shadow:0 7px 22px rgba(57,84,128,.12); }
html[data-theme="bluecream"] .brand-logo { border-color:#7599e9; background:linear-gradient(145deg,#8fb2ff,#5e86df); box-shadow:0 6px 16px rgba(73,112,197,.18); }
html[data-theme="bluecream"] .site-brand strong,
html[data-theme="bluecream"] .footer-brand strong { color:#486fc8; }
html[data-theme="bluecream"] .main-nav a { color:#485970; }
html[data-theme="bluecream"] .main-nav a:hover { color:#3f66bf; background:#edf3ff; }
html[data-theme="bluecream"] .main-nav a.active { color:#355db7; background:linear-gradient(180deg,#eef4ff,#e1eaff); }
html[data-theme="bluecream"] .main-nav a.active::after { background:linear-gradient(90deg,#6f96ee,#4f78d3); }
html[data-theme="bluecream"] .theme-toggle,
html[data-theme="bluecream"] .login-button { border-color:#b1c2e5; background:#f8fbff; }
html[data-theme="bluecream"] .top-entry strong { color:#f7faff; }
html[data-theme="bluecream"] .top-entry small { color:rgba(255,255,255,.9); }
html[data-theme="bluecream"] .top-entry b { color:#2f538f; background:#dfeaff; }
html[data-theme="bluecream"] .version-library { border-color:#8da5d7; box-shadow:0 12px 30px rgba(67,93,139,.13); }
html[data-theme="bluecream"] .version-columns { color:#ffffff; background:linear-gradient(90deg,#718fd7,#829de1); font-weight:700; }
html[data-theme="bluecream"] .version-row:nth-child(odd),
html[data-theme="bluecream"] .version-row:nth-child(even) { background:#fff9e3; }
html[data-theme="bluecream"] .topic-row:nth-child(odd),
html[data-theme="bluecream"] .topic-row:nth-child(even) { background:#fbfdff; }
html[data-theme="bluecream"] .version-row { transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease; }
html[data-theme="bluecream"] .version-row::before { position:absolute; z-index:0; inset:0; content:""; pointer-events:none; background:linear-gradient(105deg,transparent 22%,rgba(255,255,255,.62) 48%,transparent 74%); transform:translateX(-115%); transition:transform .48s ease; }
html[data-theme="bluecream"] .version-row:hover { background:#edf4ff; box-shadow:inset 4px 0 #6389df,0 5px 14px rgba(69,99,155,.1); transform:translateY(-1px); }
html[data-theme="bluecream"] .version-row:hover::before { transform:translateX(115%); }
html[data-theme="bluecream"] .topic-row:hover { background:#edf4ff; }
html[data-theme="bluecream"] .category-button,
html[data-theme="bluecream"] .engine-button,
html[data-theme="bluecream"] .category-pills button { border:1px solid #e9d18a; background:#fff5d6; }
html[data-theme="bluecream"] .category-button:hover,
html[data-theme="bluecream"] .engine-button:hover,
html[data-theme="bluecream"] .category-pills button:hover { color:#4464a5; border-color:#d7b95e; background:#ffefb8; }
html[data-theme="bluecream"] .category-button.active,
html[data-theme="bluecream"] .engine-button.active,
html[data-theme="bluecream"] .category-pills button.active { color:#ffffff; border-color:#557ed8; background:linear-gradient(#7198ed,#557dd6); box-shadow:0 4px 10px rgba(76,111,188,.16); }
html[data-theme="bluecream"] .download-link,
html[data-theme="bluecream"] .tool-card a,
html[data-theme="bluecream"] .forum-toolbar a { color:#ffffff; border-color:#4b75d0; background:linear-gradient(#759cf0,#557ed8); transition:background .18s ease,box-shadow .18s ease,transform .18s ease; }
html[data-theme="bluecream"] .download-link:hover,
html[data-theme="bluecream"] .tool-card a:hover,
html[data-theme="bluecream"] .forum-toolbar a:hover { border-color:#365eaf; background:linear-gradient(#5f86df,#3f68bd); box-shadow:0 6px 14px rgba(59,92,164,.22); transform:translateY(-1px); }
html[data-theme="bluecream"] .register-button { color:#5b421e; border-color:#e2b85d; background:linear-gradient(#ffe3a3,#f2c56d); }
html[data-theme="bluecream"] .sponsor-banner span { color:#ffe3a0; }
html[data-theme="bluecream"] .version-info { padding-left:9px; border-left:3px solid #6689dc; }
html[data-theme="bluecream"] .version-badges span { color:#ffffff; background:#ee8b45; }
html[data-theme="bluecream"] .version-badges i { color:#ffffff; background:#6689de; }
html[data-theme="bluecream"] .version-badges b { color:#8a641e; border:1px solid #e3c66c; background:#fff1b8; }
html[data-theme="bluecream"] .version-info h3.title-color-default { color:#334a72; font-weight:750; }
html[data-theme="bluecream"] .version-info p { color:#52647b; }
html[data-theme="bluecream"] .cooperation-section,
html[data-theme="bluecream"] .sponsor-section,
html[data-theme="bluecream"] .notice-section { border-color:#c7d4e6; background:linear-gradient(145deg,#fbfdff,#f1f5fa); box-shadow:0 8px 20px rgba(70,96,132,.08); }
html[data-theme="bluecream"] .sidebar-title h2 { color:#3d526e; }
html[data-theme="bluecream"] .cooperation-grid a,
html[data-theme="bluecream"] .cooperation-grid a:nth-child(2),
html[data-theme="bluecream"] .cooperation-grid a:nth-child(3),
html[data-theme="bluecream"] .cooperation-grid a:nth-child(4) { border-color:#d1dce9; background:linear-gradient(135deg,#eef3f9,#e7eef7); }
html[data-theme="bluecream"] .cooperation-grid a::after { background:linear-gradient(90deg,rgba(58,82,113,.06),rgba(58,82,113,.02)); }
html[data-theme="bluecream"] .cooperation-grid a.has-background::after { background:linear-gradient(90deg,rgba(27,48,75,.46),rgba(27,48,75,.24)); }
html[data-theme="bluecream"] .cooperation-grid i { color:#ffffff; background:#7792b8; }
html[data-theme="bluecream"] .cooperation-grid strong { color:#354b67; }
html[data-theme="bluecream"] .cooperation-grid small { color:#6d7f93; }
html[data-theme="bluecream"] .cooperation-grid a.has-background strong { color:#ffffff; }
html[data-theme="bluecream"] .cooperation-grid a.has-background small { color:#e7edf5; }
html[data-theme="bluecream"] .sponsor-section li,
html[data-theme="bluecream"] .notice-section li { border-top-color:#d9e2ed; }
html[data-theme="bluecream"] .sponsor-section li:nth-child(n+4) > a > b { color:#64758a; background:#e7edf5; }

/* 星曜幻彩：颜色各司其职，保持多彩但不杂乱。 */
html[data-theme="aurora"] body {
  background-image: var(--portal-global-background-image, none), linear-gradient(125deg,rgba(65,139,232,.1),transparent 30%), linear-gradient(305deg,rgba(156,110,235,.08),transparent 34%), linear-gradient(rgba(113,153,199,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(113,153,199,.025) 1px,transparent 1px);
  background-position: center top,center top,center top,center top,center top;
  background-size: cover,100% 100%,100% 100%,42px 42px,42px 42px;
  background-repeat: no-repeat,no-repeat,no-repeat,repeat,repeat;
  background-attachment: fixed,scroll,scroll,scroll,scroll;
}
html[data-theme="aurora"] .site-header { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg,#4da3ff,#36d4a2,#ffd166,#a985ff,#ff7185) 1; }
html[data-theme="aurora"] .brand-logo { border-color:rgba(255,255,255,.35); background:conic-gradient(from 215deg,#4da3ff,#36d4a2,#ffd166,#a985ff,#4da3ff); box-shadow:0 0 18px rgba(80,166,255,.28); }
html[data-theme="aurora"] .site-brand strong,
html[data-theme="aurora"] .footer-brand strong { color:#8edcff; background:linear-gradient(90deg,#8edcff 0%,#70e2bb 38%,#ffd982 70%,#c5a7ff 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html[data-theme="aurora"] .main-nav a:hover { color:#8edcff; }
html[data-theme="aurora"] .main-nav a.active { color:#f7fbff; background:linear-gradient(115deg,rgba(75,151,244,.25),rgba(153,111,232,.18)); }
html[data-theme="aurora"] .main-nav a.active::after { background:linear-gradient(90deg,#58a8ff,#3ed9a6,#ffd166); }
html[data-theme="aurora"] .theme-toggle i { border-color:#9bdfff; background:conic-gradient(#5da9ff 0 25%,#38d7a2 25% 50%,#ffd166 50% 75%,#a985ff 75% 100%); }
html[data-theme="aurora"] .login-button { border-color:#3f6fa5; background:#12243a; }
html[data-theme="aurora"] .register-button,
html[data-theme="aurora"] .download-link,
html[data-theme="aurora"] .tool-card a,
html[data-theme="aurora"] .forum-toolbar a { color:#172033; border-color:#e9b84f; background:linear-gradient(#ffe49a,#f4bd52); box-shadow:0 7px 18px rgba(238,180,65,.18); }
html[data-theme="aurora"] .top-search:focus-within { border-color:#45cda1; box-shadow:0 0 0 3px rgba(57,214,156,.15); }
html[data-theme="aurora"] .version-library,
html[data-theme="aurora"] .sidebar-section,
html[data-theme="aurora"] .section-panel,
html[data-theme="aurora"] .version-overview-info,
html[data-theme="aurora"] .version-content-section { background:linear-gradient(145deg,rgba(21,36,58,.96),rgba(10,21,36,.97)); box-shadow:0 14px 34px rgba(0,5,14,.32); }
html[data-theme="aurora"] .library-heading,
html[data-theme="aurora"] .panel-heading { border-top:2px solid #5da9ff; }
html[data-theme="aurora"] .category-button:hover,
html[data-theme="aurora"] .category-button.active { color:#061321; background:linear-gradient(135deg,#78c9ff,#5e91ff); }
html[data-theme="aurora"] .engine-button:hover,
html[data-theme="aurora"] .engine-button.active,
html[data-theme="aurora"] .category-pills button.active { color:#061c16; border-color:#3dd9a5; background:rgba(57,214,156,.86); }
html[data-theme="aurora"] .version-row:nth-child(4n+1) { box-shadow:inset 3px 0 #5da9ff; }
html[data-theme="aurora"] .version-row:nth-child(4n+2) { box-shadow:inset 3px 0 #3bd6a2; }
html[data-theme="aurora"] .version-row:nth-child(4n+3) { box-shadow:inset 3px 0 #ffd166; }
html[data-theme="aurora"] .version-row:nth-child(4n) { box-shadow:inset 3px 0 #a985ff; }
html[data-theme="aurora"] .version-badges span { color:#081521; background:#ff7185; }
html[data-theme="aurora"] .version-badges i { color:#071a16; background:#42d9a8; }
html[data-theme="aurora"] .version-badges b { color:#241a05; border-color:#d4a83f; background:#ffd166; }
html[data-theme="aurora"] .version-price,
html[data-theme="aurora"] .version-detail-price,
html[data-theme="aurora"] .sponsor-section li em { color:#ff7a8c; }
html[data-theme="aurora"] .cooperation-grid a:nth-child(4n+1) { background:linear-gradient(135deg,#143d69,#152238); }
html[data-theme="aurora"] .cooperation-grid a:nth-child(4n+2) { background:linear-gradient(135deg,#51233d,#211a2b); }
html[data-theme="aurora"] .cooperation-grid a:nth-child(4n+3) { background:linear-gradient(135deg,#11513f,#132b2a); }
html[data-theme="aurora"] .cooperation-grid a:nth-child(4n) { background:linear-gradient(135deg,#3d2d66,#1d1d37); }
html[data-theme="aurora"] .sponsor-banner { border-color:#55418a; background:linear-gradient(115deg,#192d52,#3d285f 58%,#15233b); }
html[data-theme="aurora"] .sponsor-banner span { color:#ffd77c; }
html[data-theme="aurora"] .ad-banner-list a { border-color:#354d70; background:linear-gradient(110deg,#192e4e,#172238); }
html[data-theme="aurora"] .ad-banner-list strong { color:#9cdcff; }
html[data-theme="aurora"] .ad-banner-list small { color:#aebed1; }
html[data-theme="aurora"] .service-strip > div:nth-child(4n+1) i,
html[data-theme="aurora"] .metric-item:nth-child(4n+1) .metric-icon { color:#76bdff; border-color:#3f7cbd; background:rgba(77,163,255,.14); }
html[data-theme="aurora"] .service-strip > div:nth-child(4n+2) i,
html[data-theme="aurora"] .metric-item:nth-child(4n+2) .metric-icon { color:#5be1b4; border-color:#2e9d79; background:rgba(54,212,162,.14); }
html[data-theme="aurora"] .service-strip > div:nth-child(4n+3) i,
html[data-theme="aurora"] .metric-item:nth-child(4n+3) .metric-icon { color:#ffda7d; border-color:#ae8433; background:rgba(255,209,102,.14); }
html[data-theme="aurora"] .service-strip > div:nth-child(4n) i,
html[data-theme="aurora"] .metric-item:nth-child(4n) .metric-icon { color:#c3a5ff; border-color:#795cb0; background:rgba(169,133,255,.14); }
html[data-theme="aurora"] .tool-card:nth-child(4n+1) .tool-card-icon { background:linear-gradient(145deg,#66bfff,#397bd4); }
html[data-theme="aurora"] .tool-card:nth-child(4n+2) .tool-card-icon { background:linear-gradient(145deg,#55dfb1,#23966f); }
html[data-theme="aurora"] .tool-card:nth-child(4n+3) .tool-card-icon { color:#201705; background:linear-gradient(145deg,#ffe08a,#d99d31); }
html[data-theme="aurora"] .tool-card:nth-child(4n) .tool-card-icon { background:linear-gradient(145deg,#be9cff,#7957bc); }
html[data-theme="aurora"] .course-card:nth-child(4n+1) { border-top:2px solid #5da9ff; }
html[data-theme="aurora"] .course-card:nth-child(4n+2) { border-top:2px solid #39d69c; }
html[data-theme="aurora"] .course-card:nth-child(4n+3) { border-top:2px solid #ffd166; }
html[data-theme="aurora"] .course-card:nth-child(4n) { border-top:2px solid #a985ff; }
html[data-theme="aurora"] .topic-row:nth-child(4n+1) .topic-type { background:#397bd4; }
html[data-theme="aurora"] .topic-row:nth-child(4n+2) .topic-type { background:#23966f; }
html[data-theme="aurora"] .topic-row:nth-child(4n+3) .topic-type { color:#201705; background:#d9a73e; }
html[data-theme="aurora"] .topic-row:nth-child(4n) .topic-type { background:#7957bc; }
html[data-theme="aurora"] .sub-hero { border-color:#334f73; box-shadow:0 18px 44px rgba(0,5,14,.42); }
html[data-theme="aurora"] .sub-hero-copy h1 { color:#9adfff; background:linear-gradient(90deg,#9adfff,#74e4bd,#ffe091); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
html[data-theme="aurora"] .sub-hero-copy strong { color:#ffd77c; }
html[data-theme="aurora"] .version-main-media,
html[data-theme="aurora"] .version-gallery-frame { background:linear-gradient(145deg,#07101c,#13243a); }
html[data-theme="aurora"] .version-detail-link.primary { color:#172033; border-color:#e9b84f; background:linear-gradient(#ffe49a,#f4bd52); }
.top-search { width: 225px; height: 36px; display: grid; grid-template-columns: minmax(0,1fr) 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); transition: border-color .18s ease, box-shadow .18s ease; }
.top-search:focus-within { border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.top-search input { min-width: 0; padding: 0 11px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.top-search button { border: 0; color: var(--muted); background: var(--panel-soft); font-size: 12px; font-weight: 700; }
.login-button, .register-button { height: 36px; min-width: 54px; padding: 0 13px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; cursor: pointer; }
.login-button { color: var(--text); background: var(--panel); }
.register-button { border-color: var(--gold); color: var(--accent-contrast); background: linear-gradient(var(--accent-light),var(--gold-deep)); font-weight: 900; }
.login-button:hover { color: var(--gold); border-color: var(--gold-deep); }
.portal-member-chip { max-width: 150px; overflow: hidden; color: var(--gold); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.portal-member-menu { position: relative; }
.portal-member-trigger { height: 42px; min-width: 142px; padding: 3px 9px 3px 4px; display: grid; grid-template-columns: 34px minmax(0,1fr) 12px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); text-align: left; }
.portal-member-trigger:hover, .portal-member-trigger[aria-expanded="true"] { border-color: var(--gold-deep); background: var(--panel-soft); }
.portal-member-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--accent-contrast); background: linear-gradient(145deg,var(--accent-light),var(--gold-deep)); font-size: 13px; font-weight: 900; }
.portal-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-member-summary, .portal-member-summary strong, .portal-member-summary small { min-width: 0; display: block; }
.portal-member-summary strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portal-member-summary small { margin-top: 1px; color: var(--gold); font-size: 9px; }
.portal-member-trigger > i { color: var(--muted); font-style: normal; }
.portal-member-dropdown { position: absolute; z-index: 110; top: calc(100% + 9px); right: 0; width: 224px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: 0 18px 42px var(--shadow); }
.portal-member-dropdown[hidden] { display: none; }
.portal-member-card { margin-bottom: 7px; padding: 10px; display: grid; gap: 3px; border: 1px solid var(--line-soft); border-radius: 5px; background: var(--panel-soft); }
.portal-member-card strong { color: var(--gold); font-size: 13px; }
.portal-member-card span { color: var(--muted); font-size: 10px; }
.portal-member-dropdown > a, .portal-member-dropdown > button { width: 100%; min-height: 34px; padding: 0 10px; display: flex; align-items: center; border: 0; border-radius: 4px; color: var(--text); background: transparent; font-size: 11px; text-align: left; }
.portal-member-dropdown > a:hover, .portal-member-dropdown > button:hover { color: var(--gold); background: var(--panel-soft); }

.page-content { padding: 14px 0 18px; }
.top-layout, .main-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 14px; }
.top-layout { align-items: stretch; }
.hero-banner-stack { min-width: 0; display: grid; align-self: start; gap: 10px; }
.hero-banner { position: relative; width: 100%; height: fit-content; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-deep); box-shadow: 0 10px 28px var(--shadow); }
.hero-banner-secondary { box-shadow: 0 7px 20px var(--shadow); }
.hero-banner-image { display: block; width: 100%; height: auto; object-fit: contain; object-position: center center; filter: none; }
.portal-basic-info { position: absolute; z-index: 2; inset: 0; padding: 24px 30px 19px; display: flex; flex-direction: column; align-items: flex-start; color: #fff; pointer-events: none; }
.portal-basic-info::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(4,7,12,.62) 0%,rgba(4,7,12,.36) 44%,rgba(4,7,12,.08) 70%,transparent 86%); }
.portal-basic-copy { min-width: 0; max-width: 72%; }
.portal-basic-copy h1 { margin: 0; overflow: hidden; color: #fff8e8; font-size: clamp(28px,2.55vw,40px); font-weight: 950; line-height: 1.18; text-overflow: ellipsis; text-shadow: 0 2px 3px rgba(0,0,0,.95),0 5px 18px rgba(0,0,0,.9); white-space: nowrap; }
.portal-basic-copy p { max-width: 720px; margin: 9px 0 0; overflow: hidden; color: rgba(255,255,255,.94); font-size: 14px; font-weight: 650; line-height: 1.55; text-overflow: ellipsis; text-shadow: 0 2px 3px rgba(0,0,0,.95),0 4px 12px rgba(0,0,0,.9); white-space: nowrap; }
.portal-basic-stats { width: min(700px,78%); margin-top: auto; display: grid; grid-template-columns: repeat(4,minmax(72px,1fr)); gap: 0; }
.portal-basic-stats div { min-width: 72px; padding: 6px 16px; text-align: left; border-left: 1px solid rgba(255,255,255,.42); }
.portal-basic-stats div:first-child { padding-left: 0; border-left: 0; }
.portal-basic-stats strong, .portal-basic-stats small { display: block; }
.portal-basic-stats strong { color: var(--accent-light); font-size: 18px; font-weight: 950; line-height: 1.22; text-shadow: 0 2px 3px rgba(0,0,0,.95),0 4px 12px rgba(0,0,0,.9); white-space: nowrap; }
.portal-basic-stats small { margin-top: 3px; color: rgba(255,255,255,.92); font-size: 11px; font-weight: 700; text-shadow: 0 2px 3px rgba(0,0,0,.95),0 4px 10px rgba(0,0,0,.9); white-space: nowrap; }

.top-entry-list { height: 100%; min-height: 0; display: grid; grid-template-rows: repeat(3,1fr); gap: 8px; }
.top-entry { position: relative; min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; overflow: hidden; padding: 10px 14px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
.top-entry::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,10,17,.34),rgba(5,10,17,.14)),radial-gradient(circle at 72% 40%,rgba(255,255,255,.12),transparent 45%); pointer-events: none; }
.top-entry > * { position: relative; z-index: 1; }
.top-entry > .top-entry-background { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; filter: saturate(.9) contrast(1.03); }
.tone-orange { background: linear-gradient(120deg,#8d1f0f,#40130c 64%,#2b110e); }
.tone-purple { background: linear-gradient(120deg,#4d0f79,#251040 64%,#171023); }
.tone-blue { background: linear-gradient(120deg,#104d91,#102d55 64%,#101c30); }
.entry-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); font-size: 18px; font-weight: 900; }
.top-entry strong, .top-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-entry strong { font-size: 18px; }
.top-entry small { margin-top: 3px; color: rgba(255,255,255,.86); font-size: 12px; }
.top-entry b { padding: 7px 12px; border-radius: 16px; color: var(--accent-contrast); background: var(--accent-light); font-size: 11px; font-weight: 800; white-space: nowrap; }
.top-entry:hover { filter: brightness(1.1); }

.main-layout { margin-top: 14px; align-items: start; }
.version-library, .sidebar-section { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg,var(--panel-soft),var(--panel)); }
.library-heading { min-height: 57px; padding: 0 18px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.library-heading h2 { margin: 0; font-size: 18px; white-space: nowrap; }
.category-tabs { min-width: 0; display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-button, .engine-button, .more-filter { height: 30px; padding: 0 12px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: var(--control); font-size: 12px; }
.category-button:hover, .category-button.active { color: var(--accent-contrast); background: var(--gold); font-weight: 900; }
.more-filter { margin-left: auto; border-color: var(--line); color: var(--muted); background: var(--panel-soft); white-space: nowrap; }
.filter-bar { min-height: 42px; padding: 6px 18px; display: flex; align-items: center; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.engine-button { height: 28px; padding: 0 10px; background: transparent; }
.engine-button:hover, .engine-button.active { color: var(--gold); background: var(--accent-soft); }
.version-columns, .version-row { display: grid; grid-template-columns: minmax(455px,1fr) 94px 88px 72px 84px; align-items: center; gap: 10px; }
.version-columns { min-height: 40px; padding: 0 16px; color: var(--muted); background: var(--table-head); font-size: 12px; font-weight: 700; }
.version-columns > span { text-align: center; }
.version-columns > span:first-child { text-align: left; }
.version-row { position: relative; min-height: 42px; padding: 4px 16px; overflow: hidden; border-top: 1px solid var(--line-soft); transition: background .16s ease, box-shadow .2s ease; }
.version-row > * { position: relative; z-index: 1; }
.version-row[hidden] { display: none; }
.version-row:hover { background: var(--row-hover); }
.version-info { min-width: 0; display: grid; grid-template-columns: 190px minmax(130px,1fr); align-items: center; gap: 9px; }
.version-badges { min-width: 0; display: grid; grid-template-columns: 56px 70px 52px; justify-content: end; gap: 5px; align-items: center; overflow: hidden; white-space: nowrap; }
.version-badges span, .version-badges i, .version-badges b { min-height: 20px; padding: 0 6px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 11px; line-height: 1; font-style: normal; font-weight: 700; letter-spacing: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: subpixel-antialiased; }
.version-badges > * { width: 100%; max-width: 100%; justify-self: stretch; justify-content: center; overflow: hidden; text-overflow: ellipsis; }
.version-badges span { color: #fff; background: #df493b; }
.version-badges i { color: #fff; border-color: #4f8fce; background: #2f73b8; }
.version-badges b { color: var(--text); border-color: var(--line); background: var(--control); }
.version-row .version-badges span.tag-color-red { color: #fff; border-color: #ed6257; background: #d94338; }
.version-row .version-badges span.tag-color-blue { color: #fff; border-color: #5d9ee7; background: #347cc7; }
.version-row .version-badges span.tag-color-gold { color: #3d2807; border-color: #efc56a; background: #e7b84f; }
.version-row .version-badges span.tag-color-green { color: #fff; border-color: #57bc83; background: #32945f; }
.version-row .version-badges span.tag-color-purple { color: #fff; border-color: #a179d2; background: #7650a9; }
.version-row .version-badges span.tag-color-cyan { color: #07313a; border-color: #65d3de; background: #55c3cf; }
.version-info h3 { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; }
.version-info h3.title-color-blue, .version-detail-heading h1.title-color-blue { color: #347dcc; }
.version-info h3.title-color-gold, .version-detail-heading h1.title-color-gold { color: #c98a18; }
.version-info h3.title-color-green, .version-detail-heading h1.title-color-green { color: #16966a; }
.version-info h3.title-color-red, .version-detail-heading h1.title-color-red { color: #d94a4a; }
.version-info h3.title-color-purple, .version-detail-heading h1.title-color-purple { color: #8b62cf; }
.version-info h3.title-color-cyan, .version-detail-heading h1.title-color-cyan { color: #168fa7; }
.version-detail-link:hover h3.title-color-default { color: var(--gold); }
.version-row time { display: block; }
.version-row time { justify-self: center; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; white-space: nowrap; }
.version-display-tag { max-width: 82px; min-width: 58px; min-height: 24px; padding: 0 9px; justify-self: center; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; text-overflow: ellipsis; white-space: nowrap; box-shadow: inset 0 1px rgba(255,255,255,.18); transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.version-display-tag:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(24,43,74,.2),inset 0 1px rgba(255,255,255,.22); }
.display-tag-color-blue { border-color:#4f82d8; background:#4778ca; }
.display-tag-color-green { border-color:#41a774; background:#339461; }
.display-tag-color-orange { border-color:#ef994d; background:#dd7f31; }
.display-tag-color-red { border-color:#e36060; background:#cf4d4d; }
.display-tag-color-purple { border-color:#9671d1; background:#7955b3; }
.display-tag-color-cyan { border-color:#47b8c8; background:#2999ab; }
.display-tag-color-gold { color:#4a3309; border-color:#e5bd5c; background:#d8a93e; }
.display-tag-color-gold:hover { color:#4a3309; }
.display-tag-color-pink { border-color:#df75aa; background:#c85991; }
.display-tag-color-gray { border-color:#7e8da1; background:#647386; }
.version-price { color: var(--red); font-size: 14px; text-align: center; }
.version-price.free { color: var(--green); }
.version-price, .version-actions { justify-self: center; }
.version-actions { width: 64px; display: grid; }
.version-actions a { height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.download-link { color: var(--accent-contrast); background: linear-gradient(var(--accent-light),var(--gold-deep)); font-weight: 900; }
.row-effect-glow { animation: version-row-glow 2.8s ease-in-out infinite; }
.row-effect-shimmer::after { position: absolute; z-index: 0; top: 0; bottom: 0; left: -32%; width: 24%; content: ""; pointer-events: none; background: linear-gradient(100deg,transparent,rgba(255,255,255,.15),transparent); transform: skewX(-18deg); animation: version-row-shimmer 4.6s ease-in-out infinite; }
.version-row.row-effect-highlight { box-shadow: inset 3px 0 0 var(--gold); background: linear-gradient(90deg,var(--accent-soft),transparent 58%) !important; }
.version-row.row-effect-highlight:hover { background: linear-gradient(90deg,var(--accent-soft),var(--row-hover) 64%) !important; }
@keyframes version-row-glow { 0%,100% { box-shadow: inset 0 0 0 1px rgba(86,148,230,.16); } 50% { box-shadow: inset 0 0 12px rgba(86,148,230,.28); } }
@keyframes version-row-shimmer { 0%,28% { left: -32%; opacity: 0; } 42% { opacity: 1; } 68%,100% { left: 112%; opacity: 0; } }
.version-empty { margin: 0; padding: 44px; color: var(--muted); text-align: center; }
.library-footer { min-height: 48px; padding: 0 16px; display: flex; align-items: center; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.library-footer strong { color: var(--gold); }

.right-sidebar { display: grid; gap: 12px; }
.sidebar-section { padding: 14px 15px; }
.sidebar-title { min-height: 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sidebar-title h2 { margin: 0; font-size: 14px; }
.sidebar-title a, .sidebar-title button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.sidebar-title a:hover, .sidebar-title button:hover { color: var(--gold); }
.cooperation-grid { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cooperation-grid a { position: relative; min-width: 0; min-height: 59px; padding: 8px; display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 8px; overflow: hidden; border: 1px solid #2b2e32; border-radius: 4px; background: linear-gradient(135deg,#182335,#17191c); }
.cooperation-grid a::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,rgba(8,13,20,.5),rgba(8,13,20,.25)); pointer-events: none; }
.cooperation-grid a:nth-child(2) { background: linear-gradient(135deg,#48171d,#1c1719); }
.cooperation-grid a:nth-child(3) { background: linear-gradient(135deg,#113a63,#151b22); }
.cooperation-grid a:nth-child(4) { background: linear-gradient(135deg,#273b58,#17191c); }
.cooperation-grid .cooperation-background { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; filter: saturate(.9) contrast(1.04); }
.cooperation-grid i { position: relative; z-index: 2; width: 31px; height: 31px; grid-row: 1; display: grid; place-items: center; color: #fff; border-radius: 5px; background: rgba(255,255,255,.16); font-style: normal; font-weight: 900; }
.cooperation-grid span { position: relative; z-index: 2; min-width: 0; }
.cooperation-grid strong, .cooperation-grid small { display: block; overflow: hidden; color: #f4f6f8; text-overflow: ellipsis; white-space: nowrap; }
.cooperation-grid strong { font-size: 12px; }
.cooperation-grid small { margin-top: 3px; color: #c1c9d1; font-size: 10px; }
body.portal-no-image-mask .portal-basic-info::before { background: transparent; }
body.portal-no-image-mask .top-entry.has-background::after,
body.portal-no-image-mask .cooperation-grid a.has-background::after { background: transparent; }
body.portal-no-image-mask .top-entry > .top-entry-background,
body.portal-no-image-mask .cooperation-grid .cooperation-background,
body.portal-no-image-mask .ad-banner-list img { opacity: 1; filter: none; }
body.portal-no-image-mask .top-entry.has-background strong,
body.portal-no-image-mask .top-entry.has-background small,
body.portal-no-image-mask .cooperation-grid a.has-background strong,
body.portal-no-image-mask .cooperation-grid a.has-background small,
body.portal-no-image-mask .ad-banner-list strong,
body.portal-no-image-mask .ad-banner-list small { text-shadow: 0 2px 3px rgba(0,0,0,.95),0 4px 12px rgba(0,0,0,.85); }
body.portal-hide-image-text .portal-basic-info { display: none; }
body.portal-hide-image-text .top-entry.has-background > :not(.top-entry-background),
body.portal-hide-image-text .cooperation-grid a.has-background > i,
body.portal-hide-image-text .cooperation-grid a.has-background > span,
body.portal-hide-image-text .ad-banner-list a.has-background > span { display: none; }
.sponsor-section ol { margin: 6px 0 0; padding: 0; list-style: none; }
.sponsor-section li { min-width: 0; border-top: 1px solid var(--line-soft); }
.sponsor-section li > a { min-width: 0; min-height: 57px; display: grid; grid-template-columns: 24px 62px minmax(0,1fr) auto; align-items: center; gap: 8px; }
.sponsor-section li > a > b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: #fff; background: #df493d; font-size: 11px; }
.sponsor-section li:nth-child(2) > a > b { background: #c68b3a; }
.sponsor-section li:nth-child(3) > a > b { background: #4ca36e; }
.sponsor-section li:nth-child(n+4) > a > b { color: var(--muted); background: var(--control); }
.sponsor-section li > a:hover strong { color: var(--gold); }
.sponsor-section li img { width: 60px; height: 37px; border-radius: 3px; object-fit: cover; filter: brightness(.75); }
.sponsor-section li span { min-width: 0; }
.sponsor-section li strong, .sponsor-section li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-section li strong { font-size: 12px; }
.sponsor-section li small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.sponsor-section li em { color: var(--red); font-size: 12px; font-style: normal; font-weight: 900; }
.sponsor-banner { position: relative; min-height: 82px; padding: 14px 92px 14px 16px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid #3b2747; border-radius: 6px; background: linear-gradient(115deg,#251332,#51245f 60%,#1c1523); }
.sponsor-banner::after { content: ""; position: absolute; right: -20px; top: -40px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.08); transform: rotate(26deg); }
.sponsor-banner span { color: var(--gold); font-size: 17px; font-weight: 900; }
.sponsor-banner small { margin-top: 4px; color: #c0b8c6; font-size: 11px; }
.sponsor-banner a, .sponsor-banner button { position: absolute; z-index: 1; right: 15px; top: 50%; padding: 7px 11px; transform: translateY(-50%); border: 0; border-radius: 14px; color: var(--accent-contrast); background: var(--gold); font-size: 11px; font-weight: 900; }
.notice-section ul { margin: 4px 0 0; padding: 0; list-style: none; }
.notice-section li { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 11px; }
.notice-section time { color: var(--muted); }
.notice-section li button { min-width: 0; padding: 0; overflow: hidden; border: 0; color: var(--text); background: transparent; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.notice-section li button:hover { color: var(--gold); }
.ad-banner-list { display: grid; gap: 8px; }
.ad-banner-list a { position: relative; min-height: 72px; display: flex; align-items: center; overflow: hidden; padding: 12px 16px; border: 1px solid #4a2c1a; border-radius: 6px; background: linear-gradient(110deg,#37160e,#17110e); }
.ad-banner-list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: saturate(.7); }
.ad-banner-list span { position: relative; z-index: 1; }
.ad-banner-list strong, .ad-banner-list small { display: block; }
.ad-banner-list strong { color: #f2d09b; font-size: 14px; }
.ad-banner-list small { margin-top: 4px; color: #c1a386; font-size: 11px; }

.service-strip { min-height: 67px; margin-top: 12px; padding: 0 22px; display: grid; grid-template-columns: repeat(6,1fr); align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.service-strip > div { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid var(--line-soft); }
.service-strip > div:last-child { border-right: 0; }
.service-strip i { width: 29px; height: 29px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 50%; font-size: 11px; font-style: normal; }
.service-strip strong, .service-strip small { display: block; white-space: nowrap; }
.service-strip strong { font-size: 12px; }
.service-strip small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.subpage-footer { margin-top: 14px; border-top: 1px solid var(--line); background: var(--panel-deep); }
.subpage-footer-inner { min-height: 112px; display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 25px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { color: var(--gold); font-size: 14px; }
.footer-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.subpage-footer nav { display: flex; justify-content: center; gap: 25px; }
.subpage-footer nav a { color: var(--muted); font-size: 11px; }
.subpage-footer nav a:hover { color: var(--gold); }
.subpage-footer > div > small { color: var(--muted); font-size: 10px; }

body.portal-modal-open { overflow: hidden; }
.portal-content-modal, .portal-auth-modal { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; }
.portal-content-modal[hidden], .portal-auth-modal[hidden] { display: none; }
.portal-modal-backdrop, .portal-auth-backdrop { position: absolute; inset: 0; background: rgba(2,7,13,.72); backdrop-filter: blur(7px); }
.portal-modal-panel { position: relative; z-index: 1; width: min(620px,100%); max-height: min(760px,calc(100vh - 40px)); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.portal-modal-panel > h2 { margin: 0 42px 18px 0; color: var(--gold); font-size: 20px; }
.portal-modal-close, .portal-auth-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--panel-soft); font-size: 20px; }
.portal-modal-close:hover, .portal-auth-close:hover { color: var(--gold); border-color: var(--gold-deep); }
.portal-modal-list { display: grid; gap: 8px; }
.portal-modal-list > a, .portal-modal-list > button { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line-soft); border-radius: 5px; color: var(--text); background: var(--panel-soft); text-align: left; }
.portal-modal-list > a:hover, .portal-modal-list > button:hover { border-color: var(--gold-deep); background: var(--accent-soft); }
.portal-modal-list strong, .portal-modal-list small { display: block; }
.portal-modal-list small { color: var(--muted); font-size: 11px; }
.portal-contact-modal-content { min-height: 170px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 18px; }
.portal-contact-modal-content > p { margin: 0; color: var(--muted); line-height: 1.8; }
.portal-contact-modal-content dl { margin: 0; display: grid; gap: 8px; }
.portal-contact-modal-content dl div { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 10px; }
.portal-contact-modal-content dt { color: var(--muted); }
.portal-contact-modal-content dd { margin: 0; color: var(--gold); font-weight: 800; }
.portal-contact-modal-content figure { grid-column: 2; grid-row: 1 / span 2; width: 150px; margin: 0; text-align: center; }
.portal-contact-modal-content figure img { width: 150px; height: 150px; padding: 6px; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.portal-contact-modal-content figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; }
.portal-modal-empty { grid-column: 1 / -1; padding: 12px; border: 1px dashed var(--line); border-radius: 5px; }
.portal-announcement-detail time { color: var(--muted); font-size: 11px; }
.portal-announcement-detail > div { margin-top: 16px; color: var(--text); line-height: 1.9; }
.portal-announcement-detail > a { margin-top: 20px; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 4px; color: var(--accent-contrast); background: var(--gold); font-size: 12px; font-weight: 800; }

.portal-auth-panel { position: relative; z-index: 1; width: min(760px,100%); min-height: 490px; display: grid; grid-template-columns: 250px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 26px 80px rgba(0,0,0,.48); }
.portal-auth-brand { position: relative; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 50% 35%,var(--accent-soft),transparent 38%),linear-gradient(150deg,var(--panel-soft),var(--panel-deep)); text-align: center; }
.portal-auth-brand::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 28px 28px; }
.portal-auth-brand > * { position: relative; }
.portal-auth-brand .brand-logo { width: 70px; height: 70px; flex-basis: 70px; font-size: 19px; }
.portal-auth-brand strong { margin-top: 20px; color: var(--gold); font-size: 23px; }
.portal-auth-brand small { margin-top: 8px; color: var(--muted); }
.portal-auth-content { min-width: 0; padding: 28px 34px 30px; }
.portal-auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.portal-auth-tabs button { position: relative; height: 40px; padding: 0 4px; border: 0; color: var(--muted); background: transparent; font-weight: 800; }
.portal-auth-tabs button.active { color: var(--gold); }
.portal-auth-tabs button.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--gold); }
.portal-auth-content h2 { margin: 22px 0 12px; font-size: 21px; }
.portal-auth-methods, .portal-register-method { display: flex; gap: 7px; }
.portal-auth-methods[hidden] { display: none; }
.portal-auth-methods button, .portal-register-method button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--panel-soft); font-size: 11px; }
.portal-auth-methods button.active, .portal-register-method button.active { color: var(--gold); border-color: var(--gold-deep); background: var(--accent-soft); }
.portal-auth-methods button:disabled, .portal-register-method button:disabled { opacity: .45; cursor: not-allowed; }
.portal-auth-status { min-height: 22px; margin: 10px 0 2px; color: var(--muted); font-size: 11px; }
.portal-auth-status.is-error { color: #e76f67; }
.portal-auth-status.is-success { color: var(--green); }
.portal-auth-form { display: grid; gap: 11px; }
.portal-auth-form[hidden] { display: none; }
.portal-auth-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.portal-auth-form input { width: 100%; height: 39px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; outline: 0; color: var(--text); background: var(--control); }
.portal-auth-form input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.portal-captcha-row, .portal-email-code-row { display: grid; grid-template-columns: minmax(0,1fr) 120px; gap: 8px; }
.portal-captcha-image { width: 120px; height: 39px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #eef4ff; }
.portal-captcha-image img { width: 100%; height: 100%; object-fit: cover; }
.portal-email-code-row > button { border: 1px solid var(--gold-deep); border-radius: 4px; color: var(--gold); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.portal-auth-submit { min-height: 40px; margin-top: 3px; border: 0; border-radius: 4px; color: var(--accent-contrast); background: linear-gradient(var(--accent-light),var(--gold-deep)); font-weight: 900; }
.portal-auth-submit:disabled, .portal-email-code-row > button:disabled { opacity: .55; cursor: not-allowed; }
.portal-wechat-login { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.portal-wechat-login[hidden] { display: none; }
.portal-wechat-placeholder { width: 142px; height: 142px; display: grid; place-items: center; border: 8px solid var(--panel-soft); border-radius: 6px; color: var(--muted); background: repeating-linear-gradient(45deg,var(--control) 0 8px,var(--panel-soft) 8px 16px); font-weight: 900; }
.portal-wechat-login p { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1260px) {
  .header-row { grid-template-columns: 200px 1fr auto; gap: 14px; }
  .main-nav { gap: 3px; }
  .main-nav a { padding: 0 9px; }
  .top-search { width: 185px; }
  .top-layout, .main-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .version-columns, .version-row { grid-template-columns: minmax(390px,1fr) 88px 82px 64px 78px; gap: 8px; }
}
@media (max-width: 1160px) {
  :root { --portal-header-height: 106px; }
  .header-row { grid-template-columns: 1fr auto; grid-template-rows: 64px 42px; }
  .main-nav { grid-column: 1 / -1; order: 3; height: 42px; padding: 3px 0; justify-content: flex-start; overflow-x: auto; border-top: 1px solid var(--line-soft); }
  .main-nav a { height: 36px; flex: 0 0 auto; }
  .top-layout, .main-layout { grid-template-columns: 1fr; }
  .top-entry-list { height: auto; grid-template-columns: repeat(3,1fr); grid-template-rows: none; }
  .top-entry { min-height: 72px; }
  .right-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sponsor-banner, .ad-banner-list { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 20px); }
  .site-brand small, .top-search { display: none; }
  .header-tools { gap: 5px; }
  .login-button, .register-button { padding: 0 10px; }
  .hero-banner { height: fit-content; }
  .portal-basic-info { padding: 10px 13px 8px; }
  .portal-basic-copy { max-width: 72%; }
  .portal-basic-copy h1 { font-size: 20px; white-space: nowrap; }
  .portal-basic-copy p { margin-top: 4px; font-size: 10px; line-height: 1.4; white-space: normal; }
  .portal-basic-stats { width: 100%; }
  .portal-basic-stats div { padding: 3px 8px; }
  .portal-basic-stats strong { font-size: 13px; }
  .portal-basic-stats small { font-size: 9px; }
  .top-entry-list { grid-template-columns: 1fr; }
  .library-heading { align-items: flex-start; flex-wrap: wrap; padding: 13px; }
  .category-tabs { order: 3; width: 100%; }
  .more-filter { margin-left: auto; }
  .version-columns { display: none; }
  .version-row { grid-template-columns: minmax(0,1fr) 82px; min-height: 94px; padding: 13px; }
  .version-info { display: block; align-self: start; }
  .version-badges { justify-content: flex-end; margin-bottom: 6px; }
  .version-info h3 { margin-bottom: 4px; }
  .version-row time { display: none; }
  .version-display-tag { grid-column: 2; grid-row: 1; align-self: start; }
  .version-price { grid-column: 1; grid-row: 2; text-align: left; }
  .version-actions { grid-column: 2; grid-row: 2; }
  .right-sidebar { grid-template-columns: 1fr; }
  .sponsor-banner, .ad-banner-list { grid-column: auto; }
  .service-strip { grid-template-columns: repeat(2,1fr); padding: 12px; gap: 10px 0; }
  .service-strip > div:nth-child(2n) { border-right: 0; }
  .subpage-footer-inner { grid-template-columns: 1fr; padding: 24px 0; text-align: center; }
  .footer-brand { justify-content: center; }
  .portal-auth-panel { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
  .portal-auth-brand { min-height: 125px; padding: 20px; }
  .portal-auth-brand .brand-logo { width: 48px; height: 48px; flex-basis: 48px; font-size: 13px; }
  .portal-auth-brand strong { margin-top: 9px; font-size: 17px; }
  .portal-auth-brand small { display: none; }
  .portal-auth-content { padding: 22px; }
  .portal-contact-modal-content { grid-template-columns: 1fr; }
  .portal-contact-modal-content figure { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .row-effect-glow, .row-effect-shimmer::after { animation: none; }
  html[data-theme="bluecream"] .version-row::before { display:none; }
}
@media (max-width: 520px) {
  .header-row { grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .site-brand { gap: 7px; }
  .brand-logo { width: 36px; height: 36px; flex-basis: 36px; font-size: 11px; }
  .site-brand strong { font-size: 16px; }
  .header-tools { gap: 4px; }
  .theme-toggle { width: 34px; padding: 0; justify-content: center; }
  .theme-toggle span { display: none; }
  .login-button, .register-button { height: 34px; padding: 0 8px; font-size: 11px; }
  .portal-basic-info { padding: 7px 9px 6px; }
  .portal-basic-copy { max-width: 76%; }
  .portal-basic-copy h1 { font-size: 15px; }
  .portal-basic-copy p { display: none; }
  .portal-basic-stats div { padding: 1px 4px; }
  .portal-basic-stats strong { font-size: 10px; }
  .portal-basic-stats small { margin-top: 0; font-size: 8px; }
  .portal-member-chip { display: none; }
  .portal-member-trigger { min-width: 42px; width: 42px; grid-template-columns: 34px; padding: 3px; }
  .portal-member-summary, .portal-member-trigger > i { display: none; }
  .portal-content-modal, .portal-auth-modal { padding: 10px; }
  .portal-modal-panel { padding: 19px 16px; }
  .portal-captcha-row, .portal-email-code-row { grid-template-columns: minmax(0,1fr) 108px; }
  .portal-captcha-image { width: 108px; }
}
