:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #d32f2f; /* 主红色 */
    --primary-contrast: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, .08);
    --shadow-lg: 0 12px 32px rgba(17, 24, 39, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    color: var(--text);
    background:
        linear-gradient(-8deg, #fff8f8 0%, #fff8f8 18%, #ffffff 18% 100%),
        linear-gradient(#ffffff, #ffffff);
    background-attachment: fixed;
}

/* subtle ornaments to reduce emptiness */
.bg-ornaments { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-ornaments .orn { position: absolute; filter: blur(40px); opacity: .12; animation: float 14s ease-in-out infinite; }
.bg-ornaments .o1 { width: 420px; height: 420px; left: -120px; top: 120px; background: radial-gradient(circle at 40% 40%, rgba(211,47,47,.28), rgba(211,47,47,0)); animation-delay: 0s; }
.bg-ornaments .o2 { width: 360px; height: 360px; right: -100px; top: 520px; background: radial-gradient(circle at 60% 40%, rgba(211,47,47,.22), rgba(211,47,47,0)); animation-delay: 4s; }

@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }

/* dotted texture overlay to reduce emptiness */
/* texture overlay removed */

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 920px; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; height: 56px; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .1px; font-size: 18px; }
.site-nav { margin-left: auto; display: flex; gap: 16px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.site-nav a:hover { color: var(--text); background: #f3f4f6; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; }

.hero { padding: 88px 0; background: transparent; border-bottom: 1px solid var(--border); }
.hero .container { position: relative; z-index: 1; }
/* hero mesh overlay removed */

.hero h1 { margin: 0 0 12px; font-size: 40px; letter-spacing: .1px; line-height: 1.15; }
.hero p { margin: 0 0 20px; color: var(--muted); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
/* lead form styles removed per user request */

.gallery { padding: 64px 0; }
.gallery h2 { margin: 0 0 16px; }

/* ticker */
.ticker { padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.ticker-track { overflow: hidden; display: flex; }
.ticker-row { display: inline-flex; gap: 24px; white-space: nowrap; animation: ticker 28s linear infinite; padding: 6px 0; }
.ticker-row span { color: #b11313; background: #fff5f5; border: 1px solid #ffe2e2; padding: 6px 10px; border-radius: 999px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.carousel { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: #ffffff; box-shadow: var(--shadow-md); }
.slides { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; user-select: none; }
.slide img { width: 100%; height: 360px; object-fit: cover; display: block; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); pointer-events: none; }
.slide-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.slide-caption h3 { margin: 0 0 6px; font-size: 20px; }
.slide-caption p { margin: 0; font-size: 14px; opacity: .95; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(17,24,39,.45); color: #fff; border: none; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; box-shadow: var(--shadow-sm); }
.car-arrow:hover { background: rgba(17,24,39,.6); }
.car-arrow.prev { left: 10px; }
.car-arrow.next { right: 10px; }
.indicators { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.indicators button { width: 9px; height: 9px; border-radius: 8px; border: none; background: rgba(255,255,255,.35); cursor: pointer; transition: width .2s ease, background .2s ease; }
.indicators button.active { background: #fff; width: 24px; }

.features { padding: 72px 0; }
.features:nth-of-type(odd) { background: #fffafa; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.checklist { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 22px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 30%, var(--primary) 31%); box-shadow: 0 0 0 2px rgba(211,47,47,.15); }

.credentials { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff7f7; }
.credentials h2 { margin: 0 0 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { background: #ffffff; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 14px; }

.stats { padding: 56px 0; }
.stats { background: #ffffff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); }

.testimonials { padding: 56px 0; }
.testimonials { background: #fffafa; }
.testimonial { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.testimonial span { color: var(--muted); font-size: 14px; }

.partners { padding: 40px 0; }
.partners { background: #ffffff; }
.hotline { padding: 40px 0; border-top: 1px solid var(--border); }
.hotline-bar { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.hotline-left strong { margin-right: 8px; }
.hotline-left .num { font-weight: 700; letter-spacing: .5px; }
.hotline-actions { margin-left: auto; }
.cities { display: grid; grid-template-columns: repeat(8, auto); gap: 10px; margin-top: 12px; }
.cities a { background: #fff; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.cities a:hover { background: #f9fafb; }
.partners h2 { margin: 0 0 16px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: center; }
.logos img { width: 100%; height: 42px; object-fit: contain; filter: grayscale(1) brightness(.85); opacity: .95; }

.contact { padding: 56px 0; }
.qr-card { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.qr-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.qr-note { color: var(--text); }

/* QR floating banner */
.qr-fab-banner { position: fixed; right: 14px; bottom: 86px; z-index: 70; }
.qr-fab-content { display: flex; align-items: center; gap: 10px; background: #ffffff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.qr-fab-img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.qr-fab-text .title { font-weight: 700; margin-bottom: 4px; }
.qr-fab-text .desc { color: var(--muted); margin-bottom: 6px; }
.qr-fab-close { margin-left: 4px; background: transparent; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }

/* MUET */
.muet { padding: 56px 0; background: #ffffff; }
.muet-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.muet-images img { width: 100%; height: auto; aspect-ratio: 14 / 28.5; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.muet-schools { padding: 56px 0; background: #fffafa; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.muet-schools .muted { color: var(--muted); margin-top: -6px; margin-bottom: 12px; }
/* transcripts */
.transcripts { padding: 56px 0; background: #ffffff; }
.transcripts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.transcripts-grid .ts-thumb { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); cursor: zoom-in; box-shadow: var(--shadow-sm); }
.ts-modal { position: fixed; inset: 0; display: none; }
.ts-modal.show { display: block; }
.ts-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.ts-dialog { position: relative; width: min(96%, 980px); margin: 60px auto 0; }
.ts-dialog img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.ts-close { position: absolute; top: -10px; right: -10px; background: #ffffff; border: 1px solid var(--border); border-radius: 999px; width: 28px; height: 28px; cursor: pointer; box-shadow: var(--shadow-sm); }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); }
.site-footer .container { display: flex; align-items: center; gap: 16px; }
.site-footer .footer-links { margin-left: auto; display: flex; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.btn { background: linear-gradient(#ffffff, #ffffff); color: var(--text); border: 1px solid var(--border); padding: 11px 16px; border-radius: 12px; cursor: pointer; display: inline-block; text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .1s ease, background .2s ease; }
.btn:hover { background: linear-gradient(#ffffff, #f9fafb); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-contrast); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.05); }

/* Headings and section titles */
h2 { font-size: 26px; line-height: 1.25; margin: 0 0 18px; letter-spacing: .2px; }
h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 8px; background: linear-gradient(90deg, var(--primary), rgba(211,47,47,.25)); border-radius: 2px; }
p { line-height: 1.7; }

/* Header shadow on scroll */
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(17,24,39,.08); }

/* CTA Banner */
.cta-banner { padding: 28px 0; background: radial-gradient(600px 220px at 10% 20%, rgba(255,255,255,.18), transparent 50%), linear-gradient(90deg, #d32f2f, #e04848); color: #fff; margin: 24px 0 0; }
.cta-banner__inner { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.cta-banner__text h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: .2px; }
.cta-banner__text p { margin: 0; color: rgba(255,255,255,.9); }
.cta-banner .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); border-radius: 999px; padding: 10px 18px; }
.cta-banner .btn:hover { background: rgba(255,255,255,.18); }
.cta-banner .btn.primary { background: #fff; color: #b11313; border-color: transparent; }

/* floating consult bar */
.floating-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 10px 0; margin-top: 20px; }
.floating-bar .container { display: flex; align-items: center; gap: 12px; }
.floating-bar__label { color: var(--text); }
.floating-bar__actions { margin-left: auto; }

/* sticky consult button for mobile */
.fab-consult { position: fixed; right: 14px; bottom: 86px; z-index: 60; display: none; }
.fab-consult a { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 16px; box-shadow: var(--shadow-lg); }

.qr-fab { position: fixed; right: 14px; bottom: 148px; z-index: 60; }
.qr-fab button { background: #ffffff; border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 10px 12px; box-shadow: var(--shadow-lg); cursor: pointer; }

/* removed modal styles */

/* responsive */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; gap: 14px; }
    .slide img { height: 240px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logos { grid-template-columns: repeat(3, 1fr); }
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; position: absolute; right: 16px; top: 56px; background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; flex-direction: column; box-shadow: var(--shadow-md); }
    .site-nav.open { display: flex; }
    .hero h1 { font-size: 28px; }
    .cta-banner__inner { flex-direction: column; align-items: flex-start; }
    .lead-form { grid-template-columns: 1fr; }
    .lead-form.inline { grid-template-columns: 1fr; }
    .cities { grid-template-columns: repeat(4, auto); }
    .fab-consult { display: block; }
    .qr-fab-banner { display: block; }
    .transcripts-grid { grid-template-columns: 1fr; }
    .muet-images { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .muet-intro { grid-template-columns: 1fr; }
}

/* reveal animations */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


