/* ===== 全局样式 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--dark-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #22d3ee;
  --accent-pink: #f472b6;
  --gradient-primary: linear-gradient(135deg, #f472b6 0%, #6366f1 50%, #22d3ee 100%);
  --gradient-btn: linear-gradient(135deg, #ec4899, #6366f1);
  --dark-bg: #080b14;
  --sidebar-bg: #0d1117;
  --sidebar-width: 236px;
  --card-bg: #12161f;
  --border: #1e2535;
  --border-light: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --text-muted: #8b95a8;
  --text-dim: #b4bcc8;
  --radius: 10px;
  --glow-purple: rgba(99, 102, 241, 0.15);
  --glow-cyan: rgba(34, 211, 238, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 8px 28px rgba(99, 102, 241, 0.2);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease-out);
}

/* ===== 顶部导航条 ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  width: auto;
  min-width: 168px;
  max-width: 220px;
}

.topbar-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  transition: opacity var(--transition);
}

.topbar-logo-link:hover {
  opacity: 0.85;
}

.topbar-logo-tiktok {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.topbar-logo-svg {
  height: 26px;
  width: auto;
  display: block;
}

.topbar-logo .dot {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: #1e2333;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0 14px;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.topbar-search:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(30, 35, 51, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.topbar.is-scrolled {
  background: rgba(8, 11, 20, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

.topbar-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  padding: 7px 0;
}

.topbar-search input::placeholder {
  color: var(--text-muted);
}

.topbar-search i {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right a {
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 16px;
  transition: all .2s;
  white-space: nowrap;
}

.topbar-right a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.topbar-right a.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.18);
  font-weight: 600;
}

.topbar-right .btn-reg {
  background: var(--gradient-btn);
  color: #fff;
  padding: 5px 16px;
  border-radius: 16px;
}

.topbar-right .btn-reg:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.topbar-right .avatar {
  width: 30px;
  height: 30px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.topbar-right .avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ===== 整体布局 ===== */
.layout {
  display: flex;
  padding-top: 52px;
  min-height: 100vh;
}

/* ===== 左侧导航 ===== */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 12px 0;
  z-index: 90;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

.nav-group {
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

a.nav-item {
  text-decoration: none;
  color: #aaa;
}

.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.nav-item.active {
  color: #fff;
  background: rgba(99, 102, 241, .12);
  border-left-color: var(--accent);
  font-weight: 600;
}

.series-block[id] {
  scroll-margin-top: 64px;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}

.nav-section-title {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 18px 4px;
  letter-spacing: .5px;
}

/* ===== 中间内容区 ===== */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: 290px;
  padding: 20px 20px;
  min-width: 0;
  transition: margin .3s ease;
}

/* ===== 右侧边栏 ===== */
.aside {
  width: 290px;
  flex-shrink: 0;
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 14px;
  border-left: 1px solid var(--border);
  background: var(--sidebar-bg);
  z-index: 90;
}

.aside::-webkit-scrollbar {
  width: 4px;
}

.aside::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(18, 22, 31, 0.95) 0%, rgba(8, 11, 20, 0.98) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  top: -120px;
  left: -80px;
  background: rgba(99, 102, 241, 0.18);
}

.hero-glow-2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -60px;
  background: rgba(34, 211, 238, 0.12);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 36px 32px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-title .dot {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient-text {
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 24px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-hero-secondary:hover {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

.hero-stats {
  font-size: 13px;
  color: var(--accent);
}

.hero-stats strong {
  color: #fff;
  font-weight: 700;
}

/* 右侧链路卡片 */
.hero-stack {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
}

.stack-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.stack-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.stack-blue { border: 1px solid rgba(59, 130, 246, 0.4); }
.stack-green { border: 1px solid rgba(34, 197, 94, 0.4); }
.stack-purple { border: 1px solid rgba(168, 85, 247, 0.4); }
.stack-white { border: 1px solid rgba(255, 255, 255, 0.15); }

.stack-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stack-blue .stack-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stack-green .stack-icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.stack-purple .stack-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.stack-white .stack-icon { background: rgba(255, 255, 255, 0.08); color: #fff; }

.stack-info {
  flex: 1;
  min-width: 0;
}

.stack-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.stack-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stack-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  flex-shrink: 0;
}

.stack-status.hot {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
}

.stack-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 10px;
}

.stack-arrow i {
  font-size: 10px;
  opacity: 0.6;
}

/* ===== 区块头部 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.section-header .title i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header .more {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color .2s, gap .2s;
}

.section-header a.more:hover {
  color: var(--accent);
  gap: 8px;
}

.section-header .more:hover {
  color: var(--primary);
}

/* ===== 资源下载卡片（纯图 + hover 遮罩） ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.resource-card {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.resource-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.resource-card-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s var(--ease-out);
}

/* 科技风背景层 */
.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.4s var(--ease-out);
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

.tech-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}

.tech-glow-a {
  width: 55%;
  height: 70%;
  top: -15%;
  left: -10%;
}

.tech-glow-b {
  width: 45%;
  height: 55%;
  bottom: -20%;
  right: -8%;
}

.tech-beam {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  filter: blur(0.5px);
  opacity: 0.65;
}

.tech-beam-1 {
  width: 70%;
  top: 38%;
  left: -5%;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
}

.tech-beam-2 {
  width: 80%;
  top: 55%;
  right: -10%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.75), transparent);
}

.tech-beam-3 {
  width: 65%;
  bottom: 28%;
  left: 10%;
  transform: rotate(-15deg);
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.7), transparent);
}

.tech-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.tech-node-1 { top: 28%; left: 22%; color: #22d3ee; }
.tech-node-2 { top: 45%; right: 25%; color: #a78bfa; }
.tech-node-3 { bottom: 30%; left: 38%; color: #6366f1; }

.tech-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
  transform-origin: left center;
}

.tech-line-1 {
  width: 35%;
  top: 30%;
  left: 22%;
  transform: rotate(25deg);
}

.tech-line-2 {
  width: 28%;
  top: 47%;
  right: 22%;
  transform: rotate(-18deg);
}

.tech-window {
  position: absolute;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.tech-window-1 {
  width: 38%;
  height: 28%;
  top: 18%;
  right: 8%;
  transform: rotate(6deg);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.tech-window-2 {
  width: 32%;
  height: 22%;
  bottom: 15%;
  left: 10%;
  transform: rotate(-4deg);
  opacity: 0.7;
}

.tech-window::before {
  content: '';
  display: block;
  height: 8px;
  margin: 4px 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ef4444, #eab308, #22c55e);
  opacity: 0.6;
}

.tech-wave {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 120%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.35) 0%, transparent 65%);
  animation: techWave 4s ease-in-out infinite;
}

@keyframes techWave {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-6px) scale(1.02); opacity: 1; }
}

.tech-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
}

.tech-code {
  position: absolute;
  border-radius: 3px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(0, 0, 0, 0.3);
}

.tech-code-1 {
  width: 42%;
  height: 32%;
  top: 12%;
  left: 6%;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.08);
}

.tech-code-2 {
  width: 36%;
  height: 26%;
  bottom: 10%;
  right: 8%;
  transform: rotate(5deg);
  opacity: 0.75;
}

.tech-code::after {
  content: '▸ data.csv';
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 8px;
  font-family: monospace;
  color: rgba(74, 222, 128, 0.6);
  letter-spacing: 0.5px;
}

.tech-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  animation: techParticles 8s linear infinite;
}

@keyframes techParticles {
  to { background-position: 40px 40px; }
}

.resource-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.3s var(--ease-out);
}

.resource-card-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out), opacity 0.35s var(--ease-out);
}

.tech-core {
  width: 52px;
  height: 52px;
}

.tech-core i {
  position: relative;
  z-index: 2;
  font-size: 22px;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}

.tech-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.05);
  animation: techRingPulse 3s ease-in-out infinite;
}

.tech-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: orbitSpin 10s linear infinite;
}

.tech-core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  z-index: 1;
}

@keyframes techRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

/* hover 遮罩层 */
.resource-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.resource-card-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.resource-card-title,
.resource-card-desc {
  position: relative;
  z-index: 1;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
  max-width: 92%;
}

.resource-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.resource-card-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) {
  .resource-card:hover .resource-card-overlay {
    opacity: 1;
  }

  .resource-card:hover .resource-card-overlay::before {
    opacity: 1;
  }

  .resource-card:hover .resource-card-title,
  .resource-card:hover .resource-card-desc {
    transform: translateY(0);
    opacity: 1;
  }

  .resource-card:hover .resource-card-visual,
  .resource-card:hover .tech-bg {
    transform: scale(0.95);
    opacity: 0.3;
  }

  .resource-card:hover .resource-card-badge {
    opacity: 0;
  }

  .resource-card:hover .resource-card-cover::before {
    opacity: 0;
  }
}

@media (hover: none) {
  .resource-card:active .resource-card-overlay,
  .resource-card:focus-visible .resource-card-overlay {
    opacity: 1;
  }

  .resource-card:active .resource-card-overlay::before,
  .resource-card:focus-visible .resource-card-overlay::before {
    opacity: 1;
  }

  .resource-card:active .resource-card-title,
  .resource-card:active .resource-card-desc,
  .resource-card:focus-visible .resource-card-title,
  .resource-card:focus-visible .resource-card-desc {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 各卡片科技配色 */
.cover-server {
  background: linear-gradient(145deg, #1a1040 0%, #312e81 40%, #1e1b4b 100%);
}

.cover-server .tech-glow-a { background: rgba(99, 102, 241, 0.55); }
.cover-server .tech-glow-b { background: rgba(34, 211, 238, 0.35); }

.cover-clone {
  background: linear-gradient(145deg, #2e1065 0%, #581c87 45%, #1e1b4b 100%);
}

.cover-clone .tech-glow-a { background: rgba(168, 85, 247, 0.5); }
.cover-clone .tech-glow-b { background: rgba(236, 72, 153, 0.35); }

.cover-firewall {
  background: linear-gradient(145deg, #0c1929 0%, #0e4d6e 50%, #082f49 100%);
}

.cover-firewall .tech-glow-a { background: rgba(34, 211, 238, 0.45); }
.cover-firewall .tech-glow-b { background: rgba(59, 130, 246, 0.3); }

.cover-csv {
  background: linear-gradient(145deg, #052e16 0%, #064e3b 50%, #022c22 100%);
}

.cover-csv .tech-glow-a { background: rgba(74, 222, 128, 0.4); }
.cover-csv .tech-glow-b { background: rgba(34, 211, 238, 0.25); }

.cover-youtube {
  background: linear-gradient(145deg, #1c0a0a 0%, #7f1d1d 45%, #431407 100%);
}

.cover-youtube .tech-glow-a { background: rgba(239, 68, 68, 0.45); }
.cover-youtube .tech-glow-b { background: rgba(251, 146, 60, 0.35); }

.cover-youtube .tech-core i {
  color: #fff;
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.6));
}

.cover-tiktok {
  background: linear-gradient(145deg, #0a0a0a 0%, #121212 45%, #1a0812 100%);
}

.cover-tiktok .tech-glow-a { background: rgba(254, 44, 85, 0.45); }
.cover-tiktok .tech-glow-b { background: rgba(0, 242, 234, 0.28); }

/* 多样化封面 · 秀米云 / 极光 / 深海 / 翡翠 / 暮光 / 紫晶 / 珊瑚 / 午夜 / 玫瑰 / 琥珀 / 岩灰 */
.cover-xiumiyun {
  background: linear-gradient(155deg, #042f2e 0%, #0e7490 38%, #06b6d4 72%, #164e63 100%);
}

.cover-xiumiyun .tech-glow-a { background: rgba(6, 182, 212, 0.55); width: 60%; top: -20%; left: 5%; }
.cover-xiumiyun .tech-glow-b { background: rgba(20, 184, 166, 0.35); bottom: -25%; right: 0; }
.cover-xiumiyun .tech-grid { background-size: 18px 18px; opacity: 0.9; }

.cover-aurora {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 35%, #059669 68%, #4c1d95 100%);
}

.cover-aurora .tech-glow-a { background: rgba(52, 211, 153, 0.5); top: -10%; left: 20%; }
.cover-aurora .tech-glow-b { background: rgba(167, 139, 250, 0.4); bottom: -15%; right: 10%; }
.cover-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(52, 211, 153, 0.12) 50%, transparent 70%);
  pointer-events: none;
}

.cover-ocean {
  background: linear-gradient(145deg, #0c4a6e 0%, #0369a1 42%, #1e3a8a 100%);
}

.cover-ocean .tech-glow-a { background: rgba(56, 189, 248, 0.48); }
.cover-ocean .tech-glow-b { background: rgba(99, 102, 241, 0.32); }
.cover-ocean::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.15));
  pointer-events: none;
}

.cover-emerald {
  background: linear-gradient(150deg, #022c22 0%, #047857 45%, #065f46 100%);
}

.cover-emerald .tech-glow-a { background: rgba(52, 211, 153, 0.45); }
.cover-emerald .tech-glow-b { background: rgba(16, 185, 129, 0.3); }
.cover-emerald .tech-grid { background-size: 26px 26px; }

.cover-sunset {
  background: linear-gradient(145deg, #431407 0%, #c2410c 42%, #9a3412 78%, #292524 100%);
}

.cover-sunset .tech-glow-a { background: rgba(251, 146, 60, 0.55); top: -5%; left: 15%; }
.cover-sunset .tech-glow-b { background: rgba(244, 63, 94, 0.35); }
.cover-sunset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.2), transparent);
  pointer-events: none;
}

.cover-violet {
  background: linear-gradient(140deg, #3b0764 0%, #7e22ce 50%, #581c87 100%);
}

.cover-violet .tech-glow-a { background: rgba(192, 132, 252, 0.5); }
.cover-violet .tech-glow-b { background: rgba(236, 72, 153, 0.28); }

.cover-coral {
  background: linear-gradient(155deg, #4a044e 0%, #be185d 40%, #881337 100%);
}

.cover-coral .tech-glow-a { background: rgba(244, 114, 182, 0.48); }
.cover-coral .tech-glow-b { background: rgba(251, 113, 133, 0.32); }

.cover-midnight {
  background: linear-gradient(160deg, #020617 0%, #0f172a 40%, #1e1b4b 100%);
}

.cover-midnight .tech-glow-a { background: rgba(129, 140, 248, 0.4); }
.cover-midnight .tech-glow-b { background: rgba(56, 189, 248, 0.22); }
.cover-midnight::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.15;
  pointer-events: none;
}

.cover-rose {
  background: linear-gradient(145deg, #500724 0%, #9d174d 48%, #701a75 100%);
}

.cover-rose .tech-glow-a { background: rgba(244, 114, 182, 0.45); }
.cover-rose .tech-glow-b { background: rgba(217, 70, 239, 0.3); }

.cover-gold {
  background: linear-gradient(150deg, #422006 0%, #b45309 45%, #78350f 100%);
}

.cover-gold .tech-glow-a { background: rgba(251, 191, 36, 0.5); }
.cover-gold .tech-glow-b { background: rgba(245, 158, 11, 0.32); }

.cover-slate {
  background: linear-gradient(145deg, #0f172a 0%, #334155 50%, #1e293b 100%);
}

.cover-slate .tech-glow-a { background: rgba(148, 163, 184, 0.35); }
.cover-slate .tech-glow-b { background: rgba(100, 116, 139, 0.25); }
.cover-slate .tech-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ===== 推荐卡片（横向大卡，带图标） — 保留兼容 ===== */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.rec-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: all .2s;
}

.rec-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rec-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.rec-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-card .info {
  flex: 1;
  min-width: 0;
}

.rec-card .name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.rec-card .desc {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-card .tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #aaa;
}

.tag-pill.red {
  background: rgba(99, 102, 241, .2);
  color: #a5b4fc;
}

.tag-pill.yellow {
  background: rgba(34, 211, 238, .15);
  color: var(--accent);
}

/* ===== 视频课程卡片网格 ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}

.course-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.course-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1e2333;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.course-card:hover .course-thumb img {
  transform: scale(1.06);
}

.course-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(8, 11, 20, 0.45);
  backdrop-filter: blur(2px);
}

.course-card:hover .play-btn {
  opacity: 1;
}

.play-btn i {
  width: 42px;
  height: 42px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
  transform: scale(0.85);
  transition: transform 0.3s var(--ease-out);
}

.course-card:hover .play-btn i {
  transform: scale(1);
}

.course-thumb .corner-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.course-thumb .corner-badge.new {
  background: #27ae60;
}

.course-thumb .corner-badge.free {
  background: #8e44ad;
}

.course-body {
  padding: 10px 12px 12px;
}

.course-title {
  font-size: 12px;
  color: #ddd;
  font-weight: 500;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}

.course-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: -4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.course-card {
  display: block;
  color: inherit;
}

.course-card--promo .play-btn i {
  font-size: 16px;
}

.course-card--promo .course-title {
  height: auto;
  -webkit-line-clamp: 3;
}

.course-card--promo .platform-cover {
  align-items: flex-start;
  justify-content: center;
  padding-top: 20%;
}

.platform-cover-icon.tech-core {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.course-card--promo .tech-core i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 22px;
  height: 22px;
}

.course-card--promo .tech-core i::before {
  line-height: 1;
}

.platform-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.platform-cover-icon {
  position: relative;
  z-index: 2;
}

a.series-more {
  color: inherit;
}

/* 首页自适应网格：行数固定，列数随容器宽度变化，超出裁切 */
.adaptive-grid-wrap {
  overflow: hidden;
}

.adaptive-grid {
  display: grid;
  grid-template-columns: repeat(var(--adaptive-cols, 2), minmax(0, 1fr));
  gap: var(--adaptive-gap, 14px);
}

.adaptive-grid > .is-clipped {
  display: none !important;
}

/* 云手机单行大卡：列数上限 5、间距略大，避免一行挤 7 列 */
.series-grid--promo-wide.adaptive-grid {
  --adaptive-gap: 16px;
}

@media (min-width: 1200px) {
  .series-grid--promo-wide.adaptive-grid {
    --adaptive-gap: 18px;
  }
}

/* 平台精选、云手机、指纹浏览器：纯文字卡片（无顶部缩图） */
#section-platform .course-card--promo .course-body,
#section-cloud-phone .course-card--promo .course-body,
#section-fingerprint .course-card--promo .course-body {
  padding: 14px 14px 12px;
}

#section-cloud-phone .course-thumb,
#section-fingerprint .course-thumb {
  display: none;
}

.text-entry-grid-wrap {
  overflow: hidden;
}

.text-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.text-entry-grid.adaptive-grid,
.series-grid.adaptive-grid,
.course-grid.adaptive-grid {
  grid-template-columns: repeat(var(--adaptive-cols, 2), minmax(0, 1fr));
}

a.text-entry-card {
  position: relative;
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  color: inherit;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

a.text-entry-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

a.text-entry-card--featured {
  /* 仅用于角标定位，保持默认边框外观 */
}

.text-entry-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 0 10px 0 10px;
  z-index: 2;
}

.text-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 10px;
}

.text-entry-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.course-meta .views {
  display: flex;
  align-items: center;
  gap: 3px;
}

.course-meta .time {
  color: #666;
}

/* ===== 系列课程大块 ===== */
.series-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 28px;
  transition: border-color var(--transition);
}

.series-block:hover {
  border-color: rgba(99, 102, 241, 0.15);
}

.series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.series-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.series-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.series-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.06) 42%, transparent 72%);
  pointer-events: none;
}

.series-icon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.series-icon i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

/* 推荐平台 · 靛紫 → 天青 */
.series-icon--platform {
  background: linear-gradient(145deg, #7c3aed 0%, #6366f1 48%, #06b6d4 100%);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* TikTok · 品牌深色底 + 渐变音符 */
.series-icon--tiktok {
  background: linear-gradient(145deg, #121218 0%, #1a1024 55%, #0d1520 100%);
  border-color: rgba(254, 44, 85, 0.28);
  box-shadow: 0 4px 18px rgba(254, 44, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.series-icon--tiktok i {
  font-size: 18px;
  color: transparent;
  background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(254, 44, 85, 0.45));
}

/* 云手机 · 青绿 */
.series-icon--cloud {
  background: linear-gradient(145deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* TK线路 · 深蓝 → 靛蓝 */
.series-icon--proxy {
  background: linear-gradient(145deg, #2563eb 0%, #4f46e5 52%, #6366f1 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* 指纹浏览器 · 紫罗兰 → 品红 */
.series-icon--browser {
  background: linear-gradient(145deg, #9333ea 0%, #a855f7 48%, #ec4899 100%);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.series-header:hover .series-icon {
  transform: scale(1.06) translateY(-1px);
}

.series-header:hover .series-icon--platform {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.series-header:hover .series-icon--tiktok {
  box-shadow: 0 6px 22px rgba(254, 44, 85, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.series-header:hover .series-icon--cloud {
  box-shadow: 0 6px 22px rgba(20, 184, 166, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.series-header:hover .series-icon--proxy {
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.series-header:hover .series-icon--browser {
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.series-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.series-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.series-more {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition), gap var(--transition);
}

.series-more:hover {
  color: var(--primary);
  gap: 8px;
}

.series-more i {
  transition: transform var(--transition);
}

.series-more:hover i {
  transform: translateX(3px);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

/* ===== 右侧边栏组件 ===== */
.aside-block {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.aside-block:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.aside-block-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aside-block-title i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 12px;
}

.aside-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.aside-block-header .aside-block-title {
  margin-bottom: 0;
}

.aside-more {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  transition: color var(--transition), gap var(--transition);
}

.aside-more:hover {
  color: var(--accent);
  gap: 6px;
}

.aside-more i {
  font-size: 9px;
  transition: transform var(--transition);
}

.aside-more:hover i {
  transform: translateX(2px);
}

/* 资源下载列表 */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.resource-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(2px);
}

.resource-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.resource-icon.icon-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.resource-icon.icon-gradient {
  background: linear-gradient(135deg, #ec4899, #6366f1);
  font-size: 13px;
}

.resource-icon.icon-win {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  font-size: 18px;
}

.resource-icon.icon-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 14px;
}

.resource-icon.icon-yt {
  background: #ff0000;
  font-size: 16px;
}

.resource-info {
  flex: 1;
  min-width: 0;
}

.resource-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  line-height: 1.3;
}

.resource-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 公告列表 */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.notice-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 6px;
  margin: 0 -6px;
}

a.notice-item:hover {
  background: rgba(99, 102, 241, 0.06);
}

a.notice-item:hover .notice-text {
  color: var(--accent);
}

.notice-date i {
  font-size: 10px;
  color: #555;
  transition: color 0.2s;
}

a.notice-item:hover .notice-date i {
  color: var(--accent);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover .notice-text {
  color: var(--primary);
}

.notice-num {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: #2a2f3e;
  border-radius: 4px;
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.notice-num.hot {
  background: var(--gradient-btn);
  color: #fff;
}

.notice-num.hot2 {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}

.notice-num.hot3 {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
}

.notice-text {
  font-size: 12px;
  color: #bbb;
  line-height: 1.5;
  flex: 1;
}

.notice-date {
  font-size: 11px;
  color: #555;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 汇率 */
.rate-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.rate-item:last-child {
  border-bottom: none;
}

.rate-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #bbb;
}

.rate-pair .flag {
  font-size: 14px;
}

.rate-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.rate-val.up {
  color: #e74c3c;
}

.rate-val.dn {
  color: #27ae60;
}

.rate-val.flat {
  color: var(--text-dim);
}

.rate-update.is-error {
  color: #e67e22;
}

.rate-widget.is-loading .rate-val {
  color: var(--text-muted);
  animation: ratePulse 1.2s ease-in-out infinite;
}

@keyframes ratePulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.rate-update {
  font-size: 11px;
  color: #555;
  text-align: right;
  margin-top: 6px;
}

/* 热门标签 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud .t {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #1e2333;
  border: 1px solid var(--border);
  color: #aaa;
  cursor: pointer;
  transition: all .2s;
}

.tag-cloud .t:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, .08);
}

/* 活动入口 */
.event-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  cursor: pointer;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.event-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}

/* 莫卿科技推广条 */
.moqing-ad {
  display: block;
  position: relative;
  height: 70px;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition), background var(--transition);
}

.moqing-ad:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.moqing-ad-wave {
  display: none;
}

.moqing-ad-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
}

.moqing-ad-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: none;
  transition: transform var(--transition);
}

.moqing-ad-icon--tiktok {
  background: #000;
}

.moqing-ad:hover .moqing-ad-icon {
  transform: scale(1.03);
  box-shadow: none;
}

.moqing-ad:hover .moqing-ad-icon--tiktok {
  box-shadow: none;
}

.moqing-ad-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.moqing-ad-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0;
}

.moqing-ad-title em {
  font-style: normal;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.moqing-ad-desc {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moqing-ad-go {
  flex-shrink: 0;
  font-size: 14px;
  color: #fff;
  opacity: 0.45;
  transition: transform var(--transition), opacity var(--transition);
}

.moqing-ad:hover .moqing-ad-go {
  transform: translateX(2px);
  opacity: 0.75;
  color: #fff;
}

.moqing-ad--guide {
  height: auto;
  min-height: 70px;
  margin-bottom: 14px;
}

.moqing-ad--guide .moqing-ad-inner {
  align-items: center;
  padding: 12px 12px 12px 10px;
}

.moqing-ad--guide .moqing-ad-title {
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moqing-ad--guide .moqing-ad-desc {
  font-size: 11px;
  opacity: 0.88;
}

.event-card .ev-label {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .7), transparent);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ===== 滚动公告条 ===== */
.ticker {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.08), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, rgba(99, 102, 241, 0.08), transparent);
}

.ticker .scroll-wrap:hover .ticker-scroll {
  animation-play-state: paused;
}

.ticker .label {
  background: var(--gradient-btn);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ticker .scroll-wrap {
  flex: 1;
  overflow: hidden;
}

/* 新的滚动公告样式 */
.ticker-scroll {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  animation: tickerMove 20s linear infinite;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
}

.ticker-dot {
  color: #ff6b6b;
  font-weight: bold;
}

.ticker-scroll:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes tickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== 响应式设计 - 平板电脑 ===== */
@media (max-width: 1200px) {
  .main {
    margin-right: 0;
  }
  
  .aside {
    display: none;
  }
  
  .rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .course-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .series-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr 320px;
    gap: 24px;
    padding: 28px 24px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-gradient-text {
    font-size: 18px;
  }
}

/* ===== 响应式设计 - 小平板/大手机 ===== */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  
  .main {
    margin-left: 0;
  }
  
  .course-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .series-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-stack {
    max-width: 480px;
  }
  
  .topbar-logo {
    width: auto;
    font-size: 16px;
  }
  
  .topbar-search {
    max-width: 320px;
  }
}

/* ===== 响应式设计 - 手机 ===== */
@media (max-width: 600px) {
  .course-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .series-grid:not(.adaptive-grid) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .adaptive-grid {
    --adaptive-gap: 10px;
  }
  
  .rec-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-inner {
    padding: 24px 18px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-gradient-text {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .topbar {
    padding: 0 12px;
    gap: 12px;
  }
  
  .topbar-logo {
    font-size: 15px;
  }
  
  .topbar-search {
    max-width: none;
    flex: 1;
  }
  
  .topbar-right a:not(.btn-reg):not(.avatar) {
    display: none;
  }
  
  .topbar-right .btn-reg {
    padding: 4px 12px;
    font-size: 12px;
  }
  
  .topbar-right .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  .main {
    padding: 12px;
  }
  
  .section-header .title {
    font-size: 14px;
  }
  
  .series-name {
    font-size: 14px;
  }
  
  .series-sub {
    font-size: 11px;
  }
  
  .course-title {
    font-size: 11px;
    height: 32px;
  }
  
  .aside-block {
    padding: 12px;
  }
  
  .notice-text {
    font-size: 11px;
  }
}

/* ===== 响应式设计 - 小屏手机 ===== */
@media (max-width: 400px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .series-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .topbar-logo .dot {
    display: none;
  }
  
  .topbar-search input {
    font-size: 12px;
  }
}

/* ===== 移动端汉堡菜单 ===== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-btn);
  border-radius: 50%;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn i {
  color: #fff;
  font-size: 20px;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ===== 移动端侧边栏 ===== */
.mobile-sidebar {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--sidebar-bg);
  z-index: 998;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 12px 0;
}

.mobile-sidebar.active {
  transform: translateX(0);
}

@media (max-width: 900px) {
  .mobile-sidebar {
    display: block;
  }
}

/* ===== 遮罩层 ===== */
.overlay-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 997;
  opacity: 0;
  transition: opacity .3s ease;
}

.overlay-mask.active {
  display: block;
  opacity: 1;
}

/* ===== 页脚区域 ===== */
.footer {
  background: #0e1117;
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color .2s;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-logo .dot {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-desc a {
  margin-right: 12px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-contact span i {
  color: var(--primary);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.company-info {
  color: var(--text-dim);
  margin-left: 15px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.25s var(--ease-out);
}

.footer-social a:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  transform: translateY(-3px);
}

/* ===== 用户中心快捷入口 ===== */
.user-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 8px;
  transition: all .2s;
}

.user-menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.user-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 14px;
}

/* ===== 响应式 - 页脚 ===== */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .company-info {
    margin-left: 0;
    display: block;
    width: 100%;
    margin-top: 5px;
  }
  
  .footer-social {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 30px 15px 15px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-logo {
    font-size: 16px;
  }
  
  .footer-desc {
    font-size: 11px;
  }
  
  .footer-section h4 {
    font-size: 13px;
  }
  
  .footer-section ul li a {
    font-size: 11px;
  }
  
  .copyright {
    font-size: 11px;
  }
  
  .footer-social a {
    font-size: 12px;
    padding: 6px;
  }
}

/* ===== 课程中心页面 ===== */
.course-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.course-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.course-banner-content {
  position: relative;
  z-index: 1;
}

.course-banner-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.course-banner-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.course-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.course-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sort-btn {
  background: rgba(232, 65, 24, .1);
  border: 1px solid rgba(232, 65, 24, .3);
  color: var(--primary);
}

.sort-btn:hover {
  background: rgba(232, 65, 24, .15);
  border-color: var(--primary);
}

.sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.course-section {
  margin-bottom: 32px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  border-color: var(--primary);
}

.course-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.course-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: all .3s;
}

.course-card:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.corner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
}

.corner-badge.free {
  background: #27ae60;
}

.corner-badge.new {
  background: #e84118;
}

.corner-badge.important {
  background: #c0392b;
}

.course-body {
  padding: 12px;
}

.course-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.course-meta .views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-meta .time {
  color: var(--text-dim);
}

@media (max-width: 1200px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .course-banner {
    padding: 24px 20px;
  }
  
  .course-banner-content h1 {
    font-size: 24px;
  }
  
  .course-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 22px;
  }
  
  .course-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 11px;
  }
}

/* ===== 系列课程页面 ===== */
.series-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 40px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.series-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.series-banner-content {
  position: relative;
  z-index: 1;
}

.series-icon-large {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
}

.series-banner-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.series-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.series-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.series-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  transition: all .3s;
}

.btn-primary:hover {
  background: #d6360f;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  transition: all .3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

.series-course-list {
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.filter-text {
  font-size: 13px;
  color: var(--text-muted);
}

.filter-btn-group {
  display: flex;
  gap: 8px;
}

.episode-num {
  background: rgba(232, 65, 24, .1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.course-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all .3s;
}

.course-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border-color: var(--primary);
}

.course-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.course-item-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.duration,
.level {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-item-content {
  display: flex;
}

.course-item-thumb {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.course-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: all .3s;
}

.course-item-thumb:hover .play-indicator {
  opacity: 1;
}

.play-indicator i {
  font-size: 32px;
  margin-bottom: 8px;
}

.course-item-body {
  flex: 1;
  padding: 20px;
}

.course-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.course-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-item-lessons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}

a.lesson-item {
  color: inherit;
  text-decoration: none;
}

.lesson-item:hover {
  background: rgba(255, 255, 255, .08);
}

.lesson-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232, 65, 24, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.lesson-info {
  flex: 1;
}

.lesson-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.lesson-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.lesson-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .2s;
}

.lesson-action:hover {
  background: var(--primary);
}

.status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.status.free {
  background: rgba(39, 174, 96, .2);
  color: #27ae60;
}

.status.important {
  background: rgba(192, 57, 43, .2);
  color: #c0392b;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.evaluation-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.evaluation-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.rating {
  color: var(--accent);
}

.evaluation-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .evaluation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .evaluation-grid {
    grid-template-columns: 1fr;
  }
  
  .series-banner {
    padding: 24px 20px;
  }
  
  .series-banner-content h1 {
    font-size: 24px;
  }
  
  .series-stats {
    gap: 20px;
  }
  
  .series-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .course-item-content {
    flex-direction: column;
  }
  
  .course-item-thumb {
    width: 100%;
    height: 200px;
  }
}

/* ===== 课程详情页面 ===== */
.lesson-banner {
  background: linear-gradient(135deg, #1a1f2e 0%, #0e1117 100%);
  border-radius: 12px;
  padding: 30px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.lesson-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(20%, -20%);
}

.lesson-banner-content {
  position: relative;
  z-index: 1;
}

.lesson-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lesson-breadcrumb a {
  color: var(--text-muted);
  transition: color .2s;
}

.lesson-breadcrumb a:hover {
  color: var(--primary);
}

.lesson-banner-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.lesson-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.lesson-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.lesson-player {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.player-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: all .3s;
}

.play-overlay:hover {
  background: rgba(0, 0, 0, .6);
}

.play-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 65, 24, .4);
  transition: all .3s;
  margin-bottom: 12px;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(232, 65, 24, .6);
}

.play-overlay span {
  color: #fff;
  font-size: 14px;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
}

.progress-current,
.progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: width .3s;
}

.progress-current {
  background: var(--primary);
}

.progress-buffer {
  background: rgba(255, 255, 255, .3);
  width: 0;
}

.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
}

.control-btn:hover {
  color: var(--primary);
}

.time-display {
  color: #fff;
  font-size: 12px;
}

.volume-slider {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, .3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.volume-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

.lesson-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.action-btn.active {
  background: rgba(232, 65, 24, .1);
  border-color: var(--primary);
  color: var(--primary);
}

.lesson-intro {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.intro-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 8px;
}

.intro-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.target-audience,
.learning-objectives,
.lesson-outline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.target-audience li,
.learning-objectives li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.target-audience li i,
.learning-objectives li i {
  color: var(--primary);
  margin-top: 2px;
}

.outline-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  margin-bottom: 8px;
}

.outline-number {
  color: var(--primary);
  font-weight: 700;
}

.outline-text {
  color: var(--text);
  font-size: 14px;
}

.lesson-instructor {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.instructor-card {
  display: flex;
  gap: 20px;
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-info {
  flex: 1;
}

.instructor-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.instructor-title {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 8px;
}

.instructor-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.instructor-stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.related-lessons {
  margin-bottom: 24px;
}

.course-grid-small {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.course-card-small {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}

.course-card-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.course-thumb-small {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.course-thumb-small img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.course-body-small {
  padding: 12px;
}

.course-title-small {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta-small {
  font-size: 12px;
  color: var(--text-muted);
}

.series-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}

.series-lesson-item:hover {
  background: rgba(255, 255, 255, .06);
}

.series-lesson-item.active {
  background: rgba(232, 65, 24, .15);
  border: 1px solid var(--primary);
}

.lesson-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.lesson-info {
  flex: 1;
}

.lesson-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.lesson-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.share-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  transition: all .2s;
}

.share-btn:hover {
  background: rgba(255, 255, 255, .1);
}

.course-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
}

.info-value {
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 768px) {
  .instructor-card {
    flex-direction: column;
  }
  
  .instructor-avatar {
    width: 60px;
    height: 60px;
  }
  
  .course-grid-small {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lesson-banner {
    padding: 20px 16px;
  }
  
  .lesson-banner-content h1 {
    font-size: 20px;
  }
  
  .lesson-meta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .course-grid-small {
    grid-template-columns: 1fr;
  }
  
  .instructor-stats {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== 新闻列表页面 ===== */
.section-header {
  margin-bottom: 24px;
}

.section-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.news-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-search {
  display: flex;
  gap: 8px;
}

.filter-search input {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  width: 200px;
}

.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.news-list {
  margin-bottom: 32px;
}

.news-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all .3s;
}

.news-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.news-thumb {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.news-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform .3s;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-content {
  flex: 1;
}

.news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.news-category {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-title a {
  color: #fff;
  transition: color .2s;
}

.news-title a:hover {
  color: var(--primary);
}

.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.page-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}

.page-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* 右侧边栏样式 */
.sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.hot-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-news li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.hot-news li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hot-news li a {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-news li a:hover {
  color: var(--primary);
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  transition: color .2s;
}

.category-list li a:hover {
  color: var(--primary);
}

.category-list li a span {
  background: rgba(255, 255, 255, .1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscribe-form input {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}

.subscribe-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.subscribe-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.subscribe-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ===== 新闻详情页面 ===== */
.news-detail {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.news-detail .news-title {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.news-summary {
  background: rgba(99, 102, 241, 0.06);
  border-left: 4px solid var(--primary);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.news-content {
  margin-bottom: 32px;
}

.news-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.news-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 12px;
}

.news-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.news-content ul,
.news-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.news-content li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.news-content strong {
  color: #fff;
  font-weight: 600;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.news-tags span {
  font-size: 13px;
  color: var(--text-muted);
}

.news-tags a {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  transition: all .2s;
}

.news-tags a:hover {
  background: var(--primary);
  color: #fff;
}

.news-share-section {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
}

.news-share-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-buttons .share-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-buttons .share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.author-info {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  margin-bottom: 32px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.author-title {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
}

.author-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.follow-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.follow-btn:hover {
  background: #d6360f;
}

.related-news {
  margin-bottom: 32px;
}

.related-news h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.related-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-news-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
}

.related-news-item:hover {
  background: rgba(255, 255, 255, .06);
}

.related-news-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-news-content {
  flex: 1;
}

.related-news-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-news-date {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-section {
  margin-bottom: 24px;
}

.comment-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-form textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
}

.comment-submit {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.comment-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.comment-time {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.comment-like,
.comment-reply {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-like:hover,
.comment-reply:hover {
  color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search input {
    width: 100%;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-thumb {
    width: 100%;
  }
  
  .news-thumb img {
    height: 200px;
  }
  
  .news-detail {
    padding: 20px;
  }
  
  .news-detail .news-title {
    font-size: 20px;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .related-news-item {
    flex-direction: column;
  }
  
  .related-news-item img {
    width: 100%;
    height: 120px;
  }
  
  .comment-item {
    flex-direction: column;
  }
  
  .comment-avatar {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .section-header h1 {
    font-size: 24px;
  }
  
  .news-detail {
    padding: 16px;
  }
  
  .news-detail .news-title {
    font-size: 18px;
  }
  
  .news-content h2 {
    font-size: 18px;
  }
  
  .news-content h3 {
    font-size: 15px;
  }
}

/* ===== 全局细节美化 ===== */

/* 新闻页布局补全 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  margin-right: 290px;
  padding: 20px;
  min-width: 0;
  transition: margin 0.3s ease;
}

.right-sidebar {
  width: 290px;
  flex-shrink: 0;
  position: fixed;
  top: 52px;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 14px;
  border-left: 1px solid var(--border);
  background: var(--sidebar-bg);
  z-index: 90;
}

.right-sidebar::-webkit-scrollbar {
  width: 4px;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* 面包屑导航 */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-dim);
}

/* 新闻页 footer 结构 */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer > .copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

/* 卡片入场动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 全局滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* 表单控件聚焦 */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-form textarea:focus {
  background: rgba(255, 255, 255, 0.07);
}

/* 标签胶囊 hover */
.tag-pill {
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.rec-card:hover .tag-pill,
.course-card:hover .tag-pill {
  transform: translateY(-1px);
}

/* 筛选按钮激活态渐变 */
.filter-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* 分页按钮圆角统一 */
.page-btn {
  border-radius: 8px;
}

.page-btn.active {
  background: var(--gradient-btn);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* 侧边栏区块 hover */
.sidebar-section {
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sidebar-section:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-sm);
}

/* 公告条目 hover */
.notice-item {
  border-radius: 6px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  transition: background 0.2s, color 0.2s;
}

.notice-item:hover {
  background: rgba(99, 102, 241, 0.06);
}

/* 区块标题 more 箭头 */
.section-header .more i {
  transition: transform var(--transition);
}

.section-header .more:hover i {
  transform: translateX(3px);
}

/* Hero 按钮 active */
.btn-hero-primary:active,
.btn-hero-secondary:active,
.topbar-right .btn-reg:active {
  transform: translateY(0) scale(0.98);
}

/* 课程标题 hover */
.course-card:hover .course-title {
  color: #fff;
}

.course-title {
  transition: color 0.25s;
}

/* 新闻分类计数 */
.category-list li a {
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.category-list li a:hover {
  background: rgba(99, 102, 241, 0.08);
}

.category-list li a i {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.category-list li a:hover i {
  transform: translateX(3px);
  color: var(--primary);
}

/* 热门新闻序号 */
.hot-news li {
  transition: padding-left 0.2s;
}

.hot-news li:hover {
  padding-left: 4px;
}

.hot-news li a {
  transition: color 0.2s;
}

/* 新闻详情正文排版 */
.news-content p {
  margin-bottom: 1em;
}

.news-content h2,
.news-content h3 {
  scroll-margin-top: 70px;
}

/* 搜索快捷键提示 */
.search-hint {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.topbar-search:focus-within .search-hint {
  opacity: 0;
}

/* 响应式 - 新闻页布局 */
@media (max-width: 1200px) {
  .main-content {
    margin-right: 0;
  }

  .right-sidebar {
    display: none;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .search-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-text {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 图文教程页 ===== */
.tutorial-page {
  scroll-behavior: smooth;
}

.tutorial-page .lesson-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 28px 24px;
}

.tutorial-page .lesson-banner::before {
  display: none;
}

.tutorial-page .lesson-breadcrumb,
.tutorial-page .lesson-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.tutorial-page .lesson-breadcrumb a:hover {
  color: #fff;
}

.tutorial-page .lesson-banner-content h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tutorial-page .lesson-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 720px;
}

.tutorial-page .meta-item {
  color: rgba(255, 255, 255, 0.75);
}

.tutorial-page .meta-item i {
  color: rgba(255, 255, 255, 0.55);
}

.tutorial-article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.tutorial-page .news-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 8px;
}

.tutorial-content {
  max-width: none;
  width: 100%;
}

.tutorial-content h2 {
  scroll-margin-top: 72px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 18px;
  padding: 0 0 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #fff;
}

.tutorial-content h2:first-child {
  margin-top: 0;
}

.tutorial-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 22px 0 14px;
  opacity: 0.95;
}

.tutorial-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  margin-bottom: 14px;
  text-align: justify;
}

.tutorial-content strong {
  color: #fff;
  font-weight: 600;
}

.tutorial-content a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.tutorial-content a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.tutorial-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: #fff;
}

.tutorial-page .news-tags span {
  color: rgba(255, 255, 255, 0.6);
}

.tutorial-page .news-tags a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tutorial-page .news-tags a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tutorial-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

/* 安卓 / 苹果对比看板 */
.compare-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin: 20px 0 16px;
  padding: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.06) 50%, rgba(74, 222, 128, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-panel--ios {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compare-panel--android {
  border-color: rgba(74, 222, 128, 0.22);
}

.compare-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-platform-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.compare-panel--ios .compare-platform-icon {
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.compare-panel--android .compare-platform-icon {
  background: linear-gradient(145deg, #059669 0%, #34d399 100%);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
}

.compare-platform-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.compare-platform-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.compare-platform-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-platform-tag--rec {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.45);
}

.compare-device {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 14px 12px;
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-panel--ios .compare-device {
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(99, 102, 241, 0.18), transparent 70%);
}

.compare-panel--android .compare-device {
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(52, 211, 153, 0.15), transparent 70%);
}

.compare-device .tutorial-img {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 140px;
  margin: 0;
  border-radius: 10px;
  object-fit: contain;
}

.compare-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.compare-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-specs li:last-child {
  border-bottom: none;
}

.compare-specs .spec-label {
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.compare-specs .spec-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.compare-specs .spec-value--good {
  color: #6ee7b7;
}

.compare-panel--ios .compare-specs .spec-value--good {
  color: #a5b4fc;
}

.compare-vs-badge {
  align-self: center;
  width: 40px;
  height: 40px;
  margin: 0 -6px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.compare-conclusion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.compare-conclusion i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  color: #a5b4fc;
}

.compare-conclusion p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.compare-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 16px 16px;
  text-align: center;
}

.compare-card .tutorial-img {
  max-width: 160px;
  margin: 0 auto 14px;
  border-radius: 12px;
}

.compare-meta p {
  margin: 0 0 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.tutorial-gallery {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
  align-items: stretch;
}

.tutorial-gallery.cols-1 { grid-template-columns: 1fr; }
.tutorial-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tutorial-gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tutorial-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 并排截图高度不一：卡片等高，图片在上方区域垂直居中 */
.tutorial-gallery.cols-2 .tutorial-figure,
.tutorial-gallery.cols-3 .tutorial-figure,
.tutorial-gallery.cols-4 .tutorial-figure {
  height: 100%;
  align-self: stretch;
}

.tutorial-gallery.cols-2 .tutorial-img,
.tutorial-gallery.cols-3 .tutorial-img,
.tutorial-gallery.cols-4 .tutorial-img {
  flex: 1;
  width: 100%;
  min-height: 140px;
  object-fit: contain;
  object-position: center center;
  background: rgba(255, 255, 255, 0.02);
}

.tutorial-gallery.cols-2 .tutorial-figure figcaption,
.tutorial-gallery.cols-3 .tutorial-figure figcaption,
.tutorial-gallery.cols-4 .tutorial-figure figcaption {
  flex-shrink: 0;
  width: 100%;
}

.tutorial-figure {
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tutorial-figure:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: none;
}

.tutorial-img {
  display: block;
  width: 100%;
  height: auto;
}

.tutorial-figure figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.tutorial-content .wp-block-kadence-image {
  margin: 12px 0;
}

/* 相关视频教程 · 横向并排 */
.tutorial-video-row {
  display: grid;
  gap: 14px;
  margin: 12px 0 22px;
  align-items: stretch;
}

.tutorial-video-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tutorial-video-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutorial-video-row--1 {
  grid-template-columns: minmax(0, 300px);
  justify-content: center;
}

.tutorial-video-row .tutorial-video-card {
  max-width: none;
  width: 100%;
  margin: 0;
  height: 100%;
}

.tutorial-video-card {
  max-width: 320px;
  margin: 10px auto;
}

.tutorial-video-card a {
  display: block;
  text-decoration: none;
}

.tutorial-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tutorial-toc .toc-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  transition: background var(--transition), color var(--transition);
}

.tutorial-toc .toc-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 1024px) {
  .tutorial-gallery.cols-3,
  .tutorial-gallery.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tutorial-video-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tutorial-article {
    padding: 18px 16px;
  }

  .tutorial-page .lesson-banner {
    padding: 20px 16px;
  }

  .compare-board {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .compare-vs-badge {
    margin: -4px auto;
    order: 2;
  }

  .compare-panel--ios {
    order: 1;
  }

  .compare-panel--android {
    order: 3;
  }

  .compare-device {
    max-width: none;
  }

  .compare-device .tutorial-img {
    max-width: 120px;
    max-height: 120px;
  }

  .tutorial-compare,
  .tutorial-gallery.cols-2,
  .tutorial-gallery.cols-3,
  .tutorial-gallery.cols-4 {
    grid-template-columns: 1fr;
  }

  .tutorial-video-row--2,
  .tutorial-video-row--3 {
    grid-template-columns: 1fr;
  }
}
