:root {
  --bg: #f7f7f1;
  --surface: #ffffff;
  --surface-alt: #eef3f0;
  --ink: #14161a;
  --muted: #5c6570;
  --line: #d9ddd8;
  --line-strong: #24272c;
  --cyan: #087d8f;
  --red: #b33a30;
  --amber: #a56a00;
  --green: #2f7047;
  --violet: #6d4bb2;
  --shadow: 0 18px 50px rgba(20, 22, 26, 0.08);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 22, 26, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 22, 26, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #f8faf9;
  font-size: 13px;
}

.top-bar div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.top-bar a,
.top-bar button {
  color: #f8faf9;
  background: transparent;
  border: 0;
  padding: 0;
}

.top-bar form {
  margin: 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: end;
  gap: 24px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2)) 22px;
  border-bottom: 2px solid var(--line-strong);
  background: rgba(247, 247, 241, 0.92);
}

.brand {
  display: inline-grid;
  gap: 2px;
  width: fit-content;
}

.brand strong {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 52px;
  line-height: 1;
}

.brand span {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
}

.site-search,
.search-page-form {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.site-search input,
.search-page-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  outline: 0;
}

.site-search button,
.search-page-form button,
.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 4px;
  min-height: 42px;
}

.button--outline {
  background: transparent;
  color: var(--ink);
}

.site-search button {
  border-radius: 0;
  min-height: 0;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 241, 0.96);
  backdrop-filter: blur(14px);
}

.main-nav a {
  display: block;
  padding: 13px 18px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 700;
}

.main-nav a span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.main-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.ticker {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.ticker__label {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
}

.ticker__items {
  display: flex;
  gap: 22px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}

.page-shell,
.article-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 38px;
}

.lead-story {
  min-width: 0;
}

.lead-story__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.lead-story__media img,
.article-card__media img,
.compact-card img,
.interview-item img,
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story__media span {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--red);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.lead-story h2 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 38px;
  line-height: 1.18;
}

.lead-story p {
  max-width: 72ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  margin-top: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.story-meta,
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.story-meta span,
.article-hero__meta span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  padding: 3px 8px;
  border-radius: 4px;
}

.rank-panel,
.mini-panel,
.related-panel,
.admin-panel,
.auth-card {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.rank-panel {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 25px;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section-title--compact h2 {
  font-size: 19px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}

.rank-item span {
  display: grid;
  gap: 4px;
  font-weight: 750;
  line-height: 1.35;
}

.rank-item em,
.mini-link em,
.interview-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.content-grid--member {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-list--wide {
  max-width: 900px;
}

.article-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
}

.article-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.article-card__body {
  min-width: 0;
}

.article-card h3 {
  margin: 6px 0 8px;
  font-size: 21px;
  line-height: 1.32;
}

.article-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.model-channel-feature {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(300px, 1.28fr) minmax(350px, 1.25fr);
  height: 336px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.model-channel-feature__cover {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface-alt);
}

.model-channel-feature__cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 22, 26, 0.45));
  content: "";
}

.model-channel-feature__cover img,
.model-channel-feature__side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.model-channel-feature__cover img {
  object-position: center;
}

.model-channel-feature__cover:hover img,
.model-channel-feature__side:hover img {
  transform: scale(1.025);
}

.model-channel-feature__cover > span {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 13px;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.model-channel-feature__lead {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 26px 20px;
  border-right: 1px solid var(--line);
}

.model-channel-feature__eyebrow,
.model-channel-feature__side em,
.model-channel-more p {
  color: var(--amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.model-channel-feature__lead h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 29px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.model-channel-feature__lead p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-channel-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.model-channel-feature__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.model-channel-feature__link span {
  color: var(--amber);
  font-size: 18px;
  line-height: 1;
}

.model-channel-feature__secondary {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.model-channel-feature__side {
  display: grid;
  min-width: 0;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 15px;
  padding: 15px;
}

.model-channel-feature__side + .model-channel-feature__side {
  border-top: 1px solid var(--line);
}

.model-channel-feature__side-media {
  min-width: 0;
  overflow: hidden;
  background: var(--surface-alt);
}

.model-channel-feature__side-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.model-channel-feature__side strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.model-channel-feature__side small {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
}

.model-channel-more {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line-strong);
}

.model-channel-more p,
.model-channel-more h2 {
  margin: 0;
}

.model-channel-more h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  line-height: 1.2;
}

.model-channel-more > span {
  color: var(--muted);
  font-size: 12px;
}

.bookmark-button {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.bookmark-button.active {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.mini-panel {
  padding: 16px;
}

.mini-link {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 760;
}

.mini-link:last-child {
  border-bottom: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 2px solid var(--line-strong);
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compact-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.compact-card img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.compact-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.compact-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.compact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.interview-list {
  display: grid;
  gap: 12px;
}

.interview-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-weight: 780;
}

.interview-item img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.interview-item span {
  display: grid;
  gap: 5px;
}

.page-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.page-head p,
.member-head p,
.admin-head p,
.auth-card p {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
}

.page-head h1,
.member-head h1,
.admin-head h1,
.auth-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 38px;
  line-height: 1.15;
}

.page-head span {
  color: var(--muted);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article-page {
  min-width: 0;
}

.article-hero {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.article-hero h1 {
  max-width: 880px;
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 44px;
  line-height: 1.18;
}

.article-hero p {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.article-hero img {
  margin-top: 20px;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line-strong);
}

.article-body {
  max-width: 760px;
  font-size: 18px;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 25px;
}

.article-body h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.article-body strong {
  font-weight: 900;
}

.article-body em {
  font-style: italic;
}

.article-body mark {
  padding: 0 3px;
  background: rgba(230, 198, 134, 0.45);
  color: var(--ink);
}

.article-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(8, 125, 143, 0.35);
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 26px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.article-body blockquote p {
  margin-bottom: 10px;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-divider {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.article-text--small {
  font-size: 0.88em;
  color: var(--muted);
}

.article-text--large {
  font-size: 1.18em;
  line-height: 1.65;
}

.article-text--xlarge {
  font-size: 1.36em;
  line-height: 1.55;
  font-weight: 850;
}

.article-image {
  margin: 28px 0;
}

.article-image img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-save-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 760px;
  margin-top: 42px;
  padding: 0 0 4px;
  text-align: center;
}

.article-save-panel__ending {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.article-save-panel__ending::before,
.article-save-panel__ending::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.article-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 9px 20px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.article-save-button:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.article-save-button.active {
  border-color: var(--gold);
  background: var(--paper-2);
  color: #7b5a14;
}

.article-save-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.article-save-button.active svg {
  fill: currentColor;
}

.article-save-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.article-save-panel p {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.related-panel {
  position: sticky;
  top: 74px;
  padding: 16px;
}

.auth-shell {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 36px 24px;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.auth-card label,
.editor-form label,
.user-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.auth-card input,
.editor-form input,
.editor-form textarea,
.editor-form select,
.user-create-form input,
.user-create-form select,
.user-row input,
.user-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  outline: 0;
}

.auth-card input:focus,
.editor-form input:focus,
.editor-form textarea:focus,
.editor-form select:focus,
.user-create-form input:focus,
.user-create-form select:focus,
.user-row input:focus,
.user-row select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(8, 125, 143, 0.12);
}

.button--ghost {
  background: var(--surface);
  color: var(--ink);
}

.button--small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.wechat-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid #19a15f;
  border-radius: 4px;
  background: #19a15f;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.wechat-button:hover {
  background: #12834d;
}

.wechat-button.is-disabled {
  border-color: #b8c2bc;
  background: #b8c2bc;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.button-row {
  display: flex;
  gap: 10px;
}

.admin-body .button {
  border-color: rgba(217, 184, 95, 0.62);
  background: linear-gradient(180deg, #e5c96e, #b99234);
  color: #15191d;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.admin-body .button--ghost {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.055);
  color: #eef1ed;
  box-shadow: none;
}

.editor-side .button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.button:disabled,
button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-error,
.form-success {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 750;
}

.form-error {
  color: var(--red);
  background: rgba(179, 58, 48, 0.08);
}

.form-success {
  color: var(--green);
  background: rgba(47, 112, 71, 0.08);
}

.member-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
}

.member-notice {
  margin-bottom: 20px;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 26px;
}

.member-profile-card,
.member-replies-card {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
}

.member-profile-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.member-profile-card label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.member-profile-card input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.member-profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.member-profile-card .button {
  justify-self: start;
}

.member-reply-list {
  display: grid;
  gap: 12px;
}

.member-reply-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.member-reply-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.member-reply-item p {
  margin: 6px 0;
  line-height: 1.7;
}

.member-reply-item span {
  color: var(--muted);
  font-size: 12px;
}

.token-box {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.token-box span {
  color: var(--muted);
  font-weight: 800;
}

.token-box strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  color: var(--amber);
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-list span {
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  font-weight: 700;
}

.member-admin-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.member-admin-actions .button {
  width: 100%;
}

.member-admin-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.member-bookmarks {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.member-bookmarks__empty {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.member-bookmarks__empty strong {
  color: var(--ink);
  font-size: 17px;
}

.member-bookmarks__empty span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  font-weight: 760;
}

.admin-body .empty-state {
  border-color: var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--admin-muted);
}

.muted {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border-top: 2px solid var(--line-strong);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.admin-body {
  --admin-bg: #111519;
  --admin-panel: #1b2025;
  --admin-panel-2: #20262c;
  --admin-line: rgba(245, 241, 229, 0.12);
  --admin-muted: #9aa3a8;
  --admin-paper: #fbfaf6;
  --admin-gold: #d9b85f;
  --admin-gold-dark: #8a6b23;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 184, 95, 0.10), transparent 28%),
    linear-gradient(135deg, #14191e 0%, #101419 48%, #0d1013 100%);
  color: #eef1ed;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px;
  border-right: 1px solid var(--admin-line);
  background: linear-gradient(180deg, rgba(23, 28, 33, 0.98), rgba(14, 17, 20, 0.98));
  color: #f6f0dc;
}

.admin-brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 184, 95, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 184, 95, 0.18), rgba(217, 184, 95, 0.05));
  color: var(--admin-gold);
  font-size: 22px;
}

.admin-brand strong {
  display: block;
  color: var(--admin-gold);
  font-size: 16px;
  line-height: 1.2;
}

.admin-brand em {
  display: block;
  margin-top: 2px;
  color: #b9c1c1;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-sidebar nav a,
.admin-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #c7cdd0;
  border-radius: 6px;
  padding: 10px 11px;
  text-align: left;
  font-weight: 780;
}

.admin-sidebar nav a span {
  width: 20px;
  color: #aeb6b9;
  text-align: center;
}

.admin-sidebar nav a:hover,
.admin-sidebar button:hover {
  border-color: rgba(217, 184, 95, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #fff7da;
}

.admin-sidebar nav a.active {
  border-color: rgba(217, 184, 95, 0.24);
  background: linear-gradient(90deg, rgba(217, 184, 95, 0.24), rgba(217, 184, 95, 0.08));
  color: var(--admin-gold);
}

.admin-sidebar nav a.active span {
  color: var(--admin-gold);
}

.admin-nav-label {
  margin: 14px 8px 4px;
  color: #717b80;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px 6px;
  border-top: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
}

.admin-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7d55c7, #4f76d6);
  color: #fff;
  font-weight: 900;
}

.admin-user-card strong,
.admin-user-card span {
  display: block;
}

.admin-user-card strong {
  color: #fff;
  line-height: 1.2;
}

.admin-user-card span {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-sidebar form {
  margin: 0;
}

.admin-sidebar form button {
  width: 100%;
  justify-content: center;
  color: #b8c0c3;
  border-color: var(--admin-line);
}

.admin-main {
  min-width: 0;
  padding: 0 28px 28px;
}

.admin-topbar {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 -28px 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(14, 18, 22, 0.72);
  backdrop-filter: blur(14px);
}

.admin-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-topbar span {
  color: #8e979c;
  font-weight: 800;
}

.admin-topbar strong {
  color: #eef1ed;
}

.admin-topbar a,
.admin-topbar > div:last-child span {
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe1e0;
  font-size: 13px;
  font-weight: 850;
}

.admin-menu-button {
  width: 36px;
  height: 34px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef1ed;
  font-weight: 900;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: #eef1ed;
}

.admin-head p {
  color: var(--admin-gold);
}

.admin-head h1 {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-grid div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border-radius: 8px;
  color: #eef1ed;
}

.stat-grid span {
  color: var(--admin-muted);
  font-weight: 750;
}

.stat-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  color: var(--admin-gold);
}

.admin-panel {
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  color: #eef1ed;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.user-create-form input,
.user-create-form select,
.user-row input,
.user-row select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.36);
  color: #eef1ed;
}

.admin-panel input:focus,
.admin-panel textarea:focus,
.admin-panel select:focus,
.user-create-form input:focus,
.user-create-form select:focus,
.user-row input:focus,
.user-row select:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(217, 184, 95, 0.12);
}

.admin-table,
.user-list {
  display: grid;
  gap: 10px;
}

.site-settings-form {
  display: grid;
  gap: 18px;
}

.site-settings-form .check-line {
  margin-bottom: 14px;
}

.site-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-settings-grid--contact,
.site-settings-grid--accounts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-settings-grid label,
.wechat-account-fieldset label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-weight: 800;
}

.site-settings-grid__wide {
  grid-column: 1 / -1;
}

.wechat-account-editor {
  display: grid;
  gap: 14px;
}

.wechat-account-fieldset {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

.wechat-account-fieldset legend {
  padding: 0 8px;
  color: var(--admin-gold);
  font-weight: 900;
}

.admin-row,
.user-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 6px;
  color: #eef1ed;
}

.admin-row--article {
  grid-template-columns: 86px minmax(0, 1fr) 56px;
}

.admin-row--aizhaoti {
  grid-template-columns: 86px minmax(0, 1fr) 24px;
}

.admin-row a {
  min-width: 0;
  font-weight: 800;
  color: #fff7df;
}

.admin-row em {
  display: block;
  color: var(--admin-muted);
  font-size: 13px;
  font-style: normal;
}

.status-pill {
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill--published {
  color: var(--green);
}

.status-pill--draft {
  color: var(--amber);
}

.text-link {
  color: var(--admin-gold);
  font-weight: 800;
}

.editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.wechat-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.wechat-import label {
  display: grid;
  gap: 6px;
  color: var(--admin-muted);
  font-weight: 750;
}

.wechat-import input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef1ed;
  padding: 10px 11px;
  outline: 0;
}

.wechat-import input:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(217, 184, 95, 0.12);
}

.wechat-import__status {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 750;
}

.wechat-import__status[data-state="success"] {
  color: var(--green);
}

.wechat-import__status[data-state="error"] {
  color: var(--red);
}

.aizhaoti-panel {
  display: grid;
  gap: 16px;
}

.aizhaoti-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.aizhaoti-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.aizhaoti-grid strong {
  font-size: 15px;
}

.aizhaoti-grid span,
.aizhaoti-meta {
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.6;
}

.aizhaoti-status {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.aizhaoti-status[data-state="loading"] {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(166, 128, 42, 0.08);
}

.aizhaoti-status[data-state="success"] {
  border-color: var(--green);
  color: var(--green);
  background: rgba(61, 107, 74, 0.08);
}

.aizhaoti-status[data-state="error"] {
  border-color: var(--red);
  color: var(--red);
  background: rgba(179, 58, 48, 0.08);
}

.aizhaoti-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.aizhaoti-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.aizhaoti-settings label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.aizhaoti-settings input {
  min-width: 0;
}

.editor-main,
.editor-side {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
}

.editor-main {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 250, 246, 0.98)),
    var(--admin-paper);
  color: var(--ink);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.editor-side {
  position: sticky;
  top: 78px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: #eef1ed;
}

.editor-form textarea {
  min-height: 120px;
  resize: vertical;
}

.article-content-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.article-content-field > label {
  display: block;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d4d1c8;
  border-radius: 6px 6px 0 0;
  background: #f3f0e8;
}

.editor-toolbar__group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.editor-toolbar__group:last-of-type {
  border-right: 0;
  padding-right: 0;
}

.editor-toolbar button {
  width: 34px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d5d1c7;
  border-radius: 4px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.editor-toolbar button:hover {
  border-color: var(--admin-gold-dark);
  color: var(--admin-gold-dark);
}

.editor-toolbar select {
  width: auto;
  min-width: 88px;
  height: 32px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fbfaf6;
  font-size: 13px;
}

.editor-toolbar__status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.editor-toolbar__status[data-state="loading"] {
  color: var(--amber);
}

.editor-toolbar__status[data-state="success"] {
  color: var(--green);
}

.editor-toolbar__status[data-state="error"] {
  color: var(--red);
}

.admin-body .editor-form label,
.admin-body .user-row label {
  color: inherit;
}

.editor-side label,
.editor-side .check-line {
  color: #c7cfd1;
  font-size: 13px;
}

.editor-side input,
.editor-side select,
.editor-side textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.36);
  color: #eef1ed;
}

.editor-side input:focus,
.editor-side select:focus,
.editor-side textarea:focus {
  border-color: var(--admin-gold);
  box-shadow: 0 0 0 3px rgba(217, 184, 95, 0.12);
}

.editor-main label {
  color: #3c4448;
}

.editor-main input,
.editor-main textarea,
.editor-main select {
  border-color: #cfcac0;
  background: #fffefa;
  color: #15191d;
}

.editor-main input:focus,
.editor-main textarea:focus,
.editor-main select:focus {
  border-color: var(--admin-gold-dark);
  box-shadow: 0 0 0 3px rgba(217, 184, 95, 0.16);
}

.article-content-field textarea {
  border-top: 0;
  border-radius: 0 0 4px 4px;
  min-height: 430px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.75;
}

.cover-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  aspect-ratio: 16 / 9;
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placement-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.placement-panel strong {
  color: var(--admin-gold);
}

.placement-panel small {
  color: var(--admin-muted);
  line-height: 1.5;
}

.video-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.video-upload-progress {
  margin-top: 4px;
}
.video-upload-progress__bar {
  height: 6px;
  background: var(--border, #e5e7eb);
  border-radius: 3px;
  overflow: hidden;
}
.video-upload-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent, #2563eb);
  border-radius: 3px;
  transition: width 0.2s ease;
}
.video-upload-progress__text {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.check-line {
  display: flex !important;
  grid-template-columns: auto 1fr;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
}

.check-line input {
  width: auto;
}

.danger-button {
  border: 1px solid rgba(179, 58, 48, 0.58);
  background: rgba(179, 58, 48, 0.08);
  color: #ef8c84;
  border-radius: 4px;
  padding: 10px 12px;
  font-weight: 800;
}

.admin-body .danger-button {
  background: rgba(179, 58, 48, 0.10);
}

.user-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 140px 96px;
  gap: 10px;
}

.user-row {
  grid-template-columns: 110px minmax(120px, 1fr) 120px 100px 90px minmax(120px, 1fr) 70px;
}

.user-row strong small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  word-break: break-all;
}

@media (max-width: 920px) {
  .top-bar,
  .site-footer {
    flex-direction: column;
  }

  .masthead {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 42px;
  }

  .lead-grid,
  .content-grid,
  .split-band,
  .article-shell,
  .editor-form {
    grid-template-columns: 1fr;
  }

  .related-panel {
    position: static;
  }

  .article-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .model-channel-feature {
    grid-template-columns: 170px minmax(260px, 1fr);
    height: auto;
  }

  .model-channel-feature__cover {
    min-height: 330px;
  }

  .model-channel-feature__lead {
    border-right: 0;
  }

  .model-channel-feature__secondary {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    border-top: 1px solid var(--line);
  }

  .model-channel-feature__side + .model-channel-feature__side {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 0 16px 20px;
  }

  .admin-topbar {
    flex-wrap: wrap;
    margin: 0 -16px 16px;
    padding: 12px 16px;
  }

  .editor-side {
    position: static;
  }

  .wechat-import {
    grid-template-columns: 1fr;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-nav-label {
    grid-column: 1 / -1;
  }

  .stat-grid,
  .user-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .article-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .top-bar,
  .masthead,
  .main-nav,
  .ticker,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .lead-story h2,
  .article-hero h1,
  .page-head h1,
  .member-head h1,
  .admin-head h1,
  .auth-card h1 {
    font-size: 31px;
  }

  .article-card,
  .interview-item {
    grid-template-columns: 1fr;
  }

  .article-card__media {
    aspect-ratio: 16 / 9;
  }

  .model-channel-feature {
    display: block;
    height: auto;
  }

  .model-channel-feature__cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .model-channel-feature__lead {
    padding: 20px;
    border-right: 0;
  }

  .model-channel-feature__lead h2 {
    font-size: 25px;
    -webkit-line-clamp: 3;
  }

  .model-channel-feature__meta {
    margin-top: 18px;
  }

  .model-channel-feature__secondary {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }

  .model-channel-feature__side {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .model-channel-feature__side + .model-channel-feature__side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .model-channel-feature__side strong {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .model-channel-more {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .compact-grid,
  .stat-grid,
  .user-create-form {
    grid-template-columns: 1fr;
  }

  .member-head,
  .article-footer,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .token-box {
    justify-items: start;
  }

  .admin-main {
    padding: 18px 14px;
  }

  .admin-row,
  .admin-row--article,
  .admin-row--aizhaoti,
  .user-row {
    grid-template-columns: 1fr;
  }

  .aizhaoti-grid {
    grid-template-columns: 1fr;
  }

  .aizhaoti-settings {
    grid-template-columns: 1fr;
  }
}

/* Aiseanews reference homepage skin */
:root {
  --paper: #fbf8f2;
  --paper-2: #f3ede0;
  --paper-3: #e8dfc9;
  --ink-2: #2a2a2a;
  --ink-3: #4a4a4a;
  --gold: #a6802a;
  --sea: #2c5f7c;
}

body:not(.admin-body) {
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 14px;
  line-height: 1.7;
}

body:not(.admin-body) ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.announce-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
  padding: 6px 0;
}

.announce-bar .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.announce-bar .left,
.announce-bar .right {
  display: flex;
  gap: 24px;
  color: #aaa;
}

.announce-bar .left {
  min-height: 18px;
}

.announce-bar .left.announce-bar__empty {
  visibility: hidden;
}

.announce-bar .right {
  gap: 16px;
}

.foot-col button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.foot-col button:hover {
  color: var(--red);
}

.announce-link {
  display: inline-flex;
  gap: 24px;
  color: inherit;
  text-decoration: none;
}

.announce-bar .left .live {
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announce-bar .left .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

header.masthead {
  display: block;
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  padding: 24px 0 16px;
}

.masthead .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.masthead .left-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.masthead .left-col .date {
  color: var(--ink);
  font-weight: 600;
}

.masthead .left-col .issue {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.masthead .logo {
  display: block;
  text-align: center;
}

.masthead .logo h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.masthead .logo .en {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.masthead .logo .slogan {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.masthead .right-col {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}

.masthead .search {
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 6px 12px;
}

.masthead .search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
}

.masthead .search svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.masthead .token-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gold);
  background: rgba(166, 128, 42, 0.05);
  color: var(--gold);
  padding: 6px 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.masthead .admin-entry-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--paper);
  color: var(--gold);
  padding: 7px 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.masthead .login-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 7px 18px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.masthead .masthead-welcome {
  display: block;
  max-width: 280px;
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: right;
  animation: masthead-welcome-in 700ms ease-out both;
}

.masthead .masthead-member-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.masthead .masthead-member-link {
  color: var(--gold);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.masthead .masthead-member-link:hover {
  color: var(--red);
  transform: translateX(2px);
}

@keyframes masthead-welcome-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead .masthead-welcome {
    animation: none;
  }
}

nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  overflow: visible;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: none;
}

nav.main-nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: block;
}

nav.main-nav ul {
  display: flex;
  gap: clamp(8px, 1.2vw, 20px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

nav.main-nav ul::-webkit-scrollbar {
  display: none;
}

nav.main-nav ul li {
  position: relative;
}

nav.main-nav ul li a {
  display: flex;
  min-width: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 13px;
  text-align: center;
  color: var(--ink);
  border-bottom: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

nav.main-nav ul li.active a {
  color: var(--red);
}

nav.main-nav ul li.active a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

nav.main-nav ul li a .en {
  display: block;
  width: 100%;
  margin-top: 1px;
  text-align: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

nav.main-nav .nav-aux {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

nav.main-nav .nav-aux .hot {
  color: var(--red);
  font-weight: 700;
}

nav.main-nav .nav-aux .hot::before {
  content: "🔥 ";
}

body:not(.admin-body) > main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.hero-section--no-focus {
  grid-template-columns: 1fr;
}

.hero-section--no-focus .sub-headlines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.hero-section--no-focus .sub-headline:nth-child(2) {
  padding-top: 0;
}

.headline-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.headline-card .img {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #2a3f5f 0%, #1a2842 100%);
}

.headline-card .img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headline-card .img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 198, 134, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(74, 144, 184, 0.3) 0%, transparent 50%);
}

.headline-card .img.has-image::before {
  background: linear-gradient(180deg, rgba(10, 15, 25, 0.16), rgba(10, 15, 25, 0.42));
}

.headline-card .img.has-video::before {
  background: linear-gradient(180deg, rgba(10, 15, 25, 0.08), rgba(10, 15, 25, 0.48));
}

.headline-card .headline-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.headline-card .headline-play::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  width: 0;
  height: 0;
  border-left: 21px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.headline-card .img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.headline-card .img .corner-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--red);
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 0.1em;
}

.headline-card .img .endorse {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.headline-card .img .endorse .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #d4a93a);
  color: #fff;
  font-size: 11px;
}

.headline-card .meta-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--red);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.headline-card .meta-line .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.headline-card .meta-line .time {
  color: var(--muted);
}

.headline-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.headline-card .summary {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.headline-card .lead-preview {
  position: relative;
  margin: 0;
}

.headline-card .lead-copy {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.headline-card .lead-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--red);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 800;
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(247, 247, 241, 0), var(--bg) 18px);
  white-space: nowrap;
}

.headline-card .byline {
  display: flex;
  margin: 10px 0 12px;
  gap: 16px;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.headline-card .byline .comments::before {
  content: "💬 ";
}

.headline-card .byline .likes::before {
  content: "👍 ";
}

.sub-headlines {
  display: flex;
  flex-direction: column;
}

.sub-headline {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.sub-headline:first-child {
  padding-top: 0;
}

.sub-headline .sub-thumb {
  width: 104px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}

.sub-headline .sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-headline .cat {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sub-headline h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.sub-headline .meta {
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
}

.sub-headline .badge {
  display: inline-block;
  margin-right: 6px;
  background: var(--paper-3);
  color: var(--ink-2);
  padding: 1px 6px;
  font-size: 10px;
}

.sub-headline .badge.endorsed {
  background: var(--gold);
  color: #fff;
}

body:not(.admin-body) .content-grid {
  margin-top: 0;
}

body:not(.admin-body) footer {
  background: var(--paper-2);
  border-top: 3px double var(--ink);
  padding: 28px 0 20px;
  margin-top: 40px;
}

body:not(.admin-body) footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

body:not(.admin-body) footer .copyright {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.abstract-img {
  width: 100%;
  height: 100%;
}

/* Reference lower homepage sections */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-head .title-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.section-head .en-title {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
}

.section-head .desc,
.section-head .more {
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.section-head .desc {
  margin-left: 12px;
}

.section-head .more::after {
  content: " →";
}

.channel-news {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}

.news-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-item {
  display: block;
}

.news-item .thumb {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-item .thumb--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}

.news-item .thumb .endorse-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #fff;
  padding: 2px 6px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.news-item .cat-line,
.depth-small .cat-line {
  margin-bottom: 6px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.news-item .excerpt {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item .meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
}

.sidebar-rank {
  background: var(--paper-2);
  padding: 20px;
  border: 1px solid var(--line);
}

.sidebar-rank .rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-rank .rank-head h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
}

.sidebar-rank .rank-head .sub,
.rank-list .r-rank {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.sidebar-rank .tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
}

.sidebar-rank .tabs button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  padding: 0 0 3px;
  font: inherit;
  cursor: pointer;
}

.sidebar-rank .tabs .active {
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  font-weight: 700;
}

.rank-list li {
  display: grid;
  grid-template-columns: 22px 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}

.rank-list .r-rank {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.rank-list li:nth-child(n + 4) .r-rank {
  color: var(--muted);
  font-weight: 500;
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-list .r-thumb {
  display: block;
  width: 48px;
  height: 36px;
  overflow: hidden;
  background: var(--paper-3);
}

.rank-list .r-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-list .r-title {
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 14px;
  line-height: 1.45;
}

.rank-list .r-hot {
  display: inline-block;
  margin-left: 4px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 13px;
  line-height: 1;
  vertical-align: 0.04em;
}

.rank-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 13px;
}

.channel-depth,
.hall-fame,
.channel-tools {
  margin-bottom: 48px;
}

.ai-tool-lab {
  scroll-margin-top: 96px;
}

.depth-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.depth-feature {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  contain: size;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 28px;
}

.depth-feature .pill {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 10px;
  margin-bottom: 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.depth-feature h3 {
  margin: 0 0 14px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.depth-feature .lede,
.depth-small p,
.interview-main .excerpt {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
}

.depth-feature .lede {
  display: -webkit-box;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 18px;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.depth-feature .byline,
.depth-small .byline {
  display: flex;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.depth-feature .byline .author-name {
  color: var(--ink-2);
  font-weight: 700;
}

.depth-feature .byline {
  margin-top: auto;
}

.depth-feature .byline .tag {
  margin-left: auto;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.depth-small {
  display: flex;
  flex-direction: column;
}

.depth-small .cat-line.original {
  color: var(--red);
}

.depth-small h4 {
  margin: 0 0 12px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.depth-small p {
  margin: 0 0 14px;
}

#advisors,
#ai-tools {
  scroll-margin-top: 76px;
}

.article-card .eyebrow a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
}

.article-card .eyebrow a:hover {
  border-bottom-color: currentColor;
}

.depth-small-cover {
  position: relative;
  min-height: 0;
  margin-top: auto;
  margin-bottom: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background-color: var(--paper-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--line);
}

.depth-small-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 23, 26, 0.16));
  content: "";
}

.depth-small .byline {
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-size: 11px;
}

.channel-talk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.channel-talk > div:last-child {
  padding-top: 72px;
}

.course-preview--channel > div:last-child {
  padding-top: 0;
}

.course-preview .video-card::before {
  background:
    radial-gradient(circle at 25% 50%, rgba(166, 128, 42, 0.42) 0%, transparent 48%),
    linear-gradient(135deg, #14171a 0%, #263942 100%);
}

.course-preview .play-btn,
.course-preview .pod-play--disabled {
  pointer-events: none;
}

.course-plan-list .pod-meta {
  flex-wrap: wrap;
}

.interview-main {
  display: block;
}

.interview-main .video-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--paper);
}

.interview-main .video-card--cover {
  background-position: center;
  background-size: cover;
}

.interview-main .video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(166, 128, 42, 0.3) 0%, transparent 50%),
	    linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.interview-main .video-card--cover::before {
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.12), rgba(20, 22, 26, 0.72));
}

.interview-main .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.interview-main .play-btn::after,
.podcast-list .pod-play::after,
.podcast-channel-list .pod-play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.interview-main .play-btn::after {
  left: 29px;
  top: 22px;
}

.interview-main .video-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.interview-main .ep-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.2em;
}

.interview-main h3 {
  margin: 0 0 10px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
}

.interview-main .guest-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.interview-main .guest-info .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c5f7c, #1a3a52);
  color: #fff;
  font-weight: 700;
}

.interview-main .guest-info .name {
  font-weight: 700;
}

.interview-main .guest-info .title {
  color: var(--muted);
  font-size: 12px;
}

.podcast-list .pod-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.podcast-list .pod-item:first-child {
  padding-top: 0;
}

.podcast-list .pod-cover {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sea), #1a3a52);
}

.podcast-list .pod-cover-1 {
  background: linear-gradient(135deg, #a6802a, #6b4f1a);
}

.podcast-list .pod-cover-2 {
  background: linear-gradient(135deg, #b33228, #7a1f18);
}

.podcast-list .pod-cover-3 {
  background: linear-gradient(135deg, #3d6b4a, #1f3a28);
}

.podcast-list .ai-tag,
.podcast-channel-list .ai-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
}

.podcast-list .pod-info h4,
.podcast-channel-list .pod-info h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.podcast-list .ai-label,
.podcast-channel-list .ai-label {
  background: var(--gold);
  color: #fff;
  padding: 1px 6px;
  font-size: 10px;
}

.podcast-list .pod-meta,
.podcast-channel-list .pod-meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 11px;
}

.podcast-list .pod-play,
.podcast-channel-list .pod-play {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  flex: 0 0 auto;
}

.podcast-list .pod-play::after,
.podcast-channel-list .pod-play::after {
  left: 15px;
  top: 12px;
  border-left-color: var(--paper);
  border-left-width: 9px;
  border-top-width: 6px;
  border-bottom-width: 6px;
}

.podcast-list .pod-play--disabled,
.podcast-channel-list .pod-play--disabled {
  opacity: 0.35;
  cursor: default;
}

.video-channel-section {
  margin-bottom: 34px;
}

.video-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-channel-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.video-channel-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.video-channel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-channel-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 22, 26, 0.04), rgba(20, 22, 26, 0.48));
}

.video-channel-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
}

.video-channel-card__play::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  width: 0;
  height: 0;
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video-channel-card__media em {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--paper);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.video-channel-card__body {
  display: grid;
  gap: 8px;
  padding: 0 14px 16px;
}

.video-channel-card__body span,
.video-channel-card__body strong {
  color: var(--muted);
  font-size: 12px;
}

.video-channel-card__body h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 18px;
  line-height: 1.38;
}

.video-channel-card__body p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.video-player-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: #08090b;
}

.video-player-frame iframe,
.video-player-frame video,
.video-player-frame > img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-playback-warning {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(8, 9, 11, 0.86);
  color: var(--paper);
  text-align: center;
}

.video-playback-warning[hidden] {
  display: none;
}

.video-playback-warning span {
  color: rgba(255, 255, 255, 0.78);
}

.video-player-frame--external {
  display: grid;
  place-items: center;
  color: var(--paper);
}

.video-player-frame--external > img {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.video-player-frame--external > div {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.video-player-frame--external strong {
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 24px;
}

.video-player-frame--external span {
  color: rgba(255, 255, 255, 0.78);
}

.hall-fame .hof-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1410 0%, #2a1f15 100%);
  border: 1px solid #3a2f1f;
  color: var(--paper);
  padding: 40px;
}

.hall-fame .hof-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(166, 128, 42, 0.3);
}

.hall-fame .hof-header h2 {
  margin: 0;
  color: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  font-size: 28px;
}

.hall-fame .hof-header h2 .en {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
}

.hall-fame .hof-header .sub {
  flex: 1;
  max-width: none;
  margin-left: 24px;
  color: #b5a688;
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
}

.hall-fame .hof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.hof-card {
  width: 100%;
  appearance: none;
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid rgba(166, 128, 42, 0.3);
  padding: 24px 20px;
  text-align: center;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hof-card:hover,
.hof-card:focus-visible {
  border-color: var(--gold);
  background: rgba(251, 248, 242, 0.07);
  transform: translateY(-2px);
  outline: 0;
}

.hof-card .portrait {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a961 0%, #8a6f30 100%);
  color: #1a1410;
  font-size: 30px;
  font-weight: 700;
}

.hof-card .name {
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
}

.hof-card .era {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin: 4px 0 10px;
}

.hof-card .tagline {
  color: #b5a688;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hof-card .chat-btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.advisors-page {
  gap: 24px;
}

.advisor-page-head span {
  max-width: 720px;
}

.advisor-console {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #3a2f1f;
  background: linear-gradient(180deg, #1a1410 0%, #2a1f15 100%);
  color: var(--paper);
}

.advisor-console .section-title {
  border-color: rgba(166, 128, 42, 0.28);
}

.advisor-console .section-title h2 {
  color: var(--paper);
}

.advisor-console .section-title span {
  color: #b5a688;
}

.advisor-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.advisor-modal-open {
  overflow: hidden;
}

.advisor-modal[hidden] {
  display: none;
}

.advisor-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.advisor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, 0.62);
}

.advisor-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.advisor-dialog__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.advisor-dialog__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--surface);
  font-size: 22px;
  font-weight: 800;
}

.advisor-dialog__head p {
  margin: 0 0 2px;
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.advisor-dialog__head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.advisor-dialog__head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.advisor-dialog__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.advisor-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  overflow-y: auto;
  padding: 18px;
  background: #fbfcfa;
}

.advisor-message {
  display: flex;
}

.advisor-message[data-role="user"] {
  justify-content: flex-end;
}

.advisor-message__bubble {
  max-width: min(560px, 86%);
  white-space: pre-wrap;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.advisor-message[data-role="user"] .advisor-message__bubble {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.advisor-message[data-state="loading"] .advisor-message__bubble {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(165, 106, 0, 0.08);
}

.advisor-message[data-state="error"] .advisor-message__bubble {
  border-color: var(--red);
  color: var(--red);
  background: rgba(179, 58, 48, 0.08);
}

.advisor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.advisor-form textarea {
  min-height: 44px;
  max-height: 140px;
  resize: none;
}

.advisor-form button {
  min-width: 86px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.advisor-form button:disabled {
  cursor: wait;
}

.advisor-footnote {
  padding: 0 14px 14px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}

.ai-tool-workbench {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.ai-tool-workbench__head {
  display: flex;
  justify-content: flex-end;
}

.ai-tool-state {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.ai-tool-state[data-state="loading"] {
  border-color: var(--gold);
  color: var(--gold);
}

.ai-tool-state[data-state="success"] {
  border-color: var(--green);
  color: var(--green);
}

.ai-tool-state[data-state="error"] {
  border-color: var(--red);
  color: var(--red);
}

.ai-tool-input {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 800;
}

.ai-tool-input textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font: 14px/1.7 "Noto Sans SC", "PingFang SC", sans-serif;
}

.ai-tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-tool-result-panel {
  min-width: 0;
  display: grid;
  gap: 0;
  background: #1f1b16;
  color: var(--paper);
}

.ai-tool-result-panel__head {
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(166, 128, 42, 0.35);
}

.ai-tool-result-panel__head strong {
  font-size: 15px;
}

.ai-tool-result-panel .button--outline {
  min-height: 34px;
  border-color: rgba(166, 128, 42, 0.65);
  color: var(--paper);
}

.ai-tool-result-panel pre {
  min-height: 180px;
  max-height: 300px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f3ede0;
  font: 14px/1.75 "Noto Sans SC", "PingFang SC", sans-serif;
}

.ai-tool-card {
  width: 100%;
  appearance: none;
  display: block;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ai-tool-card:hover,
.ai-tool-card:focus-visible {
  border-color: var(--gold);
  background: #fffdf8;
  transform: translateY(-2px);
  outline: 0;
}

body.ai-tool-modal-open {
  overflow: hidden;
}

.ai-tool-modal[hidden] {
  display: none;
}

.ai-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ai-tool-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.64);
}

.ai-tool-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(88vh, 820px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(20, 17, 13, 0.26);
}

.ai-tool-dialog__head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.ai-tool-dialog__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--sea);
  font-size: 20px;
  font-weight: 800;
}

.ai-tool-dialog__head p {
  margin: 0 0 2px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.ai-tool-dialog__head h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
}

.ai-tool-dialog__head span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.ai-tool-dialog__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}

.tool-card .tool-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.tool-card .tool-icon.teach {
  background: var(--paper-3);
}

.tool-card .tool-cat {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.tool-card .tool-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tool-card .tool-desc {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
  min-height: 40px;
  margin-bottom: 12px;
}

.tool-card .tool-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.tool-card .free {
  color: var(--green);
  font-weight: 700;
}

.tool-card .course {
  color: var(--red);
  font-weight: 700;
}

.bottom-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.cta-card {
  padding: 32px;
}

.cta-card.submit {
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.cta-card.member {
  background: var(--ink);
  color: var(--paper);
}

.cta-card .cta-label {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cta-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
}

.cta-card p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.8;
}

.cta-card.submit p {
  color: var(--ink-3);
}

.cta-card.member p {
  color: #c9c9c9;
}

.cta-card .perks {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 12px;
}

.cta-card .perks li::before {
  content: "· ";
  color: var(--gold);
  font-weight: 700;
}

.cta-card .btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-card .btn-primary {
  display: inline-flex;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
}

.cta-card.member .btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.cta-card .btn-sec {
  border-bottom: 1px solid currentColor;
  padding: 10px 0;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
}

.info-page {
  display: grid;
  gap: 24px;
}

.info-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.info-tabs a {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-3);
  padding: 8px 14px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13px;
}

.info-tabs a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.contact-panel,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.contact-copy,
.guide-main,
.guide-side,
.info-card,
.job-card,
.contact-strip {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 24px;
}

.contact-copy h2,
.guide-main h2,
.guide-side strong,
.info-card h2,
.job-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.contact-copy p,
.guide-main p,
.info-card p,
.job-card p,
.contact-strip span {
  color: var(--ink-3);
  font-size: 14px;
}

.contact-copy ul,
.guide-main ul,
.guide-side ol {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--ink-3);
  font-size: 14px;
}

.guide-side ol {
  list-style: decimal;
}

.contact-actions,
.guide-side {
  display: grid;
  gap: 10px;
}

.contact-actions {
  grid-template-columns: repeat(2, max-content);
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 24px;
  text-align: center;
}

.qr-card strong {
  font-size: 18px;
}

.qr-card span {
  color: var(--muted);
  font-size: 13px;
}

.qr-pattern {
  width: 210px;
  height: 210px;
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  grid-template-rows: repeat(25, 1fr);
  gap: 2px;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.qr-pattern span {
  background: #fff;
}

.qr-pattern .is-filled {
  background: var(--ink);
}

.qr-image {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border: 10px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.wechat-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wechat-matrix-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 24px;
}

.wechat-matrix-copy {
  display: grid;
  gap: 10px;
}

.wechat-matrix-copy span {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.wechat-matrix-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.wechat-matrix-copy p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.8;
}

.wechat-matrix-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.wechat-matrix-qr .qr-pattern,
.wechat-matrix-qr .qr-image {
  width: 150px;
  height: 150px;
  gap: 1px;
  border-width: 8px;
}

body.editor-contact-modal-open {
  overflow: hidden;
}

.editor-contact-modal {
  display: none;
}

.editor-contact-modal.is-open,
.editor-contact-modal:target {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.editor-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 18, 0.58);
}

.editor-contact-dialog {
  position: relative;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.editor-contact-dialog p {
  margin: 0;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.editor-contact-dialog h2 {
  margin: 0;
  font-size: 28px;
}

.editor-contact-dialog span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.7;
}

.editor-contact-dialog strong {
  font-size: 15px;
}

.editor-contact-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.job-list {
  display: grid;
  gap: 14px;
}

.job-card span {
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 12px;
}

.contact-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

body:not(.admin-body) footer .foot-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  column-gap: 48px;
  row-gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

body:not(.admin-body) footer .foot-links {
  display: grid;
  width: max-content;
  grid-template-columns: repeat(3, 160px);
  column-gap: clamp(64px, 6vw, 112px);
  justify-self: end;
  margin-left: auto;
  text-align: right;
}

body:not(.admin-body) footer .foot-brand h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

body:not(.admin-body) footer .foot-brand .en {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

body:not(.admin-body) footer .foot-brand p {
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
}

body:not(.admin-body) footer .foot-col h4 {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body:not(.admin-body) footer .foot-col li {
  padding: 4px 0;
  color: var(--ink-2);
  font-size: 13px;
}

body:not(.admin-body) footer .copyright {
  padding-top: 20px;
}

@media (max-width: 1080px) {
  .announce-bar .wrap,
  .masthead .wrap,
  nav.main-nav .wrap,
  body:not(.admin-body) > main,
  body:not(.admin-body) footer .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .announce-bar .wrap,
  .masthead .wrap {
    gap: 18px;
  }

  .masthead .wrap {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .masthead .left-col {
    display: none;
  }

  .masthead .logo {
    text-align: left;
  }

  .masthead .logo h1 {
    font-size: 52px;
  }

  nav.main-nav {
    overflow: hidden;
  }

  nav.main-nav .wrap {
    display: block;
  }

  nav.main-nav ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav.main-nav ul::-webkit-scrollbar {
    display: none;
  }

  nav.main-nav ul li a {
    min-width: 76px;
    padding-left: 10px;
    padding-right: 10px;
  }

  nav.main-nav .nav-aux {
    display: none;
  }

  .hero-section,
  .channel-news,
  .depth-grid,
  .channel-talk,
  .bottom-cta,
  .contact-panel,
  .guide-layout,
  .wechat-matrix-grid,
  body:not(.admin-body) footer .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-section--no-focus .sub-headlines {
    grid-template-columns: 1fr;
  }

  body:not(.admin-body) footer .foot-links {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-section--no-focus .sub-headline:nth-child(2) {
    padding-top: 16px;
  }

  .channel-talk > div:last-child {
    padding-top: 0;
  }

  .depth-feature {
    overflow: visible;
    contain: none;
  }

  .depth-feature .lede {
    flex: none;
    -webkit-line-clamp: 6;
  }

  .news-main,
  .hall-fame .hof-grid,
  .advisor-page-grid,
  .tool-grid,
  .info-grid,
  .video-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-rank {
    order: 2;
  }

  body:not(.admin-body) footer .copyright,
  .hall-fame .hof-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hall-fame .hof-header .sub {
    max-width: none;
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  body:not(.admin-body) {
    font-size: 15px;
  }

  .announce-bar {
    display: none;
  }

  header.masthead {
    padding: 16px 0 12px;
  }

  .announce-bar .wrap,
  .masthead .wrap,
  nav.main-nav .wrap,
  body:not(.admin-body) > main,
  body:not(.admin-body) footer .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .masthead .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .masthead .logo {
    min-width: 0;
  }

  .masthead .logo h1 {
    margin-bottom: 4px;
    font-size: 38px;
    letter-spacing: 0;
  }

  .masthead .logo .en {
    font-size: 11px;
    letter-spacing: 0;
  }

  .masthead .logo .slogan {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .masthead .right-col {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .member-profile-grid {
    grid-template-columns: 1fr;
  }

  .masthead .masthead-welcome {
    max-width: none;
    font-size: 12px;
    text-align: left;
  }

  .masthead .masthead-member-entry {
    align-items: flex-start;
    gap: 8px;
  }

  .masthead .token-badge,
  .masthead .admin-entry-btn,
  .masthead .login-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  nav.main-nav ul li a {
    padding: 11px 14px 10px;
    font-size: 15px;
  }

  nav.main-nav ul li a .en {
    font-size: 9px;
  }

  body:not(.admin-body) > main {
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .hero-section {
    gap: 22px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .headline-card .img {
    height: auto;
    aspect-ratio: 16 / 10;
    margin-bottom: 14px;
  }

  .headline-card .img .corner-tag {
    top: 10px;
    left: 10px;
  }

  .headline-card .img .endorse {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 7px 9px;
  }

  .headline-card h2 {
    font-size: 27px;
    line-height: 1.28;
  }

  .headline-card .meta-line,
  .headline-card .byline,
  .news-item .meta,
  .podcast-list .pod-meta,
  .depth-feature .byline,
  .depth-small .byline,
  .cta-card .perks,
  .cta-card .btn-group {
    flex-wrap: wrap;
  }

  .sub-headline {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .hero-section--no-focus .sub-headline:nth-child(2) {
    padding-top: 14px;
  }

  .sub-headline .sub-thumb {
    width: 78px;
  }

  .section-head,
  .section-head .title-block,
  .member-head,
  .article-footer,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head .title-block {
    gap: 4px;
  }

  .section-head .desc {
    margin-left: 0;
  }

  .news-main,
  .hall-fame .hof-grid,
  .advisor-page-grid,
  .tool-grid,
  .info-grid,
  .video-channel-grid,
  .video-source-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .contact-strip,
  .wechat-matrix-card,
  .site-settings-grid,
  .site-settings-grid--contact,
  .site-settings-grid--accounts {
    grid-template-columns: 1fr;
  }

  .wechat-matrix-card {
    justify-items: start;
  }

  .editor-contact-modal {
    align-items: end;
    padding: 0;
  }

  .editor-contact-dialog {
    width: 100%;
  }

  .ai-tool-actions .button {
    width: 100%;
  }

  .ai-tool-modal {
    align-items: end;
    padding: 0;
  }

  .ai-tool-dialog {
    width: 100%;
    max-height: 92vh;
  }

  .ai-tool-dialog__head {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .ai-tool-dialog__icon {
    width: 46px;
    height: 46px;
  }

  .ai-tool-workbench {
    padding: 14px;
  }

  .news-item .thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .sidebar-rank,
  .depth-feature,
  .hall-fame .hof-wrap,
  .advisor-console,
  .cta-card {
    padding: 18px;
  }

  .advisor-modal {
    align-items: end;
    padding: 0;
  }

  .advisor-dialog {
    width: 100%;
    max-height: 92vh;
  }

  .advisor-dialog__head {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .advisor-dialog__avatar {
    width: 46px;
    height: 46px;
  }

  .advisor-form {
    grid-template-columns: 1fr;
  }

  .depth-feature h3,
  .hall-fame .hof-header h2,
  .cta-card h3 {
    font-size: 23px;
  }

  .depth-feature .byline,
  .depth-small .byline,
  .interview-main .video-meta,
  .podcast-list .pod-meta,
  .tool-card .tool-footer,
  .cta-card .perks {
    gap: 8px;
  }

  .interview-main .video-meta {
    flex-direction: column;
  }

  .interview-main .play-btn {
    width: 56px;
    height: 56px;
  }

  .headline-card .headline-play {
    width: 56px;
    height: 56px;
  }

  .interview-main .play-btn::after {
    left: 23px;
    top: 17px;
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }

  .headline-card .headline-play::after {
    left: 23px;
    top: 17px;
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }

  .podcast-list .pod-item,
  .podcast-channel-list .pod-item {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 14px 0;
  }

  .podcast-list .pod-cover,
  .podcast-channel-list .pod-cover {
    width: 64px;
    height: 64px;
  }

  .podcast-list .pod-play,
  .podcast-channel-list .pod-play {
    width: 32px;
    height: 32px;
  }

  .cta-card .perks {
    display: grid;
    gap: 4px;
  }

  body:not(.admin-body) footer .foot-grid {
    gap: 22px;
  }

  body:not(.admin-body) footer .foot-links {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  body:not(.admin-body) footer .foot-brand p {
    max-width: none;
  }
}

@media (max-width: 420px) {
  .masthead .logo h1 {
    font-size: 34px;
  }

  .headline-card h2,
  .lead-story h2,
  .article-hero h1,
  .page-head h1,
  .member-head h1,
  .admin-head h1,
  .auth-card h1 {
    font-size: 25px;
  }

  .article-card,
  .auth-card,
  .member-head,
  .mini-panel,
  .rank-panel,
  .admin-panel,
  .editor-main,
  .editor-side {
    padding: 14px;
  }

  .button-row,
  .search-page-form {
    flex-direction: column;
  }

  .search-page-form button,
  .button-row .button,
  .button-row .danger-button {
    width: 100%;
  }

  .podcast-list .pod-item,
  .podcast-channel-list .pod-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .podcast-list .pod-cover,
  .podcast-channel-list .pod-cover {
    width: 56px;
    height: 56px;
  }

  .podcast-list .pod-play,
  .podcast-channel-list .pod-play {
    display: none;
  }
}

/* --- Global Audio Player --- */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink, #1a1a1a);
  border-top: 1px solid #333;
}

.audio-bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-btn {
  background: none;
  border: none;
  color: var(--paper, #fbf8f2);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.audio-btn:hover {
  opacity: 0.7;
}

.audio-close {
  font-size: 20px;
  margin-left: auto;
}

.audio-title {
  color: var(--paper, #fbf8f2);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.audio-progress {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #444;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper, #fbf8f2);
  cursor: pointer;
}

.audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper, #fbf8f2);
  border: none;
  cursor: pointer;
}

.audio-time {
  color: #999;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.audio-status {
  color: #f3ede0;
  font-size: 12px;
  min-width: 0;
}

/* --- Podcast Channel Page --- */
.podcast-channel-list {
  max-width: 720px;
}

.podcast-channel-list .pod-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.podcast-channel-list .pod-cover {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sea), #1a3a52);
}

.podcast-channel-list .pod-summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* --- Admin Podcast Page --- */
.podcast-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
}

.podcast-tab {
  padding: 8px 14px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.podcast-tab:hover {
  color: #333;
}

.podcast-tab.active {
  color: var(--ink, #1a1a1a);
  border-bottom-color: var(--ink, #1a1a1a);
  font-weight: 600;
}

.podcast-source-table label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.podcast-source-row.used {
  opacity: 0.5;
}

.podcast-source-row.used span {
  text-decoration: line-through;
}

.status-pill--pending {
  background: #ffeaa7;
  color: #856404;
}

@media (max-width: 420px) {
  .audio-title {
    max-width: 120px;
    font-size: 12px;
  }

  .audio-bar {
    padding: 6px 10px;
    gap: 6px;
  }
}
.ai-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel.ai-editor-list {
  width: min(100%, 1180px);
  margin-bottom: 18px;
  padding: 22px 0 0;
  border: 0;
  background: transparent;
}

.ai-editor-list .section-title {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--admin-line);
}

.ai-editor-cards {
  gap: 14px;
  margin-top: 16px;
}

.ai-editor-form {
  display: grid;
  gap: 16px;
}

.ai-editor-form--wide {
  margin-top: 0;
}

.ai-editor-form--embedded {
  width: min(100%, 760px);
  margin: 14px auto 0;
  padding: 18px;
  border: 1px solid rgba(217, 184, 95, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ai-editor-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
}

.ai-editor-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.ai-editor-form-grid__prompt textarea {
  min-height: 170px;
  resize: vertical;
}

.ai-editor-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.ai-editor-add-panel {
  margin-top: 18px;
  border: 0;
  background: transparent;
}

.ai-editor-add-panel summary {
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
  cursor: pointer;
  list-style: none;
}

.ai-editor-add-panel summary::-webkit-details-marker {
  display: none;
}

.ai-editor-add-panel summary:focus {
  outline: none;
}

.ai-editor-add-panel summary:hover .ai-editor-add-panel__icon,
.ai-editor-add-panel summary:focus-visible .ai-editor-add-panel__icon {
  border-color: rgba(248, 218, 112, 0.94);
  background: #d9b85f;
  box-shadow: 0 0 0 4px rgba(217, 184, 95, 0.14);
  transform: translateY(-1px);
}

.ai-editor-add-panel__icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(217, 184, 95, 0.72);
  border-radius: 50%;
  background: linear-gradient(180deg, #ead075, var(--admin-gold));
  color: #15191d;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.admin-row--ai-editor {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  min-height: 108px;
  padding: 20px 24px;
  border-color: rgba(245, 241, 229, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.admin-row--ai-editor.is-archived {
  opacity: 0.68;
}

.admin-row--ai-editor a,
.ai-editor-name {
  color: #fff3cf;
  font-size: 20px;
  letter-spacing: 0;
}

.ai-editor-name {
  display: block;
  font-weight: 800;
}

.admin-row--ai-editor em {
  margin-top: 8px;
  color: #a9bac4;
  font-size: 15px;
  line-height: 1.7;
}

.admin-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-row-actions form {
  margin: 0;
}

.ai-editor-action-button {
  min-height: 40px;
  border: 1px solid rgba(217, 184, 95, 0.35);
  border-radius: 6px;
  padding: 8px 14px;
  background: rgba(217, 184, 95, 0.09);
  color: #ead075;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.ai-editor-action-button:hover,
.ai-editor-action-button:focus-visible {
  border-color: rgba(217, 184, 95, 0.72);
  background: rgba(217, 184, 95, 0.16);
  color: #fff3cf;
}

.ai-editor-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ai-editor-action-button--delete {
  border-color: rgba(224, 137, 115, 0.34);
  background: rgba(224, 137, 115, 0.08);
  color: #dda091;
}

.ai-editor-action-button--delete:hover,
.ai-editor-action-button--delete:focus-visible {
  border-color: rgba(224, 137, 115, 0.64);
  background: rgba(224, 137, 115, 0.14);
  color: #f1b9ab;
}
.article-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.status-pill--ai {
  background: rgba(91, 141, 239, 0.16);
  color: #9ebcff;
}

.status-pill--review-failed {
  background: rgba(220, 76, 70, 0.16);
  color: #ff9d96;
}

.ai-trace-panel {
  margin-top: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
  color: var(--admin-paper);
  overflow: hidden;
}

.ai-trace-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--admin-gold);
  font-weight: 700;
}

.ai-trace-grid {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.ai-trace-grid section {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.ai-trace-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ai-trace-grid p {
  margin: 6px 0;
  color: var(--admin-muted);
}

.ai-trace-grid pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--admin-paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ai-editor-layout,
  .ai-editor-form-grid {
    grid-template-columns: 1fr;
  }

  .ai-editor-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-row--ai-editor {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }
}
