/* ===================================================
   魔方音乐morefun 单页官网 样式
   深色底 + 白字 + 橙黄点缀，系统无衬线中文字体
   =================================================== */

:root {
  --bg: #141519;
  --bg-2: #1b1c21;
  --bg-3: #222329;
  --card: #1f2127;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f5f5f7;
  --text-2: #b9bbc4;
  --text-3: #8b8e99;
  --accent: #f5a623;
  --accent-2: #ffc04d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --radius: 18px;
  --max: 1140px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: #141519; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--max)); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 19, 22, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(18, 19, 22, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 148px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav-links a {
  position: relative;
  color: var(--text-2);
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 8px 0;
  transition: color .25s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 通用版式 ---------- */
.section { padding: 110px 0; position: relative; }
.section-about { background: var(--bg); }
.section-courses { background: var(--bg-2); }
.section-pricing { background: var(--bg); }
.section-stores { background: var(--bg-2); }
.section-why { background: var(--bg); }
.section-contact { background: var(--bg-2); }

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-desc { color: var(--text-2); margin-top: 14px; font-size: 16px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-desc { margin-inline: auto; }

/* ---------- 第1屏 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../img/store-hero.jpg");
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, .9) 0%, rgba(10, 10, 12, .68) 42%, rgba(10, 10, 12, .28) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20, 21, 25, 0) 32%, rgba(20, 21, 25, .35) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: .2em;
  margin-bottom: 22px;
}
.hero-eyebrow span { display: block; width: 34px; height: 2px; background: var(--accent); }
.hero-title {
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.04em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.hero-title span { color: var(--accent); display: inline-block; letter-spacing: -.05em; }
.hero-slogan {
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 700;
  margin-top: 22px;
  letter-spacing: .06em;
}
.hero-sub { color: var(--text-2); font-size: clamp(15px, 2vw, 19px); margin-top: 10px; letter-spacing: .08em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-tags li {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
  color: #e8e8ec;
  font-size: 13.5px;
  padding: 7px 15px;
  border-radius: 100px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 15px; font-weight: 700;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--accent); color: #17181c; box-shadow: 0 10px 28px rgba(245, 166, 35, .28); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 34px rgba(245, 166, 35, .38); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 32px;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
  transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 9px;
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 60% { transform: translate(-50%, 12px); opacity: .2; } }

/* ---------- 第2屏 我们是谁 ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.company-badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  font-size: 15.5px; font-weight: 600;
}
.company-badge svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about-body p { color: var(--text-2); margin-bottom: 16px; font-size: 16.5px; }
.about-body p:first-child { color: var(--text); font-size: 19px; font-weight: 600; }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-chips span {
  font-size: 13px; color: var(--accent);
  border: 1px solid rgba(245, 166, 35, .35);
  background: rgba(245, 166, 35, .08);
  padding: 6px 14px; border-radius: 100px;
}

/* ---------- 第3屏 课程科目 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 20px 30px;
  text-align: center;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, .5);
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.course-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245, 166, 35, .1);
}
.course-icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.course-card h3 { font-size: 18px; font-weight: 700; letter-spacing: .02em; }

/* ---------- 第4屏 课程与收费 ---------- */
.price-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: rgba(245, 166, 35, .35); }
.price-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, .35);
  background: rgba(245, 166, 35, .08);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 18px;
}
.price-card h3 { font-size: 25px; font-weight: 800; line-height: 1.35; }
.price-scope { color: var(--text-3); font-size: 13.5px; margin-top: 10px; }
.age { font-size: 15px; color: var(--text-2); font-weight: 500; }
.price-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 22px; }
.price-option {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.price-name { color: var(--text-2); font-size: 14px; }
.price-amount { color: var(--accent); font-size: 34px; font-weight: 800; line-height: 1.3; margin-top: 4px; }
.price-amount small { font-size: 18px; font-weight: 700; margin-right: 2px; }
.price-amount span { font-size: 14px; color: var(--text-3); font-weight: 500; }
.price-notes { border-top: 1px dashed var(--line-strong); padding-top: 18px; margin-top: auto; }
.price-notes li { color: var(--text-2); font-size: 13.5px; padding: 4px 0 4px 18px; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.adult-price { margin: 40px 0 24px; }
.adult-price .price-amount { font-size: 46px; }
.adult-note {
  margin-top: auto;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(245, 166, 35, .08);
  color: var(--accent);
  font-size: 14px; font-weight: 600;
}
.stages { margin-top: 54px; }
.stages-title { font-size: 21px; font-weight: 700; text-align: center; margin-bottom: 28px; }
.stage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage-list li {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 26px 72px;
  min-height: 108px;
  display: flex; flex-direction: column; justify-content: center;
}
.stage-list li:not(:last-child)::after {
  content: "→";
  position: absolute; right: -16px; top: 50%;
  transform: translate(50%, -50%);
  z-index: 2;
  color: var(--accent); font-size: 20px;
}
.stage-num {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 26px; font-weight: 800; opacity: .85;
}
.stage-list .period { color: var(--text-3); font-size: 13px; }
.stage-list strong { font-size: 18px; font-weight: 700; margin-top: 2px; }

/* ---------- 第5屏 门店环境 ---------- */
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.store-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.store-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.store-photo { height: 270px; overflow: hidden; background: var(--bg-3); }
.store-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.store-card:hover .store-photo img { transform: scale(1.05); }
.store-photo-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(245, 166, 35, .13), transparent 62%), var(--bg-3);
}
.store-photo-text svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.store-photo-text span { color: var(--text-2); font-size: 15px; letter-spacing: .04em; }
.store-info { padding: 26px 28px 30px; }
.store-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.info-row { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14.5px; margin-top: 9px; }
.info-row svg { width: 18px; height: 18px; flex: none; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-row a { color: var(--accent); font-weight: 600; }
.info-row a:hover { text-decoration: underline; }

/* ---------- 第6屏 为什么选我们 ---------- */
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.why-image { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.why-image img { width: 100%; height: 520px; object-fit: cover; }
.why-content .section-head { margin-bottom: 30px; }
.why-list { display: grid; gap: 14px; }
.why-item {
  display: flex; gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  transition: border-color .3s ease, transform .3s ease;
}
.why-item:hover { border-color: rgba(245, 166, 35, .35); transform: translateX(5px); }
.why-index { color: var(--accent); font-size: 22px; font-weight: 800; line-height: 1.4; flex: none; }
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.why-item p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 第7屏 联系与关注 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.contact-list { display: grid; gap: 16px; }
.contact-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 24px 28px;
}
.contact-item h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.contact-item p { color: var(--text-2); font-size: 14.5px; }
.contact-item a { display: inline-block; color: var(--accent); font-size: 18px; font-weight: 700; margin-top: 8px; }
.contact-item a:hover { text-decoration: underline; }
.qr-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-card img { width: 100%; max-width: 220px; margin: 0 auto; }
.qr-card p { color: #1a1a1a; font-weight: 800; font-size: 16px; margin-top: 14px; }
.qr-card span { color: #777; font-size: 13px; }

/* ---------- 第8屏 页脚 ---------- */
.site-footer { background: #0e0f12; border-top: 1px solid var(--line); padding: 56px 0 46px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand img { width: 168px; }
.footer-brand p { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.footer-meta { text-align: right; color: var(--text-3); font-size: 13.5px; line-height: 2; }
.footer-meta a:hover { color: var(--accent); }

/* ---------- 滚动显现动画 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===================================================
   响应式
   =================================================== */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .brand img { width: 126px; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { max-width: 520px; margin-inline: auto; }
  .why-image img { height: 380px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .container { width: min(100% - 36px, var(--max)); }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(18, 19, 22, .98);
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav-links.open { max-height: 420px; opacity: 1; }
  .nav-links a { padding: 13px 6px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--accent); }
  .section { padding: 84px 0; }
  .hero { min-height: 92svh; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .qr-card { max-width: 320px; margin-inline: auto; }
  .stage-list li:not(:last-child)::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(100% - 32px, var(--max)); }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 34px; }
  .hero { padding-top: calc(var(--header-h) + 46px); padding-bottom: 90px; }
  .hero-bg { background-position: 58% center; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 10, 12, .88), rgba(10, 10, 12, .58)),
                linear-gradient(0deg, var(--bg) 0%, transparent 45%);
  }
  .hero-title { font-size: clamp(38px, 12vw, 58px); }
  .hero-tags { gap: 8px; }
  .hero-tags li { font-size: 12px; padding: 6px 12px; }
  .hero-actions .btn { min-width: 132px; padding: 12px 22px; font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .company-badge { margin-top: 22px; }
  .about-body p { font-size: 15.5px; }
  .about-body p:first-child { font-size: 17px; }
  .course-grid { gap: 12px; }
  .course-card { padding: 28px 10px 22px; }
  .course-icon { width: 54px; height: 54px; margin-bottom: 14px; }
  .course-icon svg { width: 30px; height: 30px; }
  .course-card h3 { font-size: 15px; }
  .price-card { padding: 26px 22px; }
  .price-card h3 { font-size: 21px; }
  .price-options { gap: 10px; }
  .price-option { padding: 16px 14px; }
  .price-amount { font-size: 28px; }
  .adult-price .price-amount { font-size: 38px; }
  .stage-list { grid-template-columns: 1fr; }
  .why-item { padding: 20px; gap: 14px; }
  .why-image img { height: 300px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
