/* 云屏 SC 全局样式 — Onyx & Gold 暗金高定体系 */
:root {
  --onyx: #0F0F0F;
  --stone: #181818;
  --mid: #242220;
  --gold: #D4AF37;
  --warm-gold: #C9963B;
  --pale-gold: #E8CF8A;
  --parchment: #F4F1EA;
  --mercury: #A8A29A;
  --dim: #6E685F;
  --line: rgba(212,175,55,.20);
  --serif: "Playfair Display","Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif;
  --sans: -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--onyx); color: var(--parchment); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--pale-gold); }
button { cursor: pointer; font-family: inherit; }
::selection { background: rgba(212,175,55,.3); color: var(--parchment); }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; }

/* 顶部导航 */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 44px; border-bottom: 1px solid var(--line);
  background: rgba(15,15,15,.85); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.navbar .logo { font-family: var(--serif); font-size: 21px; font-weight: 700;
  color: var(--parchment); letter-spacing: 2px; }
.navbar .logo span { color: var(--gold); }
.navbar .nav-links { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.navbar .nav-links a { color: var(--mercury); letter-spacing: 1px; }
.navbar .nav-links a:hover { color: var(--gold); }

/* 按钮 — 鎏金 */
.btn {
  position: relative; overflow: hidden;
  padding: 11px 26px; border-radius: 2px; border: none; font-size: 14px; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--warm-gold), var(--gold)); color: #181818;
  font-weight: 600;
  transition: transform .25s, box-shadow .35s;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .6s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(212,175,55,.3); }
.btn:hover::before { left: 100%; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--gold);
  font-weight: 500;
}
.btn-ghost:hover { background: rgba(212,175,55,.08); border-color: var(--gold); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: linear-gradient(135deg, #8a3a34, #C0504D); color: var(--parchment); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* 卡片 */
.card {
  background: rgba(24,22,18,.72); border: 1px solid var(--line);
  border-radius: 4px; padding: 26px;
  box-shadow: inset 0 1px 0 rgba(212,175,55,.06);
  backdrop-filter: blur(6px);
}

/* 表单 */
.form-input {
  width: 100%; padding: 11px 14px; border-radius: 2px; font-size: 14px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  color: var(--parchment); outline: none; transition: border-color .25s, box-shadow .25s;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.1); }
.form-label { display: block; margin: 14px 0 6px; font-size: 12px; color: var(--mercury); letter-spacing: 1px; }
select.form-input option { background: var(--stone); color: var(--parchment); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.modal {
  background: var(--stone); border: 1px solid var(--line);
  border-radius: 4px; padding: 34px; width: 400px; max-width: 92vw;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(212,175,55,.1);
  animation: riseUp .35s cubic-bezier(.16,1,.3,1);
}
.modal h3 { margin-bottom: 8px; color: var(--pale-gold); letter-spacing: 2px; }

/* 提示 */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: var(--stone); border: 1px solid var(--gold); color: var(--parchment);
  padding: 12px 26px; border-radius: 2px; z-index: 300; font-size: 14px; letter-spacing: 1px;
  box-shadow: 0 10px 36px rgba(0,0,0,.5);
  animation: riseUp .3s cubic-bezier(.16,1,.3,1);
}
.toast.error { border-color: #C0504D; }
.toast.success { border-color: #9DBF6E; }

/* 页脚 */
.copyright-bar {
  text-align: center; padding: 26px; color: var(--dim);
  font-size: 12px; letter-spacing: 2px; border-top: 1px solid rgba(212,175,55,.08);
}

/* 动画 */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 768px) {
  .navbar { padding: 12px 16px; }
  .navbar .nav-links { gap: 12px; }
}

/* ===== 定制暗金滚动条（全局） ===== */
* { scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.35) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201,150,59,.55), rgba(212,175,55,.30));
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold), var(--warm-gold));
  box-shadow: 0 0 8px rgba(212,175,55,.5);
}
::-webkit-scrollbar-corner { background: transparent; }

/* ===== 顶部鎏金滚动进度条 ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--warm-gold), var(--gold), var(--parchment), var(--gold));
  box-shadow: 0 0 10px rgba(212,175,55,.5), 0 0 20px rgba(212,175,55,.2);
}

/* ===== 定制鎏金光标（仅精细指针设备） ===== */
.sc-cursor-dot, .sc-cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.sc-cursor-dot {
  width: 6px; height: 6px; z-index: 9999; background: var(--gold);
  box-shadow: 0 0 10px rgba(212,175,55,.6), 0 0 20px rgba(212,175,55,.3);
}
.sc-cursor-ring {
  width: 40px; height: 40px; z-index: 9998;
  border: 1px solid rgba(212,175,55,.25);
}
@media (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
}

/* ===== Hero 入场动画 ===== */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(46px) rotateX(14deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); }
}
.hero-anim { opacity: 0; animation: heroRise 1.1s cubic-bezier(.16,1,.3,1) forwards; transform-origin: 50% 100%; }
.hero-anim.d1 { animation-delay: .15s; }
.hero-anim.d2 { animation-delay: .45s; }
.hero-anim.d3 { animation-delay: .75s; }
.hero-anim.d4 { animation-delay: 1.05s; }
.hero-anim.d5 { animation-delay: 1.35s; }
@keyframes heroFade { from { opacity: 0; transform: scale(.8); } to { opacity: .5; transform: scale(1); } }
.hero-ring { opacity: 0; animation: heroFade 1.8s ease 1s forwards, spinRing 36s linear 2.8s infinite; }
@keyframes spinRing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-anim { animation: none; opacity: 1; }
  .hero-ring { animation: none; opacity: .5; }
}

/* ===== 卡片光晕跟随层 ===== */
.shine-layer { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; transition: background .35s; }
