:root {
  /* ChatGPT-inspired light theme (default); dark via prefers-color-scheme */
  --radius-xl: 28px;
  --radius-lg: 999px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* RGB channels for theme-aware overlays (ink on light, white on dark) */
  --scheme-fg: 13, 13, 13;
  --scheme-bg: 255, 255, 255;

  --bg-root: #ffffff;
  --bg-main: #ffffff;
  --bg-surface: #f9f9f9;
  --bg-elevated: #ffffff;
  --bg-hover: #f4f4f4;
  --bg-active: #ececec;

  --border: #e5e5e5;
  --border-subtle: #ececec;
  --border-focus: #b4b4b4;

  --text: #0d0d0d;
  --text-secondary: #424242;
  --text-muted: #6e6e6e;
  --text-faint: #8e8e8e;
  --text-light: #6e6e6e;

  --btn-primary-bg: #0d0d0d;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #2f2f2f;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #d9d9d9;

  --danger: #ef4444;
  --success: #10b981;
  --avatar-bg: #d4d4d4;
  --shadow-dropdown: 0 8px 28px rgba(0, 0, 0, 0.12);

  --nav-bg: rgba(255, 255, 255, 0.85);
  --logo-filter: brightness(0);
  --profile-cover-bg: #e8e8e8;
  --cover-btn-bg: rgba(0, 0, 0, 0.45);
  --cover-btn-border: rgba(255, 255, 255, 0.35);
  --cover-btn-color: #ffffff;

  --gradient-business: linear-gradient(90deg, #a8d4f0 0%, #d4c4f0 55%, #f0c4d8 100%);
  --gradient-enterprise: linear-gradient(90deg, #a8d8f0 0%, #b8e8e0 55%, #c8f0e8 100%);
  --gradient-pro: linear-gradient(90deg, #c8d4f8 0%, #e0c8f0 55%, #f0d0d8 100%);
  --banner-bg: #e8f0f6;

  /* legacy aliases */
  --primary: var(--btn-primary-bg);
  --primary-hover: var(--btn-primary-hover);
  --primary-light: #2f2f2f;
  --bg: var(--bg-root);
  --bg-gray: var(--bg-surface);
  --card-bg: var(--bg-surface);
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: var(--shadow-dropdown);
}

@media (prefers-color-scheme: dark) {
  :root {
    --scheme-fg: 255, 255, 255;
    --scheme-bg: 0, 0, 0;

    --bg-root: #000000;
    --bg-main: #000000;
    --bg-surface: #111111;
    --bg-elevated: #1a1a1a;
    --bg-hover: #222222;
    --bg-active: #2a2a2a;

    --border: #2a2a2a;
    --border-subtle: #1f1f1f;
    --border-focus: #555555;

    --text: #f5f5f5;
    --text-secondary: #c8c8c8;
    --text-muted: #9a9a9a;
    --text-faint: #7a7a7a;
    --text-light: #9a9a9a;

    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
    --btn-primary-hover: #e8e8e8;
    --btn-secondary-bg: #1a1a1a;
    --btn-secondary-border: #333333;

    --danger: #f87171;
    --success: #34d399;
    --avatar-bg: #333333;
    --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.55);

    --nav-bg: rgba(0, 0, 0, 0.85);
    --logo-filter: brightness(0) invert(1);
    --profile-cover-bg: #0a0a0a;
    --cover-btn-bg: rgba(0, 0, 0, 0.45);
    --cover-btn-border: rgba(255, 255, 255, 0.18);
    --cover-btn-color: #ffffff;

    --banner-bg: #15202b;

    --primary-light: #e8e8e8;
    --bg-gray: var(--bg-elevated);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC',
    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--text-secondary);
}

/* ========== Navigation ========== */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  flex: 1;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.site-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
  opacity: 0.85;
}

.nav-link:hover {
  opacity: 1;
  color: var(--text);
}

.nav-link.active {
  opacity: 1;
  color: var(--text);
}

.nav-link.active::after {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  flex: 1;
  justify-content: flex-end;
}

.nav-avatar-link {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}

.nav-avatar-container {
  position: relative;
  display: inline-block;
}

.nav-avatar-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  padding-top: 0.5rem;
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

.nav-avatar-menu-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.nav-avatar-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-avatar-menu-item:hover {
  background: var(--bg-hover);
}

.nav-avatar-menu-danger {
  color: var(--danger);
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.member-badge {
  position: absolute;
  bottom: 6px;
  right: 0;
  width: 12px;
  height: 12px;
  font-size: 8px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border: 1.5px solid #fff;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avatar-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 550;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.15s var(--ease);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--btn-primary-hover);
}

.btn-nav:active {
  transform: scale(0.98);
}

.btn-nav-ghost {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border: 1px solid var(--btn-secondary-border);
}

.btn-nav-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-focus);
}

.mobile-menu-btn {
  display: none;
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem !important;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-root);
}

.mobile-nav-link {
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0.9;
}

.mobile-nav-link:hover {
  opacity: 1;
  color: var(--text);
}

.mobile-nav-button {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

/* ========== Home (OpenAI Business–style composition) ========== */
.home-hero {
  min-height: calc(100svh - 4.25rem);
  display: flex;
  align-items: center;
  padding: 5.5rem 1.5rem 5rem;
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.home-hero-grid {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4.5rem;
  align-items: center;
}

.home-hero-copy h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 9em;
  text-wrap: pretty;
}

.home-hero-lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 30em;
  margin: 0 0 2.25rem;
}

.home-story {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
  min-width: 0;
  overflow: hidden;
}

.home-story-stage {
  position: relative;
  width: 100%;
  height: min(52vh, 460px);
  min-height: 360px;
  touch-action: pan-y;
}

.home-story-card {
  position: absolute;
  top: 0;
  left: 10%;
  width: 90%;
  height: 100%;
  border-radius: 4px;
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  transition: transform 0.5s var(--ease), opacity 0.45s var(--ease);
  user-select: none;
  cursor: default;
}

.home-story-card-1 {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #e8a898 0%, #c45c4a 100%);
}

.home-story-card-2 {
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(160deg, #c8b8ea 0%, #8a78c4 100%);
}

.home-story-card-3 {
  background:
    radial-gradient(90% 70% at 80% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(160deg, #7eb0c8 0%, #3d6f82 100%);
}

.home-story-card-4 {
  background:
    radial-gradient(110% 80% at 10% 0%, rgba(255, 255, 255, 0.14), transparent 50%),
    linear-gradient(160deg, #9ec9a8 0%, #4a7a58 100%);
}

.home-story-card-5 {
  background:
    radial-gradient(100% 70% at 90% 100%, rgba(255, 255, 255, 0.12), transparent 48%),
    linear-gradient(160deg, #d4b896 0%, #8a6540 100%);
}

.home-story-card[data-pos="0"] {
  z-index: 3;
  transform: translateX(0);
  opacity: 1;
}

.home-story-card[data-pos="-1"] {
  z-index: 2;
  transform: translateX(calc(-100% - 0.75rem));
  opacity: 1;
  cursor: pointer;
}

.home-story-card[data-pos="1"] {
  z-index: 1;
  transform: translateX(calc(100% + 0.75rem));
  opacity: 1;
  cursor: pointer;
}

.home-story-card[data-pos="-2"],
.home-story-card[data-pos="2"] {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.home-story-card[data-pos="-2"] {
  transform: translateX(calc(-200% - 1.5rem));
}

.home-story-card[data-pos="2"] {
  transform: translateX(calc(200% + 1.5rem));
}

.home-story-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.home-story-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 16em;
}

.home-story-stat {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}

.home-story-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
}

.home-story-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding-left: 10%;
}

.home-story-nav-wrap {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
}

.home-story-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.home-story-progress-track,
.home-story-progress-bar {
  fill: none;
  stroke-width: 1.5;
}

.home-story-progress-track {
  stroke: rgba(var(--scheme-fg), 0.28);
}

.home-story-progress-bar {
  stroke: rgb(var(--scheme-fg));
  stroke-linecap: butt;
  animation-name: home-story-progress-fill;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.home-story-nav-wrap.is-paused .home-story-progress-bar {
  animation-play-state: paused;
}

@keyframes home-story-progress-fill {
  to {
    stroke-dashoffset: 0;
  }
}

.home-story-nav {
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  aspect-ratio: 1;
  flex: 0 0 2.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--scheme-fg), 0.45);
  background: transparent;
  color: rgb(var(--scheme-fg));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.home-story-nav:hover {
  border-color: rgba(var(--scheme-fg), 0.9);
}

.home-story-nav-next {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex: none;
  border-color: transparent;
  background: transparent;
}

.home-story-nav-wrap:not(:has(.home-story-progress)) .home-story-nav-next {
  border-color: rgba(var(--scheme-fg), 0.45);
}

.home-story-nav-wrap:not(:has(.home-story-progress)) .home-story-nav-next:hover {
  border-color: rgba(var(--scheme-fg), 0.9);
}

.home-story-nav svg {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.home-story-nav:active {
  transform: scale(0.96);
}

.home-modules {
  padding: 5rem 1.5rem 4.5rem;
}

.home-modules-head {
  max-width: 36em;
  margin-bottom: 2.5rem;
}

.home-modules-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.home-modules-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-module {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.home-module:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.home-module-top {
  padding: 1.25rem 1.35rem 1rem;
  color: #111;
}

.home-module-1 .home-module-top {
  background: var(--gradient-business);
}

.home-module-2 .home-module-top {
  background: var(--gradient-pro);
}

.home-module-3 .home-module-top {
  background: var(--gradient-enterprise);
}

.home-module-4 .home-module-top {
  background: linear-gradient(90deg, #f0d8c0 0%, #e8c8d8 55%, #d0c8f0 100%);
}

.home-module-5 .home-module-top {
  background: linear-gradient(90deg, #c8e8d8 0%, #b8d8e8 55%, #d0d0f0 100%);
}

.home-module-6 .home-module-top {
  background: linear-gradient(90deg, #f0d8c8 0%, #e8d0b8 55%, #d8c8e0 100%);
}

.home-module-7 .home-module-top {
  background: linear-gradient(90deg, #d0e8f0 0%, #c8d8f0 55%, #e0c8e8 100%);
}

.home-module-8 .home-module-top {
  background: linear-gradient(90deg, #e8e0d0 0%, #d8d8e0 55%, #c8e0d8 100%);
}

.home-module-top h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.home-module-body {
  padding: 1.15rem 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-module-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.home-module-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-module-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.home-module-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(var(--scheme-fg), 0.45);
}

.home-module-try {
  margin-top: auto;
  display: inline-block;
  padding-top: 0.35rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.28);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: border-color 0.2s var(--ease);
}

.home-module-try:hover {
  color: var(--text);
  border-bottom-color: rgba(var(--scheme-fg), 0.75);
}

.home-split {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.home-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.home-split-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
  max-width: 6em;
}

.home-split-copy p {
  margin: 0 0 1.15rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 34em;
}

.home-text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

.home-text-link:hover {
  color: var(--text);
  border-bottom-color: rgba(var(--scheme-fg), 0.8);
}

.home-close {
  padding: 5.5rem 1.5rem 6rem;
  border-top: 1px solid var(--border-subtle);
}

.home-close .home-close-inner {
  /* 提高特异性，压过后面 .section-container 的 max-width:1120px */
  max-width: 32em;
}

.home-close-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.home-close-inner p {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .home-hero-grid,
  .home-split-grid,
  .home-module-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 3.75rem 1.5rem 4rem;
    align-items: flex-start;
  }

  .home-hero-grid {
    gap: 2.75rem;
  }

  .home-story-stage {
    height: 340px;
    min-height: 320px;
  }

  .home-story-card {
    left: 6%;
    width: 94%;
  }

  .home-story-controls {
    padding-left: 6%;
  }

  .home-split-grid h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-story-card,
  .home-module,
  .home-story-nav {
    transition: none;
  }

  .home-story-progress-bar {
    animation: none;
  }
}

/* ========== Hero Section (legacy pages) ========== */
.hero-section {
  background: var(--bg-root);
  color: var(--text);
  padding: 5.5rem 2rem 4.5rem;
  text-align: left;
}

.hero-container {
  max-width: 720px;
  margin: 0 auto 0 max(1.5rem, calc((100% - 1200px) / 2 + 0px));
}

.hero-label {
  display: none;
}

.hero-main-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  line-height: 1.28;
  color: var(--text);
  text-wrap: pretty;
  max-width: 16em;
}

.hero-main-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 34em;
}

.hero-main-description {
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
  padding: 5.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.section-gray {
  background: var(--bg-root);
}

.section-container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 0.875rem;
  color: var(--text);
  line-height: 1.35;
  text-wrap: pretty;
  max-width: 18em;
}

.section-subtitle {
  font-size: 1rem;
  text-align: left;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  max-width: 36em;
  margin-left: 0;
  margin-right: auto;
  line-height: 1.75;
  font-weight: 400;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.split-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.rail-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.capability {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.75rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--border-subtle);
}

.capability:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.capability-index {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.capability-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
  text-wrap: pretty;
}

.capability-body > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 40em;
  margin-bottom: 0.875rem;
}

.capability-note {
  font-size: 0.975rem !important;
  color: var(--text-secondary) !important;
  max-width: 40em;
}

.capability-meta {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
  margin-top: 0.625rem;
  margin-bottom: 0 !important;
}

.capability-detail {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 40em;
}

.capability-detail h4 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0;
}

.capability-detail p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.audience-block {
  max-width: 720px;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--border-subtle);
}

.audience-list li {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.quote-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.quote-item {
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.quote-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.quote-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 40em;
  margin: 0 0 1.25rem;
}

.quote-item footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quote-item cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.quote-item footer span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .split-rail {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .capability {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .capability-body h3 {
    font-size: 1.375rem;
  }
}

/* ========== Index List (flat editorial rows, no cards) ========== */
.index-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.index-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.index-row:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.index-row-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}

.index-row-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1.4;
}

.index-row-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
  max-width: 36em;
}

@media (max-width: 640px) {
  .index-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.benefits-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.benefit-check {
  color: var(--text);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== Advantage Blocks ========== */
.advantage-block {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: none;
  border: 1px solid var(--border);
}

.advantage-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.advantage-icon {
  flex-shrink: 0;
  color: var(--text);
}

.advantage-icon svg {
  width: 40px;
  height: 40px;
}

.advantage-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.advantage-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.advantage-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.advantage-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.feature-bullet-icon {
  color: var(--text);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-dot {
  color: var(--text-secondary);
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.advantage-value {
  background: var(--bg-gray);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  border-radius: 0.5rem;
  color: var(--text);
}

.advantage-value strong {
  color: var(--text);
}

.sub-advantage {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.sub-advantage h4 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.sub-advantage p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sub-advantage-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.status-badge {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ========== Customers List ========== */
.customers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.5rem;
}

.customer-card {
  padding: 0.625rem 0;
  font-size: 1rem;
  color: var(--text);
}

.customer-card::after {
  content: '·';
  margin-left: 1rem;
  color: var(--text-faint);
}

.customer-card:last-child::after {
  content: '';
  margin-left: 0;
}

/* ========== Testimonials (flat quote list) ========== */
.testimonials-masonry {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.testimonial-card {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.testimonials-masonry .testimonial-card:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.testimonial-content {
  margin-bottom: 1.25rem;
}

.testimonial-content p {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.0625rem;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.testimonial-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--avatar-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========== Pricing Section ========== */
.pricing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.75rem;
  gap: 0;
}

.pricing-hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.pricing-hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 1.5rem;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(var(--scheme-fg), 0.04);
  border: 1px solid rgba(var(--scheme-fg), 0.08);
  border-radius: var(--radius-lg);
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pricing-toggle-btn {
  padding: 0.5rem 1.25rem !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.pricing-toggle-btn:hover {
  color: var(--text) !important;
}

.pricing-toggle-btn.active {
  background: var(--bg-active) !important;
  color: var(--text) !important;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
}

@media (max-width: 768px) {
  .pricing-grid-dual {
    grid-template-columns: 1fr;
  }
}

.pricing-custom-label {
  font-size: 2rem !important;
  letter-spacing: -0.02em;
}

.pricing-sales-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: -0.5rem 0 1.25rem;
  max-width: 22rem;
}

.pricing-card {
  background: rgba(var(--scheme-fg), 0.03);
  padding: 0;
  border-radius: 1rem;
  border: 1px solid rgba(var(--scheme-fg), 0.08);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: rgba(var(--scheme-fg), 0.14);
  background: rgba(var(--scheme-fg), 0.05);
}

.pricing-card.popular {
  border-color: rgba(var(--scheme-fg), 0.16);
}

.pricing-popular-badge {
  position: absolute;
  top: -0.875rem;
  left: 2rem;
  transform: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.pricing-plan-badge {
  display: inline-block;
  padding: 0.25rem 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 2rem 0 2rem;
}

.pricing-plan-header {
  padding: 1.5rem 1.75rem 1.25rem;
  background: var(--gradient-business);
  color: #0a0a0a;
}

.pricing-card:nth-child(2) .pricing-plan-header {
  background: var(--gradient-enterprise);
}

.pricing-card:nth-child(3) .pricing-plan-header {
  background: var(--gradient-enterprise);
}

.pricing-plan-header h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.pricing-plan-header .pricing-plan-description {
  color: rgba(0, 0, 0, 0.65);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.pricing-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: transparent;
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.pricing-plan-price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-plan-price .amount {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pricing-plan-price .period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-original {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1rem;
}

.saving-badge {
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-plan-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .feature-check {
  color: var(--text);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-features span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== MAU Pricing ========== */
.mau-pricing {
  padding: 1rem 0 1.25rem;
  background: transparent;
  border-radius: 0;
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mau-pricing-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.mau-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.mau-tier:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mau-limit {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8125rem;
}

.mau-price {
  font-weight: 700;
  color: var(--text);
  font-size: 0.875rem;
}

.mau-note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.pricing-button {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.pricing-button:hover {
  background: var(--btn-primary-hover);
}

.pricing-button:active {
  transform: scale(0.98);
}

.pricing-button.professional,
.pricing-button.enterprise {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

/* ========== Checkout Section ========== */
.checkout-single-card {
  max-width: 600px;
  margin: 0 auto;
}

.checkout-order-summary {
  padding: 1.5rem 0;
  background: transparent;
  border-radius: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.08);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.order-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 1rem;
}

.order-label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.order-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.order-price {
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
}

.order-summary-header {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.order-summary-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.order-price-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.checkout-features {
  margin: 1.5rem 0;
}

.checkout-features h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.checkout-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text);
}

.checkout-feature-check {
  color: var(--text);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ========== Checkout Page ========== */
.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.checkout-page-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 3rem;
}

.checkout-main-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.checkout-left,
.checkout-right {
  min-height: auto;
}

.checkout-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.checkout-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* Plan Info */
.checkout-plan-info {
  text-align: center;
}

.plan-name-badge {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.plan-price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 1rem 0 0.5rem;
}

.price-currency {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-period {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.plan-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Benefits */
.benefits-section {
  margin-top: 1rem;
  text-align: left;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--text);
}

.benefit-icon {
  color: var(--text);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.required-mark {
  color: #ff4d4f;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-elevated);
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-info-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.75rem;
  background: var(--bg-gray);
  border-radius: 0.5rem;
}

/* Payment Area */
.checkout-payment-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.payment-method-section {
  /* Aligns with left column */
}

.checkout-submit-section {
  /* Aligns with right column */
}

.payment-options {
  display: flex;
  gap: 0.75rem;
}

.payment-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(var(--scheme-fg), 0.1);
  border-radius: 0.75rem;
  transition: all 0.2s;
  background: rgba(var(--scheme-fg), 0.03);
}

.payment-option:hover .payment-content {
  border-color: rgba(var(--scheme-fg), 0.18);
}

.payment-option.active .payment-content {
  border-color: rgba(var(--scheme-fg), 0.32);
  background: rgba(var(--scheme-fg), 0.06);
}

.payment-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.payment-option.disabled .payment-content {
  background: var(--bg-gray);
  border-color: var(--border);
}

.payment-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.payment-pending-badge {
  display: inline-block;
  background: var(--bg-gray);
  color: var(--text-secondary);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.payment-checkmark {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-checkmark::after {
  content: '✓';
  color: var(--bg-root);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Submit Section */
.total-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
}

.btn-large {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
}

@media (max-width: 968px) {
  .checkout-grid,
  .checkout-payment-area {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .checkout-left,
  .checkout-right {
    min-height: auto;
  }
}

/* ========== CTA Section ========== */
.cta-section {
  background: var(--bg-root);
  text-align: left;
  padding: 6rem 2rem;
}

.cta-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.cta-description {
  font-size: 1rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  max-width: 34em;
  line-height: 1.75;
}

.cta-email {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cta-email a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== Buttons ========== */
button, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.15s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
  color: var(--text);
}

.btn-large {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-root);
  color: var(--text-secondary);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.footer-brand-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-icp {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.footer-icp-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ========== Legal Pages ========== */
.legal-page {
  min-height: 100vh;
  padding: 4rem 2rem;
  background: var(--bg-root);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.legal-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-section p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style-position: inside;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

/* ========== Language Dropdown ========== */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem !important;
  background: var(--btn-secondary-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius-lg) !important;
}

.lang-dropdown-trigger:hover {
  background: var(--bg-hover) !important;
  border-color: var(--border-focus) !important;
}

.lang-globe-icon {
  width: 16px;
  height: 16px;
}

.lang-current {
  font-size: 0.8125rem;
  font-weight: 500;
}

.lang-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  color: var(--text-secondary);
}

.lang-arrow.open {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 150px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-dropdown-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem !important;
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.9375rem !important;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-dropdown-item:hover {
  background: var(--bg-hover) !important;
}

.lang-dropdown-item.active {
  background: var(--bg-active) !important;
  color: var(--text) !important;
}

.check-mark {
  color: var(--text);
  width: 16px;
  height: 16px;
}

/* ========== Profile/Account Pages ========== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.profile-container {
  max-width: 880px;
  margin: 0 auto;
  /* 原先由外层 .container 提供的外边距（模板已去掉该层包裹） */
  padding: 3rem 2rem;
}

.profile-shell {
  padding: 0;
  overflow: visible;
}

.card.profile-shell {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.profile-layout {
  display: flex;
  min-height: 420px;
  gap: 1.5rem;
  align-items: flex-start;
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 168px;
  flex-shrink: 0;
  padding: 0;
  border-right: none;
  background: transparent;
}

.profile-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: var(--radius-md, 12px);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.profile-tab:hover {
  color: var(--text);
  background: rgba(var(--scheme-fg), 0.04);
}

.profile-tab.is-active {
  color: var(--text);
  background: rgba(var(--scheme-fg), 0.07);
  box-shadow: none;
}

.profile-panel {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.profile-panel-title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.08);
}

.profile-setting-row--last {
  border-bottom: none;
}

.profile-setting-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.profile-setting-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.profile-setting-value {
  font-size: 0.9375rem;
  color: var(--text);
  word-break: break-word;
}

.profile-setting-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.profile-setting-badge {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.profile-setting-note {
  margin: -0.25rem 0 0.75rem;
}

.profile-setting-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.08);
}

.profile-setting-block--last {
  border-bottom: none;
}

.profile-setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-setting-toggle .profile-setting-meta {
  pointer-events: none;
}

.profile-setting-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.profile-setting-toggle.is-open .profile-setting-chevron {
  transform: rotate(-135deg);
}

.profile-setting-head {
  margin-bottom: 1rem;
}

.profile-setting-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.profile-setting-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.profile-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.profile-form-stack > .btn {
  align-self: flex-start;
}

.profile-form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.profile-form-row input {
  flex: 1;
  min-width: 0;
}

.profile-form-row .btn {
  flex-shrink: 0;
}

.profile-hint + .profile-setting-row,
.profile-hint + .profile-setting-block {
  margin-top: 0.5rem;
}

.subscribe-result {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 0 4rem;
}

.subscribe-result h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.subscribe-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.subscribe-result-icon.is-ok {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.subscribe-result-icon.is-err {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.subscribe-result-msg {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.subscribe-result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.subscribe-result-actions .btn {
  text-decoration: none;
}

.profile-hero {
  margin-bottom: 0.25rem;
}

.profile-cover {
  position: relative;
  height: 160px;
  border-radius: 16px;
  border: none;
  background-color: var(--profile-cover-bg);
  background-image: linear-gradient(135deg, rgba(var(--scheme-fg), 0.05), transparent 55%);
  overflow: hidden;
  cursor: pointer;
}

.profile-cover.has-image {
  border: none;
  background-image: none;
}

.profile-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--scheme-fg), 0.05), transparent 55%);
  pointer-events: none;
}

.profile-cover-actions {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.18s var(--ease);
}

/* 有封面图时默认隐藏按钮，避免挡住画面；悬停/聚焦再出现 */
.profile-cover.has-image .profile-cover-actions {
  opacity: 0;
  pointer-events: none;
}

.profile-cover.has-image:hover .profile-cover-actions,
.profile-cover.has-image:focus-within .profile-cover-actions {
  opacity: 1;
  pointer-events: auto;
}

/* 触控设备无悬停：不压在图上，改用封面下方的清除入口 */
@media (hover: none) {
  .profile-cover.has-image .profile-cover-actions {
    display: none;
  }
}

.profile-cover-btn {
  font-size: 0.8125rem !important;
  padding: 0.4rem 0.75rem !important;
  backdrop-filter: blur(8px);
  background: var(--cover-btn-bg) !important;
  border-color: var(--cover-btn-border) !important;
  color: var(--cover-btn-color) !important;
}

.profile-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0.25rem;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.profile-hero-avatar.avatar-picker {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-width: 3px;
  border-color: var(--bg-root);
  box-shadow: none;
}

.profile-hero-avatar.avatar-picker:hover:not(:disabled) {
  border-color: var(--bg-root);
}

.profile-hero-meta {
  flex: 1;
  min-width: 0;
  /* 头像上压封面 44px；文案整段落在封面下方，避免骑缝 */
  margin-top: 52px;
  padding-bottom: 0.15rem;
}

.profile-hero-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero-member {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  line-height: 1.4;
}

.profile-hero-member-plan {
  font-weight: 600;
}

.profile-hero-member-expiry {
  font-weight: 400;
  color: var(--text-secondary);
}

.profile-hero-member-expiry::before {
  content: '·';
  margin: 0 0.5rem;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-cover-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.profile-cover-clear-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-cover-clear-link:hover:not(:disabled) {
  color: var(--text);
}

.profile-cover-clear-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 桌面端悬停封面即可清除，下方链接仅给触控/无悬停设备兜底 */
@media (hover: hover) {
  .profile-cover-clear-link {
    display: none;
  }
}

.profile-lab-block {
  padding: 0 0 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.08);
}

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
}

.orders-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.orders-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.orders-item:last-child {
  border-bottom: none;
}

.orders-item-main {
  min-width: 0;
  flex: 1;
}

.orders-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}

.orders-item-name {
  font-weight: 600;
  color: var(--text);
}

.orders-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.orders-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.orders-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.orders-item-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.orders-item-expire {
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.orders-item-expire.is-urgent {
  font-weight: 600;
}

.orders-item-side .btn,
.orders-item-side button.btn-primary,
.orders-item-side button.btn-secondary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-height: 2rem;
  box-sizing: border-box;
}

.orders-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm, 4px);
  background: color-mix(in srgb, var(--border) 70%, transparent);
  color: var(--text-secondary);
}

.orders-status--pending {
  background: color-mix(in srgb, #d97706 18%, transparent);
  color: #b45309;
}

.orders-status--paid {
  background: color-mix(in srgb, #059669 16%, transparent);
  color: #047857;
}

.orders-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

.orders-pagination-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}

.orders-pagination-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.orders-pagination-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.orders-pagination-numbers {
  display: flex;
  gap: 4px;
}

.orders-pagination-number {
  min-width: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.orders-pagination-number:hover {
  border-color: var(--primary);
}

.orders-pagination-number.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
  font-weight: 600;
}

.orders-status--cancelled,
.orders-status--failed {
  background: color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .orders-item {
    flex-direction: column;
  }

  .orders-item-side {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .orders-item-actions {
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .profile-layout {
    flex-direction: column;
  }

  .profile-tabs {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: none;
    padding: 0 0 0.75rem;
    gap: 0.25rem;
  }

  .profile-tab {
    white-space: nowrap;
    width: auto;
  }

  .profile-panel {
    padding: 0;
  }

  .profile-setting-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .profile-setting-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-form-stack {
    max-width: none;
  }

  .profile-cover {
    height: 120px;
  }

  .profile-hero-body {
    margin-top: -36px;
  }

  .profile-hero-meta {
    margin-top: 44px;
  }

  .profile-hero-avatar.avatar-picker {
    width: 72px;
    height: 72px;
  }
}

.card {
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-dropdown);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin: 0 auto 1.5rem;
  display: block;
}

.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.info-grid {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(var(--scheme-fg), 0.08);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.info-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 400;
}

.message {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.message.success {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.message.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.btn-secondary {
  background: var(--btn-secondary-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--btn-secondary-border) !important;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover) !important;
  border-color: var(--border-focus) !important;
}

/* ========== Payment Page ========== */
.payment-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-root);
}

.payment-container {
  max-width: 500px;
  width: 100%;
}

.payment-card {
  background: transparent;
  border-radius: 0;
  padding: 2rem 0;
  border: none;
  box-shadow: none;
  text-align: center;
}

.payment-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.payment-amount {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(var(--scheme-fg), 0.04);
  border-radius: 0.75rem;
  border: none;
}

.payment-amount-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.payment-amount-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  margin-bottom: 1.5rem;
}

.qr-code-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: #ffffff;
}

.qr-code-loading {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.payment-instructions {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.payment-order-number {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.payment-status {
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.payment-checking {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-checking::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--text);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
  .nav-center {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}

/* 超窄屏（en "Sign In" 较长）：右上登录按钮藏到移动菜单里，避免 nav-right 溢出 */
@media (max-width: 400px) {
  .btn-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding: 4rem 1.5rem 3.5rem;
    text-align: left;
  }

  .hero-container {
    margin-left: 0;
    max-width: 100%;
  }
  
  .hero-main-title {
    font-size: 1.875rem;
    max-width: none;
    line-height: 1.3;
  }
  
  .hero-main-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-main-description {
    font-size: 0.95rem;
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    max-width: none;
  }
  
  .section-subtitle {
    font-size: 0.975rem;
  }

  .pricing-hero-title {
    font-size: 1.75rem;
  }

  .pricing-hero-subtitle {
    font-size: 0.975rem;
    margin-bottom: 1.25rem;
  }
  
  .problem-grid {
    grid-template-columns: 1fr;
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-masonry {
    grid-template-columns: 1fr;
  }
  
  .testimonials-masonry .testimonial-card:nth-child(n) {
    margin-top: 0 !important;
  }
  
  .solution-card-number {
    left: 1.5rem;
  }
  
  .benefits-badge {
    flex-direction: column;
    align-items: stretch;
  }
  
  .benefit-tag {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-block {
    padding: 2rem 1.5rem;
  }
  
  .advantage-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .advantage-title {
    font-size: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .legal-container {
    padding: 2rem 1.5rem;
  }
  
  .legal-title {
    font-size: 2rem;
  }
  
  .cta-section {
    padding: 4rem 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1.125rem;
  }
  
  .site-name {
    font-size: 1.25rem;
  }
  
  .brand-icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
}

/* ========== Read Page (Article System) ========== */
.read-page {
  min-height: 100vh;
  background: var(--bg-gray);
  color: var(--text);
}

.read-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
}

.read-list-header-left {
  flex: 1;
}

.read-search-box {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.read-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}

.read-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.read-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(var(--scheme-fg), 0.08);
}

.read-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 48px;
}

.read-content {
  flex: 1;
  min-width: 0;
  /* 限制正文行宽，避免 1400px 容器下 ~150 字符/行 */
  max-width: 820px;
}

.read-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  height: calc(100vh - 96px);
  overflow-y: auto;
}

.read-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.read-sidebar-section {
  margin-bottom: 32px;
}

.read-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.read-category-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  text-align: left;
}

.read-category-btn:hover {
  background: var(--bg-gray);
}

.read-category-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.read-category-dot {
  width: 6px;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 50%;
}

.read-tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.read-tag-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.read-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.read-checkbox.checked {
  border: none;
  background: var(--primary);
}

.read-tag-selected {
  font-weight: 600;
  color: var(--text);
}

.read-tag-count {
  color: var(--text);
}

.read-no-tags {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
}

.read-sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.read-sidebar-back-btn:hover {
  border-color: var(--border-focus);
}

.read-sidebar-back-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.read-sidebar-back-text {
  text-align: left;
}

.read-sidebar-back-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.read-sidebar-content {
  padding: 0 8px;
}

.read-current-article-title {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.read-article-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.read-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.read-loading {
  text-align: center;
  padding: 60px;
  color: var(--text-secondary);
}

.read-article-detail {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--border);
}

.read-article-header {
  margin-bottom: 40px;
}

.read-article-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.read-category-badge {
  padding: 4px 12px;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.read-article-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.2;
}

.read-article-meta-bar {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  align-items: center;
}

.read-tags-inline {
  display: flex;
  gap: 8px;
}

.read-markdown-content {
  line-height: 1.8;
  color: var(--text);
}

.read-markdown-content h1,
.read-markdown-content h2,
.read-markdown-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text);
}

.read-markdown-content h1 {
  font-size: 2rem;
}

.read-markdown-content h2 {
  font-size: 1.5rem;
}

.read-markdown-content h3 {
  font-size: 1.25rem;
}

.read-markdown-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.read-markdown-content ul,
.read-markdown-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.read-markdown-content li {
  margin-bottom: 0.5rem;
}

.read-markdown-content code {
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.read-markdown-content pre {
  background: var(--bg-gray);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.read-markdown-content pre code {
  background: none;
  padding: 0;
}

.read-markdown-content a {
  color: var(--primary);
  text-decoration: underline;
}

.read-markdown-content a:hover {
  color: var(--primary-hover);
}

.read-markdown-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.read-list-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.read-article-count {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}

.read-page-info {
  margin-left: 8px;
}

.read-loading-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
}

.read-loading-text {
  font-size: 14px;
  color: var(--text-light);
}

.read-empty-state {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  border: 1px dashed var(--border);
}

.read-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.read-empty-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.read-empty-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.read-articles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.read-article-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.read-article-card:hover {
  border-color: var(--border-focus);
}

.read-article-meta-top {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  align-items: center;
}

.read-article-category-label {
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.read-article-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text);
}

.read-article-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.read-tag-badge {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-gray);
  padding: 4px 8px;
  border-radius: 4px;
}

.read-no-tags-badge {
  font-size: 12px;
  color: var(--text-light);
}

.read-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 24px;
}

.read-pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.read-pagination-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.read-pagination-btn.disabled {
  background: var(--bg-gray);
  color: var(--text-light);
  cursor: not-allowed;
}

.read-pagination-numbers {
  display: flex;
  gap: 4px;
}

.read-pagination-number {
  min-width: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
}

.read-pagination-number:hover {
  border-color: var(--primary);
}

.read-pagination-number.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
  font-weight: 600;
}

.read-scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  z-index: 100;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.read-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.read-scroll-top:hover {
  border-color: var(--border-focus);
}

@media (max-width: 968px) {
  .read-main {
    flex-direction: column;
    gap: 24px;
  }
  
  .read-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  
  .read-list-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .read-search-box {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .read-main {
    padding: 24px 16px;
  }
  
  .read-article-detail {
    padding: 24px;
  }
  
  .read-article-title {
    font-size: 28px;
  }
  
  .read-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ========== Auth (gaga-img style) ========== */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-root);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 44px 36px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-dropdown);
}

.auth-logo {
  width: 100px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-subtitle {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-form {
  text-align: left;
}

.auth-field {
  display: block;
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  font-size: 15px;
  transition: border-color 0.15s var(--ease), outline 0.15s var(--ease);
}

.auth-field input:focus {
  border-color: var(--border-focus);
  outline: 1px solid var(--border-focus);
  outline-offset: -1px;
}

.auth-field input::placeholder {
  color: var(--text-faint);
}

.auth-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.auth-code-row input {
  flex: 1;
  min-width: 0;
}

.auth-btn-code {
  flex-shrink: 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}

.auth-btn-code:hover:not(:disabled) {
  border-color: var(--border-focus);
}

.auth-btn-code:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-error {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--danger);
}

.auth-btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
}

.auth-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-alt-login {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.auth-btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s var(--ease), opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.auth-btn-wechat:hover:not(:disabled) {
  background: #06ad56;
  transform: scale(1.05);
}

.auth-btn-wechat:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-wechat-icon {
  width: 22px;
  height: 22px;
}

.auth-footer-link {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--text);
  font-weight: 500;
}

/* ========== Avatar picker ========== */
.avatar-picker {
  position: relative;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-main);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}

.avatar-picker:hover:not(:disabled) {
  border-color: var(--border-focus);
}

.avatar-picker:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 个人中心头像不可改（未实现）时保持原色，不置灰 */
.profile-hero-avatar.avatar-picker:disabled {
  opacity: 1;
  cursor: default;
}

.avatar-picker .avatar-image,
.avatar-picker .avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.avatar-picker .avatar-fallback {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  background: var(--avatar-bg);
}

.avatar-picker .avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.avatar-picker:hover:not(:disabled) .avatar-overlay {
  opacity: 1;
}

.nav-avatar {
  border-color: var(--border);
}

/* ========== Developer Docs (/docs) ========== */
.docs-page {
  background: var(--bg-gray);
}

.docs-sidebar-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.docs-article {
  padding: 40px 44px;
}

.docs-article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.docs-article-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 10px;
}

.docs-article-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.docs-body {
  color: var(--text);
  line-height: 1.75;
}

.docs-h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 2.4rem 0 1rem;
  padding-top: 0.4rem;
  scroll-margin-top: 96px;
}

.docs-h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.8rem;
  scroll-margin-top: 96px;
}

.docs-p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.docs-list {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.docs-list li {
  margin-bottom: 0.45rem;
}

.docs-inline-code {
  background: var(--bg-gray);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.86em;
  font-family: 'SFMono-Regular', 'Courier New', monospace;
  color: var(--text);
  word-break: break-word;
}

/* 步骤 */
.docs-steps {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  counter-reset: none;
}

.docs-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.docs-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.docs-step-body {
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 代码块 */
.docs-code {
  margin: 0 0 1.3rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-gray);
}

.docs-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(var(--scheme-fg), 0.03);
}

.docs-code-lang {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.docs-code-copy {
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.docs-code-copy:hover {
  color: var(--text);
  border-color: var(--border-focus);
}

.docs-code-pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: 'SFMono-Regular', 'Courier New', monospace;
  color: var(--text);
}

.docs-code-pre code {
  font-family: inherit;
  white-space: pre;
}

/* 表格 */
.docs-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
}

.docs-table th {
  background: rgba(var(--scheme-fg), 0.03);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

/* 提示框 */
.docs-callout {
  margin: 0 0 1.3rem;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  background: rgba(var(--scheme-fg), 0.02);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.docs-callout-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 13.5px;
}

.docs-callout-info {
  border-left-color: #3b82f6;
}

.docs-callout-success {
  border-left-color: var(--success);
}

.docs-callout-warn {
  border-left-color: #f59e0b;
}

.docs-callout-danger {
  border-left-color: var(--danger);
}

/* 一键复制提示词卡片（/docs/skill 页首） */
.docs-prompt {
  margin: 0 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.docs-prompt-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(var(--scheme-fg), 0.03);
}

.docs-prompt-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  flex-shrink: 0;
}

.docs-prompt-text {
  margin: 0;
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  font-family: 'SFMono-Regular', 'Courier New', monospace;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.docs-prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(var(--scheme-fg), 0.02);
}

.docs-prompt-hint {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
}

.docs-prompt-copy {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.docs-prompt-copy:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.docs-prompt-copy.is-copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

/* 接口卡片 */
.docs-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.2rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.docs-method {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  flex-shrink: 0;
}

.docs-method-get {
  background: #10b981;
}

.docs-method-post {
  background: #3b82f6;
}

.docs-method-patch {
  background: #f59e0b;
}

.docs-method-put {
  background: #8b5cf6;
}

.docs-method-delete {
  background: #ef4444;
}

.docs-endpoint-path {
  font-family: 'SFMono-Regular', 'Courier New', monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.docs-endpoint-auth {
  font-size: 11.5px;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}

.docs-endpoint-summary {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 图 */
.docs-diagram {
  margin: 0 0 1.5rem;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  overflow-x: auto;
}

/* 上一页 / 下一页 */
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s var(--ease);
  max-width: 48%;
}

.docs-pager-link:hover {
  border-color: var(--border-focus);
}

.docs-pager-next {
  text-align: right;
  margin-left: auto;
}

.docs-pager-dir {
  font-size: 12px;
  color: var(--text-light);
}

.docs-pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 900px) {
  .docs-sidebar {
    display: none;
  }
  .docs-article {
    padding: 24px 20px;
  }
}

/* ── 迁移修复补丁：导航登录态 / 移动菜单 / 成功页 / account 占位 ── */

/* 头像下拉菜单默认隐藏，悬停/聚焦/点击(is-open)展开 */
.nav-avatar-menu {
  display: none;
}
.nav-avatar-container:hover .nav-avatar-menu,
.nav-avatar-container:focus-within .nav-avatar-menu,
.nav-avatar-container.is-open .nav-avatar-menu {
  display: block;
}

/* 移动菜单用 hidden 属性 + JS toggle，需压过媒体查询的 display:flex */
.mobile-menu[hidden] {
  display: none !important;
}

/* 成功页容器（checkout-success / subscribe-confirmed 共用） */
.success-page {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

/* 成功页按钮行：hero-buttons 是 flex，不吃 text-align，需显式居中 */
.success-page .hero-buttons {
  justify-content: center;
}

/* account 页面未登录时的提示态 */
.account-auth-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  text-align: center;
}

.account-auth-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.account-auth-text {
  margin: 0;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.account-auth-action {
  margin-top: 0.5rem;
  padding: 0.55rem 1.5rem;
}

/* 小号按钮（security/notifications 面板行内操作） */
.btn-sm {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  min-height: 2rem !important;
  border-radius: var(--radius-sm, 4px) !important;
  white-space: nowrap;
}

/* ── 迁移修复补丁 2：个人中心表单 / 语言下拉 / tab 链接 ── */

/* 个人中心表单输入框（对译旧版 UserProfile fieldStyle） */
.profile-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
}
.profile-field:focus {
  outline: none;
  border-color: var(--border-focus);
}
.profile-form-stack .profile-field {
  margin: 0;
}

/* 头像下拉挂载点默认行内 */
.nav-auth-mount {
  display: inline-block;
}

/* profile-tab 用 <a> 渲染时去下划线 */
.profile-tab {
  text-decoration: none;
}
