/* 客户端官网 · 界面风格 */
html[data-site-theme="cloud"] {
  --navy: #123653;
  --navy-800: #174365;
  --navy-700: #23557d;
  --steel: #48647d;
  --amber: #2f6fed;
  --amber-light: #6b9af7;
  --amber-soft: #e8f0ff;
  --paper: #ffffff;
  --bg: #f3f7fc;
  --bg-2: #eaf2fb;
  --line: #dce7f3;
  --line-dark: #c5d5e7;
  --muted: #64788c;
  --muted-2: #8a9caf;
  --ink: #142333;
  --radius: 10px;
  --shadow: 0 14px 36px rgba(18, 54, 83, .09);
  --shadow-lg: 0 26px 64px rgba(18, 54, 83, .15);
}
html[data-site-theme="cloud"] .site-header { background: rgba(255, 255, 255, .97); }
html[data-site-theme="cloud"] .site-header.is-scrolled { box-shadow: 0 8px 28px rgba(18, 54, 83, .08); }
html[data-site-theme="cloud"] .main-nav a { color: var(--steel); }
html[data-site-theme="cloud"] .main-nav a:hover,
html[data-site-theme="cloud"] .main-nav a.is-active { color: var(--navy); }
html[data-site-theme="cloud"] .hero::before {
  background: linear-gradient(90deg, rgba(6, 22, 42, .97) 0%, rgba(10, 35, 63, .9) 34%, rgba(12, 44, 78, .5) 62%, rgba(12, 44, 78, .16) 100%);
}
html[data-site-theme="cloud"] .hero::after { background: linear-gradient(0deg, rgba(6, 22, 42, .8), transparent); }
html[data-site-theme="cloud"] .site-footer { background: #0c2238; }
html[data-site-theme="cloud"] .btn-primary { color: #fff; }
html[data-site-theme="cloud"] .btn-primary:hover { color: #fff; }
html[data-site-theme="cloud"] .section.alt { background: var(--bg); }

html[data-site-theme="sakura"] {
  --navy: #4b2b36;
  --navy-800: #5a3440;
  --navy-700: #6c4150;
  --steel: #7c5b64;
  --amber: #c25b78;
  --amber-light: #e19ab0;
  --amber-soft: #fbe8ed;
  --paper: #fffafb;
  --bg: #fdf4f6;
  --bg-2: #f9eaee;
  --line: #f0dfe4;
  --line-dark: #dfc3cc;
  --muted: #8e747b;
  --muted-2: #b39aa2;
  --ink: #3f2a31;
  --danger: #b84b5d;
  --success: #6f8f72;
  --warning: #a9784e;
  --info: #9a6e8a;
  --radius: 12px;
  --shadow: 0 16px 38px rgba(130, 71, 90, .1);
  --shadow-lg: 0 28px 66px rgba(130, 71, 90, .16);
}
html[data-site-theme="sakura"] .site-header { background: rgba(255, 250, 251, .97); }
html[data-site-theme="sakura"] .main-nav a { color: #755b62; }
html[data-site-theme="sakura"] .main-nav a:hover,
html[data-site-theme="sakura"] .main-nav a.is-active { color: #4b2b36; }
html[data-site-theme="sakura"] .hero::before {
  background: linear-gradient(90deg, rgba(43, 22, 29, .97) 0%, rgba(63, 31, 42, .9) 36%, rgba(82, 39, 53, .5) 62%, rgba(82, 39, 53, .16) 100%);
}
html[data-site-theme="sakura"] .hero::after { background: linear-gradient(0deg, rgba(43, 22, 29, .8), transparent); }
html[data-site-theme="sakura"] .site-footer { background: #352027; }
html[data-site-theme="sakura"] .btn-primary { color: #fff; }
html[data-site-theme="sakura"] .btn-primary:hover { color: #fff; }
html[data-site-theme="sakura"] .hero h1,
html[data-site-theme="sakura"] .section-head h2,
html[data-site-theme="sakura"] .page-head h1,
html[data-site-theme="sakura"] .detail-block h1,
html[data-site-theme="sakura"] .article-head h1 { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; letter-spacing: .02em; }
html[data-site-theme="sakura"] .stat-bar { box-shadow: 0 16px 38px rgba(130, 71, 90, .08); }

html[data-site-theme="mint"] {
  --navy: #26443d;
  --navy-800: #31564c;
  --navy-700: #3d6a5d;
  --steel: #5f746e;
  --amber: #5f8f7f;
  --amber-light: #8ab9a7;
  --amber-soft: #e5f4ec;
  --paper: #fbfffd;
  --bg: #f4faf7;
  --bg-2: #edf7f2;
  --line: #dcebe3;
  --line-dark: #bcd2c7;
  --muted: #6f857f;
  --muted-2: #9bb0aa;
  --ink: #263d38;
  --danger: #a65656;
  --success: #4f7f68;
  --warning: #9b7a4e;
  --info: #558b8a;
  --radius: 12px;
  --shadow: 0 16px 36px rgba(56, 92, 82, .09);
  --shadow-lg: 0 28px 64px rgba(56, 92, 82, .15);
}
html[data-site-theme="mint"] .site-header { background: rgba(251, 255, 253, .97); }
html[data-site-theme="mint"] .main-nav a { color: #5f746e; }
html[data-site-theme="mint"] .main-nav a:hover,
html[data-site-theme="mint"] .main-nav a.is-active { color: #26443d; }
html[data-site-theme="mint"] .hero::before {
  background: linear-gradient(90deg, rgba(20, 40, 35, .97) 0%, rgba(31, 61, 52, .9) 36%, rgba(42, 79, 67, .5) 62%, rgba(42, 79, 67, .16) 100%);
}
html[data-site-theme="mint"] .hero::after { background: linear-gradient(0deg, rgba(20, 40, 35, .8), transparent); }
html[data-site-theme="mint"] .site-footer { background: #172d27; }
html[data-site-theme="mint"] .btn-primary { color: #fff; }
html[data-site-theme="mint"] .btn-primary:hover { color: #fff; }
html[data-site-theme="mint"] .hero h1,
html[data-site-theme="mint"] .section-head h2,
html[data-site-theme="mint"] .page-head h1,
html[data-site-theme="mint"] .detail-block h1,
html[data-site-theme="mint"] .article-head h1 { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; letter-spacing: .02em; }
html[data-site-theme="mint"] .stat-bar { box-shadow: 0 16px 38px rgba(56, 92, 82, .08); }

/* 主题切换按钮 */
.site-theme-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all .2s;
}
.site-theme-btn:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }
.mobile-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 16px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  font-size: 13px;
}

/* 主题选择弹窗 */
.site-theme-modal { max-width: 820px; }
.site-theme-panel { padding: 26px 26px 24px; }
.site-theme-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.site-theme-head h3 { font-size: 21px; margin: 0 0 5px; }
.site-theme-head p { font-size: 12.5px; color: var(--muted); margin: 0; }
.site-theme-note { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; }
.site-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-theme-card {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px;
  transition: all .18s;
}
.site-theme-card:hover { border-color: var(--muted-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.site-theme-card.is-active { border-color: var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 16%, transparent); }
.site-theme-card strong { display: block; font-size: 13px; margin-top: 9px; }
.site-theme-card small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.6; margin-top: 2px; }
.st-preview { display: flex; flex-direction: column; height: 84px; border: 1px solid rgba(20, 32, 44, .1); border-radius: 4px; overflow: hidden; background: #f4f6f8; }
.st-top { display: block; height: 14px; background: #fff; border-bottom: 1px solid rgba(20, 32, 44, .08); }
.st-body { display: flex; align-items: flex-end; gap: 5px; padding: 7px 8px 0; flex: 1; }
.st-body i { display: block; flex: 1; height: 20px; background: #fff; border: 1px solid rgba(20, 32, 44, .1); }
.st-hero { display: block; height: 16px; background: #0e1d2f; }
.st-preview.classic .st-hero { background: #0e1d2f; }
.st-preview.classic .st-body i:first-child { border-top: 3px solid #c8963e; }
.st-preview.cloud { background: #f3f7fc; }
.st-preview.cloud .st-top { background: #fff; }
.st-preview.cloud .st-body i { background: #fff; border-color: #dce7f3; }
.st-preview.cloud .st-hero { background: #2f6fed; }
.st-preview.sakura { background: #fdf4f6; }
.st-preview.sakura .st-top { background: #fffafb; }
.st-preview.sakura .st-body i { background: #fffafb; border-color: #f0dfe4; }
.st-preview.sakura .st-hero { background: #4b2b36; }
.st-preview.sakura .st-body i:first-child { border-top: 3px solid #c25b78; }
.st-preview.mint { background: #f4faf7; }
.st-preview.mint .st-top { background: #fbfffd; }
.st-preview.mint .st-body i { background: #fbfffd; border-color: #dcebe3; }
.st-preview.mint .st-hero { background: #26443d; }
.st-preview.mint .st-body i:first-child { border-top: 3px solid #5f8f7f; }
@media (max-width: 760px) {
  .site-theme-modal { max-width: calc(100% - 24px); }
  .site-theme-panel { padding: 20px 16px; }
  .site-theme-head { flex-direction: column; gap: 8px; }
  .site-theme-grid { grid-template-columns: 1fr 1fr; }
  .site-theme-btn { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .site-theme-grid { grid-template-columns: 1fr; }
}
