/* Photo-led public landing page; login behavior remains in login.html. */
:root {color-scheme:light;--news-bg:#f7f8fa;--news-panel:#fff;--news-text:#182333;--news-muted:#647184;--news-line:#e1e6ed;--news-accent:#2563bb;--news-button:#2a6ac9;}
:root[data-theme="dark"] {color-scheme:dark;--news-bg:#0c1118;--news-panel:#141c27;--news-text:#eef2f7;--news-muted:#a1aebe;--news-line:#293647;--news-accent:#79b1f9;--news-button:#347ee0;}
.auth-news-page,.news-detail-page {background:var(--news-bg);color:var(--news-text);font-family:-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;}
body.auth-news-page {display:block;padding:0;}
.auth-news-page::before {background:var(--news-bg);}
.auth-news-page::after,.auth-news-page .card::before {display:none;}
.auth-topbar {position:relative;z-index:2;margin:auto;padding:28px 48px;display:flex;align-items:center;justify-content:space-between;gap:20px;}
.news-wordmark {font-size:21px;font-weight:700;letter-spacing:.12em;color:var(--news-text);text-decoration:none;}
.news-wordmark span {font-size:10px;letter-spacing:.1em;font-weight:400;color:var(--news-muted);}
.news-tools {display:flex;align-items:center;gap:14px;}
.theme-switch {color:var(--news-muted);background:transparent;border:1px solid var(--news-line);border-radius:6px;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer;min-height:36px;}
.auth-layout {position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:48px;align-items:center;width:calc(100% - 96px);max-width:1200px;margin:clamp(24px,5vh,64px) auto 56px;padding:0;}
.auth-news-page {--text:var(--news-text);--text-dim:var(--news-muted);--border:var(--news-line);--bg:var(--news-bg);--surface-2:var(--news-panel);--accent:var(--news-accent);--control-bg:var(--news-bg);--control-height:46px;}
.auth-news-page .card {width:100%;max-width:380px;display:block;background:var(--news-panel);border:1px solid var(--news-line);border-radius:12px;box-shadow:0 3px 16px #14223b06;backdrop-filter:none;padding:28px;color:var(--news-text);}
.auth-news-page .brand {margin-bottom:0;}
.auth-news-page .brand-img {height:24px;}
.auth-news-page .sub {margin:12px 0 20px;line-height:1.4;}
.auth-news-page .sub strong {font-size:22px;line-height:1.3;letter-spacing:0;color:var(--news-text);}
.auth-news-page .field {margin-bottom:14px;}
.auth-news-page .field input {font-size:14px;background:var(--news-bg);color:var(--news-text);}
.auth-news-page .field input::placeholder {color:var(--news-muted);opacity:1;}
.auth-news-page .field input:focus {--border:var(--news-accent);}
.auth-news-page .btn {background:var(--news-button);color:#fff;height:46px;min-height:46px;padding:0 16px;margin-top:6px;}
.auth-news-page .btn:hover {filter:brightness(1.06);}
.auth-news-page .btn:disabled {background:var(--news-line);color:var(--news-muted);}
.auth-news-page .err {margin-top:6px;min-height:16px;}
.auth-news-page .reg {margin-top:8px;}
.auth-news-page .reg a {margin-left:4px;}
.login-news {min-width:0;border:0;background:transparent;box-shadow:none;}
.news-frame {position:relative;}
.news-viewport {overflow:hidden;touch-action:pan-y;}
.news-track {display:flex;width:100%;transition:transform .3s ease;}
.news-slide {min-width:100%;width:100%;flex:0 0 100%;display:flex;}
.news-card {display:flex;flex-direction:column;width:100%;text-decoration:none;color:var(--news-text);background:transparent;}
.news-cover {position:relative;overflow:hidden;aspect-ratio:8 / 5;border-radius:16px;background:#fdfdfd;flex:none;}
.news-cover[data-cover="release"] {background:#262626;}
.news-cover[data-cover="collection"] {background:#d6d5d7;}
.news-cover img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none;opacity:1;}
.news-controls {display:flex;justify-content:center;align-items:center;min-height:28px;margin-top:4px;}
.news-dots {display:flex;gap:4px;}
.news-dots button {display:grid;place-items:center;background:none;border:0;width:28px;height:28px;cursor:pointer;padding:0;}
.news-dots button::before {content:'';width:6px;height:6px;border-radius:50%;background:var(--news-line);transition:background .15s;}
.news-dots button[aria-current="true"]::before {background:var(--news-accent);}
.news-arrow {position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:40px;padding:0;border:1px solid #ffffff38;border-radius:8px;background:#111827b8;color:#fff;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s;}
.news-arrow-prev {left:14px;}
.news-arrow-next {right:14px;}
.news-arrow svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.news-frame:hover .news-arrow,.news-frame:focus-within .news-arrow {opacity:1;pointer-events:auto;}
.news-arrow:hover {background:#111827e6;}
.theme-switch:hover {border-color:var(--news-accent);}
.login-news button:focus-visible,.theme-switch:focus-visible,.news-detail-page a:focus-visible,.news-tools button:focus-visible {outline:2px solid var(--news-accent);outline-offset:3px;}
.news-tools .language-switch {display:flex;border:1px solid var(--news-line);border-radius:6px;padding:3px;gap:2px;}
.news-tools .language-switch button {background:transparent;border:0;border-radius:4px;color:var(--news-muted);padding:6px 8px;font:inherit;font-size:12px;cursor:pointer;}
.news-tools .language-switch button[aria-pressed="true"] {background:var(--news-button);color:#fff;}
.sr-only {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.news-meta {display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--news-muted);}
.demo-badge {font-size:10px;border:1px solid var(--news-line);padding:3px 6px;border-radius:4px;}
.news-detail-page {margin:0;min-height:100vh;line-height:1.6;}
.news-detail-page * {box-sizing:border-box;}
.news-detail-page a {color:var(--news-accent);}
.news-detail-page .news-wordmark {color:var(--news-text);}
.news-article {width:min(850px,100%);padding:32px 30px 80px;margin:auto;}
.news-back {font-size:13px;text-decoration:none;}
.article-heading {padding:32px 0 26px;}
.article-heading h1 {font-size:clamp(28px,4vw,40px);font-weight:600;line-height:1.3;margin:18px 0 12px;}
.article-heading p {font-size:17px;color:var(--news-muted);margin:0 0 18px;}
.article-date {font-size:12px;color:var(--news-muted);}
.news-article .news-cover {height:auto;border:1px solid var(--news-line);border-radius:14px;aspect-ratio:1.6;}
.news-article .news-cover img {position:absolute;inset:0;}
.demo-disclaimer {padding:16px 18px;border-left:2px solid var(--news-line);background:var(--news-panel);margin:24px 0 32px;color:var(--news-muted);font-size:13px;}
.article-copy section {display:grid;grid-template-columns:38px minmax(0,1fr);gap:18px;margin:35px 0;}
.article-number {color:var(--news-accent);font-size:12px;padding-top:6px;font-variant-numeric:tabular-nums;}
.article-copy h2 {font-weight:600;font-size:21px;margin:0 0 14px;}
.article-copy p {font-size:15px;line-height:1.95;color:var(--news-muted);margin:0;}
.news-table-scroll {overflow:auto;border:1px solid var(--news-line);border-radius:10px;}
.news-table-scroll table {border-collapse:collapse;width:100%;min-width:650px;font-size:12px;text-align:left;}
.news-table-scroll caption {text-align:left;padding:18px;color:var(--news-text);font-size:13px;}
.news-table-scroll th,.news-table-scroll td {padding:14px 12px;border-top:1px solid var(--news-line);font-variant-numeric:tabular-nums;}
.news-table-scroll tbody th {font-weight:500;}
.news-sources a {overflow-wrap:anywhere;}
.news-table-scroll thead {background:var(--news-panel);}
.news-related {margin-top:50px;border-top:1px solid var(--news-line);padding-top:25px;}
.news-related h2 {font-size:14px;font-weight:500;color:var(--news-muted);}
.news-related a {display:flex;justify-content:space-between;gap:15px;padding:18px 0;text-decoration:none;border-bottom:1px solid var(--news-line);}

/* Keep the login form aligned with the cover; pagination sits below it. */
@media(min-width:961px) {
  .auth-layout {align-items:stretch;}
  .auth-news-page .card {display:flex;flex-direction:column;justify-content:center;margin-bottom:32px;}
  .auth-news-page .card > * {flex-shrink:0;}
  .login-news {display:flex;flex-direction:column;}
  .news-frame {display:flex;flex:1;min-height:0;}
  .news-viewport {display:flex;flex:1;min-width:0;}
  .login-news .news-cover {flex:1;}
  .news-controls {flex-shrink:0;}
}
@media(max-width:1100px) {.auth-layout{grid-template-columns:minmax(0,1fr) 340px;gap:40px;width:calc(100% - 56px);}.auth-topbar{padding:24px 28px;}.auth-news-page .card{padding:24px;}}
@media(max-width:960px) {.auth-layout{display:flex;flex-direction:column;gap:36px;width:calc(100% - 40px);max-width:720px;margin:16px auto 40px;}.auth-news-page .card{order:-1;max-width:380px;}.login-news{width:100%;}.auth-topbar{padding:22px 20px;}.news-wordmark span{display:none;}.news-tools{gap:8px;}.news-card h2{font-size:20px;}.news-article{padding:20px 22px 60px;}.news-detail-page .auth-topbar{flex-wrap:wrap;}.article-copy section{grid-template-columns:24px minmax(0,1fr);gap:10px;}.captcha-row{flex-wrap:wrap;}}
@media(max-width:480px) {.login-news .news-cover{aspect-ratio:1 / 1;}}
@media(hover:none) {.news-frame .news-arrow{display:none;}}
@media(prefers-reduced-motion:reduce) {.news-track,.news-dots button::before,.news-arrow{transition:none!important;}.auth-news-page *{scroll-behavior:auto!important;}}

/* Login uses the same sun/moon layout and icon shapes as the platform sidebar. */
.auth-news-page .theme-segmented {
  position:relative; display:flex; align-items:stretch; flex-shrink:0;
  width:calc(56px * var(--fs-k, 1)); height:calc(26px * var(--fs-k, 1)); min-height:0;
  padding:0; border-radius:999px; background:#d1dbe8;
}
.auth-news-page .theme-knob {
  position:absolute; top:2px; left:2px;
  width:calc(28px * var(--fs-k, 1) - 2px); height:calc(26px * var(--fs-k, 1) - 6px);
  border-radius:999px; background:var(--news-button); transition:transform .2s cubic-bezier(.4,0,.2,1);
}
.auth-news-page .theme-option {position:relative; z-index:1; flex:1; display:flex; align-items:center; justify-content:center; color:var(--news-muted);}
.auth-news-page .theme-option svg {width:calc(13px * var(--fs-k, 1)); height:calc(13px * var(--fs-k, 1)); fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;}
:root[data-theme="dark"] .auth-news-page .theme-segmented {background:#1a222e;}
:root[data-theme="dark"] .auth-news-page .theme-knob {transform:translateX(calc(28px * var(--fs-k, 1) - 2px));}
:root[data-theme="light"] .auth-news-page .theme-option[data-t="light"],
:root[data-theme="dark"] .auth-news-page .theme-option[data-t="dark"] {color:#fff;}
@media (prefers-reduced-motion: reduce) {.auth-news-page .theme-knob {transition:none;}}
