:root {
  --cream: #fdfbf7;
  --warm-beige: #f6f0e6;
  --cherry-red: #d93844;
  --ginger-yellow: #f0b429;
  --cocoa-brown: #4a3b32;
  --cocoa-light: #7a6b61;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--cream);
  color: var(--cocoa-brown);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 59, 50, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--cocoa-brown);
}
.logo-group img { height: 32px; width: auto; border-radius: 8px; }
nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
nav a {
  font-size: 0.95rem;
  color: var(--cocoa-brown);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
nav a:hover {
  border-color: var(--cocoa-brown);
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-red { background: var(--cherry-red); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--cocoa-brown);
  border: 2px solid var(--cocoa-brown);
}

/* Hero */
.hero {
  margin: 40px auto;
  background: linear-gradient(135deg, var(--warm-beige) 0%, #fff8ee 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 10px 40px rgba(246, 240, 230, 0.5);
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--cocoa-brown);
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--cocoa-light);
  margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img { flex: 1; display: flex; justify-content: center; }
.hero-img img {
  max-width: 300px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Sections */
section { margin-bottom: 80px; }
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--cocoa-light);
  font-size: 1.05rem;
}

/* Grid Common */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Card Styles */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(74, 59, 50, 0.05);
  transition: transform 0.3s;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.card-content { padding: 20px; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card-content p { color: var(--cocoa-light); font-size: 0.95rem; }

/* Tag */
.tag {
  display: inline-block;
  background: var(--ginger-yellow);
  color: var(--cocoa-brown);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Today Menu */
.today-menu {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.today-menu .card { min-width: 220px; flex: 0 0 auto; }

/* Ranking */
.ranking-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.ranking-main .card img { height: 400px; }
.ranking-side { display: flex; flex-direction: column; gap: 16px; }
.ranking-side .card { display: flex; align-items: center; }
.ranking-side .card img { width: 80px; height: 100px; flex-shrink: 0; border-radius: var(--radius-md); }
.ranking-side .card .card-content { padding: 12px 16px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
}
.timeline-item img { width: 100px; height: 140px; object-fit: cover; border-radius: var(--radius-md); }
.timeline-content h3 { margin-bottom: 8px; }

/* Tags Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-cloud span {
  padding: 10px 24px;
  background: var(--warm-beige);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.tag-cloud span:hover { background: var(--ginger-yellow); }

/* Editor Picks */
.editor-card { display: flex; gap: 20px; background: var(--white); padding: 24px; border-radius: var(--radius-lg); }
.editor-card img { width: 200px; height: 280px; object-fit: cover; flex-shrink: 0; border-radius: var(--radius-md); }
.editor-content { flex: 1; }
.editor-content p { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.8; color: var(--cocoa-light); }
.editor-comment { font-style: italic; color: var(--cherry-red); font-weight: bold; }

/* Late Night */
.late-night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.late-card {
  background: var(--warm-beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}
.late-card img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }
.late-card p { color: var(--cocoa-light); font-size: 0.95rem; }

/* Quotes */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(74, 59, 50, 0.05);
  position: relative;
}
.quote-card::before {
  content: "“";
  font-size: 3rem;
  color: var(--ginger-yellow);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  opacity: 0.3;
}
.quote-card p { font-size: 0.95rem; margin-top: 16px; color: var(--cocoa-brown); }

/* Screenshot Wall */
.screenshot-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.screenshot-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.screenshot-item img { width: 100%; height: 260px; object-fit: cover; }

/* Danmu Section */
.danmu-layout { display: flex; gap: 24px; }
.danmu-video { flex: 0 0 60%; position: relative; }
.danmu-video img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); }
.danmu-side { flex: 0 0 40%; background: var(--white); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.danmu-item { font-size: 0.9rem; padding: 10px; border-bottom: 1px solid #eee; }

/* Masterpiece */
.masterpiece {
  background: var(--cocoa-brown);
  color: var(--cream);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 40px;
  align-items: center;
}
.masterpiece img { width: 240px; height: 340px; object-fit: cover; border-radius: var(--radius-md); }
.masterpiece-text h2 { color: var(--ginger-yellow); margin-bottom: 20px; }
.masterpiece-text p { line-height: 1.9; margin-bottom: 16px; opacity: 0.9; }

/* Download Section */
.download-section {
  background: var(--cocoa-brown);
  color: var(--cream);
  padding: 80px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: 0;
}
.download-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
  align-items: center;
}
.download-mockup { flex: 1; display: flex; justify-content: center; }
.download-mockup img {
  max-width: 300px;
  transform: rotateY(-10deg) rotateX(5deg);
  border-radius: 20px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.3);
}
.download-content { flex: 1; }
.download-content h2 { color: var(--ginger-yellow); font-size: 2rem; margin-bottom: 20px; }
.download-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.features { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.feature-badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--cream);
}
.faq-item { margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--ginger-yellow);
  outline: none;
}
.faq-item p { margin-top: 8px; font-size: 0.95rem; opacity: 0.8; padding-left: 16px; }
.download-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.btn-yellow { background: var(--ginger-yellow); color: var(--cocoa-brown); }

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: linear-gradient(135deg, var(--cherry-red) 50%, var(--cocoa-brown) 50%);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: none;
  font-size: 0.95rem;
  transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.05); }

/* Footer */
footer {
  background: var(--warm-beige);
  padding: 40px 20px 20px;
  text-align: center;
  color: var(--cocoa-light);
  font-size: 0.85rem;
}
footer .footer-links { margin-bottom: 20px; }
footer details {
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
  font-size: 0.85rem;
}
footer summary {
  cursor: pointer;
  color: var(--cocoa-brown);
  font-weight: 500;
  list-style: none;
}
footer summary::-webkit-details-marker { display: none; }
footer .about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(74, 59, 50, 0.1);
}
footer .about-links a { color: var(--cocoa-light); }
footer .about-links a:hover { color: var(--cherry-red); }
footer .copyright { margin-top: 20px; font-size: 0.8rem; color: #999; }
footer time { display: block; margin-top: 8px; font-size: 0.75rem; color: #aaa; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding: 40px 20px; }
  .hero-text h1 { font-size: 2.2rem; }
  .ranking-layout { grid-template-columns: 1fr; }
  .ranking-main .card img { height: 300px; }
  .grid-3, .grid-4, .quote-grid, .screenshot-wall { grid-template-columns: 1fr 1fr; }
  .late-night-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .masterpiece { flex-direction: column; text-align: center; }
  .danmu-layout { flex-direction: column; }
  .danmu-video, .danmu-side { flex: 1; }
  .editor-card { flex-direction: column; }
  .editor-card img { width: 100%; height: 200px; }
}
@media (max-width: 768px) {
  nav ul { display: none; }
  .header-inner { justify-content: center; }
  .hero-text h1 { font-size: 1.8rem; }
  .grid-2, .grid-3, .grid-4, .quote-grid, .screenshot-wall { grid-template-columns: 1fr; }
  .timeline-item { flex-direction: column; }
  .timeline-item img { width: 100%; height: 200px; }
  .ranking-side .card { flex-direction: column; text-align: center; }
  .ranking-side .card img { width: 100%; height: 150px; }
  .floating-btn { bottom: 20px; right: 20px; padding: 10px 18px; font-size: 0.85rem; }
  .download-btns { flex-direction: column; }
}