﻿/* ---------- 布局骨架 ---------- */
.app-shell {
  min-height: 100dvh;
  background: var(--bg);
}

.sidebar { display: none; }

.stage {
  height: 100dvh;
  display: flex;
  justify-content: center;
}

.phone-slot {
  position: relative;
  width: 100%;
  height: 100dvh;
}

.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: top left;
}

.phone-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* ---------- 顶栏 / tabbar ---------- */
.topbar {
  flex: 0 0 auto;
  height: calc(44px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--line-soft);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.topbar.sub .brand .logo { display: none; }
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
}

.account {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--line);
  background: var(--card);
  max-width: 96px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text);
  flex: 0 0 auto;
}
.icon-btn:active { background: var(--card-2); }

.tabbar {
  flex: 0 0 auto;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid var(--line-soft);
}

.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-2);
}
.tabbar button.active { color: var(--text); font-weight: 600; }

/* ---------- 视图容器 ---------- */
.view {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.view--home {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
  overflow: hidden;
}

.pull-indicator {
  position: absolute;
  top: calc(44px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  transform: translateY(-34px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}
.pull-indicator.visible { transform: translateY(0); opacity: 1; }
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  border-top-color: var(--text);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- A 部 新闻 ---------- */
.news-section {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
}

.news-viewport { height: 100%; overflow: hidden; }
.news-track {
  height: 100%;
  display: flex;
  flex-direction: row;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.news-card {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #0a0a0a;
  background: #ffffff;
  cursor: pointer;
}

.news-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.news-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(60, 60, 67, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}

.news-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.news-dots { display: flex; gap: 5px; }
.news-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.2s;
}
.news-dots i.on { background: #0a0a0a; }
.news-count { font-size: 11px; color: rgba(60, 60, 67, 0.5); font-variant-numeric: tabular-nums; }

/* ---------- B 部 介绍入口 ---------- */
.blocks-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
  min-height: 0;
}

.block-btn {
  position: relative;
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  transition: transform 0.18s ease;
}
.block-btn:active { transform: scale(0.97); }
.blocks-section > :nth-child(3):last-child { grid-column: 1 / -1; }

.block-btn .block-icon { width: 24px; height: 24px; opacity: 0.9; }
.block-btn .block-text { display: flex; flex-direction: column; gap: 2px; }
.block-btn .block-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.block-btn .block-sub { font-size: 11px; color: var(--text-2); }

.block-btn.filled { background: var(--accent); color: var(--accent-fg); }
.block-btn.filled .block-sub { color: rgba(255, 255, 255, 0.66); }
[data-theme="dark"] .block-btn.filled .block-sub { color: rgba(0, 0, 0, 0.55); }
.block-btn.tinted { background: var(--card-2); border: 0.5px solid var(--line-soft); }
.block-btn.plain { background: var(--card); border: 0.5px solid var(--line-soft); box-shadow: var(--shadow); }

/* ---------- C 部 功能卡 ---------- */
.features-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
  min-height: 0;
}

.feature-card {
  border-radius: var(--radius-tile);
  background: var(--card);
  border: 0.5px solid var(--line-soft);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  transition: transform 0.18s ease;
}
.feature-card:active { transform: scale(0.97); }
.features-section > :nth-child(3):last-child { grid-column: 1 / -1; }
.feature-card.dark {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}
.feature-card .feature-icon { width: 30px; height: 30px; }
.feature-card .feature-text { display: flex; flex-direction: column; gap: 2px; }
.feature-card .feature-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feature-card .feature-sub { font-size: 11px; color: var(--text-2); }
.feature-card.dark .feature-sub { color: rgba(255, 255, 255, 0.7); }
[data-theme="dark"] .feature-card.dark .feature-sub { color: rgba(0, 0, 0, 0.6); }

/* ---------- 通用页 ---------- */
.page { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }

.group {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  min-height: 50px;
  border-bottom: 0.5px solid var(--line-soft);
  font-size: 15px;
  width: 100%;
  text-align: left;
}
.row:last-child { border-bottom: 0; }
.row .label { color: var(--text); }
.row .value { color: var(--text-2); font-size: 14px; text-align: right; max-width: 60%; word-break: break-all; }
.row .value.strong { color: var(--text); font-weight: 600; }
.row.link .chev { color: var(--text-3); }
.chev { width: 16px; height: 16px; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  background: var(--card-2);
  color: var(--text);
  width: 100%;
  transition: opacity 0.2s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.99); }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.ghost { background: transparent; border: 0.5px solid var(--line); }
.btn.danger { background: transparent; border: 0.5px solid var(--text); color: var(--text); }
.btn.pending { opacity: 0.6; pointer-events: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line-soft);
  background: var(--card);
}
.field:last-child { border-bottom: 0; }
.field label { font-size: 12px; color: var(--text-2); letter-spacing: 0.02em; }
.field input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  padding: 4px 0;
  width: 100%;
}
.field input::placeholder { color: var(--text-3); }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--card-2);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-2);
}
.segmented button.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}
.empty .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--card-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
}

/* ---------- 登录页 ---------- */
.login-hero { padding: 26px 4px 18px; }
.login-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.login-hero p { margin-top: 6px; font-size: 13px; color: var(--text-2); }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 16px 14px;
  background: var(--card-2);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.auth-tabs button { padding: 9px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.auth-tabs button.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

.form-note { font-size: 12px; color: var(--text-2); line-height: 1.6; padding: 10px 16px; }
.inline-error { font-size: 13px; color: var(--text); padding: 8px 16px 0; }

/* ---------- 签到 / 占位 ---------- */
.placeholder-card {
  margin: 24px 16px;
  padding: 32px 20px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.placeholder-card .ph-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px; background: var(--card-2);
  display: grid; place-items: center; color: var(--text-2);
}
.placeholder-card h2 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.placeholder-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ---------- 桌面端 ---------- */
@media (min-width: 1024px) {
  body { background: linear-gradient(160deg, var(--bg-stage) 0%, var(--bg-stage-2) 100%); }

  .app-shell { display: flex; min-height: 100dvh; }

  .sidebar {
    display: flex;
    flex-direction: column;
    width: 320px;
    flex: 0 0 320px;
    padding: 40px 28px 28px;
    gap: 18px;
  }

  .sidebar-brand { display: flex; align-items: center; gap: 12px; }
  .sidebar-brand .logo { width: 44px; height: 44px; border-radius: 12px; }
  .sidebar-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
  .sidebar-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

  .sidebar-section-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-top: 6px;
  }

  .sidebar-features { display: flex; flex-direction: column; gap: 10px; }
  .sidebar-features .feature-card {
    height: 92px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px;
  }
  .sidebar-features .feature-card:hover { transform: translateY(-2px); }
  .sidebar-features .feature-text { gap: 3px; }

  .sidebar-nav { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .sidebar-nav button {
    display: flex; align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-2);
    text-align: left;
  }
  .sidebar-nav button.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

  .sidebar-foot { font-size: 11px; color: var(--text-3); }

  .stage {
    flex: 1 1 auto;
    min-width: 0;
    height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .phone-slot {
    flex: 1 1 auto;
    width: 100%;
    height: 100dvh;
  }

  /* 桌面端不再使用手机外框：内容区铺满侧边栏以外的空间 */
  .phone-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: var(--bg);
    transform: none !important;
  }

  .phone-screen { border-radius: 0; }

  /* 侧边栏已有「首页 / 我的」导航，桌面端隐藏底部 tabbar 避免重复 */
  .tabbar { display: none; }

  /* 首页：内容区变宽后改为多列铺开，避免整块横条被拉空 */
  .view--home {
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    align-content: stretch;
    gap: 12px;
    padding: 14px 18px 18px;
  }

  /* 其余内容页同样铺满内容区宽度 */
  .blocks-section,
  .features-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .blocks-section > :nth-child(3):last-child,
  .features-section > :nth-child(3):last-child { grid-column: auto; }

  .block-btn,
  .feature-card {
    padding: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
  }
  .block-btn .block-icon,
  .feature-card .feature-icon { flex: 0 0 auto; }
  .block-btn .block-text,
  .feature-card .feature-text { gap: 4px; }
  .block-btn .block-title { font-size: 16px; }
  .block-btn .block-sub { font-size: 12px; }
  .feature-card .feature-title { font-size: 17px; }
  .feature-card .feature-sub { font-size: 12px; }
  .news-card { padding: 24px 28px 30px; }
  .news-title { font-size: 22px; }
  .news-body { font-size: 14.5px; }
}
/* ============================================================
   玻璃拟态皮肤（浅色白天 / 深色夜间）
   放在文件末尾，覆盖前面基于纯色卡片的旧样式
   ============================================================ */

/* ---------- 底色 ---------- */
body { background: var(--bg); }
.app-shell { background: transparent; }
.stage { background: transparent; }
.phone-screen { background: transparent; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--glass);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}
.brand-name { color: var(--text); }
.logo { border-radius: 11px; }

.account {
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.icon-btn {
  border-radius: 12px;
  color: var(--text);
}
.icon-btn:active { background: var(--tint-2); }

/* ---------- 底部 tabbar ---------- */
.tabbar {
  background: var(--glass);
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}
.tabbar button { color: var(--text-3); }
.tabbar button.active { color: var(--text); }

/* ---------- 新闻卡 ---------- */
.news-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}
.news-card { background: transparent; color: var(--text); }
.news-title { color: var(--text); }
.news-body { color: var(--text-2); }
.news-dots i { background: var(--line); }
.news-dots i.on { background: var(--text); box-shadow: 0 0 14px rgba(120, 120, 160, 0.5); }
.news-count { color: var(--text-3); }

/* ---------- 介绍入口 B 部 ---------- */
.block-btn { color: var(--text); }
.block-btn.plain {
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
}
.block-btn.tinted {
  background: var(--tint-2);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.block-btn.filled {
  background: var(--grad-brand);
  color: var(--on-brand);
  border: 1px solid transparent;
  box-shadow: 0 18px 44px rgba(106, 76, 255, 0.32);
}
.block-btn.filled .block-title { color: var(--on-brand); }
.block-btn.filled .block-sub { color: var(--on-brand); opacity: 0.72; }
.block-btn .block-sub { color: var(--text-3); }

/* ---------- 功能卡 C 部 ---------- */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  color: var(--text);
}
.feature-card .feature-title { color: var(--text); }
.feature-card .feature-sub { color: var(--text-3); }
.feature-card.dark {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 18px 44px rgba(106, 76, 255, 0.32);
}
.feature-card.dark .feature-title { color: var(--on-brand); }
.feature-card.dark .feature-sub { color: var(--on-brand); opacity: 0.72; }

/* ---------- 通用内容块 ---------- */
.group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}
.row { border-bottom: 1px solid var(--line-soft); color: var(--text); }
.row .label { color: var(--text); }
.row .value { color: var(--text-2); }
.row .value.strong { color: var(--text); }
.row.link .chev { color: var(--text-3); }
.row:active { background: var(--tint-1); }

.page-title { color: var(--text); }
.page-desc { color: var(--text-2); }

/* ---------- 按钮 ---------- */
.btn {
  background: var(--tint-2);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 14px 34px rgba(106, 76, 255, 0.32);
}
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: transparent; border: 1px solid var(--danger-line); color: var(--danger-fg); }

/* ---------- 表单 ---------- */
.field { border-top: 1px solid var(--line-soft); }
.field label { color: var(--text-2); }
.field input,
.field textarea,
.field select {
  background: transparent;
  color: var(--text);
}
.field input::placeholder { color: var(--text-3); }

.segmented {
  background: var(--tint-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.segmented button { color: var(--text-3); }
.segmented button.on {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-tabs {
  background: var(--tint-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.auth-tabs button { color: var(--text-3); }
.auth-tabs button.on { background: var(--text); color: var(--bg); box-shadow: none; }

.login-hero h1 { color: var(--text); }
.login-hero p { color: var(--text-2); }
.form-note { color: var(--text-2); }
.inline-error { color: var(--danger-fg); }

/* ---------- 空态 / 占位 ---------- */
.placeholder-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
}
.placeholder-card .ph-icon {
  background: var(--tint-2);
  color: var(--text-2);
}
.placeholder-card h2 { color: var(--text); }
.placeholder-card p { color: var(--text-2); }

.empty { color: var(--text-3); }
.empty .empty-icon { background: var(--tint-2); color: var(--text-3); }

.skeleton {
  background: linear-gradient(90deg, var(--tint-2) 25%, var(--tint-3) 37%, var(--tint-2) 63%);
  background-size: 400% 100%;
}

/* ---------- 浮层 ---------- */
.toast {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-btn);
}
.toast.error { background: var(--danger-fg); color: #fff; }
.pull-indicator { color: var(--text-2); }

/* ---------- 桌面端侧边栏 ---------- */
@media (min-width: 1024px) {
  .sidebar {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  }
  .sidebar-title { color: var(--text); }
  .sidebar-sub,
  .sidebar-foot,
  .sidebar-section-label { color: var(--text-3); }
  .sidebar-nav button { color: var(--text-2); }
  .sidebar-nav button.active {
    background: var(--tint-2);
    color: var(--text);
    box-shadow: none;
    border: 1px solid var(--line-soft);
  }
  .sidebar .feature-card { box-shadow: none; }
}




/* 桌面端手机壳不再填充底色，让极光背景透出 */
.phone-frame { background: transparent; }

/* 手绘横幅作为首页新闻「背景板」上的插画（桌面右下 / 移动淡出） */
.news-section { position: relative; }
.news-section::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 6%;
  width: 52%;
  aspect-ratio: 1000 / 384;
  background: url("/assets/img/brand-banner.png") right bottom / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

[data-theme="dark"] .news-section::after {
  background-image: url("/assets/img/brand-banner-dark.png");
  opacity: 0.78;
}

.news-card { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .news-section::after {
    width: 66%;
    right: -6%;
    bottom: 9%;
    opacity: 0.42;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  }
  [data-theme="dark"] .news-section::after { opacity: 0.42; }
}



