:root {
  --ink: #121214;
  --paper: #f6f5f2;
  --red: #d92c2c;
  --red-dark: #b01f1f;
  --gray-line: #e2e0db;
  --gray-text: #6b6a66;
  --card-bg: #ffffff;
  --radius: 10px;
  --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(18, 18, 20, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-sub {
  font-size: 11px;
  color: #999;
  letter-spacing: 0.5px;
}
.main-nav {
  display: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.search-btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-download-sm {
  background-color: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.btn-download-sm:hover { background-color: var(--red-dark); }

/* Hero */
.hero {
  background-color: var(--ink);
  color: #fff;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(217,44,44,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-text h1 {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.hero-text h1 span { color: var(--red); }
.hero-desc {
  font-size: 15px;
  color: #b3b3b3;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--red);
  color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover { background-color: var(--red-dark); border-color: var(--red-dark); }
.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: #fff; }

/* Poster Strip (Mobile horizontal, Desktop grid) */
.hero-posters {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.hero-posters::-webkit-scrollbar { display: none; }
.poster-card {
  flex: 0 0 140px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #222;
}
.poster-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.poster-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.poster-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-tag {
  font-size: 10px;
  color: var(--red);
  margin-top: 2px;
}

/* Search Section */
.search-section {
  background-color: #fff;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-line);
}
.search-box {
  display: flex;
  max-width: 720px;
  margin: 0 auto 16px;
  border: 2px solid var(--gray-line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--red); }
.search-input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.search-submit {
  background-color: var(--ink);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search-submit:hover { background-color: var(--red); }
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hot-tags span {
  font-size: 12px;
  color: var(--gray-text);
  background-color: var(--paper);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.hot-tags span:hover { color: var(--red); }

/* Section Common */
.section {
  padding: 50px 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background-color: var(--red);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--gray-text);
  transition: color 0.2s;
}
.section-link:hover { color: var(--red); }

/* Category Section */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cat-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.cat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-desc {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 16px;
  flex: 1;
}
.cat-btn {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 16px;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.cat-btn:hover { background-color: var(--red); color: #fff; }

/* Featured / Hot */
.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.fi-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.fi-content {
  padding: 20px;
}
.fi-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.fi-meta {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}
.fi-desc {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}
.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.sub-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.sub-card:hover { transform: translateY(-2px); }
.sub-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.sub-body {
  padding: 12px;
}
.sub-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-meta {
  font-size: 11px;
  color: var(--gray-text);
}

/* Timeline / Updates */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tl-item {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 16px;
  align-items: flex-start;
}
.tl-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-text);
  flex-shrink: 0;
  width: 50px;
  text-align: right;
  padding-top: 2px;
}
.tl-content {
  flex: 1;
}
.tl-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #e8f5e9;
  color: #2e7d32;
}
.tl-tag.updating { background-color: #ffebee; color: var(--red); }
.tl-desc {
  font-size: 13px;
  color: var(--gray-text);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
}
.feat-icon {
  width: 48px;
  height: 48px;
  background-color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--red);
}
.feat-icon svg { width: 24px; height: 24px; fill: currentColor; }
.feat-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feat-desc {
  font-size: 12px;
  color: var(--gray-text);
}

/* Download Section */
.download-box {
  background-color: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  margin: 40px 0;
}
.dl-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.dl-desc {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 28px;
}
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.dl-btn:hover { opacity: 0.9; }
.dl-btn-android { background-color: #fff; color: var(--ink); }
.dl-btn-ios { background-color: var(--red); color: #fff; }
.dl-info {
  margin-top: 24px;
  font-size: 12px;
  color: #777;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--gray-text);
  transition: transform 0.2s;
}
.faq-item.active .faq-q::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--gray-text);
  display: none;
}
.faq-item.active .faq-a {
  display: block;
}

/* Footer */
.site-footer {
  background-color: #fff;
  border-top: 1px solid var(--gray-line);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--gray-text);
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 13px;
  color: var(--gray-text);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--gray-line);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom a {
  color: var(--gray-text);
}
.footer-bottom a:hover { color: var(--ink); }
.icp-link { font-family: monospace; }

/* Responsive */
@media (min-width: 768px) {
  .header-inner { height: 72px; }
  .brand img { height: 36px; }
  .hero { padding: 120px 0 80px; }
  .hero-text h1 { font-size: 40px; }
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-text { flex: 1; }
  .hero-posters {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: visible;
  }
  .poster-card { flex: auto; }
  .poster-card img { height: 220px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { flex-direction: row; }
  .fi-img { width: 45%; height: auto; min-height: 300px; }
  .fi-content { width: 55%; display: flex; flex-direction: column; justify-content: center; }
  .sub-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .dl-actions { flex-direction: row; max-width: none; justify-content: center; }
  .dl-btn { min-width: 180px; }
  .footer-grid { grid-template-columns: 1.5fr 2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    gap: 24px;
  }
  .nav-link {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .nav-link:hover, .nav-link.active { color: #fff; }
  .hero-text h1 { font-size: 48px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-card img { height: 260px; }
  .sub-grid { grid-template-columns: repeat(4, 1fr); }
}