/* ============================================
   优雅升级层 · quiet luxury
   加载顺序：style.css → theme-shouzhang.css → 本文件
   只做光、材质、层次、细节，不改任何功能与结构
   ============================================ */

/* —— 光与底：页面即氛围 —— */
body {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 214, 150, .20), transparent 70%),
    radial-gradient(1100px 700px at 88% 110%, rgba(224, 93, 61, .045), transparent 60%),
    repeating-linear-gradient(0deg, rgba(122, 100, 70, .02) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(122, 100, 70, .02) 0 1px, transparent 1px 26px),
    #faf6ef;
}
::selection { background: rgba(176, 141, 79, .30); }

/* 细滚动条，收进暖色 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ded2bd; border-radius: 999px; border: 3px solid #faf6ef; }
::-webkit-scrollbar-thumb:hover { background: #cbbca1; }
::-webkit-scrollbar-track { background: transparent; }

/* —— 顶栏：更透的玻璃 + 发丝线 —— */
.topbar {
  background: rgba(252, 248, 240, .80);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(150, 120, 80, .14);
}
.topbar .logo { letter-spacing: .5px; }
.mainnav a { transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.mainnav a.active { box-shadow: 0 1px 6px rgba(107, 78, 40, .12); }

/* —— 卡片：双层柔影 + 顶光 + 发丝边 —— */
.card {
  border-color: rgba(190, 160, 110, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 1px 2px rgba(107, 78, 40, .05),
    0 10px 30px -12px rgba(107, 78, 40, .14);
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s cubic-bezier(.22, .61, .36, 1);
}
.card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    0 2px 4px rgba(107, 78, 40, .05),
    0 18px 40px -14px rgba(107, 78, 40, .20);
}

/* hero 背后的一盏暖光 */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; right: -40px; top: -70px; width: 330px; height: 330px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 110, .32), transparent 68%);
}

/* —— 标题下的黄铜笔触 —— */
.card-head h2::after {
  content: ''; display: block; width: 34px; height: 3px; margin-top: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #c9a25e, rgba(201, 162, 94, 0));
}

/* —— 按钮：釉面渐变 + 掠过的光 —— */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent);
  transform: skewX(-18deg); transition: left .5s ease; pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn:not(:disabled):active { transform: translateY(0) scale(.985); }
.btn-primary {
  background: linear-gradient(180deg, #1db054, #149445);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #19a24a, #128a3f); }
.btn-orange {
  background: linear-gradient(180deg, #f7ad26, #ef9d0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30);
}
.btn-orange:hover:not(:disabled) { background: linear-gradient(180deg, #f0a318, #e0920a); }

/* —— 数字与徽章的精致度 —— */
.stat b { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.badge { border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(107, 78, 40, .08); }
.stamp { font-family: var(--font-hand, "LXGW WenKai", sans-serif); letter-spacing: 1px; }

/* —— 输入焦点：暖金细环 —— */
.input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(176, 141, 79, .18); }

/* —— 弹窗：入場更深、背景轻虚化 —— */
.overlay { background: rgba(35, 26, 14, .5); backdrop-filter: blur(3px); }
.modal { box-shadow: 0 24px 60px -20px rgba(50, 35, 15, .42); }

/* —— 抽签胶带更挺 —— */
.tape { box-shadow: 0 2px 6px rgba(107, 78, 40, .18); }

/* —— 页脚：收边成落款 —— */
.site-footer {
  max-width: 720px; margin: 30px auto 8px; padding-top: 18px;
  border-top: 1px solid rgba(150, 120, 80, .14);
}

/* —— 全屏跟做 / 菜谱页共享同一盏顶光 —— */
.ck-full, .cb-full {
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 214, 150, .15), transparent 70%),
    var(--bg, #faf6ef);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
}
