:root {
  --ink: #252525;
  --muted: #73706b;
  --paper: #fffaf4;
  --paper-warm: #fffaf1;
  --surface: #ffffff;
  --line: rgba(61, 45, 32, 0.1);
  --white: #ffffff;
  --green: #176f5c;
  --green-deep: #0e463e;
  --green-soft: #dcefe7;
  --coral: #d76658;
  --blue: #315f88;
  --orange: #f35b14;
  --rose: #f43f72;
  --mint: #0fa67a;
  --teal: #006b5f;
  --gold: #f5b700;
  --shadow: 0 18px 50px rgba(31, 47, 50, 0.12);
  --shadow-soft: 0 18px 50px rgba(99, 69, 38, 0.12);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf7ef 0, var(--paper) 560px),
    var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(250, 247, 240, 0.9);
  border-bottom: 1px solid rgba(216, 223, 220, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(31, 47, 50, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(23, 111, 92, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 28, 28, 0.82), rgba(14, 28, 28, 0.42) 52%, rgba(14, 28, 28, 0.16)),
    linear-gradient(0deg, rgba(14, 28, 28, 0.62), rgba(14, 28, 28, 0.08) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 5vw, 72px) clamp(56px, 10vh, 96px);
  color: var(--white);
}

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

.hero .eyebrow {
  color: #f2c46d;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.04;
  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;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
  text-wrap: pretty;
}

.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: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(31, 47, 50, 0.14);
}

.button.primary {
  color: var(--ink);
  background: var(--white);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

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

.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;
}

.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: var(--shadow);
}

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

.metric::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
}

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

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

.timeline {
  width: min(980px, 100%);
  margin: 0 auto;
  border-left: 2px solid rgba(23, 111, 92, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 30px 28px;
}

.timeline-item::before {
  position: absolute;
  top: 7px;
  left: -8px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--coral);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

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

.timeline-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.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:
    linear-gradient(180deg, #eef6f2 0, #f6faf7 100%);
}

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

.profile-panel {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0, #fbf7ef 100%);
}

.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--gold));
  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: var(--shadow-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  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: 0 18px 40px rgba(31, 47, 50, 0.1);
  transform: translateY(-2px);
}

.album-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue), #223d5c);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(49, 95, 136, 0.18);
}

.plan-section {
  background:
    linear-gradient(180deg, #fff8ef 0, #fbf2e6 100%);
}

.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: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.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: 999px;
}

.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #6c91aa);
}

.bar-track.debt span {
  background: linear-gradient(90deg, var(--coral), #e8a078);
}

.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(--green);
  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(--white);
  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(--green);
  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(--white);
  background: linear-gradient(145deg, var(--green), var(--green-deep));
}

.button.danger {
  color: var(--coral);
  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(--green);
}

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

.media-section {
  background:
    linear-gradient(135deg, rgba(243, 91, 20, 0.06), transparent 42%),
    linear-gradient(315deg, rgba(15, 166, 122, 0.07), transparent 38%),
    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: 28px;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.media-library-intro h3 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 3vw, 36px);
}

.media-library-intro p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.media-kicker {
  display: inline-flex;
  padding: 6px 10px;
  color: #d7fff3;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
}

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

.media-stats > div {
  min-width: 92px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
}

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

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

.media-stats span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  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-sm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.media-filter.active {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.media-load-more {
  margin: 22px auto 0;
  color: var(--orange);
  background: var(--surface);
  border-color: rgba(243, 91, 20, 0.24);
}

.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-md);
  box-shadow: var(--shadow-soft);
}

.media-card-visual {
  position: relative;
  overflow: hidden;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  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(--white);
  background: rgba(37, 37, 37, 0.72);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.media-card-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.media-card-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.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 rgba(243, 91, 20, 0.4);
  border-radius: var(--radius-md);
}

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

.empty-state-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--rose);
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.media-admin-link {
  color: var(--white);
  background: var(--orange);
}

.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;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

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

  .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) {
  .hero-content {
    margin-bottom: 54px;
  }

  h1 {
    font-size: 40px;
  }

  .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;
  }
}
