:root {
  --bg-color: #F7F8FA;
  --card-bg: #FFFFFF;
  --brand-green: #16A34A;
  --light-green: #DCFCE7;
  --text-main: #101828;
  --text-sub: #475467;
  --text-light: #667085;
  --border-color: #E5E7EB;
  --border-light: #EEF0F3;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-md: 0 4px 6px -1px rgba(16,24,40,0.05), 0 2px 4px -2px rgba(16,24,40,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* 侧边栏 264px */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 264px;
  background-color: var(--card-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.brand-area {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.brand-logo { height: 32px; width: auto; border-radius: 4px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text-main); }
.search-area { padding: 16px 20px; }
.sidebar-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.sidebar-search input {
  border: none; background: transparent; outline: none; width: 100%; font-size: 13px; color: var(--text-main);
}
.nav-group { padding: 0 12px; margin-bottom: 24px; }
.nav-group-title { font-size: 12px; font-weight: 600; color: var(--text-light); padding: 0 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 4px;
  border-radius: var(--radius-sm);
  color: var(--text-sub); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-item:hover { background-color: var(--bg-color); color: var(--text-main); }
.nav-item.active {
  background-color: var(--light-green);
  color: var(--brand-green);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 16px; background-color: var(--brand-green);
  border-radius: 0 2px 2px 0;
}
.sidebar-download {
  margin-top: auto; padding: 20px;
  border-top: 1px solid var(--border-light);
}
.download-card {
  background: linear-gradient(135deg, #F0FDF4, #FFF);
  border: 1px solid var(--light-green);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.download-card h4 { font-size: 14px; margin-bottom: 8px; }
.download-card p { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.download-card button {
  width: 100%; height: 32px; background-color: var(--brand-green); color: white; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
}

/* 主内容区 */
.main-content {
  margin-left: 264px;
  padding-bottom: 48px;
  min-height: 100vh;
}
.top-toolbar {
  position: sticky; top: 0; height: 64px;
  display: flex; align-items: center; gap: 16px; padding: 0 40px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 90;
}
.top-title { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.top-desc { font-size: 12px; color: var(--text-light); font-weight: 400; }
.top-search {
  flex: 1; max-width: 400px; height: 36px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background-color: var(--bg-color); border: 1px solid var(--border-color);
  border-radius: 10px; margin-left: auto;
}
.top-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 13px; color: var(--text-main); }
.top-search:focus-within { border-color: var(--brand-green); box-shadow: 0 0 0 3px var(--light-green); }
.btn-app { height: 36px; padding: 0 16px; background-color: var(--brand-green); color: white; border-radius: 10px; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.btn-icon { height: 36px; width: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 10px; background-color: white; }

.content-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px 0;
}

/* Hero 推荐区 */
.hero-section {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px;
  min-height: 280px; padding: 32px; border-radius: 20px;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #F0FDF4, #FFF 58%, #FFF7ED);
  margin-bottom: 32px;
}
.hero-left { display: flex; flex-direction: column; justify-content: center; }
.hero-pill {
  display: inline-block; padding: 4px 10px; background-color: var(--light-green); color: var(--brand-green);
  font-size: 12px; font-weight: 600; border-radius: var(--radius-pill); margin-bottom: 16px; align-self: flex-start;
}
.hero-title { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; color: var(--text-main); }
.hero-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; }
.hero-btn-primary { height: 36px; padding: 0 20px; background-color: var(--brand-green); color: white; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; display: flex; align-items: center; }
.hero-btn-secondary { height: 36px; padding: 0 20px; background-color: white; color: var(--text-main); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; display: flex; align-items: center; }
.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-poster-stack { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-poster {
  position: absolute; width: 140px; aspect-ratio: 3/4; border-radius: 16px; object-fit: cover;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15); border: 2px solid white;
}
.hero-poster:nth-child(1) { transform: translateX(-40px) rotate(-6deg); z-index: 2; }
.hero-poster:nth-child(2) { transform: translateX(0) translateY(-10px) scale(1.05); z-index: 3; }
.hero-poster:nth-child(3) { transform: translateX(40px) rotate(6deg); z-index: 1; }

/* 通用区块标题 */
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-title { font-size: 18px; font-weight: 600; color: var(--text-main); }
.section-more { font-size: 14px; color: var(--brand-green); font-weight: 500; }
.section-desc { font-size: 14px; color: var(--text-sub); margin-bottom: 20px; max-width: 800px; }

/* 继续观看 */
.continue-section { margin-bottom: 32px; }
.continue-list {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.continue-list::-webkit-scrollbar { height: 6px; }
.continue-list::-webkit-scrollbar-thumb { background-color: var(--border-color); border-radius: var(--radius-pill); }
.continue-card {
  flex: 0 0 260px; scroll-snap-align: start; background-color: var(--card-bg);
  border-radius: 14px; padding: 8px; border: 1px solid var(--border-color); transition: transform 0.2s;
}
.continue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.continue-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; margin-bottom: 12px; }
.continue-progress { width: 100%; height: 3px; background-color: var(--border-light); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.continue-progress span { display: block; height: 100%; background-color: var(--brand-green); border-radius: 2px; }
.continue-title { font-size: 14px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.continue-meta { font-size: 12px; color: var(--text-light); }

/* 热播精选 */
.hot-section { margin-bottom: 32px; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.hot-card {
  background-color: var(--card-bg); border-radius: 14px; border: 1px solid var(--border-color);
  padding: 10px; transition: all 0.2s; display: flex; flex-direction: column;
}
.hot-card:hover { transform: translateY(-2px); border-color: var(--brand-green); box-shadow: var(--shadow-md); }
.hot-cover-wrap { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; margin-bottom: 12px; background-color: var(--bg-color); }
.hot-cover { width: 100%; height: 100%; object-fit: cover; }
.hot-badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 6px; font-size: 11px; font-weight: 500;
  background-color: rgba(255,255,255,0.86); color: var(--text-main); border-radius: 4px; backdrop-filter: blur(4px);
}
.hot-badge.green { background-color: var(--light-green); color: var(--brand-green); }
.hot-title { font-size: 14px; font-weight: 600; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-bottom: 8px; flex: 1; }
.hot-meta { font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; }

/* 分类筛选条 */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; margin-bottom: 24px; padding-bottom: 4px; }
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background-color: var(--card-bg);
  border: 1px solid var(--border-color); font-size: 13px; color: var(--text-sub);
  display: flex; align-items: center; white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.chip:hover { background-color: var(--bg-color); }
.chip.active { background-color: var(--light-green); color: var(--brand-green); border-color: var(--brand-green); font-weight: 500; }

/* AI 魔改专区 */
.ai-section { margin-bottom: 32px; }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ai-card {
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid transparent; position: relative; overflow: hidden;
}
.ai-card.green-bg { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); border-color: #DCFCE7; }
.ai-card.orange-bg { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border-color: #FFEDD5; }
.ai-pill { display: inline-block; padding: 4px 10px; background-color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 600; border-radius: var(--radius-pill); margin-bottom: 16px; align-self: flex-start; }
.ai-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.ai-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 24px; }
.ai-footer { display: flex; justify-content: space-between; align-items: center; }
.ai-tags { display: flex; gap: 8px; font-size: 12px; color: var(--text-light); }
.ai-link { font-size: 14px; color: var(--brand-green); font-weight: 500; }

/* 每日更新 */
.update-section { margin-bottom: 32px; }
.update-list { background-color: var(--card-bg); border-radius: 14px; border: 1px solid var(--border-color); overflow: hidden; }
.update-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-light); transition: background-color 0.2s; cursor: pointer;
}
.update-row:last-child { border-bottom: none; }
.update-row:hover { background-color: #F9FAFB; }
.update-thumb { width: 56px; height: 76px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.update-info { flex: 1; min-width: 0; }
.update-title { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-tags { display: flex; gap: 8px; }
.update-tag { font-size: 11px; padding: 2px 6px; background-color: var(--bg-color); color: var(--text-sub); border-radius: 4px; }
.update-meta { font-size: 12px; color: var(--text-light); margin-right: 16px; white-space: nowrap; }
.update-play {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.update-play::after {
  content: ''; display: block; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--brand-green); margin-left: 2px;
}

/* 常见问题 */
.faq-section { margin-bottom: 48px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-card {
  background-color: var(--card-bg); border-radius: 14px; border: 1px solid var(--border-color); padding: 20px;
}
.faq-q { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; }
.faq-a { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-color); padding: 24px 0;
  text-align: center; font-size: 12px; color: var(--text-light);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.footer-links { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--brand-green); }
.time-info { font-size: 12px; color: var(--text-light); }

/* 响应式 */
@media (max-width: 1024px) {
  .sidebar { width: 72px; }
  .brand-name, .search-area, .nav-group-title, .nav-item span, .sidebar-download { display: none; }
  .brand-area { padding: 0; justify-content: center; }
  .nav-group { padding: 0 8px; margin-top: 16px; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .nav-item.active::before { display: none; }
  .main-content { margin-left: 72px; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .top-toolbar { padding: 0 16px; gap: 12px; }
  .top-title { font-size: 18px; }
  .top-desc { display: none; }
  .top-search { max-width: none; }
  .btn-app { display: none; }
  .content-container { padding: 16px; }
  .hero-section { grid-template-columns: 1fr; padding: 24px; gap: 32px; }
  .hero-right { min-height: 240px; }
  .hero-poster { width: 120px; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ai-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .continue-card { flex: 0 0 220px; }
  .update-row { padding: 12px; }
  .update-meta { display: none; }
}