:root {
  --bg: #f4f7f4;
  --surface: #ffffff;
  --text: #1c2420;
  --text-light: #5c6b63;
  --green: #98d64b;
  --green-dark: #5a9a1f;
  --peach: #ffb6a3;
  --citrus: #ffd166;
  --cassis: #d4a5ff;
  --blueberry: #9ab8ff;
  --dark-bg: #18221d;
  --font-head: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(28, 36, 32, 0.06);
  --shadow-hover: 0 8px 24px rgba(28, 36, 32, 0.12);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(244, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 36, 32, 0.08);
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
}
.brand img { height: 32px; width: auto; }

.nav-menu {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green-dark); }
.nav-menu a.active::after {
  content: '今日';
  position: absolute;
  top: -12px;
  right: -20px;
  font-size: 10px;
  background: var(--green);
  color: var(--text);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: bold;
}

.btn-primary {
  background: var(--green);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(152, 214, 75, 0.4);
}

/* Sections Base */
section { padding: 80px 0; position: relative; }
.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Hero */
.hero { padding-top: 120px; padding-bottom: 60px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  align-items: start;
}
.hero-text h1 {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-text p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.trust-line {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cup-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.cup-card {
  flex: 0 0 160px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
}
.cup-card:hover {
  transform: translateY(-6px) rotate(2deg);
  box-shadow: var(--shadow-hover);
}
.cup-img-wrap {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #e0e0e0;
}
.cup-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.cup-label {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 10px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cup-hook {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.rank-list h3 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 800;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--green-dark);
  width: 20px;
}
.rank-thumb {
  width: 36px; aspect-ratio: 3/4;
  border-radius: 4px; overflow: hidden;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; overflow: hidden; }
.rank-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 11px; color: var(--text-light); }

/* Split Section (AI vs Comic) */
.split-section { background: var(--surface); }
.split-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}
.split-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.split-card h3 { font-size: 24px; margin-bottom: 16px; font-family: var(--font-head); font-weight: 900; }
.split-img {
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  max-width: 200px;
  margin-left: auto; margin-right: auto;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-desc p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; text-align: left; }
.toggle-btn {
  background: var(--green);
  border-radius: 50%;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.toggle-btn:hover { transform: rotate(180deg) scale(1.1); }

/* Magic Section (Dark) */
.magic-section { background: var(--dark-bg); color: #fff; }
.magic-section .section-desc { color: #a0b0a8; }
.magic-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}
.magic-card {
  flex: 0 0 220px;
  background: #22332b;
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}
.magic-card .date-tag {
  font-family: var(--font-mono);
  background: var(--green);
  color: var(--text);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 12px;
}
.magic-img {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.magic-img img { width: 100%; height: 100%; object-fit: cover; }
.magic-card h4 { font-size: 15px; margin-bottom: 8px; }
.magic-card p { font-size: 12px; color: #b0c0b8; }
.btn-outline-light {
  border: 1px solid var(--green);
  color: var(--green);
  padding: 10px 20px;
  border-radius: 20px;
  margin-top: 20px;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-light:hover { background: var(--green); color: var(--text); }

/* Genre Section */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.genre-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
}
.genre-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.genre-box[data-type="peach"] { border-color: var(--peach); }
.genre-box[data-type="citrus"] { border-color: var(--citrus); }
.genre-box[data-type="cassis"] { border-color: var(--cassis); }
.genre-box[data-type="blueberry"] { border-color: var(--blueberry); }
.genre-box h3 { font-family: var(--font-head); font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.genre-box p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.genre-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.genre-imgs img { aspect-ratio: 3/4; width: 100%; border-radius: 6px; object-fit: cover; }

/* Rhythm Section */
.rhythm-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.waveform { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-bottom: 20px; }
.bar { background: var(--green); border-radius: 4px 4px 0 0; transition: height 0.3s; width: 100%; }
.bar:nth-child(even) { background: var(--green-dark); }
.bar:hover { opacity: 0.8; transform: scaleY(1.1); transform-origin: bottom; }
.scene-text { font-size: 14px; color: var(--text-light); margin-top: 16px; }

/* Calendar Section */
.calendar-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.calendar-stack { position: relative; height: 300px; }
.calendar-page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform-origin: top left;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-family: var(--font-mono); font-weight: bold;
}
.calendar-page:nth-child(2) { transform: rotate(3deg) translate(5px, 5px); z-index: -1; opacity: 0.6; }
.calendar-page:nth-child(3) { transform: rotate(-2deg) translate(-5px, 8px); z-index: -2; opacity: 0.3; }

/* FAQ Section */
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.faq-vertical { writing-mode: vertical-rl; text-orientation: mixed; font-size: 40px; font-weight: 900; letter-spacing: 4px; padding: 20px 0; border-right: 2px solid var(--green); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); padding: 16px 0; }
.faq-q { font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; cursor: pointer; }
.faq-a { font-size: 14px; color: var(--text-light); margin-top: 10px; display: none; }
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q { color: var(--green-dark); }

/* Footer */
.footer { background: var(--surface); padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.05); font-size: 13px; color: var(--text-light); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--green-dark); }
.footer-meta { font-size: 12px; color: #88968e; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split-container, .rhythm-container, .calendar-layout, .faq-layout { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { flex-direction: column; }
  .faq-vertical { writing-mode: horizontal-tb; border-right: none; border-bottom: 2px solid var(--green); padding-bottom: 10px; font-size: 28px; }
}
@media (max-width: 768px) {
  .hero-text h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .nav-menu { display: none; }
  .genre-grid { grid-template-columns: 1fr; }
  .magic-grid { flex-wrap: nowrap; }
  .cup-row { flex-wrap: nowrap; }
  .split-container { gap: 20px; }
}