/* 米焙品牌官网样式。主色取自 App（#fe4b54） */
:root {
  --brand: #fe4b54;
  --brand-dark: #e23a43;
  --brand-soft: #fff1f1;
  --cream: #fbf7f2;
  --text: #1f1f1f;
  --text-2: #5c5c5c;
  --text-3: #9a9a9a;
  --line: #ece7e1;
  --card: #fff;
  --max: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--card);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 24px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #fff; color: var(--brand-dark); }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand img { height: 34px; width: auto; }
.links { display: flex; gap: 32px; margin-right: auto; font-size: 15px; color: var(--text-2); }
.links a:hover { color: var(--brand); }

/* 首屏 */
.hero { background: linear-gradient(180deg, var(--cream), #fff); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: .02em; }
.lead { margin: 24px 0 32px; max-width: 34em; color: var(--text-2); font-size: 17px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { margin: 20px 0 0; color: var(--text-3); font-size: 14px; }
.hint a { color: var(--brand); }

.phone { border-radius: 36px; padding: 10px; background: #1d1d1f; box-shadow: 0 30px 60px -20px rgba(80, 40, 20, .35); }
.phone img { width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; border-radius: 27px; }
.phones { position: relative; height: 560px; }
.phones .phone { position: absolute; width: 250px; }
.phones .front { right: 18%; top: 0; z-index: 2; }
.phones .back { right: 0; top: 64px; transform: rotate(6deg); opacity: .96; }

/* 通用区块 */
.section { padding: 96px 0; }
.section.alt { background: var(--cream); }
.title { text-align: center; font-size: clamp(28px, 3.4vw, 38px); }
.title.left { text-align: left; }
.sub { margin: 12px 0 48px; text-align: center; color: var(--text-2); font-size: 17px; }

/* 特色 */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.feature h3 { margin: 18px 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* 专辑墙 */
.albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; }
.albums figure { margin: 0; }
.albums img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; transition: transform .3s; }
.albums figure:hover img { transform: scale(1.02); }
.albums figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* 学习方式 */
.split { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: center; justify-content: center; max-width: 900px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--text-2); }

/* 会员 */
.vip { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 56px; border-radius: 28px; background: linear-gradient(120deg, var(--brand), #ff7a5c); color: #fff; }
.vip h2 { font-size: 32px; }
.vip p { margin: 12px 0 0; max-width: 36em; font-size: 17px; }
.vip .muted { opacity: .8; font-size: 14px; }

/* 下载 */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dl { display: flex; flex-direction: column; padding: 28px 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
a.dl:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.dl h3 { font-size: 20px; }
.dl p { margin: 6px 0 20px; color: var(--text-2); font-size: 15px; }
.go, .stores a { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 15px; }
.stores { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.stores a:hover { color: var(--brand-dark); }
.dl.soon .go { color: var(--text-3); }
.coming { list-style: none; margin: -12px 0 20px; padding: 0; font-size: 15px; font-weight: 600; }
.coming li { padding: 3px 0 3px 16px; position: relative; }
.coming li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); }
.dl.qr { flex-direction: row; align-items: center; gap: 14px; padding: 20px; }
.dl.qr img { width: 96px; height: 96px; flex: none; }
.dl.qr p { margin: 0; color: var(--text); font-weight: 600; white-space: nowrap; }
.dl.qr small { color: var(--text-3); font-weight: 400; }

.web { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 20px; padding: 32px; border-radius: 20px; background: var(--cream); }
.web h3 { font-size: 20px; }
.web p { margin: 6px 0 0; color: var(--text-2); }

/* 页脚 */
.foot { padding: 48px 0 40px; background: #1d1b1a; color: #a9a29c; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand b { display: block; color: #fff; font-size: 17px; }
.foot-brand span { font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 28px; }
.foot-links a:hover, .legal a:hover { color: #fff; }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #34302d; font-size: 13px; }
.legal p { margin: 0; }

/* 平板 */
@media (max-width: 960px) {
  .features, .downloads { grid-template-columns: repeat(2, 1fr); }
  .albums { grid-template-columns: repeat(3, 1fr); }
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; }
  .phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* 手机 */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav-in { justify-content: space-between; height: 56px; }
  .hero-in { padding-top: 32px; padding-bottom: 40px; gap: 32px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1; justify-content: center; padding: 0 12px; }
  .phones { height: 420px; }
  .phones .phone { width: 190px; border-radius: 28px; padding: 7px; }
  .phones .phone img { border-radius: 22px; }
  .phones .front { right: auto; left: 8%; }
  .section { padding: 64px 0; }
  .sub { margin-bottom: 32px; }
  .features, .downloads { grid-template-columns: 1fr; }
  .dl.qr { display: none; } /* 已经在手机上了，不需要扫码 */
  .albums { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .albums figcaption { font-size: 14px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .phone { width: 220px; margin: 0 auto; }
  .vip, .web { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .vip h2 { font-size: 26px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
