/* ===== algzt.com 前台样式（深色科技风） ===== */
:root {
  --bg: #07080f; --bg-2: #0b0d18; --surface: rgba(255,255,255,.04); --surface-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #eef0f8; --muted: #9aa0b8; --dim: #6b7090;
  --violet: #7c5cff; --cyan: #22d3ee; --pink: #f472b6;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 55%, #f472b6 100%);
  --radius: 18px; --radius-sm: 12px; --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1); --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ===== mouse glow effect ===== */
.mouse-glow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.mouse-glow-main { position: fixed; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.3) 0%, rgba(34, 211, 238, 0.15) 50%, transparent 100%); filter: blur(40px); pointer-events: none; }
.mouse-glow { position: fixed; width: 100px; height: 100px; margin: -50px 0 0 -50px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.4) 0%, rgba(34, 211, 238, 0.2) 60%, transparent 100%); filter: blur(20px); pointer-events: none; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(124,92,255,.45); }
.container { width: min(1200px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(860px, 100% - 48px); }
.center { text-align: center; margin-top: 48px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--violet); padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* progress bar */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ===== header ===== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .35s, border-color .35s, height .35s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(7,8,15,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); --header-h: 64px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-logo { height: 36px; width: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px var(--violet); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; color: var(--muted); font-size: 15px; border-radius: 10px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-contact { white-space: nowrap; }
#contact { scroll-margin-top: var(--header-h); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; place-items: center; cursor: pointer; }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* ===== buttons ===== */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 30px -10px rgba(124,92,255,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34,211,238,.7); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b0d18; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(255,255,255,.6); }
.btn-disabled { background: var(--surface-2); color: var(--dim); cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; gap: 8px; font-size: 14px; }
/* ===== animated background orbs ===== */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; animation: float 18s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 520px; height: 520px; background: #5b3dff; left: -140px; top: -160px; }
.orbs i:nth-child(2) { width: 440px; height: 440px; background: #0ea5c6; right: -120px; top: 10%; animation-duration: 22s; animation-delay: -6s; }
.orbs i:nth-child(3) { width: 380px; height: 380px; background: #c0367f; left: 35%; bottom: -220px; opacity: .35; animation-duration: 26s; animation-delay: -12s; }
@keyframes float { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,70px) scale(.95); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); }

/* ===== hero ===== */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-text { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; letter-spacing: .02em; margin-bottom: 20px; }
.hero h1 .grad { display: inline-block; }
.hero-sub { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-carousel { position: relative; z-index: 1; margin-top: 56px; }

/* ===== carousel (centered coverflow) ===== */
.carousel { --w: min(820px, 72vw); position: relative; height: calc(var(--w) * 9 / 16 + 64px); user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.carousel-track { position: absolute; inset: 0 0 64px; perspective: 1600px; }
.slide { position: absolute; left: 50%; top: 0; width: var(--w); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); transform: translateX(-50%) scale(.6); opacity: 0; pointer-events: none; transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease), box-shadow .8s; filter: brightness(.45) saturate(.7); -webkit-user-drag: none; }
.slide-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 6s linear; }
.slide.is-center { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; filter: none; pointer-events: auto; box-shadow: 0 30px 80px -24px rgba(124,92,255,.65), 0 0 0 1px rgba(255,255,255,.12); }
.slide.is-center .slide-img { transform: scale(1.06); }
.slide.is-prev, .slide.is-next { opacity: .85; z-index: 2; pointer-events: auto; cursor: pointer; }
.slide.is-prev { transform: translateX(calc(-50% - var(--w) * .58)) scale(.72) rotateY(18deg); }
.slide.is-next { transform: translateX(calc(-50% + var(--w) * .58)) scale(.72) rotateY(-18deg); }
.slide.is-far-prev { transform: translateX(calc(-50% - var(--w) * .95)) scale(.5); opacity: .3; z-index: 1; }
.slide.is-far-next { transform: translateX(calc(-50% + var(--w) * .95)) scale(.5); opacity: .3; z-index: 1; }
.slide-cap { position: absolute; inset: auto 0 0; padding: 48px 28px 22px; background: linear-gradient(transparent, rgba(5,6,12,.88)); display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(14px); transition: opacity .6s .2s, transform .6s .2s var(--ease); }
.slide-cap strong { font-size: clamp(16px, 2vw, 24px); }
.slide-cap em { font-style: normal; color: var(--muted); font-size: 14px; }
.slide.is-center .slide-cap { opacity: 1; transform: none; }
.slide-go { position: absolute; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s var(--ease), background .3s; }
.slide-go .ico { width: 20px; height: 20px; fill: currentColor; }
.slide.is-center .slide-go { opacity: 1; transform: none; }
.slide.is-center:hover .slide-go { background: var(--violet); transform: scale(1.1); }
.car-btn { position: absolute; top: calc((100% - 64px) / 2); z-index: 5; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(7,8,15,.6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.car-btn:hover { background: var(--violet); border-color: var(--violet); transform: scale(1.08); }
.car-btn.prev { left: max(16px, calc(50% - var(--w) / 2 - 24px)); }
.car-btn.next { right: max(16px, calc(50% - var(--w) / 2 - 24px)); }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line-2); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.dot.active { width: 32px; background: var(--grad); }
/* ===== sections & grids ===== */
.section { position: relative; padding: 100px 0; }
.section-tight { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(124,92,255,.05) 50%, transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head p { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== cards ===== */
.card { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.18), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,.45); box-shadow: 0 24px 60px -24px rgba(124,92,255,.55); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card-body { padding: 22px 24px 24px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.img-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: var(--grad); opacity: .35; }
.img-ph .ico { width: 40px; height: 40px; }

.feature { padding: 30px 26px; }
.feature-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; color: #fff; background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(34,211,238,.9)); box-shadow: 0 10px 26px -10px rgba(124,92,255,.9); transition: transform .5s var(--ease); }
.feature-ico .ico { width: 26px; height: 26px; }
.card:hover .feature-ico { transform: rotate(-8deg) scale(1.08); }

.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img, .card-media .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.price { position: absolute; right: 14px; top: 14px; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; background: rgba(7,8,15,.7); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { display: inline-block; padding: 2px 10px; font-size: 12px; border-radius: 99px; color: #c9bfff; background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.3); }
.course-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; }
.more .ico { transition: transform .3s var(--ease); }
.card:hover .more .ico { transform: translateX(4px); }

.case-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg-2); }
.case-card img, .case-card .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.case-overlay { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 35%, rgba(5,6,12,.92)); }
.case-overlay h3 { font-size: 19px; margin: 10px 0 0; transition: transform .5s var(--ease); }
.case-overlay p { color: var(--muted); font-size: 14px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s, margin .5s; }
.case-overlay .tag { align-self: flex-start; }
.case-card:hover img { transform: scale(1.08); filter: saturate(1.2); }
.case-card:hover .case-overlay p { max-height: 5em; opacity: 1; margin-top: 8px; }
.case-card.is-hidden { display: none; }
.case-card.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter { padding: 8px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; transition: all .3s; }
.filter:hover { color: var(--text); border-color: var(--cyan); }
.filter.active { color: #fff; background: var(--grad); border-color: transparent; }
/* ===== stats ===== */
.stats-band { padding: 20px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(10px); }
.stat { padding: 40px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 14px; }

/* ===== team ===== */
.team-photo { aspect-ratio: 1; overflow: hidden; }
.team-photo img, .team-photo .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: grayscale(.35); }
.team:hover .team-photo img { transform: scale(1.06); filter: none; }
.team .role { display: block; color: var(--cyan); font-size: 13px; margin: -4px 0 10px; }

/* ===== partners marquee ===== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-dup { display: flex; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { display: inline-grid; place-items: center; height: 72px; min-width: 180px; margin-right: 18px; padding: 0 28px; border-radius: var(--radius-sm); border: 1px solid #e5e7eb; background: #ffffff; color: var(--muted); font-weight: 600; font-size: 17px; white-space: nowrap; transition: color .3s, border-color .3s; }
.partner:hover { color: var(--text); border-color: var(--line-2); }
.partner img { height: 40px; width: 120px; object-fit: contain; filter: none; opacity: 1; transition: transform .3s, opacity .3s; }
.partner:hover img { transform: scale(1.05); opacity: 1; }

/* ===== CTA ===== */
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 28px; background: linear-gradient(135deg, #1d1446, #0b2a3a); border: 1px solid rgba(124,92,255,.35); }
.cta > :not(.orbs) { position: relative; z-index: 1; }
.cta .orbs i { opacity: .45; }
.cta h2 { font-size: clamp(24px, 3.2vw, 36px); }
.cta p { color: #c3c7dc; max-width: 560px; margin: 0 auto 28px; }

/* ===== inner page hero ===== */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 70px) 0 70px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .orbs i:nth-child(1) { width: 420px; height: 420px; }
.page-hero .orbs i:nth-child(2) { width: 360px; height: 360px; top: -30%; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,15,.4), var(--bg)); }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--cyan); }
.nf { min-height: 70vh; display: grid; align-items: center; border: 0; }
.nf h1 { font-size: clamp(80px, 14vw, 160px); margin: 0; }
.nf p { margin-bottom: 28px; }

/* ===== detail pages & prose ===== */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { padding: 28px; }
.side-card:hover { transform: none; }
.side-card dl { margin: 0 0 24px; }
.side-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.side-card dt { color: var(--dim); flex: none; }
.side-card dd { margin: 0; text-align: right; }
.prose { font-size: 16.5px; color: #d3d6e6; }
.prose h2 { font-size: 24px; color: var(--text); margin: 1.6em 0 .6em; padding-left: 14px; border-left: 3px solid var(--violet); }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 28px 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.prose figcaption { text-align: center; color: var(--dim); font-size: 13px; margin-top: 10px; }
.detail-cover { margin-top: 0 !important; }
.prose .tags { margin-bottom: 20px; }
/* ===== downloads ===== */
.dl-card { padding: 34px 28px 28px; display: flex; flex-direction: column; }
.dl-card p { flex: 1; margin-bottom: 24px; }
.dl-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--cyan); transition: transform .5s var(--ease), background .4s, color .4s; }
.dl-ico .ico { width: 32px; height: 32px; }
.dl-card:hover .dl-ico { transform: translateY(-4px); background: var(--grad); color: #fff; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dl-meta span { font-size: 12px; color: var(--muted); padding: 2px 10px; border-radius: 99px; background: var(--surface-2); }

/* ===== about ===== */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-intro h2 { font-size: clamp(26px, 3.2vw, 38px); border: 0; padding: 0; }
.about-media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-media img { width: 100%; }
.value { padding: 32px 28px; }
.value-no { display: block; font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--violet), var(--cyan), transparent); }
.timeline li { position: relative; width: 50%; padding: 0 40px 36px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 36px 40px; }
.timeline li::after { content: ""; position: absolute; top: 26px; right: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 0 6px rgba(34,211,238,.15); }
.timeline li:nth-child(even)::after { right: auto; left: -8px; }
.tl-card { padding: 22px 24px; }
.tl-year { display: inline-block; font-weight: 800; font-size: 20px; color: var(--cyan); margin-bottom: 6px; }
.honor { margin: 0; }
.honor img, .honor .img-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.honor figcaption { padding: 14px 18px; font-size: 14.5px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact { padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.contact .feature-ico { margin-bottom: 12px; }
.contact-k { color: var(--dim); font-size: 13px; }
.contact a:hover { color: var(--cyan); }
.contact-qr { width: 120px; height: 120px; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 6px; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--line); background: #05060b; padding: 64px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr auto; gap: 48px; }
.footer-brand p { color: var(--dim); font-size: 14px; margin-top: 16px; max-width: 340px; }
.footer h3 { font-size: 15px; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { margin-top: 4px; color: var(--dim); }
.footer-qr { text-align: center; font-size: 13px; color: var(--dim); }
.footer-qr img { width: 112px; height: 112px; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer-bottom a:hover { color: var(--muted); }

/* ===== scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== student accounts (round avatar, link out) ===== */
.accounts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.account-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 22px 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
a.account-card:hover { transform: translateY(-6px); border-color: rgba(244,114,182,.5); box-shadow: 0 24px 60px -24px rgba(244,114,182,.5); }
.account-avatar { width: 112px; height: 112px; flex: none; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid rgba(255,255,255,.12); box-shadow: 0 0 0 5px rgba(244,114,182,.12); transition: box-shadow .45s, border-color .45s, transform .6s var(--ease); }
a.account-card:hover .account-avatar { border-color: var(--pink); box-shadow: 0 0 0 6px rgba(244,114,182,.22), 0 12px 30px -10px rgba(244,114,182,.6); transform: scale(1.04); }
.account-initial { display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; background: var(--grad); }
/* The info block grows so every card's button lines up at the bottom of the row. */
.account-info { flex: 1; width: 100%; }
.account-card h3 { font-size: 17px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-fans { display: block; font-size: 13px; color: var(--pink); font-weight: 600; }
.account-card p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.account-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text); border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.account-go .ico { width: 14px; height: 14px; fill: currentColor; }
a.account-card:hover .account-go, a.account-card:focus-visible .account-go { background: var(--pink); border-color: transparent; color: #fff; }

/* ===== about video ===== */
.video-block { margin: 0; }
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Before playback the poster fills the frame (any aspect ratio); once playing, the whole video shows uncropped. */
.js .video-frame:not(.is-playing) video { object-fit: cover; }
.video-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(124,92,255,.85); backdrop-filter: blur(8px); box-shadow: 0 0 0 10px rgba(124,92,255,.18), 0 20px 50px -10px rgba(124,92,255,.8); transition: transform .3s var(--ease), background .3s; }
.video-play .ico { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.video-play[hidden] { display: none; }
.video-play:hover { transform: scale(1.08); background: var(--violet); }
.video-block figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.about-video .video-frame { border-radius: 24px; }

/* ===== testimonials (danmaku) ===== */
.danmaku { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.danmaku-row { overflow: hidden; }
.danmaku-track { display: flex; width: max-content; animation: danmaku 48s linear infinite; }
.danmaku-row-2 .danmaku-track { animation-duration: 62s; animation-delay: -21s; }
.danmaku-row-3 .danmaku-track { animation-duration: 54s; animation-delay: -37s; }
.danmaku:hover .danmaku-track { animation-play-state: paused; }
.danmaku-dup, .danmaku-fill { display: flex; }
@keyframes danmaku { to { transform: translateX(-50%); } }
.danmaku-bubble { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-right: 22px; padding: 6px 18px 6px 6px; border-radius: 99px; font-size: 14.5px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: background .3s, border-color .3s; }
.danmaku-bubble:hover { background: rgba(124,92,255,.18); border-color: rgba(124,92,255,.5); }
.danmaku-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.danmaku-initial { display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--grad); }
.danmaku-name { flex: none; font-weight: 600; color: var(--text); }
.danmaku-name em { font-style: normal; font-weight: 400; color: var(--dim); margin-left: 6px; font-size: .9em; }
.danmaku-text { color: #d3d6e6; max-width: 26em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .accounts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 900px) {
  .header-contact { padding: 8px 14px; font-size: 13px; }
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0; padding: 12px 24px 24px; margin: 0; background: rgba(7,8,15,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .header-cta { margin-left: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .accounts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 28px 40px; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: 0; right: auto; }
}
@media (max-width: 640px) {
  .container, .narrow { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team .card-body { padding: 14px 14px 16px; }
  .team h3 { font-size: 16px; }
  .team p { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .carousel { --w: 84vw; }
  .slide.is-prev { transform: translateX(calc(-50% - var(--w) * .8)) scale(.8); }
  .slide.is-next { transform: translateX(calc(-50% + var(--w) * .8)) scale(.8); }
  .car-btn { display: none; }
  .slide-cap { padding: 32px 16px 14px; }
  .slide-go { width: 40px; height: 40px; right: 14px; bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 52px 22px; }
  .case-overlay p { max-height: 5em; opacity: 1; margin-top: 8px; }
  .accounts-grid { gap: 14px; }
  .account-card { padding: 22px 12px 18px; }
  .account-avatar { width: 84px; height: 84px; margin-bottom: 12px; }
  .account-initial { font-size: 30px; }
  .account-card h3 { font-size: 15px; }
  .account-card p { font-size: 12.5px; }
  .account-go { padding: 6px 12px; font-size: 12px; }
  .video-play { width: 64px; height: 64px; }
  .danmaku { gap: 10px; }
  .danmaku-bubble { padding: 5px 14px 5px 5px; font-size: 13px; }
  .danmaku-avatar { width: 28px; height: 28px; }
  .danmaku-text { max-width: 16em; }
}
@media (hover: none) {
  .case-overlay p { max-height: 5em; opacity: 1; margin-top: 8px; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-dup { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  /* Danmaku becomes a static, wrapped list of every review once. */
  .danmaku { mask-image: none; -webkit-mask-image: none; }
  .danmaku-row { overflow: visible; }
  .danmaku-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 12px; padding: 0 16px; }
  .danmaku-dup, .danmaku-fill { display: none; }
  .danmaku-bubble { margin-right: 0; }
  .danmaku-text { max-width: none; white-space: normal; }
}
