:root {
  --cream: #fffafb;
  --white: #ffffff;
  --pink-light: #fff0f4;
  --pink: #f2749e;
  --pink-deep: #d9537f;
  --mint: #6ecfb4;
  --lemon: #f5cf62;
  --lavender: #b39ae8;
  --peach: #f6a878;
  --text-main: #3d2b33;
  --text-sub: #7a6570;
  --shadow-sm: 0 4px 12px rgba(217, 83, 127, 0.08);
  --shadow-md: 0 8px 24px rgba(217, 83, 127, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(217, 83, 127, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 20px;
  color: var(--pink-deep);
}

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

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: var(--text-sub);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(242, 116, 158, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 116, 158, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--pink-deep);
  border-radius: 2px;
}

/* 首屏 */
.hero {
  padding: 60px 0 40px;
  position: relative;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background-color: var(--pink-light);
  color: var(--pink-deep);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--pink-deep);
}

.hero-desc {
  font-size: 18px;
  color: var(--text-sub);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--pink-deep);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 15px;
  border: 2px solid var(--pink-light);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--pink-light);
}

.hero-stats {
  display: flex;
  gap: 30px;
}

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

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--pink-deep);
}

.stat-label {
  font-size: 13px;
  color: var(--text-sub);
}

/* 糖罐封面 */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.candy-jar {
  position: relative;
  width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  z-index: 2;
}

.jar-lid {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 24px;
  background: linear-gradient(to bottom, var(--pink), var(--pink-deep));
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 4px 8px rgba(217, 83, 127, 0.2);
}

.jar-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.candy-deco {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset -4px -4px 8px rgba(0,0,0,0.1);
  z-index: 1;
}

.candy-deco.c1 { top: 10%; left: -20px; background: var(--lemon); }
.candy-deco.c2 { bottom: 20%; right: -20px; background: var(--lavender); width: 50px; height: 50px; }
.candy-deco.c3 { bottom: -10px; left: 30%; background: var(--peach); width: 30px; height: 30px; }

/* 跑马灯 */
.marquee {
  background-color: var(--pink);
  color: var(--white);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}

.marquee-content span {
  margin: 0 30px;
  font-size: 14px;
  font-weight: bold;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 通用部分 */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-sub);
}

/* 六种口味（糖果分级卡） */
.flavor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flavor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flavor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.flavor-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pink-light);
  color: var(--pink-deep);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.flavor-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.flavor-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.flavor-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.flavor-count {
  font-size: 13px;
  color: var(--pink);
  font-weight: bold;
  margin-bottom: 16px;
}

.flavor-thumb {
  width: 108px;
  height: 162px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 追剧日历 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.day-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.day-card.today {
  border-color: var(--pink);
  background: var(--pink-light);
}

.day-week {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 4px;
}

.day-date {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.day-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-status {
  font-size: 12px;
  color: var(--pink-deep);
}

/* 片库 */
.chip-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.chip {
  padding: 8px 20px;
  background: var(--white);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-sub);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.chip.active, .chip:hover {
  background: var(--pink);
  color: var(--white);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.library-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.library-item:hover {
  transform: scale(1.03);
}

.library-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

/* AI魔改 */
.magic-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.magic-text {
  flex: 1;
}

.magic-feature {
  margin-bottom: 24px;
}

.magic-feature h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--pink-deep);
}

.magic-feature p {
  font-size: 15px;
  color: var(--text-sub);
}

.magic-preview {
  flex: 1;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.magic-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  text-align: center;
  font-weight: bold;
  color: var(--text-main);
}

.flow-step {
  background: var(--pink-light);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex: 1;
}

.flow-arrow {
  color: var(--pink);
  padding: 0 10px;
}

.magic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--cream);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-sub);
}

/* 竖屏体验 */
.experience-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.exp-text {
  flex: 1;
}

.exp-list {
  list-style: none;
}

.exp-list li {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--mint);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
}

.phone-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  width: 240px;
  height: 480px;
  background: var(--text-main);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--pink-light);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-img.active {
  opacity: 1;
}

.swipe-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* 用户评价 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--pink);
}

.review-text {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-size: 13px;
  color: var(--text-sub);
  text-align: right;
}

/* 下载区 */
.download-section {
  background: var(--pink-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--pink);
}

.download-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--pink-deep);
  margin-bottom: 16px;
}

.download-section p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 32px;
}

/* 页脚 */
.footer {
  background: var(--white);
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--pink-light);
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-meta {
  margin-bottom: 8px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-wrapper { flex-direction: column; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(4, 1fr); }
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }
  .magic-container, .experience-container { flex-direction: column; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .flavor-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .download-section { padding: 24px; }
}