:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-hover: #1c1c22;
  --text-main: #f5f5f0; /* 奶油白 */
  --text-muted: #8a8a93;
  --primary: #ff7a00; /* 蜜橘橙 */
  --primary-hover: #e66a00;
  --accent: #00ff88; /* 猫眼绿 */
  --border: #2a2a32;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background-color: var(--surface);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: rgba(255,255,255,0.05);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand img {
  height: 32px;
  width: auto;
  aspect-ratio: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 100px;
  padding-bottom: 4rem;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  opacity: 0.15;
  z-index: -1;
  transform: translateY(0);
  animation: scrollBg 40s linear infinite;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scrollBg {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}

.cover-stack {
  position: relative;
  width: 260px;
  height: 347px;
}

.cover-stack img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.cover-stack .main-cover {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  height: 100%;
}

.cover-stack .sub-cover-1 {
  top: 40px;
  left: -60px;
  z-index: 2;
  width: 80%;
  height: 80%;
  opacity: 0.8;
}

.cover-stack .sub-cover-2 {
  top: 40px;
  right: -60px;
  z-index: 2;
  width: 80%;
  height: 80%;
  opacity: 0.8;
}

/* Section Common */
section {
  padding: 5rem 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

/* Ranking Section */
.ranking-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
}

.rank-hero img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 40px 60px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.rank-item:hover {
  background: var(--surface);
}

.rank-num { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.rank-item:nth-child(1) .rank-num { color: var(--primary); }
.rank-item:nth-child(2) .rank-num { color: #ffaa00; }
.rank-item:nth-child(3) .rank-num { color: #ffdd00; }

.rank-item img { width: 60px; border-radius: 6px; }
.rank-info h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.rank-info p { font-size: 0.8rem; color: var(--text-muted); }
.rank-heat {
  width: 100px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.rank-heat-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
}

/* Emotion Section */
.emotion-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.emotion-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.emotion-pill:hover, .emotion-pill.active {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.grid-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.cover-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s;
}

.cover-card:hover {
  transform: translateY(-5px);
}

.cover-card img {
  width: 100%;
}

.cover-info {
  padding: 1rem;
}

.cover-info h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lists & Calendars */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.day-col {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
}

.day-col.today {
  border: 1px solid var(--primary);
}

.day-title {
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.day-col.today .day-title {
  color: var(--primary);
}

.schedule-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.schedule-item img {
  width: 40px;
  border-radius: 4px;
}

.schedule-text {
  font-size: 0.8rem;
}

/* Creator Section */
.creator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.creator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

details[open] {
  border-color: var(--border);
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: var(--text-muted);
}
details[open] summary::after {
  content: '-';
}

.faq-content {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #050505;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.about-section {
  max-width: 800px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 1rem 0;
}

.about-section summary {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: inline-block;
  text-align: center;
  width: auto;
}

.about-section summary::after {
  display: none;
}

.about-content {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.about-content a {
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.about-content a:hover {
  background: var(--border);
  color: var(--text-main);
}

/* Mobile Download Bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1rem;
  z-index: 99;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .ranking-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .creator-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: 1fr; }
  .grid-covers { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
  .header-actions .btn { display: none; /* 移动端底部有下载条，头部暂时隐藏 */}
  .header-actions .btn-mobile { display: block; padding: 0.5rem 1rem;}
}