/*
 * 榴莲雅思 Material App · Living Gold 中浓度视觉层
 * 仅覆盖展示样式；不改业务脚本、存储 key、数据源、API 或导航。
 */

:root {
  --durian-ink: #101310;
  --durian-green: #173f35;
  --durian-green-soft: #e9f1ec;
  --durian-gold: #c4933b;
  --durian-gold-deep: #8a5c1e;
  --durian-gold-bright: #efd58d;
  --durian-canvas: #f8f5ed;
  --durian-surface: #fffdf8;
  --durian-text: #17221d;
  --durian-muted: #647168;
  --durian-border: #ddd8ca;
}

html {
  background: #e9e5dc;
}

html body {
  color: var(--durian-text);
  background:
    radial-gradient(circle at 88% -6%, rgba(196, 147, 59, .13), transparent 22rem),
    var(--durian-canvas);
}

html body .topbar {
  color: #fffdf8;
  background:
    radial-gradient(circle at 88% -80%, rgba(239, 213, 141, .30), transparent 15rem),
    linear-gradient(128deg, #102e24 0%, var(--durian-green) 60%, #225c47 100%);
  border-bottom-color: rgba(239, 213, 141, .34);
  box-shadow: 0 10px 28px rgba(16, 46, 36, .18);
}

html body .brand {
  color: #fffdf8;
}

html body .brand .sub {
  color: rgba(255, 253, 248, .72);
}

html body .logo {
  background: linear-gradient(145deg, #f1d991, var(--durian-gold));
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 11px 55% 48% 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .60), 0 8px 20px rgba(0, 0, 0, .18);
  transform: rotate(-2deg);
}

html body .logo img {
  width: 31px;
  height: 31px;
  transform: rotate(2deg);
}

html body .brand-pill {
  color: var(--durian-gold-bright);
  background: rgba(255, 253, 248, .08);
  border-color: rgba(239, 213, 141, .42);
  font-weight: 800;
  letter-spacing: .12em;
}

html body .hero {
  background:
    linear-gradient(126deg, rgba(16, 46, 36, .98), rgba(23, 63, 53, .90)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='360'%3E%3Ccircle cx='520' cy='66' r='180' fill='none' stroke='%23EFD58D' stroke-width='2' opacity='.20'/%3E%3Cpath d='M0 276c102-47 177-44 242-9 82 45 154 34 244-12 54-28 103-23 154 8v97H0z' fill='%23FFFDF8' opacity='.09'/%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(239, 213, 141, .20);
  box-shadow: 0 14px 34px rgba(20, 55, 43, .16);
}

html body .page,
html body .detail-head,
html body .draft-box,
html body .essay-box {
  --ink: var(--durian-text);
  --muted: var(--durian-muted);
  --paper: var(--durian-surface);
  --line: rgba(23, 34, 29, .13);
  --leaf: var(--durian-green);
  --leaf-soft: var(--durian-green-soft);
  --gold: var(--durian-gold-deep);
  --gold-soft: #f8edd4;
}

html body .card,
html body .q-card,
html body .detail-head,
html body .draft-box,
html body .essay-box,
html body .drawer,
html body .setting,
html body .review-focus,
html body .flow-step {
  background-color: var(--durian-surface);
  border-color: var(--durian-border);
  box-shadow: 0 8px 24px rgba(25, 48, 38, .07);
}

html body .guide,
html body .review-focus {
  background: #f8edd4;
  border-color: rgba(138, 92, 30, .26);
}

html body .action {
  border-left-color: var(--durian-gold-deep);
}

html body .btn:not(.ghost),
html body .entry-action {
  background: var(--durian-green);
  color: #fff;
}

html body .bank-hero-btn,
html body a.chip,
html body .chip {
  min-height: 46px;
}

html body .chip.active,
html body .nav-btn.active {
  color: #fff;
  background: var(--durian-green);
  border-color: var(--durian-green);
}

html body .tool-btn.active,
html body .tag.leaf,
html body .entry-label {
  color: var(--durian-green);
  background: var(--durian-green-soft);
  border-color: #bfd1c7;
}

html body .bottom-nav {
  background: rgba(255, 253, 248, .97);
  border-top-color: var(--durian-border);
}

html body button:focus-visible,
html body a:focus-visible,
html body input:focus-visible,
html body textarea:focus-visible,
html body [tabindex]:focus-visible {
  outline: 3px solid #d5a84b;
  outline-offset: 2px;
}

html body .tap-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html body *,
  html body *::before,
  html body *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 390px) {
  html body .brand-pill {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
