:root {
  color-scheme: light;
  --fuel-deck: #17272d;
  --fuel-deck-strong: #102126;
  --fuel-signal: #0e7477;
  --fuel-lime: #b7e84a;
  --fuel-ink: #17272d;
  --fuel-muted: #66757a;
  --fuel-quiet: #89969a;
  --fuel-paper: #ffffff;
  --fuel-card: #ffffff;
  --fuel-mist: #f6f8f8;
  --fuel-line: #e5eaeb;
  --fuel-danger: #b42318;
  --fuel-ai: #6558d8;
  --fuel-ip: #ce654f;
  --fuel-overseas: #177f8f;
  --content-max: 1120px;
  --main-column: 720px;
  --layout-gap: 32px;
  --rail-width: 320px;
  --shadow-float: 0 16px 40px rgb(7 27 32 / 10%);
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-utility: "DIN Alternate", "Avenir Next Condensed", "SFMono-Regular", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: 9rem;
}

body {
  margin: 0;
  background: var(--fuel-paper);
  color: var(--fuel-ink);
  font-family: var(--font-body);
}

body,
button,
input {
  font-size: 16px;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
input[type="search"],
.header-button,
.channel-nav a,
.source-button,
.primary-link,
.pagination a {
  min-height: 44px;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.portal {
  min-width: 0;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.shell {
  width: min(var(--content-max), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  background: var(--fuel-lime);
  color: var(--fuel-deck-strong);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--fuel-signal);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--fuel-line);
  background: rgb(255 255 255 / 97%);
  color: var(--fuel-ink);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.reader-account {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  color: var(--fuel-muted);
  font-size: 0.72rem;
}

.reader-identity {
  max-width: 18rem;
  overflow-wrap: anywhere;
}

.editor-link,
.text-button {
  color: var(--fuel-signal);
}

.logout-form {
  margin: 0;
}

.text-button {
  min-height: 26px;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--fuel-line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.header-shell {
  display: grid;
  min-height: 52px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  color: var(--fuel-ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  align-items: end;
  padding: 5px;
  border: 1px solid var(--fuel-signal);
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  transform: rotate(-2deg);
}

.brand-mark i {
  display: block;
  background: var(--fuel-signal);
}

.brand-mark i:nth-child(1) { height: 35%; }
.brand-mark i:nth-child(2) { height: 65%; }
.brand-mark i:nth-child(3) { height: 100%; }

.brand-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.65rem;
}

.brand-zh {
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-en,
.brand-tagline,
.eyebrow,
.story-kicker,
.rail-label,
.signal-label,
.priority-rank,
.news-time {
  font-family: var(--font-utility);
}

.brand-en {
  color: var(--fuel-signal);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.brand-tagline {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--fuel-line);
  border-radius: 4px;
  background: transparent;
  color: var(--fuel-ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 760;
}

.header-button:hover {
  border-color: var(--fuel-signal);
  color: var(--fuel-signal);
}

.menu-button {
  display: none;
}

.channel-nav {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: var(--fuel-line) transparent;
  scrollbar-width: thin;
}

.channel-nav a {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 10px;
  color: var(--fuel-muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.channel-nav a::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0;
  left: 0.7rem;
  height: 2px;
  background: transparent;
  content: "";
}

.channel-nav a:hover,
.channel-nav a:focus-visible {
  color: var(--fuel-signal);
}

.channel-nav a.is-current {
  color: var(--fuel-signal);
}

.channel-nav a.is-current::after {
  background: var(--fuel-signal);
}

.search-panel {
  border-top: 1px solid var(--fuel-line);
  background: var(--fuel-mist);
}

.reader-tools {
  display: block;
  padding-block: 0.65rem;
}

.search-form {
  display: flex;
  min-width: 0;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid #b7c3c6;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: var(--fuel-ink);
}

.search-form button {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--fuel-signal);
  border-radius: 0 4px 4px 0;
  background: var(--fuel-signal);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.main-shell {
  padding-block: 18px 64px;
}

.site-footer {
  border-top: 1px solid #294f57;
  background: var(--fuel-deck-strong);
  color: #afc2c6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: start;
  gap: 2rem;
  padding-block: 2rem;
  font-size: 0.76rem;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid p {
  margin: 0.3rem 0 0;
}

.footer-editor-link {
  color: var(--fuel-lime);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgb(11 37 44 / 5%) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgb(11 37 44 / 5%) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--fuel-paper);
}

.login-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
}

.login-frame {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--fuel-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-float);
}

.login-context {
  display: flex;
  min-width: 0;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--fuel-deck-strong);
  color: #fff;
}

.login-classification {
  margin: 0 0 1.5rem;
  color: var(--fuel-lime);
  font-family: var(--font-utility);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.login-context h1,
.login-panel h2 {
  margin: 0;
  line-height: 1.15;
}

.login-context h1 {
  max-width: 10ch;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}

.login-context-copy {
  max-width: 34rem;
  color: #c5d5d8;
}

.login-channel-strip {
  display: grid;
  padding: 0;
  margin: 3rem 0 1.2rem;
  border-top: 1px solid #435f65;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.login-channel-strip li {
  padding: 0.72rem 0.45rem 0.72rem 0;
  border-bottom: 1px solid #284c54;
  color: #d9e6e8;
  font-size: 0.76rem;
}

.login-context-note,
.login-guidance,
.login-access-note {
  color: var(--fuel-muted);
  font-size: 0.78rem;
}

.login-context-note {
  color: #9db5ba;
}

.login-panel {
  align-self: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4rem);
}

.login-panel h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.login-error {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--fuel-danger);
  background: #fff3f1;
  color: #7a271a;
}

.login-error h3,
.login-error p {
  margin: 0;
}

.login-form,
.login-field {
  display: grid;
  gap: 1rem;
}

.login-field {
  gap: 0.38rem;
}

.login-field label {
  font-size: 0.8rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #aabdc1;
  border-radius: 3px;
  background: #fff;
}

.login-submit {
  min-height: 46px;
  border: 1px solid var(--fuel-deck);
  border-radius: 3px;
  background: var(--fuel-deck);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.login-submit:hover {
  background: var(--fuel-signal);
}

.login-access-note {
  padding-top: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--fuel-line);
}
