/* 大连雅马哈音乐中心 · 官网主题 yamaha（自包含，不依赖 Bootstrap） */
:root {
  --purple: #5a3a96;
  --purple-deep: #2f1a57;
  --purple-mid: #6e4cae;
  --purple-soft: #f1ecf9;
  --accent: #d4735e;          /* 柔和珊瑚，仅用于小面积点缀 */
  --sun: #f5c25b;
  --cream: #fdf8f1;
  --ink: #2a2438;
  --muted: #655e74;
  --line: #e8e1f2;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(74, 42, 130, .10);
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font: 16px/1.8 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--purple-deep); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--purple-deep); }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--purple-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--purple); background: var(--purple-soft); font-weight: 700; }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--purple-deep); margin: 5px auto; border-radius: 2px; }

/* 按钮：以柔和紫色为主，不使用大面积红色 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; cursor: pointer; font-size: 16px; font-family: inherit; line-height: 1.4; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 16px rgba(90,58,150,.22); }
.btn-primary:hover { background: var(--purple-deep); }
.btn-ghost { background: transparent; color: var(--purple); border-color: #cdbfe6; }
.btn-ghost:hover { background: var(--purple-soft); }
.btn-light { background: #fff; color: var(--purple-deep); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* 通用区块 */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section.alt { background: var(--cream); }
.section.tint { background: var(--purple-soft); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); }
.section-more { margin-top: 28px; text-align: center; }
.grid { display: grid; gap: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }

/* 内页头部 */
.page-hero { background: linear-gradient(135deg, var(--cream) 0%, var(--purple-soft) 100%); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: .3em; }
.page-hero .lead { color: var(--muted); max-width: 720px; margin: 0; font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a + a::before, .crumbs span + a::before { content: "/"; margin: 0 8px 0 4px; opacity: .5; }
.crumbs a:last-child { color: var(--purple); font-weight: 600; }

/* 富文本内容（后台编辑器输出） */
.prose { max-width: 820px; }
.prose.full { max-width: none; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 1.8em 0 .6em; padding-left: 14px; border-left: 5px solid var(--sun); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose blockquote { margin: 1em 0; padding: 12px 20px; border-left: 4px solid var(--purple-soft); background: var(--cream); border-radius: 0 12px 12px 0; color: var(--muted); }
.prose .grid { margin: 1.2em 0; }
.prose .card h3 { margin-top: 0; }

/* 时间线 */
.timeline { list-style: none; margin: 1em 0 1.6em; padding: 0 0 0 22px; border-left: 3px solid var(--purple-soft); }
.timeline li { position: relative; padding: 0 0 18px 18px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--purple-soft); }
.timeline b { color: var(--purple-deep); display: block; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--cream) 0%, var(--purple-soft) 100%); padding: clamp(36px, 6vw, 80px) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--purple-mid); }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--purple); }
.hero-media { position: relative; }
.hero-media img { border-radius: 28px 28px 110px 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -14px; bottom: 26px; background: var(--sun); color: var(--purple-deep); border-radius: 16px; padding: 10px 16px; font-weight: 800; box-shadow: var(--shadow); line-height: 1.3; }
.hero-badge small { display: block; font-weight: 600; font-size: 12px; }

/* 数据条 */
.stats { background: var(--purple-deep); color: #fff; padding: 28px 0; }
.stats .grid { grid-template-columns: repeat(5, 1fr); text-align: center; }
.stats b { display: block; font-size: clamp(24px, 3vw, 34px); color: var(--sun); line-height: 1.2; }
.stats span { font-size: 14px; opacity: .85; }
.stats-note { text-align: center; font-size: 12px; opacity: .6; margin: 12px 0 0; }

/* 听唱弹读创 */
.two { grid-template-columns: repeat(2, 1fr); }
.five { grid-template-columns: repeat(5, 1fr); }
.five .card { text-align: center; padding: 22px 14px; }
.five .glyph { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font-size: 28px; font-weight: 800; color: #fff; }
.five .card:nth-child(1) .glyph { background: var(--purple); }
.five .card:nth-child(2) .glyph { background: var(--accent); }
.five .card:nth-child(3) .glyph { background: #3a9d8e; }
.five .card:nth-child(4) .glyph { background: #d9a03a; }
.five .card:nth-child(5) .glyph { background: #4a82cf; }
.five h3 { font-size: 17px; margin-bottom: 4px; }
.five p { font-size: 14px; color: var(--muted); margin: 0; }

/* 课程 */
.courses { grid-template-columns: repeat(3, 1fr); }
.course { display: flex; flex-direction: column; gap: 8px; color: inherit; transition: transform .15s, box-shadow .15s; }
a.course:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(74,42,130,.16); }
.course .age { align-self: flex-start; background: var(--purple-soft); color: var(--purple); font-weight: 800; border-radius: 999px; padding: 2px 14px; font-size: 14px; }
.course h3, .course h2 { font-size: 19px; margin: 4px 0 0; }
.course p { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }
.course .more { font-size: 14px; font-weight: 700; color: var(--purple); margin-top: 6px; }

/* 对比表 */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--purple-deep); color: #fff; font-size: 16px; }
.compare thead th:last-child { background: var(--purple-mid); }
.compare tbody td:last-child { background: var(--purple-soft); font-weight: 600; color: var(--purple-deep); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* 教学特点 */
.features { grid-template-columns: repeat(3, 1fr); }
.features h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.features h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 14px; display: grid; place-items: center; flex: none; }
.features p { color: var(--muted); font-size: 15px; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "♪"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* 校区 */
.campuses { grid-template-columns: repeat(3, 1fr); }
.campus { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
a.campus:hover { text-decoration: none; }
.campus img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.campus .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.campus h3, .campus h2 { font-size: 20px; margin-bottom: 2px; }
.campus address { font-style: normal; color: var(--muted); font-size: 15px; }
.campus .tel { font-size: 21px; font-weight: 800; color: var(--purple); margin-top: auto; padding-top: 6px; }
.gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.gallery img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* 详情页两栏 */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.aside .card { margin-bottom: 18px; padding: 20px; }
.aside h3, .aside h2 { font-size: 17px; margin-bottom: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.aside li:last-child { border-bottom: 0; }
.aside .tel { font-weight: 800; color: var(--purple); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.meta .age { background: var(--purple-soft); color: var(--purple); border-radius: 999px; padding: 2px 14px; font-weight: 800; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.prevnext a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink); }
.prevnext small { display: block; color: var(--muted); }

/* 动态列表 */
.news-list { grid-template-columns: repeat(3, 1fr); }
.news-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
a.news-item:hover { text-decoration: none; transform: translateY(-3px); }
.news-item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-item .body { padding: 18px 20px 22px; }
.news-item h3, .news-item h2 { font-size: 18px; }
.news-item time { color: var(--muted); font-size: 13px; }
.news-item p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; background: var(--cream); border-radius: var(--radius); }
.pagination { display: flex; gap: 6px; list-style: none; justify-content: center; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: block; min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.pagination li.active span { background: var(--purple); border-color: var(--purple); color: #fff; }
.pagination li.disabled span { opacity: .45; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; list-style: none; position: relative; color: var(--purple-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { color: var(--muted); padding-bottom: 10px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* 预约表单 */
.booking { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.form-card { padding: 28px; }
.form-card h2 { font-size: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field label b { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfc6e0; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--purple-soft); border-color: var(--purple); }
.field textarea { min-height: 96px; resize: vertical; }
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 12px; display: none; font-size: 15px; }
.form-msg.ok { display: block; background: #e8f6ee; color: #1d6b3c; }
.form-msg.err { display: block; background: #fdeeea; color: #9b3a29; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-cards { display: grid; gap: 14px; }
.contact-cards .card { padding: 18px 20px; }
.contact-cards h3 { font-size: 18px; margin-bottom: 4px; }
.contact-cards a.tel { font-size: 22px; font-weight: 800; color: var(--purple); display: block; }
.contact-cards address { font-style: normal; color: var(--muted); font-size: 14px; }

/* 首页 CTA */
.cta-band { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; max-width: 600px; margin-inline: auto; }
.cta-band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* 友情链接 */
.friend { background: #f7f5fb; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.friend-head { text-align: center; position: relative; margin-bottom: 26px; }
.friend-head h2 { font-size: 24px; margin: 0; color: #4a4560; }
.friend-head .en { display: inline-block; position: relative; margin-top: 4px; padding: 0 0 10px; color: var(--purple); font-size: 15px; }
.friend-head .en::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 2px; margin-left: -35px; background: var(--purple); }
.friend-head::before, .friend-head::after { content: ""; position: absolute; top: 56%; width: min(26%, 280px); height: 1px; background: #e0dce8; }
.friend-head::before { right: calc(50% + 100px); }
.friend-head::after { left: calc(50% + 100px); }
.friend-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(24px, 5vw, 64px); list-style: none; margin: 0; padding: 0; }
.friend-list a, .friend-list span { font-size: 17px; color: #2a2438; }
.friend-list a { position: relative; transition: color .2s; }
.friend-list a:hover { color: var(--purple); text-decoration: none; }
.friend-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--purple); transform: scaleX(0); transition: transform .25s; }
.friend-list a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .friend-head::before, .friend-head::after { display: none; } .friend-list { gap: 8px 22px; } .friend-list a, .friend-list span { font-size: 15px; } }

/* 页脚 */
.site-footer .copy { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer .beian a { color: #cfc6e4; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .beian a:hover { color: var(--sun); }
.site-footer { background: #1d1236; color: #cfc6e4; padding: 40px 0 90px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4, .site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; font-size: 13px; opacity: .8; }

/* 手机底部悬浮咨询条 */
.dock { display: none; }

@media (max-width: 960px) {
  .hero .wrap, .split, .detail, .booking { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-badge { left: 10px; }
  .courses, .campuses, .features, .news-list { grid-template-columns: repeat(2, 1fr); }
  .five { grid-template-columns: repeat(3, 1fr); }
  .stats .grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 720px) {
  .courses, .campuses, .features, .news-list, .gallery, .prevnext, .two { grid-template-columns: 1fr; }
  .five { grid-template-columns: repeat(2, 1fr); }
  .compare th, .compare td { padding: 10px 12px; font-size: 14px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .dock .btn { flex: 1; padding: 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, a.course:hover, a.news-item:hover { transform: none; }
}
/* 动效与细节层（与 site.css 配套）。所有动画仅 transform/opacity，减弱动效偏好下自动关闭。 */

/* 页面进入 */
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main { animation: pagein .55s cubic-bezier(.2,.7,.2,1) both; }

/* 选中与滚动条 */
::selection { background: var(--sun); color: var(--purple-deep); }
html { scrollbar-color: #b9a6de transparent; scrollbar-width: thin; }

/* ---------- 滚动揭示（仅在 JS 启用且未开启减弱动效时隐藏） ---------- */
.anim [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); will-change: opacity, transform; }
.anim [data-reveal="zoom"] { transform: scale(.94); }
/* 过渡写在“显示态”上：揭示时带错落延迟；JS 在动画结束后清除 --d，不影响之后的 hover */
.anim [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), box-shadow .25s, border-color .25s; }
.anim [data-reveal].is-in.settled { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s, opacity .25s; }

/* 图片渐显 */
img { background: var(--purple-soft); }
.brand img, .brand picture, img.no-bg { background: none; }   /* Logo 为透明底，不能套占位底色 */
.img-fade { opacity: 0; transition: opacity .7s ease; }
.img-fade.is-loaded { opacity: 1; }

/* ---------- 头部：滚动收缩 + 进度条 ---------- */
.site-header { transition: box-shadow .25s, background .25s; }
.site-header .wrap { transition: min-height .25s; }
.brand img { transition: height .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(47,26,87,.10); }
.site-header.is-scrolled .wrap { min-height: 58px; }
.site-header.is-scrolled .brand img { height: 34px; }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 80; background: linear-gradient(90deg, var(--purple), var(--accent), var(--sun)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* 导航下划线动效 */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--purple); border-radius: 2px; transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { background: transparent; }

/* 回到顶部 */
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px rgba(47,26,87,.3); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--purple-deep); }
@media (max-width: 720px) { .to-top { bottom: 78px; right: 14px; width: 42px; height: 42px; } }

/* ---------- 按钮：流光 + 按压反馈 ---------- */
.btn { position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, background .2s, border-color .2s; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { left: 130%; transition: left .7s ease; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(90,58,150,.32); }

/* ---------- 标题装饰 ---------- */
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; border-radius: 3px; background: var(--sun); margin-right: 10px; vertical-align: middle; }
.cta-band .eyebrow::before, .contact .eyebrow::before { background: var(--sun); }
.section-head h2, .page-hero h1 { letter-spacing: .01em; }

/* ---------- Hero：装饰 + 视差层 ---------- */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero { border-radius: 0 0 44px 44px; }
.deco { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; transform: translate3d(0, calc(var(--py, 0) * 1px), 0); will-change: transform; }
.deco-1 { width: 340px; height: 340px; right: -90px; top: -90px; background: radial-gradient(circle at 30% 30%, #ffe19a, rgba(245,194,91,.15) 70%); }
.deco-2 { width: 200px; height: 200px; left: -60px; bottom: 30px; background: radial-gradient(circle at 30% 30%, #d9c8f5, rgba(110,76,174,.12) 70%); }
.deco-3 { width: 90px; height: 90px; left: 46%; top: 12%; background: radial-gradient(circle at 30% 30%, #f6c3b7, rgba(212,115,94,.12) 70%); }
.note { position: absolute; z-index: -1; font-size: 40px; color: var(--purple); opacity: .12; pointer-events: none; transform: translate3d(0, calc(var(--py, 0) * 1px), 0); user-select: none; }
.note-1 { left: 6%; top: 18%; font-size: 56px; }
.note-2 { right: 8%; bottom: 14%; font-size: 48px; }
.note-3 { left: 52%; bottom: 8%; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.anim .note { animation: floaty 6s ease-in-out infinite; }
.anim .note-2 { animation-delay: -2s; } .anim .note-3 { animation-delay: -4s; }
.hero-media { transform: translate3d(0, calc(var(--py, 0) * 1px), 0); }
.hero-badge { animation: none; transform: translate3d(0, calc(var(--py, 0) * -1.6px), 0); }
.hero-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }

/* 内页头部：大音符背景，视差漂移 */
.page-hero::before { content: "♪"; position: absolute; right: 6%; top: 50%; margin-top: -90px; font-size: 220px; line-height: 1; color: var(--purple); opacity: .06; z-index: -1; transform: translate3d(0, calc(var(--py, 0) * 1px), 0); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: radial-gradient(60px 22px at 50% 100%, #fff 98%, transparent) 0 0 / 120px 22px repeat-x; opacity: 0; }

/* 视差图：外圈圆角裁切 + 内部位移 */
.split img[data-parallax], .split img { transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .7s; }

/* ---------- 卡片细节 ---------- */
.card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.features .card:hover, .five .card:hover, .contact-cards .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(74,42,130,.16); border-color: #d6c8ee; }
.five .glyph { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.five .card:hover .glyph { transform: scale(1.12) rotate(-6deg); }
.course .age { transition: background .2s, color .2s; }
a.course:hover .age { background: var(--purple); color: #fff; }
.course .more { transition: transform .2s; display: inline-block; }
a.course:hover .more { transform: translateX(4px); }
.campus, .news-item { overflow: hidden; }
.campus img, .news-item img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.campus:hover img, a.news-item:hover img { transform: scale(1.06); }
.campus .tel { position: relative; }
.gallery img { transition: transform .35s, box-shadow .35s; cursor: zoom-in; }
.gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.stats b { font-variant-numeric: tabular-nums; }

/* 表格行悬停 */
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover th, .compare tbody tr:hover td:not(:last-child) { background: #faf7ff; }

/* FAQ 展开动效 */
@keyframes ansin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq details { transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: #cdbfe6; box-shadow: var(--shadow); }
.faq details[open] .ans { animation: ansin .35s ease both; }
.faq summary::after { transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* 表单：聚焦与反馈 */
.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px var(--purple-soft); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.form-msg.ok, .form-msg.err { animation: pop .3s ease both; }

/* 时间线圆点脉冲 */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90,58,150,.35); } 100% { box-shadow: 0 0 0 10px rgba(90,58,150,0); } }
.anim .timeline li.is-in::before { animation: pulse 1.8s ease-out 1; }

/* CTA 带流动渐变 */
@keyframes flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.anim .cta-band { background: linear-gradient(120deg, var(--purple), var(--purple-deep), #4a2a82, var(--purple)); background-size: 300% 300%; animation: flow 16s ease infinite; }

/* 页脚链接 */
.site-footer a { transition: color .2s, opacity .2s; }
.site-footer a:hover { color: var(--sun); text-decoration: none; }

/* 触屏与小屏：关闭视差与重动画 */
@media (max-width: 720px) {
  .deco, .note, .hero-media, .hero-badge { transform: none !important; }
  .deco-1 { width: 220px; height: 220px; right: -80px; top: -70px; }
  .note { display: none; }
  .hero { border-radius: 0 0 28px 28px; }
  .page-hero::before { font-size: 150px; margin-top: -60px; }
}
@media (hover: none) {
  a.campus:hover img, a.news-item:hover img, .gallery img:hover { transform: none; }
}

/* 减弱动效：全部关闭 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  main { animation: none; }
  .deco, .note, .hero-media, .hero-badge, .page-hero::before { transform: none !important; }
  .progress { display: none; }
}
