:root {
  --bg: #fcfaf5;
  --text: #2c2a27;
  --text-light: #6b6762;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --green: #65a30d;
  --green-light: #bef264;
  --card-bg: #ffffff;
  --border: #e5e5e5;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.05);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 600; }

/* 基础滚动条隐藏 */
::-webkit-scrollbar { display: none; }

/* Header */
.header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(252, 250, 245, 0.95); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border); transition: all 0.3s; }
.header.shrink { height: 60px; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height 0.3s; }
.header.shrink .header-inner { height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav a { font-size: 14px; color: var(--text-light); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--primary); font-weight: 500; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { padding: 160px 0 80px; text-align: center; background: radial-gradient(circle at top, #fff7ed 0%, var(--bg) 100%); }
.hero h1 { font-size: 48px; margin-bottom: 20px; letter-spacing: 2px; }
.hero p { font-size: 18px; color: var(--text-light); max-width: 600px; margin: 0 auto 40px; }
.hero-img { max-width: 800px; margin: 0 auto; border-radius: 20px; box-shadow: var(--shadow); }

/* Sections */
.section { padding: 80px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 32px; margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 16px; }

/* 布局工具 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* 卡片通用 */
.card { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.card-meta { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.card-tag { display: inline-block; padding: 2px 8px; background: #fef3c7; color: #d97706; border-radius: 4px; font-size: 12px; margin-right: 8px; }
.tag-green { background: #ecfccb; color: #4d7c0f; }

/* 特殊模块 */
/* 果园剧场 */
.theater-layout { display: flex; gap: 24px; }
.tag-sidebar { width: 88px; display: flex; flex-direction: column; gap: 12px; }
.tag-btn { padding: 16px 8px; background: var(--card-bg); border-radius: 8px; text-align: center; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; position: relative; }
.tag-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-btn.active::after { content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 10px; height: 20px; background: var(--primary); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.theater-grid { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theater-card { transform: rotateY(-4deg); transform-origin: left center; }
.theater-card:hover { transform: rotateY(0) scale(1.03); z-index: 2; }

/* 主演果园 */
.actor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flip-card { perspective: 1000px; height: 380px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner, .flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: var(--radius); overflow: hidden; }
.flip-card-front { background: #fff; border: 1px solid var(--border); }
.flip-card-front img { width: 100%; height: 70%; object-fit: cover; filter: grayscale(100%); }
.flip-card-front .info { padding: 12px; }
.flip-card-back { background: #374151; color: #fff; transform: rotateY(180deg); padding: 20px; display: flex; flex-direction: column; justify-content: center; }

/* 剧情分叉 */
.fork-layout { display: flex; flex-direction: column; gap: 24px; }
.fork-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fork-tab { padding: 8px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border); cursor: pointer; }
.fork-tab.active { background: var(--text); color: #fff; }
.fork-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fork-card { position: relative; padding-left: 20px; }
.fork-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #e5e5e5; border-radius: 2px; }
.fork-option { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.fork-bar { height: 6px; background: #f3f4f6; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.fork-bar-inner { height: 100%; background: linear-gradient(90deg, var(--primary), var(--green)); width: 0; transition: width 1s ease-out; }

/* 弹幕 */
.barrage-container { height: 200px; overflow: hidden; position: relative; background: #111; border-radius: var(--radius); margin-bottom: 24px; color: #fff; }
.barrage-track { display: flex; white-space: nowrap; position: absolute; will-change: transform; }
.track-top { top: 40px; animation: scrollLeft 28s linear infinite; }
.track-bottom { bottom: 40px; animation: scrollRight 36s linear infinite; }
.barrage-item { display: inline-flex; align-items: center; gap: 8px; margin-right: 30px; font-size: 14px; }
.barrage-item img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* 追剧年轮 */
.ring-layout { display: flex; align-items: center; gap: 40px; }
.ring-svg { width: 300px; height: 300px; }
.badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; flex: 1; }
.badge { background: rgba(255,255,255,0.7); border: 1px solid var(--border); padding: 16px; border-radius: 12px; text-align: center; }
.badge.gold { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fcd34d; }

/* 会员 */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: center; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; position: relative; }
.pricing-card.active { transform: translateY(-16px); border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(245,158,11,0.1); }
.pricing-badge { position: absolute; top: -12px; right: 20px; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 12px; font-size: 12px; }

/* 安装工坊 */
.install-layout { display: flex; gap: 40px; }
.install-tabs { width: 200px; display: flex; flex-direction: column; gap: 8px; }
.install-tab { padding: 12px 16px; text-align: left; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.install-tab.active { background: var(--text); color: #fff; }
.install-steps { flex: 1; }
.step-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.step-item::before { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 2px; background: #e5e5e5; }
.step-item:last-child::before { display: none; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; z-index: 1; }

/* 黄果纪事 */
.timeline { position: relative; max-width: 800px; margin: 40px auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--primary), transparent); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-content { width: 45%; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline-dot { width: 16px; height: 16px; background: var(--primary); border-radius: 50%; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }

/* 下载区 */
.download-section { background: #fff; border-top: 1px solid var(--border); padding: 80px 0; text-align: center; }
.download-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; padding: 16px 40px; border-radius: 30px; font-size: 18px; font-weight: bold; transition: background 0.3s; }
.download-btn:hover { background: var(--primary-hover); }

/* 页脚 */
.footer { background: var(--bg); padding: 40px 0; text-align: center; font-size: 12px; color: var(--text-light); border-top: 1px solid var(--border); }
.footer a { color: var(--text-light); }
.footer a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 1200px) {
  .theater-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .theater-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring-layout { flex-direction: column; }
  .install-layout { flex-direction: column; }
  .install-tabs { width: 100%; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fork-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.active { transform: none; }
  .hero h1 { font-size: 32px; }
  .barrage-container { display: none; }
  .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { left: 20px; }
  .timeline-item { flex-direction: row !important; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; transform: none; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .theater-grid { grid-template-columns: 1fr; }
  .actor-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
}