/* ============================================
   菠萝包动漫 · style.css
   主题：番茄红 + 菠萝黄 + 奶油白
   ============================================ */

:root {
  --primary: #ff5a5f;
  --primary-dark: #e8454a;
  --primary-soft: #ffe3e4;
  --accent: #ffb84d;
  --accent-soft: #fff1d9;
  --bg: #fff8f3;
  --bg-alt: #fff1e8;
  --surface: #ffffff;
  --text: #2b2430;
  --text-muted: #6b6577;
  --dark: #2d2438;
  --dark-2: #1f1828;
  --border: #f1e6dd;
  --shadow-sm: 0 4px 14px rgba(255, 90, 95, 0.08);
  --shadow-md: 0 12px 32px rgba(43, 36, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 36, 48, 0.16);
  --radius: 18px;
  --radius-lg: 26px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a5c 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 90, 95, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 90, 95, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark {
  background: var(--dark);
  color: #fff;
  padding: 12px 28px;
}
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-glow {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-glow:hover { background: rgba(255,255,255,0.28); }

/* ============ 导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; color: var(--text); }
.brand-text small { font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); }

.main-nav { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-muted);
  transition: all .18s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(circle at 85% 20%, #ffe0c2 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, #ffd6d8 0%, transparent 45%),
    var(--bg);
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--accent); }
.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a3d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 280px;
  border-radius: 36px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  position: relative;
}
.phone-mockup img {
  border-radius: 26px;
  width: 100%;
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; background: #222; border-radius: 3px; z-index: 2;
}
.float-tag {
  position: absolute;
  padding: 8px 16px;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.tag-a { top: 8%; right: 4%; color: var(--primary); }
.tag-b { bottom: 18%; left: 0; color: #2ea86a; }
.tag-c { bottom: 2%; right: 12%; color: #7a5cff; }

/* ============ 搜索条 ============ */
.search-band { padding: 10px 0 50px; background: var(--bg); }
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 15px;
  background: transparent;
}
.hot-words {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.hot-words a { margin: 0 8px; color: var(--primary); }
.hot-words a:hover { text-decoration: underline; }

/* ============ 通用 Section ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.section-sub { color: var(--text-muted); font-size: 15px; }

/* ============ 精选作品 ============ */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pick-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pick-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 9/14;
  background: #f5e6dd;
}
.pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.tag-new { background: var(--primary); }
.tag-hot { background: #ff7a3d; }
.tag-rec { background: #7a5cff; }
.pick-card h3 { font-size: 18px; margin-bottom: 8px; }
.pick-card p { font-size: 14px; color: var(--text-muted); }

/* ============ 功能特色 ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ============ 人气榜 + 引言 ============ */
.rank-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
}
.rank-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.rank-list li {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.rank-list li:last-child { border-bottom: none; }
.rank-no {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg-alt);
  color: var(--text-muted);
  margin-right: 16px;
}
.rank-1 { background: var(--primary); color: #fff; }
.rank-2 { background: #ff8a5c; color: #fff; }
.rank-3 { background: var(--accent); color: #fff; }
.rank-name { flex: 1; font-weight: 600; }
.rank-heat { font-size: 13px; color: var(--text-muted); }

.quote-card {
  background: linear-gradient(135deg, #7a5cff 0%, #4a3a9e 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.quote-mark { font-size: 60px; line-height: 1; opacity: .4; }
.quote-text { font-size: 22px; line-height: 1.6; margin: 10px 0 18px; font-weight: 600; }
.quote-from { font-size: 14px; opacity: .8; margin-bottom: 26px; }

/* ============ 更新手记 ============ */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.note-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.note-date {
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 1px;
}
.note-card h3 { font-size: 18px; margin: 10px 0 10px; line-height: 1.5; }
.note-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.note-link {
  font-size: 14px; font-weight: 600; color: var(--primary);
}
.note-link:hover { text-decoration: underline; }

/* ============ 关于我们 ============ */
.about {
  background: var(--dark);
  color: #fff;
  padding: 80px 0 0;
  margin-top: 40px;
}
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}
.about-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  margin-top: 10px;
}
.about-right p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--accent);
}

.cta-band { padding-bottom: 60px; }
.cta-inner {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a5c 100%);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(255,90,95,0.3);
}
.cta-icon { width: 64px; height: 64px; border-radius: 16px; }
.cta-text { flex: 1; }
.cta-text h3 { font-size: 22px; margin-bottom: 4px; color: #fff; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 14px; }

/* ============ 页脚 ============ */
.site-footer {
  background: var(--dark-2);
  padding: 30px 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a:hover { color: #fff; }

/* ============ 浮动下载按钮 ============ */
.float-download {
  position: fixed;
  right: 20px; bottom: 24px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #ff8a5c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(255,90,95,0.45);
  z-index: 40;
  display: none;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 230px; }
  .pick-grid, .feature-grid, .note-grid { grid-template-columns: 1fr; }
  .rank-wrap, .about-wrap { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-download { display: none; }
  .float-download { display: inline-flex; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}
