/* 全局设计变量 */
:root {
  --primary: #FF6B6B;
  --bg: #FFFDF7;
  --accent: #4ECDC4;
  --highlight: #FFE66D;
  --text: #333333;
  --text-light: #666666;
  --card-bg: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
  --shadow-hover: 0 15px 35px rgba(255, 107, 107, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 107, 107, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.container { width: min(1240px, 92vw); margin: 0 auto; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* 导航 */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--primary); }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 15px; color: var(--text); }
.nav-links a.active, .nav-links a:hover { background: var(--primary); color: #fff; }
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 10px 24px; border-radius: 30px; font-weight: bold;
  display: inline-block; border: 2px solid var(--primary);
}
.btn-primary:hover { background: #ff5252; border-color: #ff5252; transform: translateY(-2px); box-shadow: var(--shadow); }

/* 英雄区 */
.hero { padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.tag { display: inline-block; background: var(--highlight); color: #b37f00; padding: 6px 16px; border-radius: 20px; font-weight: bold; font-size: 14px; margin-bottom: 20px; }
.hero-logo-wrap { margin: 0 auto 20px; width: 100px; height: 100px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(255,107,107,0.4); }
.hero-logo-wrap img { width: 60px; height: auto; }
h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; color: var(--text); }
h1 span { color: var(--primary); }
.subtitle { font-size: 18px; color: var(--text-light); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); padding: 10px 24px; border-radius: 30px; font-weight: bold; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.stats-bar { display: flex; justify-content: center; gap: 40px; margin-bottom: 50px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 24px; color: var(--primary); }
.stat-item span { font-size: 14px; color: var(--text-light); }
.hero-posters { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; transform: scale(0.9); }
.hero-posters img { border-radius: 16px; box-shadow: var(--shadow); width: 140px; height: 210px; transition: 0.3s; }
.hero-posters img:hover { transform: translateY(-10px); z-index: 2; }

/* 胶片墙 */
.film-strip { width: 100%; overflow: hidden; background: #222; padding: 15px 0; position: relative; }
.film-strip::before, .film-strip::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background-image: radial-gradient(#fff 2px, transparent 2px); background-size: 20px 10px; opacity: 0.5; }
.film-strip::before { top: 0; }
.film-strip::after { bottom: 0; }
.film-track { display: flex; gap: 15px; width: max-content; animation: scrollLeft 30s linear infinite; }
.film-track:hover { animation-play-state: paused; }
.film-track img { width: 120px; height: 180px; border-radius: 8px; object-fit: cover; }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 通用区块 */
section { padding: 80px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-header h2 { font-size: 32px; font-weight: 800; }
.section-header p { color: var(--text-light); max-width: 400px; text-align: right; }

/* ==== 内容特色 ==== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.feature-card { background: var(--card-bg); border-radius: var(--radius); padding: 40px 30px; box-shadow: var(--shadow); position: relative; transition: 0.3s; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border: 1px solid rgba(255,107,107,0.3); }
.big-num { font-size: 60px; font-weight: 900; color: transparent; -webkit-text-stroke: 2px rgba(255,107,107,0.3); margin-bottom: 20px; line-height: 1; }
.feature-card h3 { font-size: 22px; margin-bottom: 15px; }
.feature-card p { color: var(--text-light); font-size: 15px; margin-bottom: 24px; }
.feature-card a { margin-top: auto; font-weight: bold; color: var(--primary); display: inline-block; }

/* ==== 题材雷达 ==== */
.radar-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.radar-left { display: flex; justify-content: center; align-items: center; position: relative; }
.radar-svg { width: 100%; max-width: 400px; height: auto; }
.radar-label { position: absolute; font-size: 14px; font-weight: bold; color: var(--text); }
.radar-grid-right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.radar-item { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; }
.radar-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.radar-item h4 { font-size: 16px; margin-bottom: 5px; }
.radar-item p { font-size: 13px; color: var(--text-light); margin-bottom: 15px; }
.bar-wrap { height: 6px; background: #eee; border-radius: 3px; margin-top: auto; overflow: hidden; }
.bar-inner { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 3px; }

/* ==== 热门排行榜 ==== */
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.top-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: 0.3s; }
.top-card:hover { transform: translateY(-5px); }
.top-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.top-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.rank-num { font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.top-info h3 { font-size: 20px; margin-bottom: 5px; }
.top-tags { font-size: 12px; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 10px; display: inline-block; align-self: flex-start; margin-bottom: 10px; }
.top-info p { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }

.list-container { background: var(--card-bg); border-radius: var(--radius); padding: 10px 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.list-row { display: grid; grid-template-columns: 40px 60px 1fr 2fr 100px 60px; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.list-row:last-child { border-bottom: none; }
.list-row img { width: 60px; height: 90px; border-radius: 8px; object-fit: cover; }
.list-row .r-num { font-size: 24px; font-weight: bold; color: var(--text-light); text-align: center; }
.list-row .r-title { font-weight: bold; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .r-desc { font-size: 14px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .r-score { font-weight: bold; color: var(--primary); text-align: right; }

.small-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sf-card { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sf-card h4 { color: var(--primary); font-size: 18px; margin-bottom: 8px; }
.sf-card p { font-size: 14px; color: var(--text-light); }

/* ==== 页面截图 ==== */
.screenshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ss-card { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); transition: 0.3s; }
.ss-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.ss-frame { border: 3px solid var(--accent); border-radius: 16px; overflow: hidden; aspect-ratio: 9/16; position: relative; }
.ss-frame img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.ss-card.active .ss-frame { border-color: var(--primary); box-shadow: 0 0 20px rgba(255,107,107,0.5); }
.ss-card h4 { text-align: center; margin-top: 15px; font-size: 16px; }
.ss-card p { text-align: center; font-size: 13px; color: var(--text-light); padding-bottom: 10px; }

/* ==== AI 互动问答 ==== */
.ai-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.chat-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; height: 600px; border: 2px solid rgba(78,205,196,0.3); }
.chat-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; font-weight: bold; }
.online-dot { width: 10px; height: 10px; background: #2ecc71; border-radius: 50%; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #fafafa; }
.chat-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg-ai { background: #fff; border: 1px solid #eee; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: linear-gradient(135deg, var(--primary), #ff8e8e); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-footer { padding: 15px; border-top: 1px solid #eee; }
.quick-btns { display: flex; gap: 10px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 5px; }
.quick-btns::-webkit-scrollbar { height: 4px; }
.quick-btns::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.quick-btn { background: #f0f0f0; border: none; padding: 6px 12px; border-radius: 15px; font-size: 12px; cursor: pointer; white-space: nowrap; color: var(--text); }
.quick-btn:hover { background: var(--accent); color: #fff; }
.input-area { display: flex; gap: 10px; }
.input-area input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.input-area input:focus { border-color: var(--primary); }
.send-btn { background: var(--primary); color: #fff; border: none; padding: 0 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }

.ai-desc h2 { font-size: 32px; margin-bottom: 20px; }
.ai-desc > p { color: var(--text-light); margin-bottom: 30px; font-size: 16px; }
.ai-features { display: flex; flex-direction: column; gap: 15px; }
.ai-feat-item { background: #fff; padding: 20px; border-radius: 12px; border-left: 4px solid var(--accent); box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.ai-feat-item h4 { font-size: 16px; margin-bottom: 5px; color: var(--text); }
.ai-feat-item p { font-size: 14px; color: var(--text-light); }

/* ==== 使用须知 ==== */
.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.notice-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-left: 4px solid transparent; }
.notice-card:nth-child(1) { border-left-color: var(--primary); }
.notice-card:nth-child(2) { border-left-color: var(--highlight); }
.notice-card:nth-child(3) { border-left-color: var(--accent); }
.notice-card h3 { font-size: 18px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.notice-card ul { list-style: disc; padding-left: 15px; font-size: 14px; color: var(--text-light); }
.notice-card li { margin-bottom: 10px; }

/* ==== 页脚 ==== */
footer { background: #fff; border-top: 1px solid #eee; padding: 60px 0 20px; margin-top: 80px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-size: 24px; font-weight: 800; color: var(--primary); }
.footer-desc { color: var(--text-light); font-size: 14px; max-width: 400px; }
.footer-en { font-size: 24px; font-weight: 900; color: #eee; letter-spacing: 2px; text-align: right; line-height: 1.2; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #999; }

/* ==== 响应式 ==== */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  .hero-posters img { width: 110px; height: 165px; }
  .radar-section { grid-template-columns: 1fr; }
  .ai-section { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .list-row { grid-template-columns: 30px 50px 1fr 2fr 60px; }
  .list-row .r-score { display: none; }
  .list-row img { width: 50px; height: 75px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px !important; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-header p { text-align: left; }
  .hero-btns { flex-direction: column; padding: 0 20px; }
  .stats-bar { flex-wrap: wrap; gap: 20px; }
  .hero-posters { flex-wrap: wrap; transform: scale(1); }
  .hero-posters img { width: 100px; height: 150px; }
  .feature-grid { grid-template-columns: 1fr; }
  .radar-grid-right { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 30px 50px 1fr; }
  .list-row .r-desc { display: none; }
  .small-features { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 30px; }
  .footer-en { text-align: left; font-size: 18px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}