﻿:root {
  --bg: #f8f5ef;
  --bg-soft: #fdfaf6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-muted: #f7efe8;
  --surface-glow: rgba(255, 255, 255, 0.65);
  --text: #4a3e39;
  --text-soft: #7a6b64;
  --text-faint: #ab9b92;
  --line: rgba(166, 144, 132, 0.18);
  --line-strong: rgba(166, 144, 132, 0.28);
  --primary: #dc8d9a;
  --primary-deep: #c97287;
  --primary-soft: #f5d8de;
  --secondary: #d9c4a1;
  --mint: #bddccf;
  --lavender: #ddd7f4;
  --peach: #f6ddd1;
  --warning: #d78863;
  --danger: #d96b77;
  --success: #7ab596;
  --shadow-soft: 0 12px 32px rgba(207, 187, 177, 0.14);
  --shadow-card: 0 20px 36px rgba(185, 164, 152, 0.14);
  --shadow-pressed: inset 6px 6px 12px rgba(211, 196, 187, 0.48), inset -6px -6px 12px rgba(255, 255, 255, 0.92);
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --nav-height: 78px;
  --header-height: 72px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Avenir Next', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 216, 222, 0.9), transparent 28%),
    radial-gradient(circle at top right, rgba(221, 215, 244, 0.7), transparent 24%),
    radial-gradient(circle at bottom left, rgba(189, 220, 207, 0.45), transparent 30%),
    linear-gradient(180deg, #fbf7f1 0%, #f8f5ef 48%, #f4efe8 100%);
  padding-bottom: calc(var(--nav-height) + 20px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  opacity: 0.28;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  padding: 12px 16px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(201, 114, 135, 0.44);
  box-shadow: 0 0 0 5px rgba(245, 216, 222, 0.7);
}

.shell {
  max-width: calc(var(--content-width) + 56px);
  margin: 0 auto;
  padding: 0 18px 30px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(248, 245, 239, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.topbar-inner {
  max-width: var(--content-width);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,216,222,0.88));
  box-shadow: var(--shadow-soft), var(--shadow-pressed);
  font-size: 22px;
}

.brand-copy h1,
.brand-copy h2,
.brand-copy p {
  margin: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.avatar-pill,
.soft-btn,
.primary-btn,
.ghost-btn {
  border-radius: 999px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.icon-btn:hover,
.avatar-pill:hover,
.soft-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-soft);
}

.avatar-bubble {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--primary-soft), rgba(255,255,255,0.96));
  color: var(--primary-deep);
  font-size: 16px;
  font-weight: 700;
}

.avatar-pill strong {
  display: block;
  font-size: 13px;
}

.avatar-pill span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-soft);
}

.page {
  max-width: var(--content-width);
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel,
.panel,
.soft-panel,
.metric-card,
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.72);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-panel {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.84), rgba(247,239,232,0.92));
}

.panel,
.soft-panel,
.glass-card {
  padding: 22px;
}

.soft-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(246, 237, 228, 0.92));
}

.grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2,
.section-head h3,
.section-head p {
  margin: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.section-title {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.section-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.metric-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-card .metric-value {
  font-size: 30px;
  font-weight: 700;
}

.metric-card .metric-label {
  font-size: 13px;
  color: var(--text-soft);
}

.metric-card .metric-note {
  font-size: 12px;
  color: var(--text-faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.72);
}

.badge-primary {
  background: rgba(245, 216, 222, 0.8);
  color: var(--primary-deep);
}

.badge-vip {
  background: linear-gradient(120deg, #f0d6ae, #ddbc87);
  color: #704d24;
}

.badge-mint {
  background: rgba(189, 220, 207, 0.75);
  color: #487b66;
}

.badge-lavender {
  background: rgba(221, 215, 244, 0.78);
  color: #6357a1;
}

.primary-btn,
.soft-btn,
.ghost-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 14px 22px rgba(201, 114, 135, 0.24);
}

.soft-btn {
  background: rgba(255,255,255,0.76);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft);
}

.ghost-btn {
  background: transparent;
  color: var(--text-soft);
  border: 1px dashed var(--line-strong);
}

.link-btn {
  min-height: auto;
  padding: 0;
  color: var(--primary-deep);
  background: transparent;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.68);
}

.list-item-copy h4,
.list-item-copy p {
  margin: 0;
}

.list-item-copy h4 {
  font-size: 16px;
}

.list-item-copy p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.card-actions,
.inline-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-card {
  padding: 28px;
  text-align: center;
  color: var(--text-soft);
}

.empty-card strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  color: var(--text);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  transform: translateX(-50%);
  width: min(96vw, 640px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 16px 34px rgba(165, 145, 132, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-nav a {
  min-height: 56px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-soft);
}

.bottom-nav a strong {
  font-size: 18px;
  font-weight: 600;
}

.bottom-nav a.active {
  background: linear-gradient(145deg, rgba(245,216,222,0.88), rgba(255,255,255,0.9));
  color: var(--primary-deep);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.75);
}

.desktop-nav {
  display: none;
}

.vip-mask {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border-radius: 24px;
  background: rgba(248,245,239,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px dashed rgba(201,114,135,0.22);
}

.vip-mask strong {
  font-size: 14px;
}

.toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: min(88vw, 460px);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
  animation: toastIn 0.24s ease;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.toast-info .toast-icon { background: rgba(221, 215, 244, 0.9); color: #6357a1; }
.toast-success .toast-icon { background: rgba(189, 220, 207, 0.92); color: #487b66; }
.toast-warning .toast-icon { background: rgba(246, 221, 209, 0.94); color: #9c5f3f; }
.toast-error .toast-icon { background: rgba(248, 208, 214, 0.94); color: #a24853; }

.toast-text {
  font-size: 13px;
  line-height: 1.6;
}

.toast-leave {
  opacity: 0;
  transform: translateY(-8px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(90, 73, 66, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-shell {
  width: min(92vw, 520px);
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(155deg, rgba(255,255,255,0.92), rgba(247,239,232,0.98));
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow-card);
}

.modal-wide {
  width: min(94vw, 760px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-head h3,
.modal-head p {
  margin: 0;
}

.modal-head h3 {
  font-size: 20px;
}

.modal-head p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

.modal-body {
  color: var(--text);
}

.confirm-stack p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.8;
}

.page-note,
.subtle {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

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

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

.kv-item {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(255,255,255,0.68);
}

.kv-item label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

.kv-item strong,
.kv-item span {
  font-size: 15px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: floatIn 0.45s ease both;
}

.reveal-delay-1 { animation-delay: 0.06s; }
.reveal-delay-2 { animation-delay: 0.12s; }
.reveal-delay-3 { animation-delay: 0.18s; }

.reduce-motion *,
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .shell {
    padding: 0 14px 26px;
  }

  .topbar-inner {
    padding: 12px 14px;
  }

  .brand-copy .brand-subtitle {
    display: none;
  }

  .avatar-pill span {
    display: none;
  }

  .page {
    margin-top: 18px;
  }

  .hero-panel,
  .panel,
  .soft-panel,
  .glass-card {
    padding: 18px;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 21px;
  }
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 24px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--shadow-soft);
  }

  .desktop-nav a {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
  }

  .desktop-nav a.active {
    color: var(--primary-deep);
    background: rgba(245,216,222,0.84);
  }

  .bottom-nav {
    display: none;
  }
}
