:root {
  --bg: #ffffff;
  --bg-soft: #f7f9f8;
  --line: #eaeaea;
  --green: #4caf7d;
  --green-dark: #3d9268;
  --title: #111111;
  --text: #666666;
  --gray: #999999;
  --dark: #1a1a1a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: contain; background: var(--dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand img { height: 32px; width: auto; background: transparent; }
.brand-name { font-size: 17px; color: var(--gray); letter-spacing: .5px; font-weight: 500; }
.menu { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.menu a { font-size: 14px; color: #555; transition: color .2s; white-space: nowrap; }
.menu a:hover { color: var(--green-dark); }
.btn-download {
  display: inline-block; background: var(--green); color: #fff;
  padding: 8px 20px; border-radius: 3px; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .2s;
}
.btn-download:hover { background: var(--green-dark); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 6px 10px; font-size: 14px; color: #555;
}

/* ===== 首屏 ===== */
.hero { padding: 52px 0 44px; background: var(--bg-soft); }
.hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero-top img { height: 40px; width: auto; background: transparent; }
.hero-top span { font-size: 20px; color: var(--gray); }
.hero h1 {
  font-size: 32px; color: var(--title); font-weight: 600;
  line-height: 1.35; margin-bottom: 14px;
}
.hero-desc { font-size: 15px; color: var(--text); max-width: 620px; margin-bottom: 26px; }
.search-bar {
  display: flex; align-items: center; gap: 0;
  max-width: 640px; border: 1px solid var(--line); border-radius: 3px;
  background: #fff; overflow: hidden;
}
.search-bar input {
  flex: 1; border: none; outline: none; padding: 13px 16px;
  font-size: 15px; color: var(--title); background: transparent;
}
.search-bar input::placeholder { color: #b0b0b0; }
.search-bar .btn-download { border-radius: 0; padding: 14px 26px; flex-shrink: 0; }
.hero-gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px;
}
.hero-gallery figure { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--dark); }
.hero-gallery img { width: 100%; aspect-ratio: 2 / 3; }

/* ===== 通用区块标题 ===== */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-tag {
  display: inline-block; font-size: 12px; color: var(--green-dark);
  border: 1px solid var(--green); border-radius: 2px;
  padding: 2px 10px; margin-bottom: 12px;
}
.section-head h2 { font-size: 26px; color: var(--title); font-weight: 600; margin-bottom: 8px; }
.section-head p { font-size: 14px; color: var(--text); }

/* ===== 题材分区 ===== */
.genre-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.genre-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--dark); transition: border-color .2s; }
.genre-card:hover { border-color: var(--green); }
.genre-card img { width: 100%; aspect-ratio: 2 / 3; }
.genre-card span { display: block; background: #fff; color: var(--title); font-size: 14px; text-align: center; padding: 8px 4px; }

/* ===== 追剧方式 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  border: 1px solid var(--line); border-radius: 3px; padding: 26px 22px;
  background: #fff;
}
.step-no {
  font-family: "Courier New", monospace; font-size: 28px; color: var(--green);
  font-weight: 700; margin-bottom: 10px;
}
.step h3 { font-size: 17px; color: var(--title); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text); }

/* ===== 热播榜 ===== */
.rank-list { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.rank-head, .rank-row {
  display: grid; grid-template-columns: 80px 70px 1fr 90px;
  align-items: center; gap: 14px; padding: 12px 18px;
}
.rank-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-family: "Courier New", monospace; font-size: 12px; color: var(--gray);
  letter-spacing: 1px;
}
.rank-row { border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-no { font-family: "Courier New", monospace; font-size: 20px; color: var(--green); font-weight: 700; }
.rank-row img { width: 48px; aspect-ratio: 2 / 3; border-radius: 2px; }
.rank-title { font-size: 15px; color: var(--title); }
.rank-title small { display: block; font-size: 12px; color: var(--gray); font-weight: 400; }
.rank-score { font-family: "Courier New", monospace; font-size: 16px; color: var(--green-dark); text-align: right; }

/* ===== 影视片库 ===== */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.filter-bar button {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 7px 18px; font-size: 14px; color: var(--text); transition: all .2s;
}
.filter-bar button:hover { border-color: var(--green); color: var(--green-dark); }
.filter-bar button.active { background: var(--green); border-color: var(--green); color: #fff; }
.library-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.library-card { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--dark); }
.library-card img { width: 100%; aspect-ratio: 2 / 3; }
.library-card .cap {
  background: #fff; padding: 7px 8px; font-size: 13px; color: var(--title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.library-card.hide { display: none; }

/* ===== 心愿榜 ===== */
.wish-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wish-card { border: 1px solid var(--line); border-radius: 3px; padding: 12px; background: #fff; }
.wish-card img { width: 100%; aspect-ratio: 2 / 3; border-radius: 2px; margin-bottom: 10px; }
.wish-name { font-size: 14px; color: var(--title); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 6px; background: #eef1f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .35s; }
.wish-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.wish-btn {
  width: 100%; background: #fff; border: 1px solid var(--green); color: var(--green-dark);
  border-radius: 2px; padding: 6px 0; font-size: 13px; transition: all .2s;
}
.wish-btn:hover { background: #eff8f3; }
.wish-btn.done { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== 竖屏体验 ===== */
.phone-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; }
.phone-hint { color: var(--gray); font-size: 13px; white-space: nowrap; }
.phone {
  width: 260px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; padding: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.phone-screen { border-radius: 10px; overflow: hidden; background: var(--dark); }
.phone-screen img { width: 100%; aspect-ratio: 9 / 16; }
.phone-bar { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.phone-bar span { width: 6px; height: 6px; border-radius: 50%; background: #d8d8d8; transition: background .2s; }
.phone-bar span.on { background: var(--green); }

/* ===== 用户评价 ===== */
.review-top { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 30px; }
.review-score { font-family: "Courier New", monospace; font-size: 40px; color: var(--green-dark); font-weight: 700; line-height: 1; }
.review-top span { font-size: 14px; color: var(--text); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card { border: 1px solid var(--line); border-radius: 3px; padding: 20px; background: #fff; }
.review-card p { font-size: 14px; color: var(--text); margin-bottom: 12px; }
.review-user { font-size: 13px; color: var(--gray); }

/* ===== 下载区 ===== */
.download-zone { padding: 56px 0; }
.download-box {
  background: var(--green); border-radius: 4px; padding: 48px 28px;
  text-align: center; color: #fff;
}
.download-box h2 { font-size: 26px; margin-bottom: 12px; font-weight: 600; }
.download-box p { font-size: 15px; margin-bottom: 26px; opacity: .92; }
.download-box .btn-download {
  background: #fff; color: var(--green-dark); font-size: 16px;
  padding: 12px 40px; font-weight: 600;
}
.download-box .btn-download:hover { background: #f0f0f0; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 28px 0 34px; font-size: 12px; color: var(--gray);
}
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-inner p { margin: 0; }
.about-details { margin-top: 6px; width: 100%; max-width: 720px; }
.about-details summary {
  cursor: pointer; font-size: 12px; color: var(--gray); list-style: none;
  display: inline-block; padding: 2px 0;
}
.about-details summary::-webkit-details-marker { display: none; }
.about-details[open] summary { color: var(--green-dark); }
.about-content {
  margin-top: 10px; text-align: left; font-size: 12px;
  color: var(--gray); line-height: 2;
}
.about-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.about-links a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.about-links a:hover { color: var(--green-dark); }
.footer-beian a { color: var(--gray); }
.footer-time { font-size: 12px; color: #b5b5b5; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 26px; }
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .wish-list { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .menu { gap: 16px; }
  .menu a { font-size: 13px; }
}

@media (max-width: 768px) {
  .nav-wrap { height: 56px; }
  .menu {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px; gap: 0;
  }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; border-bottom: 1px solid #f2f2f2; font-size: 14px; }
  .menu-toggle { display: inline-block; }
  .hero { padding: 34px 0 30px; }
  .hero h1 { font-size: 23px; }
  .hero-gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-gallery figure:nth-child(n+4) { display: none; }
  .genre-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .rank-head, .rank-row { grid-template-columns: 48px 48px 1fr 60px; padding: 10px 12px; gap: 10px; }
  .rank-no { font-size: 17px; }
  .library-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .wish-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .review-grid { grid-template-columns: 1fr; }
  .phone-wrap { gap: 14px; }
  .phone { width: 220px; }
  .phone-hint { display: none; }
  .download-box { padding: 34px 18px; }
  .download-box h2 { font-size: 21px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 21px; }
}