@font-face {
  font-family: "LXGW WenKai 77";
  src: url("assets/fonts/lxgw-wenkai-77.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ee; --surface: #ffffff; --ink: #29262a; --muted: #6e6870;
  --line: #d6d1ca; --qiqi-purple: #75539b; --qiqi-purple-soft: #f4eef8;
  --qiqi-purple-mid: #c7b5d5; --danger: #b8404a; --success: #28785a;
  --focus-ring: #75539b;
  --radius: 8px; --radius-small: 6px;
  --font-ui: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-hand: "LXGW WenKai 77", "Kaiti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand-lockup img {
  display: block;
  width: 184px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--qiqi-purple);
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 4vw 42px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--qiqi-purple);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.editorial-hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-hand);
  text-wrap: balance;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
  text-wrap: pretty;
}

.editorial-hero__media {
  position: relative;
  margin: 0;
}

.editorial-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editorial-hero__media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  color: #fff;
  background: var(--qiqi-purple);
  font-size: 11px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.button.primary {
  color: var(--surface);
  background: var(--qiqi-purple);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 4vw;
  border-bottom: 1px solid var(--line);
}

.section[id] {
  scroll-margin-top: 88px;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 24px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  text-wrap: pretty;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0;
}

.section-heading .eyebrow {
  color: var(--qiqi-purple);
  font-size: 11px;
  font-weight: 750;
}

.metric-grid,
.album-grid,
.event-grid,
.recommend-grid,
.plan-board,
.finance-layout,
.qiqi-layout,
.bill-workspace {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

.metric,
.album,
.event,
.recommend,
.profile-panel,
.plan-column,
.finance-summary,
.finance-bars,
.bill-import-panel,
.bill-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.metric::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: var(--qiqi-purple);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--success);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  width: min(980px, 100%);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--qiqi-purple);
  font-weight: 900;
}

.timeline-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.timeline-card h3 {
  font-family: var(--font-hand);
  font-size: 28px;
  font-weight: 500;
}

.timeline-card p,
.growth-item p,
.album p,
.event p,
.recommend p,
.plan-card p {
  color: var(--muted);
  line-height: 1.75;
}

.qiqi-section,
.finance-section,
.bill-section {
  background: var(--paper);
}

.qiqi-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.profile-panel {
  padding: 24px;
  background: var(--surface);
}

.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  color: var(--surface);
  background: var(--qiqi-purple);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

dl {
  margin: 24px 0 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 14px;
  font-weight: 700;
}

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

.growth-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--qiqi-purple-soft);
  border-radius: var(--radius-small);
  font-size: 13px;
  font-weight: 700;
}

.album-grid,
.event-grid,
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.album,
.event,
.recommend {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.album:hover,
.event:hover,
.recommend:hover,
.plan-column:hover,
.bill-panel:hover {
  border-color: rgba(23, 111, 92, 0.28);
  box-shadow: none;
  transform: translateY(-2px);
}

.album-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--surface);
  background: var(--qiqi-purple);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: none;
}

.plan-section {
  background: var(--paper);
}

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

.plan-column {
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.plan-column h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.plan-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.plan-card:last-child {
  border-bottom: 0;
}

.progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  background: #edf0ee;
  border-radius: var(--radius-small);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--qiqi-purple);
}

.finance-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.finance-summary,
.finance-bars {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.money-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.money-row:last-child {
  border-bottom: 0;
}

.money-row strong {
  font-size: 24px;
}

.bar-row {
  margin-bottom: 18px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.bar-track {
  height: 16px;
  overflow: hidden;
  background: #e7ecea;
  border-radius: var(--radius-small);
}

.bar-track span {
  display: block;
  height: 100%;
  background: var(--qiqi-purple);
}

.bar-track.debt span {
  background: var(--danger);
}

.bill-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bill-workspace > *,
.bill-dashboard,
.bill-table-wrap {
  min-width: 0;
}

.bill-import-panel,
.bill-panel {
  padding: 20px;
}

.bill-import-head,
.bill-toolbar,
.bill-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bill-import-head {
  margin-bottom: 18px;
}

.bill-import-head h3,
.bill-panel h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.bill-import-head span {
  color: var(--success);
  font-weight: 900;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.file-drop {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 22px;
  color: var(--muted);
  background: #fbfdfb;
  border: 1px dashed #aebbb7;
  border-radius: 8px;
  cursor: pointer;
}

.file-drop strong {
  color: var(--success);
  font-size: 18px;
}

.file-drop span {
  line-height: 1.6;
}

.file-drop input {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bill-actions {
  margin-top: 16px;
}

.button.solid {
  color: var(--surface);
  background: var(--qiqi-purple);
}

.button.danger {
  color: var(--danger);
  background: #fff7f5;
  border-color: #f0c9c4;
}

.bill-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.bill-dashboard {
  display: grid;
  gap: 16px;
}

.bill-dashboard > *,
.bill-toolbar,
.bill-metrics,
.bill-analysis-grid {
  min-width: 0;
  max-width: 100%;
}

.bill-toolbar {
  justify-content: flex-start;
}

.bill-toolbar select {
  width: min(220px, 100%);
}

.bill-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bill-metrics .metric strong {
  font-size: 26px;
}

.bill-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bill-category-list,
.bill-account-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.bill-bar-row .bar-track span {
  background: var(--success);
}

.empty-state,
.empty-table {
  color: var(--muted);
  line-height: 1.7;
}

.media-section {
  background: var(--paper);
}

.media-library-frame {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.media-library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
  padding: 0 0 22px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.media-library-intro h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.media-library-intro p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.media-kicker {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--qiqi-purple);
  background: var(--qiqi-purple-soft);
  border-radius: var(--radius-small);
  font-size: 12px;
  font-weight: 800;
}

.media-stats {
  display: flex;
  gap: 8px;
}

.media-stats > div {
  min-width: 92px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.media-stats strong,
.media-stats span {
  display: block;
}

.media-stats strong {
  font-size: 22px;
}

.media-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.media-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.media-filter {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.media-filter.active {
  color: var(--surface);
  background: var(--qiqi-purple);
  border-color: var(--qiqi-purple);
}

.media-load-more {
  margin: 22px auto 0;
  color: var(--qiqi-purple);
  background: var(--surface);
  border-color: var(--line);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.media-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.media-card-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.media-card-open:focus-visible {
  outline: 3px solid var(--qiqi-purple);
  outline-offset: -3px;
}

.media-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4eee7;
  transition: transform 240ms ease;
}

.media-card:hover img {
  transform: scale(1.025);
}

.media-type-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: var(--surface);
  background: rgba(37, 37, 37, 0.72);
  border-radius: var(--radius-small);
  font-size: 12px;
  font-weight: 800;
}

.media-card-body {
  padding: 14px;
}

.media-card-body h3 {
  margin: 5px 0 7px;
  font-size: 15px;
}

.media-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.media-card-body .media-meta {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-viewer {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-viewer::backdrop {
  background: rgba(25, 23, 28, 0.68);
}

.media-viewer-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  color: var(--surface);
  background: rgba(25, 23, 28, 0.72);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
}

.media-viewer-visual {
  display: grid;
  min-height: 320px;
  place-items: center;
  background: #19171c;
}

.media-viewer-visual img,
.media-viewer-visual video {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.media-viewer-copy {
  padding: 24px;
}

.media-viewer-copy h3 {
  margin: 6px 0 10px;
}

.media-viewer-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.qiqi-accent {
  --accent: var(--qiqi-purple);
}

.qiqi-accent .media-type-badge {
  color: var(--qiqi-purple);
  background: var(--qiqi-purple-soft);
}

.media-empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 26px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.media-empty-state p {
  margin: 6px 0 0;
}

.empty-state-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--surface);
  background: var(--qiqi-purple-mid);
  border-radius: var(--radius-small);
  font-weight: 900;
}

.media-admin-link {
  color: var(--surface);
  background: var(--qiqi-purple);
}

.learning-section {
  background: var(--surface);
}

.learning-library {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.learning-privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.learning-privacy-note strong {
  flex: 0 0 auto;
  color: var(--qiqi-purple);
}

.learning-filter-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) repeat(2, minmax(140px, 0.6fr)) minmax(210px, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.learning-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.learning-member-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.learning-filter-control {
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

button.learning-filter-control {
  flex: 0 0 auto;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

button.learning-filter-control.active {
  color: var(--surface);
  background: var(--qiqi-purple);
  border-color: var(--qiqi-purple);
}

.learning-filter-control:focus-visible,
.learning-resource-open:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.learning-result-count {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.learning-resource-list {
  display: grid;
  gap: 8px;
}

.learning-resource-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.learning-resource-row.qiqi-learning-resource {
  border-left: 4px solid var(--qiqi-purple);
}

.learning-resource-thumbnail {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--paper);
  border-radius: 6px;
}

.learning-resource-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.qiqi-learning-resource .learning-resource-icon,
.qiqi-learning-resource .learning-resource-type {
  color: var(--qiqi-purple);
}

.learning-resource-main {
  min-width: 0;
}

.learning-resource-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.learning-resource-heading h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-resource-type {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.learning-resource-meta {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.learning-file-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-progress {
  width: min(320px, 100%);
  height: 4px;
  overflow: hidden;
  background: var(--paper);
  border-radius: 6px;
}

.learning-progress span {
  display: block;
  height: 100%;
  background: var(--qiqi-purple);
}

.learning-resource-action {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 88px;
  font-size: 12px;
}

.learning-resource-open {
  display: inline-flex;
  align-items: center;
  color: var(--qiqi-purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learning-resource-unavailable {
  color: var(--muted);
}

.learning-empty-state {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 120px;
  padding: 24px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.learning-empty-state p {
  margin: 0;
}

.bill-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.bill-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.bill-table th,
.bill-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.bill-table th {
  color: var(--muted);
  font-size: 13px;
}

.bill-table td:last-child,
.bill-table th:last-child {
  text-align: right;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px 16px;
    padding: 5px 5px 9px;
    scroll-padding-inline: 5px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .section[id] {
    scroll-margin-top: 148px;
  }

  .editorial-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .editorial-hero__media {
    width: 100%;
    min-height: 360px;
  }

  .editorial-hero__media img {
    min-height: 360px;
  }

  .timeline-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .section-heading.split,
  .qiqi-layout,
  .finance-layout,
  .bill-workspace,
  .media-library-intro {
    grid-template-columns: 1fr;
  }

  .learning-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-member-filters,
  .learning-search-label {
    grid-column: 1 / -1;
  }

  .metric-grid,
  .album-grid,
  .event-grid,
  .recommend-grid,
  .plan-board,
  .bill-metrics,
  .bill-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
    padding: 10px 16px;
  }

  .brand-lockup img {
    width: 156px;
  }

  .site-nav {
    margin-inline: -2px;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .section[id] {
    scroll-margin-top: 152px;
  }

  .editorial-hero {
    gap: 28px;
    padding: 36px 16px 30px;
  }

  .editorial-hero h1 {
    font-size: 38px;
  }

  .editorial-hero__media,
  .editorial-hero__media img {
    min-height: 280px;
  }

  .section {
    padding: 34px 16px;
  }

  .metric-grid,
  .album-grid,
  .event-grid,
  .recommend-grid,
  .plan-board,
  .bill-metrics,
  .bill-analysis-grid {
    grid-template-columns: 1fr;
  }

  .bill-toolbar,
  .bill-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bill-toolbar select {
    width: 100%;
  }

  .timeline-item,
  .growth-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline {
    border-left: 0;
  }

  .timeline-item {
    padding-left: 0;
  }

  .timeline-item::before {
    display: none;
  }

  .footer {
    flex-direction: column;
  }

  .media-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-stats > div {
    min-width: 0;
  }

  .media-empty-state {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .media-card-body {
    padding: 11px;
  }

  .media-card-body h3 {
    font-size: 14px;
  }

  .learning-filter-bar {
    grid-template-columns: 1fr;
  }

  .learning-member-filters,
  .learning-search-label {
    grid-column: auto;
  }

  .learning-resource-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .learning-resource-action {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
  }
}

@media (pointer: coarse) {
  .button,
  .site-nav a,
  .media-filter,
  .media-load-more,
  button.learning-filter-control,
  .learning-resource-open,
  select,
  input:not([type="checkbox"]):not([type="radio"]),
  textarea {
    min-height: 44px;
  }

  label:has(input[type="checkbox"]),
  label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
    cursor: pointer;
  }

  input[type="checkbox"],
  input[type="radio"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
  }
}

.media-library-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -8px auto 22px;
  color: var(--qiqi-purple);
  font-weight: 700;
}

.media-library-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
