/* =========================================================
   同安不二美术 · 设计系统
   温暖手绘插画风 · 2026
   ========================================================= */

:root {
  /* 主色 */
  --coral: #ff7a59;
  --coral-deep: #f25c3d;
  --sun: #ffc93c;
  --sky: #6ec6e8;
  --mint: #8fd8b9;
  --grape: #b69cff;

  /* 中性 */
  --cream: #fff8f0;
  --cream-2: #fdeede;
  --ink: #2b2620;
  --ink-soft: #6b6258;
  --line: #efe2d2;

  /* 形状 & 阴影 */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 6px 18px rgba(43, 38, 32, .06);
  --shadow-md: 0 16px 40px rgba(43, 38, 32, .10);
  --shadow-lg: 0 28px 70px rgba(242, 92, 61, .18);

  --maxw: 1180px;
  --font-head: "ZCOOL KuaiLe", "Baloo 2", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸纹噪点背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 201, 60, .12), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(110, 198, 232, .12), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(143, 216, 185, .12), transparent 45%);
}

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

h1, h2, h3, .font-head { font-family: var(--font-head); font-weight: 400; letter-spacing: .5px; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; position: relative; z-index: 1; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.brand__logo {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  display: grid; place-items: center; color: #fff; font-size: 22px;
  box-shadow: var(--shadow-sm); transform: rotate(-4deg);
}
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 500; transition: .25s;
}
.nav__links a:hover { color: var(--coral-deep); background: var(--cream-2); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700;
  border: 0; cursor: pointer; font-size: 15px; transition: transform .18s, box-shadow .25s, background .25s;
  font-family: var(--font-body);
}
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); }
.btn-ghost { background: #fff; color: var(--coral-deep); border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--coral); }
.btn-sun { background: linear-gradient(135deg, var(--sun), #ffb01f); color: var(--ink); box-shadow: var(--shadow-md); }
.btn-sun:hover { transform: translateY(-3px) scale(1.03); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); color: var(--coral-deep);
  background: var(--cream-2); padding: 6px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 16px;
}
.section__title { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.2; margin-bottom: 14px; }
.section__sub { color: var(--ink-soft); max-width: 620px; margin-bottom: 44px; font-size: 16px; }
.center { text-align: center; }
.center .section__sub { margin-inline: auto; }

/* ---------------- 装饰形状 ---------------- */
.deco { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.blob { border-radius: 42% 58% 63% 37% / 42% 38% 62% 58%; filter: blur(.3px); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.spin-slow { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(34px, 6vw, 60px); line-height: 1.15; margin-bottom: 20px; }
.hero__title .hl { color: var(--coral-deep); position: relative; white-space: nowrap; }
.hero__title .hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 14px;
  background: var(--sun); opacity: .45; border-radius: 8px; z-index: -1; transform: rotate(-1.5deg);
}
.hero__lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 28px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 40px; }
.hero__stats div { }
.hero__stats b { font-family: var(--font-head); font-size: 30px; color: var(--coral-deep); display: block; }
.hero__stats span { color: var(--ink-soft); font-size: 14px; }

.hero__art {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--sky), var(--mint));
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; place-items: center;
}
.hero__art .paint { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .85; }
.hero__badge {
  position: absolute; background: #fff; padding: 10px 16px; border-radius: 16px;
  box-shadow: var(--shadow-md); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px;
}

/* ---------------- Bento 卡片 ---------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature { grid-column: span 3; }
.feature .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 16px; overflow: hidden;
}
.feature .ico--img { width: 100%; aspect-ratio: 16/10; height: auto; border-radius: var(--r-md); font-size: 0; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14.5px; }

/* 课程卡 */
.course { grid-column: span 6; display: flex; gap: 20px; align-items: center; }
.course__cover {
  width: 120px; height: 120px; border-radius: var(--r-md); flex: none; display: grid; place-items: center;
  font-size: 48px; color: #fff; overflow: hidden;
}
.course__cover:not(:empty) { /* 有 emoji 内容时保持原样式 */ }
.course h3 { font-size: 21px; margin-bottom: 6px; }
.course .age { display: inline-block; font-size: 12px; color: var(--coral-deep); background: var(--cream-2); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.course p { color: var(--ink-soft); font-size: 14px; }
.course ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.course ul li { font-size: 12.5px; background: var(--cream); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; color: var(--ink-soft); }

/* 名师卡 */
.teacher { grid-column: span 3; text-align: center; }
.teacher__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  font-size: 40px; color: #fff; box-shadow: var(--shadow-sm);
}
.teacher h3 { font-size: 19px; }
.teacher .role { color: var(--coral-deep); font-size: 13px; margin-bottom: 8px; }
.teacher p { color: var(--ink-soft); font-size: 13.5px; }

/* 作品网格 */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work { border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.work:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-md); }
.work__img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 54px; color: #fff; }
.work__cap { padding: 14px 16px; }
.work__cap b { font-size: 15px; }
.work__cap span { color: var(--ink-soft); font-size: 12.5px; }

/* 资讯卡 */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news .card { padding: 0; overflow: hidden; }
.news__img { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 46px; color: #fff; }
.news__body { padding: 18px 20px 22px; }
.news__date { font-size: 12.5px; color: var(--coral-deep); font-weight: 700; }
.news__body h3 { font-size: 18px; margin: 6px 0 8px; }
.news__body p { color: var(--ink-soft); font-size: 14px; }

/* 口碑 */
.quote { grid-column: span 4; }
.quote .stars { color: var(--sun); letter-spacing: 2px; margin-bottom: 10px; }
.quote p { font-size: 15px; }
.quote .who { margin-top: 14px; font-weight: 700; color: var(--coral-deep); font-size: 14px; }

/* 关于时间线 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.milestone { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.milestone b { font-family: var(--font-head); color: var(--coral-deep); font-size: 20px; min-width: 70px; }
.philo { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.philo .card { padding: 0; overflow: hidden; }
.phil-card { padding: 0; overflow: hidden; }
.phil__img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 44px; color: #fff; }
.phil-card h3 { padding: 0 20px; }
.phil-card p { padding: 0 20px 22px; }

/* 联系 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.info-card { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border: 0; }
.info-row .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.info-row b { display: block; font-size: 14px; color: var(--ink-soft); }
.info-row span { font-size: 16px; font-weight: 600; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; background: linear-gradient(135deg, var(--mint), var(--sky)); display: grid; place-items: center; color: #fff; font-size: 18px; }

/* 表单 */
.form { display: grid; gap: 16px; }
.form label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: 15px; background: var(--cream); transition: border .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,89,.12); }

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  border-radius: var(--r-xl); padding: 56px 40px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.cta-band p { opacity: .92; margin-bottom: 26px; max-width: 540px; margin-inline: auto; }

/* 页脚 */
.footer { background: var(--ink); color: #e9e2d8; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-family: var(--font-head); font-size: 17px; margin-bottom: 14px; }
.footer a { color: #c9c0b4; font-size: 14px; display: block; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: var(--sun); }
.footer .brand { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 13px; color: #9a9186; text-align: center; }

/* 滚动揭示 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* 面包屑 */
.crumb { padding: 22px 0 0; font-size: 14px; color: var(--ink-soft); }
.crumb a:hover { color: var(--coral-deep); }

/* 页面头图 */
.pagehero { padding: 70px 0 30px; }
.pagehero h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 12px; }
.pagehero p { color: var(--ink-soft); max-width: 600px; }

/* ---------------- 单页锚点 & H5 ---------------- */
section[id], [id].section { scroll-margin-top: 82px; }
.about-story { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }

/* 移动端底部悬浮预约条 */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; text-align: center; padding: 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff;
  font-weight: 700; box-shadow: var(--shadow-lg); font-size: 15px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 440px; margin-inline: auto; }
  .feature { grid-column: span 6; }
  .course { grid-column: span 12; }
  .teacher { grid-column: span 6; }
  .works, .news { grid-template-columns: repeat(2, 1fr); }
  .quote { grid-column: span 6; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .philo { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav__cta { display: none; }
  .nav__links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line); gap: 4px; box-shadow: var(--shadow-md); }
  .nav__links a { padding: 13px 16px; font-size: 16px; border-radius: 14px; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .feature, .teacher, .works, .news, .quote { grid-column: span 12; }
  .hero__grid { gap: 28px; }
  .hero__art { max-width: 340px; margin-inline: auto; }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .hero__stats b { font-size: 26px; }
  .course { flex-direction: column; align-items: flex-start; text-align: left; }
  .course__cover { width: 88px; height: 88px; font-size: 36px; }
  .contact-grid { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .philo { grid-template-columns: 1fr; }
  .feature .ico--img { aspect-ratio: 16/9; }
  .mobile-cta { display: block; }
  .section { padding-bottom: 96px; } /* 给底部悬浮条留白 */
}

/* ---------------- 可点击卡片（进详情） ---------------- */
.work, .news-item { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.work:hover, .news-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ---------------- 详情页 ---------------- */
.detail { padding: 40px 0 80px; max-width: 820px; }
.detail__loading, .detail__missing { text-align: center; color: var(--ink-soft); padding: 60px 0; }
.detail__missing a { color: var(--coral-deep); font-weight: 700; }
.detail__back { display: inline-block; margin: 6px 0 22px; color: var(--coral-deep); font-weight: 700; }
.detail__back:hover { text-decoration: underline; }
.detail__card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.detail__cover { aspect-ratio: 16/9; display: grid; place-items: center; font-size: 64px; color: #fff; overflow: hidden; }
.detail__body { padding: 28px 30px 36px; }
.detail__meta { margin-bottom: 8px; }
.detail__date { display: inline-block; font-size: 13px; color: var(--coral-deep); font-weight: 700; background: var(--cream-2); padding: 4px 12px; border-radius: 999px; }
.detail__title { font-size: clamp(24px, 4vw, 36px); margin: 6px 0 10px; line-height: 1.25; }
.detail__summary { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.detail__text p { margin-bottom: 14px; line-height: 1.9; }

