/* ============================================================
   TVVO 设计圈 · 整站设计增强层 v1
   最后加载（在 icons.css 之后）。深色苹果编辑风：克制、留白、层次、细节。
   只增强质感与交互反馈，不改变布局尺寸与功能结构。
   ============================================================ */

/* 1. 滚动条：细、暗、悬停提亮（Chrome / Firefox 统一） */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.30); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* 2. 文字选区：品牌红半透明 */
::selection { background: rgba(214,21,24,.38); color: #fff; }
::-moz-selection { background: rgba(214,21,24,.38); color: #fff; }

/* 3. 键盘焦点环：可访问性 + 品牌色（仅键盘触发，鼠标点击不显示） */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--brand, #D61518);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 4. 顶栏 / 侧栏分隔：极淡描边，强化结构层次 */
.topbar { border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar { border-right: 1px solid rgba(255,255,255,.05); }

/* 5. 侧栏导航：hover 轻微位移，选中态柔和红渐变（原有左红条保留） */
.sidebar__item { transition: background .18s ease, color .18s ease, transform .18s ease; }
@media (hover: hover) and (pointer: fine) {
  .sidebar__item:hover { transform: translateX(2px); }
}
.sidebar__item.is-active { background: linear-gradient(90deg, rgba(214,21,24,.22), rgba(214,21,24,.03)); }

/* 6. 卡片质感：1px 内高光 + 柔和投影，hover 提亮描边（不改动尺寸/圆角） */
.card,
.dx-card,
.gd-card,
.gd-sec,
.a-card,
.section--surface > .container > .card {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 1px 2px rgba(0,0,0,.30);
}
.card:hover {
  border-color: rgba(255,255,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 44px rgba(0,0,0,.55);
}

/* 7. 主按钮：细腻红色渐变 + 内高光 + 更精致的投影层次 */
.btn--primary,
.dx-send {
  background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 10px rgba(214,21,24,.22);
}
.btn--primary:hover,
.dx-send:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 26px rgba(214,21,24,.42);
}
.btn--primary:active,
.dx-send:active { box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }

/* 8. 标签 / 徽标：更清晰的描边，弱化噪点 */
.tag,
.sidebar__hot,
.ui-head__eyebrow { letter-spacing: .01em; }
.num, .a-stat b, .st-card b { font-variant-numeric: tabular-nums; }

/* 9. 图片与头像：更自然的淡入与圆润描边 */
img { background-color: rgba(255,255,255,.02); }
.avatar, .gd-av { box-shadow: 0 0 0 1px rgba(255,255,255,.10); }

/* 10. 尊重系统减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
