*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --blue:#072F97;
  --blue-light:#0A8FD7;
  --blue-50:#E8F1FA;
  --blue-100:#C5DCF0;
  --dark:#012761;
  --text:#334155;
  --text2:#64748b;
  --text3:#94a3b8;
  --border:rgba(7,47,151,.12);
  --bg:#FAFBFB;
  --white:#ffffff;
  --orange:#FE214F;
  --orange-hover:#D91A40;
  --font:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  --hand:'Caveat',cursive;
  --mono:'JetBrains Mono',monospace;
}
html{scroll-padding-top:120px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:15px;line-height:1.7;position:relative;overflow-x:hidden;max-width:100%}
body::before{content:"";position:fixed;inset:0;background-image:
  linear-gradient(rgba(37,99,235,.04) 1px,transparent 1px),
  linear-gradient(90deg,rgba(37,99,235,.04) 1px,transparent 1px);
  background-size:24px 24px;pointer-events:none;z-index:0}
body>*{position:relative;z-index:1}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}
.container{max-width:1200px;margin:0 auto;padding:0 32px}

/* ===== HEADER ===== */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;height:60px;background:rgba(253,253,248,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:100%;max-width:1200px;margin:0 auto;padding:0 32px}
.logo{display:flex;align-items:center;gap:10px}
.logo-icon{height:28px;display:flex;align-items:center;flex-shrink:0}
.logo-icon img{height:100%;width:auto;object-fit:contain}
.auth-badge{display:inline-flex;align-items:center;padding:6px 16px;border-radius:20px;background:var(--blue);color:#fff;font-family:var(--hand);font-size:16px;font-weight:700;white-space:nowrap;border:none;margin-left:8px;box-shadow:0 2px 8px rgba(37,99,235,.3)}
.logo-text{font-weight:700;font-size:15px;color:var(--dark)}
.logo-text span{color:var(--blue)}
.nav{display:flex;align-items:center;gap:4px}
.nav a{padding:6px 16px;border-radius:8px;font-size:14px;font-weight:500;color:var(--text2);transition:all .15s}
.nav a:hover{color:var(--dark);background:var(--blue-50)}
.nav a.active{color:var(--blue);background:var(--blue-50)}
.header-btn{padding:7px 18px;border-radius:6px;font-size:13px;font-weight:600;color:#fff;background:var(--orange);transition:all .2s}
.header-btn:hover{background:var(--orange-hover);transform:translateY(-1px)}
.mobile-years{display:none}
.fan-menu{display:none}
.fan-menu.open{display:block}
.fan-overlay{display:none}
.fan-overlay.open{display:block}
@media(min-width:1025px){
  .mobile-toolbar{display:none}
  .hamburger-btn{display:none}
}

/* ===== CONTACT BANNER ===== */
.contact-banner{background:var(--blue-50);border-bottom:1px solid var(--blue-100);margin-top:60px}
.contact-banner-inner{max-width:1200px;margin:0 auto;padding:8px 32px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:var(--text2)}
.contact-banner-inner svg{color:var(--blue);flex-shrink:0}
.contact-banner-inner a{font-family:var(--mono);font-weight:700;color:var(--blue);text-decoration:none;letter-spacing:.5px}
.contact-banner-inner a:hover{text-decoration:underline}

/* ===== FOOTER CONTACT ===== */
.footer-contact{text-align:center;padding:20px 0;border-top:1px solid rgba(255,255,255,.08);margin-bottom:16px;font-size:13px;color:rgba(255,255,255,.6)}
.footer-contact svg{vertical-align:middle;margin-right:4px;color:var(--blue-light)}
.footer-contact a{font-family:var(--mono);font-weight:700;color:var(--blue-light);text-decoration:none;margin-left:4px}
.footer-contact a:hover{text-decoration:underline}

/* ===== YEAR BAR ===== */
.year-bar{position:sticky;top:60px;z-index:100;background:rgba(253,253,248,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.year-bar-inner{display:flex;align-items:center;gap:6px;max-width:1200px;margin:0 auto;padding:12px 32px;overflow-x:auto;scrollbar-width:none}
.year-bar-inner::-webkit-scrollbar{display:none}
.year-bar .label{font-family:var(--hand);font-size:15px;font-weight:600;color:var(--blue);flex-shrink:0;margin-right:8px}
.ypill{padding:5px 14px;border-radius:20px;font-size:13px;font-weight:600;color:var(--text3);background:transparent;border:1.5px dashed transparent;transition:all .15s;white-space:nowrap;flex-shrink:0;font-family:var(--mono)}
.ypill:hover{color:var(--dark);border-color:var(--border);background:var(--white)}
.ypill.active{color:#fff;background:var(--blue);border-style:solid;border-color:transparent}
.ypill.hot{color:var(--blue);border-color:var(--blue-100);background:var(--blue-50)}
.ypill.more{color:var(--blue);border-color:var(--blue-100);background:var(--blue-50);font-size:12px;font-family:var(--font)}

/* ===== HERO ===== */
.hero{padding:80px 0 64px;position:relative}
.hero-banner{background:var(--white);margin-bottom:0;display:flex;justify-content:center;align-items:center;position:relative;z-index:2}
.hero-banner img{max-width:100%;height:auto;display:block}
.mobile-banner{display:none;background:#A51612;padding:30px 18px 22px;position:relative;overflow:hidden;text-align:center}
.mb-sub{font-size:12px;color:rgba(255,255,255,.72);margin-bottom:4px;font-weight:500;letter-spacing:.5px}
.mb-title{font-size:clamp(22px,5vw,30px);font-weight:800;color:#fff;margin:0 0 10px;line-height:1.2}
.mb-yellow{display:inline-block;background:#E5BE74;color:#8A1211;font-size:12px;font-weight:700;padding:6px 14px;border-radius:4px;margin-bottom:16px;letter-spacing:1px}
.mb-cards{display:flex;gap:10px;justify-content:center}
.mb-card{background:#fff;border-radius:12px;padding:12px 6px;min-width:88px;text-align:center;flex:1}
.mb-num{font-size:clamp(20px,3.6vw,26px);font-weight:800;color:#A51612;line-height:1.2}
.mb-num span{font-size:12px;font-weight:600}
.mb-label{font-size:11px;color:#333;margin-top:4px;font-weight:600}
@media(max-width:768px){
  .hero-banner{background:#A51612;padding:0;margin-top:0}
  .hero-banner img{display:none}
  .hero-banner .mobile-banner{display:block}
}
.hero-grid{display:grid;grid-template-columns:1fr 300px;gap:64px;align-items:center}
.hero-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 6px;border-radius:20px;background:var(--blue-50);border:1px dashed var(--blue-100);font-size:12px;font-weight:600;color:var(--blue);margin-bottom:24px}
.hero-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--blue-light)}
.hero-title{font-size:clamp(28px,4.5vw,48px);font-weight:800;line-height:1.2;letter-spacing:-1px;color:var(--dark);margin-bottom:20px}
.hero-title em{font-style:normal;color:var(--blue)}
.hero-desc{font-size:16px;line-height:1.8;color:var(--text2);margin-bottom:36px;max-width:520px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:44px}
.btn-blue{padding:14px 32px;border-radius:4px;font-size:14px;font-weight:600;color:#fff;background:var(--blue);transition:all .2s;display:inline-block;text-align:center}
.btn-blue:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 4px 12px rgba(37,99,235,.2)}
.btn-outline{padding:14px 32px;border-radius:4px;font-size:14px;font-weight:600;color:var(--blue);background:var(--white);border:1.5px dashed var(--blue-100);transition:all .2s;display:inline-block;text-align:center}
.btn-outline:hover{border-color:var(--blue);background:var(--blue-50)}
.btn-orange{display:inline-flex;align-items:center;gap:8px;padding:14px 32px;background:var(--orange);color:#fff;border-radius:4px;font-weight:600;font-size:14px;transition:all .2s;display:inline-block;text-align:center}
.btn-orange:hover{background:var(--orange-hover);transform:translateY(-1px);box-shadow:0 4px 10px rgba(247,155,46,.30);color:#fff}
.hero-stats{display:flex;gap:40px}
.hero-stat strong{font-family:var(--mono);font-size:26px;font-weight:700;color:var(--dark);display:block;margin-bottom:2px}
.hero-stat strong em{font-style:normal;color:var(--blue)}
.hero-stat span{font-size:12px;color:var(--text3)}
.qr-card{background:var(--white);border-radius:4px;padding:32px;text-align:center;border:1.5px dashed var(--border);box-shadow:0 4px 24px rgba(30,58,95,.05)}
.qr-card img{width:180px;height:180px;border-radius:8px;margin:0 auto 16px;border:1px solid var(--border)}
.qr-card h4{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:6px}
.qr-card p{font-size:12px;color:var(--text3);line-height:1.6}

/* ===== SECTION COMMON ===== */
.section{padding:96px 0}
#years{background:rgba(239,246,255,.4)}
#archive{background:linear-gradient(180deg,var(--white) 0%,rgba(253,253,248,.8) 100%)}
#resources{background:rgba(239,246,255,.5)}
#guide{background:var(--white)}
.section-head{text-align:center;max-width:560px;margin:0 auto 56px}
.section-head .tag{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:2px;color:var(--blue);margin-bottom:10px}
.section-head h2{font-size:clamp(22px,3vw,32px);font-weight:800;line-height:1.3;color:var(--dark);margin-bottom:12px}
.section-head p{font-size:15px;color:var(--text2);line-height:1.8}

/* ===== STATS STRIP ===== */
.stats{background:var(--white);border-bottom:1px solid var(--border);padding:22px 0}
.stats-inner{display:flex;justify-content:center;gap:48px;flex-wrap:wrap}
.stats-inner div{font-size:13px;color:var(--text2);font-weight:500;display:flex;align-items:center;gap:6px}
.stats-inner svg{color:var(--blue);flex-shrink:0}

/* ===== ABOUT STATS (hero-style) ===== */
.about-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:36px 0}
.about-stat-card{background:var(--white);border:1px solid var(--border);border-top:3px solid var(--sc,var(--blue));border-radius:10px;padding:24px 18px 20px;text-align:center;transition:all .25s ease}
.about-stat-card:hover{box-shadow:0 8px 28px rgba(37,99,235,.08);transform:translateY(-3px)}
.about-stat-card .sc-icon{width:44px;height:44px;border-radius:10px;background:color-mix(in srgb,var(--sc,var(--blue)) 10%,transparent);color:var(--sc,var(--blue));display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.about-stat-card .sc-num{font-family:var(--mono);font-size:28px;font-weight:800;color:var(--sc,var(--blue));line-height:1;letter-spacing:-.5px}
.about-stat-card .sc-label{font-size:13px;color:var(--text2);margin-top:6px;font-weight:500}

/* ===== YEAR CARDS ===== */
.year-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.ycard{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;overflow:hidden;transition:all .2s;display:block}
.ycard:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 6px 20px rgba(37,99,235,.06);transform:translateY(-3px)}
.ycard.top{border:2px solid var(--blue);border-style:solid}
.ycard.top .ycard-bar{height:3px;background:linear-gradient(90deg,var(--blue),var(--blue-light))}
.ycard-bar{height:0}
.ycard-head{padding:24px 24px 14px;display:flex;align-items:flex-start;justify-content:space-between}
.ycard-year{font-family:var(--mono);font-size:36px;font-weight:700;color:var(--dark);line-height:1}
.ycard.top .ycard-year{color:var(--blue)}
.ycard-tag{padding:3px 10px;border-radius:12px;font-size:11px;font-weight:700}
.ycard-tag.new{color:var(--blue);background:var(--blue-50);border:1px solid var(--blue-100)}
.ycard-tag.hot{color:var(--blue);background:var(--blue-50)}
.ycard-tag.std{color:var(--text3);background:var(--bg)}
.ycard-body{padding:0 24px 20px}
.ycard-body h3{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:6px}
.ycard-body .desc{font-size:12px;color:var(--text3);line-height:1.6;margin-bottom:16px}
.ycard-pills{display:flex;flex-wrap:wrap;gap:8px}
.ycard-pills span{padding:4px 12px;background:var(--bg);border-radius:4px;font-size:11px;color:var(--text2);font-weight:500;border:1px solid var(--border)}
.ycard-foot{padding:14px 24px;background:var(--bg);border-top:1px dashed var(--border);display:flex;align-items:center;justify-content:space-between}
.ycard-foot .meta{font-size:12px;color:var(--text3)}
.ycard-foot .meta strong{color:var(--text);font-weight:600}
.ycard-foot .arrow{font-size:12px;font-weight:600;color:var(--blue)}

/* ===== INLINE CTA ===== */
.inline-cta{margin:48px 0;background:var(--white);border:1.5px dashed var(--blue-100);border-radius:4px;padding:32px 36px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.inline-cta h4{font-size:16px;font-weight:700;color:var(--dark);margin-bottom:4px}
.inline-cta p{font-size:13px;color:var(--text2);line-height:1.7}

/* ===== DETAIL CARDS (kept for homepage backward compat) ===== */
.dcard{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:32px;margin-bottom:20px;transition:all .2s;border-left:3px solid var(--border);box-shadow:0 1px 4px rgba(30,58,95,.03)}
.dcard:hover{border-color:var(--blue-100);border-left-color:var(--blue);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05)}
.dcard.top{border-left-color:var(--blue)}
.dcard-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.dcard-head h3{font-size:18px;font-weight:700;color:var(--dark)}
.dcard-badge{padding:4px 14px;border-radius:12px;font-size:12px;font-weight:700;color:#fff;background:var(--blue)}
.dcard-badge.new{background:linear-gradient(90deg,var(--blue),var(--blue-light))}

/* ===== ARCHIVE ===== */
.agrid{display:grid;grid-template-columns:repeat(7,1fr);gap:14px;overflow:hidden}
.acell{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:20px 10px;text-align:center;transition:all .2s;cursor:pointer;display:block}
.acell:hover{border-color:var(--blue);border-style:solid;box-shadow:0 4px 12px rgba(37,99,235,.08);transform:translateY(-2px)}
.acell .yr{font-family:var(--mono);font-size:17px;font-weight:700;color:var(--dark);display:block;margin-bottom:4px}
.acell .info{font-size:10px;color:var(--text3)}
.acell.latest{border-color:var(--blue);border-style:solid;background:var(--blue-50)}
.acell.latest .yr{color:var(--blue)}
.acell.latest::after{content:"NEW";display:block;font-size:9px;font-weight:700;color:var(--blue);margin-top:4px}
.acell.featured .yr{color:var(--blue)}
.acell.current{border-color:var(--orange);border-style:solid;background:rgba(247,155,46,.06)}
.acell.current .yr{color:var(--orange)}
.acell.current::after{content:"当前";display:block;font-size:9px;font-weight:700;color:var(--orange);margin-top:4px}

/* ===== RESOURCES ===== */
.rgrid{columns:2;column-gap:28px}
.rcard{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;overflow:hidden;transition:all .2s;position:relative;break-inside:avoid;margin-bottom:28px}
.rcard:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 6px 20px rgba(37,99,235,.06);transform:translateY(-3px)}
.rcard-img{width:100%;overflow:hidden;background:var(--blue-50);line-height:0}
.rcard-img img{max-width:100%;height:auto;display:block;margin:0 auto}
.rcard h3{font-size:15px;font-weight:700;color:var(--dark);margin:0;padding:20px 24px 8px}
.rcard p{font-size:13px;color:var(--text3);line-height:1.8;margin:0;padding:0 24px 20px}
.rcard .link{font-size:12px;font-weight:600;color:var(--blue);padding:0 24px 20px;display:inline-block}
.rcard-badge{position:absolute;top:12px;right:12px;background:var(--orange);color:#fff;font-size:11px;font-weight:600;padding:3px 10px;border-radius:3px;z-index:1}

/* ===== GUIDE ===== */
.ggrid{display:grid;grid-template-columns:1fr;gap:20px}
.gcard{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px;display:flex;gap:20px;transition:all .2s;cursor:pointer}
.gcard:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05);transform:translateY(-2px)}
.gcard-num{width:48px;height:48px;border-radius:8px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:700;font-size:15px;flex-shrink:0}
.gcard>div:not(.gcard-num){flex:1;min-width:0}
.gcard h3{font-size:15px;font-weight:700;color:var(--dark);margin:0;display:flex;align-items:center;justify-content:space-between}
.gcard-toggle{font-size:20px;font-weight:400;color:var(--text3);transition:transform .2s}
.gcard.open .gcard-toggle{transform:rotate(45deg)}
.gcard-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.gcard.open .gcard-body{max-height:500px}
.gcard p{font-size:12px;color:var(--text3);line-height:1.7;margin:12px 0 8px}
.gcard ul{list-style:none;padding:0;margin:0}
.gcard li{font-size:12px;color:var(--text);line-height:1.8;padding-left:14px;position:relative;margin-bottom:4px}
.gcard li::before{content:"";position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:50%;background:var(--blue)}
.gcard li strong{color:var(--dark);font-weight:600}

/* ===== CTA BANNER ===== */
.cta{background:var(--dark);padding:96px 0;position:relative;overflow:hidden}
.cta::before{content:"";position:absolute;inset:0;background-image:
  linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size:24px 24px;pointer-events:none}
.cta::after{content:"";position:absolute;width:400px;height:400px;border-radius:50%;background:rgba(37,99,235,.06);top:-100px;right:-50px}
.cta-grid{display:grid;grid-template-columns:1fr auto;gap:56px;align-items:center;position:relative;z-index:1}
.cta h2{font-size:clamp(22px,3vw,32px);font-weight:800;color:#fff;line-height:1.3;margin-bottom:16px}
.cta-desc{font-size:15px;color:rgba(255,255,255,.55);line-height:1.8;margin-bottom:32px}
.cta-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:36px;list-style:none}
.cta-checks li{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.8)}
.cta-checks svg{color:var(--blue-light);flex-shrink:0}
.cta-qr{background:var(--white);border-radius:4px;padding:28px;text-align:center;border:1.5px dashed rgba(37,99,235,.2)}
.cta-qr img{width:160px;height:160px;border-radius:8px;margin:0 auto 14px;border:1px solid var(--border)}
.cta-qr .t1{font-size:13px;font-weight:700;color:var(--dark);white-space:nowrap}
.cta-qr .t2{font-size:13px;font-weight:700;color:var(--dark);margin-top:2px;white-space:nowrap}

/* ===== EXAM INTRO ===== */
#about{background:var(--white)}
.intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:48px}
.intro-card{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--ic,var(--blue));border-radius:10px;padding:28px 24px 24px;transition:all .25s ease}
.intro-card:hover{border-color:var(--ic,var(--blue));box-shadow:0 8px 28px rgba(37,99,235,.08);transform:translateY(-3px)}
.intro-card .ic-icon-wrap{width:48px;height:48px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.intro-card h3{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:14px}
.intro-card ul{list-style:none;font-size:13px;color:var(--text);line-height:1.7}
.intro-card ul li{display:flex;align-items:flex-start;gap:8px;padding:5px 0}
.intro-card ul li::before{content:"";width:6px;height:6px;border-radius:2px;background:var(--ic,var(--blue-light));flex-shrink:0;margin-top:6px;transform:rotate(45deg)}
.award-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.award-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px 24px;text-align:center;transition:all .2s}
.award-card:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05);transform:translateY(-2px)}
.award-card .medal{font-size:32px;margin-bottom:12px}
.award-card h4{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:4px}
.award-card .en{font-size:11px;color:var(--blue);font-weight:600;margin-bottom:8px}
.award-card p{font-size:12px;color:var(--text3);line-height:1.7}

/* ===== FOOTER ===== */
.footer{background:#0f1b2d;color:rgba(255,255,255,.45);padding:64px 0 32px;position:relative}
.footer::before{content:"";position:absolute;inset:0;background-image:
  linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);
  background-size:24px 24px;pointer-events:none}
.footer>*{position:relative;z-index:1}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-brand .logo{margin-bottom:16px}
.footer-brand .logo .logo-icon img{border-radius:4px}
.footer-brand .logo .logo-text{color:#fff}
.footer-brand p{font-size:12px;line-height:1.8;max-width:260px}
.footer h4{font-size:12px;font-weight:700;color:#fff;margin-bottom:16px;text-transform:uppercase;letter-spacing:1px}
.footer ul{list-style:none}
.footer li{margin-bottom:8px}
.footer li a{font-size:12px;color:rgba(255,255,255,.4);transition:color .15s}
.footer li a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.06);padding-top:20px;display:flex;justify-content:space-between;align-items:center;font-size:11px}
.footer-bottom .domain{color:var(--blue-light);font-weight:600}

/* ===== FLOATING ===== */
.fab-group{position:fixed;bottom:24px;right:24px;z-index:2000;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.fab{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:24px;transition:all .2s;border:none;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);font-size:13px;font-weight:600;white-space:nowrap}
.fab:hover{transform:scale(1.05)}
.fab svg{flex-shrink:0}
.fab-wechat{background:#07c160;color:#fff}
.fab-blue{background:var(--blue);color:#fff}
.fab-top{background:var(--white);color:var(--text2);border:1px solid var(--border);display:none}
.fab-top.show{display:inline-flex}

/* ================================================================
   YEAR PAGE SPECIFIC STYLES
   ================================================================ */

/* ===== BREADCRUMB ===== */
.breadcrumb{background:var(--white);border-bottom:1px solid var(--border);padding:12px 0;margin-top:60px}
.breadcrumb-inner{font-size:13px;color:var(--text3);max-width:1200px;margin:0 auto;padding:0 32px}
.breadcrumb-inner a{color:var(--blue);font-weight:500;transition:color .15s}
.breadcrumb-inner a:hover{color:#1d4ed8}
.breadcrumb-inner .sep{margin:0 8px;color:var(--text3)}

/* ===== YEAR PAGE BANNER ===== */
.year-page-banner{max-width:1200px;margin:0 auto;padding:16px 0}
.year-page-banner img{width:100%;height:auto;border-radius:0;display:block}
.year-page-banner + .breadcrumb{margin-top:0}

/* ===== YEAR NAV (top/bottom prev/next) ===== */
.year-nav{background:var(--white);border-bottom:1px solid var(--border)}
.year-nav-inner{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;padding:10px 24px}
.year-nav-arrow{display:flex;align-items:center;gap:6px;padding:6px 16px;border-radius:8px;font-size:13px;font-weight:600;color:var(--blue);transition:all .15s}
.year-nav-arrow:hover{background:var(--blue-50)}
.year-nav-arrow.disabled{color:var(--text3);pointer-events:none;opacity:.4}
.year-nav-pills{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.year-nav-pills::-webkit-scrollbar{display:none}

/* ===== YEAR HERO (smaller than homepage) ===== */
.year-hero{padding:56px 0 48px;background:linear-gradient(180deg,rgba(219,234,254,.3) 0%,var(--bg) 100%);position:relative}
.year-hero-grid{display:grid;grid-template-columns:1fr 260px;gap:48px;align-items:center}
.year-hero-num{font-family:var(--mono);font-size:clamp(48px,8vw,80px);font-weight:800;color:var(--blue);line-height:1;margin-bottom:8px;letter-spacing:-2px}
.year-hero-title{font-size:clamp(22px,3vw,32px);font-weight:800;color:var(--dark);margin-bottom:12px}
.year-hero-desc{font-size:15px;color:var(--text2);line-height:1.8;margin-bottom:28px;max-width:540px}
.year-hero-actions{display:flex;gap:12px;flex-wrap:wrap}

/* ===== EXAM OVERVIEW (3-col on year pages) ===== */
.overview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.overview-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px 24px}
.overview-card h3{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.overview-card h3 .oc-icon{width:28px;height:28px;border-radius:4px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}
.overview-list{list-style:none}
.overview-list li{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px dashed var(--border);font-size:13px;color:var(--text)}
.overview-list li:last-child{border-bottom:none}
.overview-list .lbl{color:var(--text2)}
.overview-list .val{font-weight:600;color:var(--dark)}
.overview-list .val.blue{color:var(--blue)}
.overview-bar{height:6px;border-radius:3px;background:var(--bg);margin-top:4px;overflow:hidden}
.overview-bar-fill{height:100%;border-radius:3px;background:var(--blue)}
.cutoff-item{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px dashed var(--border)}
.cutoff-item:last-child{border-bottom:none}
.cutoff-name{font-size:13px;font-weight:600;color:var(--dark)}
.cutoff-en{font-size:11px;color:var(--blue);font-weight:500}
.cutoff-score{font-family:var(--mono);font-size:20px;font-weight:700;color:var(--blue)}

/* ===== PROBLEM CARDS ===== */
.problems-section{background:rgba(239,246,255,.4)}
.problem-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px 32px;margin-bottom:20px;border-left:3px solid var(--blue-100);transition:all .2s}
.problem-card:hover{border-left-color:var(--blue);box-shadow:0 4px 16px rgba(37,99,235,.05)}
.problem-top{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.problem-num{font-family:var(--mono);font-size:12px;font-weight:700;color:#fff;background:var(--blue);padding:3px 10px;border-radius:4px}
.problem-diff{font-size:11px;font-weight:700;padding:3px 10px;border-radius:4px}
.problem-diff.easy{color:#16a34a;background:#f0fdf4;border:1px dashed #bbf7d0}
.problem-diff.med{color:var(--blue);background:var(--blue-50);border:1px dashed var(--blue-100)}
.problem-diff.hard{color:#dc2626;background:#fef2f2;border:1px dashed #fecaca}
.problem-concept{font-size:11px;font-weight:600;padding:3px 10px;border-radius:4px;color:var(--text2);background:var(--bg);border:1px dashed var(--border)}
.problem-question{font-size:15px;color:var(--text);line-height:1.8;margin-bottom:16px}
.problem-options{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}
.problem-option{padding:10px 12px;border-radius:4px;font-size:13px;font-weight:500;color:var(--text);background:var(--bg);border:1px dashed var(--border);text-align:center;transition:all .15s;cursor:default}
.problem-option.correct{color:#16a34a;background:#f0fdf4;border-color:#bbf7d0;border-style:solid;font-weight:700}
.problem-toggle{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;border-radius:4px;font-size:13px;font-weight:600;color:var(--blue);background:var(--blue-50);border:1px dashed var(--blue-100);cursor:pointer;transition:all .15s}
.problem-toggle:hover{background:var(--blue-100)}
.problem-toggle svg{transition:transform .2s}
.problem-toggle.open svg{transform:rotate(180deg)}
.problem-solution{max-height:0;overflow:hidden;transition:max-height .4s ease,opacity .3s ease;opacity:0}
.problem-solution.open{max-height:600px;opacity:1;margin-top:16px}
.solution-steps{background:var(--blue-50);border-radius:4px;padding:20px 24px;margin-bottom:12px;border:1px dashed var(--blue-100)}
.solution-steps h4{font-size:13px;font-weight:700;color:var(--blue);margin-bottom:12px}
.solution-step{display:flex;gap:10px;padding:6px 0;font-size:13px;color:var(--text);line-height:1.7}
.solution-step .step-num{font-family:var(--mono);font-size:11px;font-weight:700;color:var(--white);background:var(--blue-light);width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.solution-answer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.solution-answer .ans{font-size:14px;font-weight:700;color:#16a34a}
.solution-answer .tip{font-size:12px;color:var(--text3);font-style:italic}

/* ===== DOWNLOAD CTA (inline on year pages) ===== */
.download-cta{background:var(--white);border:1.5px dashed var(--blue-100);border-radius:4px;padding:36px 40px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.download-cta h3{font-size:18px;font-weight:700;color:var(--dark);margin-bottom:6px}
.download-cta p{font-size:13px;color:var(--text2);line-height:1.7}
.download-cta .qr-mini{width:120px;height:120px;border-radius:8px;border:1px dashed var(--border);flex-shrink:0}

/* ===== YEAR GRID NAV (bottom of year pages) ===== */
.year-grid-nav{background:var(--bg);padding:56px 0}
.year-grid-nav .section-head{margin-bottom:32px}
.year-grid-nav .agrid{margin-bottom:0}

/* ===== PAST PAPERS PAGE (1999-2016) ===== */
.past-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.past-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px;transition:all .2s;display:flex;gap:20px;align-items:flex-start;text-decoration:none;color:inherit}
.past-card:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05);transform:translateY(-2px)}
.past-card-year{font-family:var(--mono);font-size:32px;font-weight:700;color:var(--blue);line-height:1;flex-shrink:0;min-width:70px}
.past-card-content h3{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:6px}
.past-card-content p{font-size:12px;color:var(--text3);line-height:1.7;margin-bottom:10px}
.past-card-content .pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.past-card-content .pills span{padding:3px 10px;background:var(--bg);border-radius:4px;font-size:11px;color:var(--text2);font-weight:500;border:1px solid var(--border)}
.past-card-content .diff-tag{font-size:11px;font-weight:700;padding:3px 10px;border-radius:4px}
.diff-tag.easy-yr{color:#16a34a;background:#f0fdf4;border:1px dashed #bbf7d0}
.diff-tag.mid-yr{color:var(--blue);background:var(--blue-50);border:1px dashed var(--blue-100)}
.diff-tag.hard-yr{color:#dc2626;background:#fef2f2;border:1px dashed #fecaca}

/* ===== LANGUAGE SWITCH & ANSWER FEEDBACK ===== */
.lang-switch{display:flex;gap:0;border:1.5px dashed var(--border);border-radius:4px;overflow:hidden;margin-left:12px;flex-shrink:0}
.lang-btn{padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer;background:transparent;color:var(--text3);border:none;transition:all .15s;font-family:inherit}
.lang-btn.active{background:var(--blue);color:#fff}
.lang-btn:hover:not(.active){background:var(--bg);color:var(--text)}
/* Bilingual visibility */
body[data-lang="zh"] .en{display:none!important}
body[data-lang="en"] .zh{display:none!important}
/* Answer selection */
.problem-option{cursor:pointer;transition:all .15s;position:relative}
.problem-option:hover{border-color:var(--blue-100);background:var(--blue-50)}
.problem-option.selected{border-color:var(--blue);background:var(--blue-50);font-weight:600}
.problem-option.correct{border-color:#16a34a;background:#f0fdf4;color:#166534;font-weight:600}
.problem-option.correct::after{content:" ✓";color:#16a34a;font-weight:700}
.problem-option.wrong{border-color:#dc2626;background:#fef2f2;color:#991b1b}
.problem-option.wrong::after{content:" ✗";color:#dc2626;font-weight:700}
.problem-card.answered .problem-option{cursor:default;pointer-events:none}
.problem-card.answered .problem-option:not(.correct):not(.wrong){opacity:.5}
.answer-result{display:none;padding:12px 16px;border-radius:4px;margin-top:12px;font-size:14px;font-weight:600;line-height:1.6}
.answer-result.show{display:block}
.answer-result.result-correct{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.answer-result.result-right{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}

/* ===== RESOURCE PAGES ===== */
.resource-hero{background:linear-gradient(180deg,rgba(219,234,254,.3) 0%,var(--bg) 100%);padding:48px 0 40px;text-align:center}
.resource-hero h1{font-size:clamp(24px,3.5vw,36px);font-weight:800;color:var(--dark);margin-bottom:8px}
.resource-hero p{font-size:15px;color:var(--text2);max-width:560px;margin:0 auto 20px;line-height:1.8}
.resource-hero .hero-icon{font-size:40px;display:block;margin-bottom:12px}
.resource-toc{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.resource-toc a{padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;color:var(--text2);background:var(--white);border:1.5px dashed var(--border);text-decoration:none;transition:all .15s;white-space:nowrap}
.resource-toc a:hover{color:var(--blue);border-color:var(--blue-100);background:var(--blue-50)}

/* Module blocks (topics page) */
.module-block{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:32px;margin-bottom:24px}
.module-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.module-header h3{font-size:18px;font-weight:700;color:var(--dark);margin:0}
.module-pct{margin-left:auto;font-size:14px;font-weight:700;color:var(--blue);font-family:var(--mono)}
.concept-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px dashed var(--bg)}
.concept-item:last-child{border-bottom:none}
.concept-name{font-size:14px;font-weight:600;color:var(--text);min-width:140px;flex-shrink:0}
.concept-bar{flex:1;height:8px;background:var(--bg);border-radius:4px;overflow:hidden}
.concept-bar-fill{height:100%;background:var(--blue);border-radius:4px;transition:width .3s}
.concept-stat{font-size:12px;font-weight:600;color:var(--text3);min-width:80px;text-align:right;font-family:var(--mono);flex-shrink:0}

/* Tables (formula + glossary) */
.table-wrap{overflow-x:auto;margin:0 0 32px;border-radius:4px;border:1.5px dashed var(--border)}
.formula-table,.glossary-table{width:100%;border-collapse:collapse;font-size:14px}
.formula-table th,.glossary-table th{background:var(--blue);color:#fff;font-weight:700;padding:12px 16px;text-align:left;font-size:13px;white-space:nowrap}
.formula-table td,.glossary-table td{padding:10px 16px;border-top:1px dashed var(--border);color:var(--text);line-height:1.6}
.formula-table tr:nth-child(even) td,.glossary-table tr:nth-child(even) td{background:var(--bg)}
.formula-expr{font-family:var(--mono);font-size:13px;color:var(--blue);font-weight:600;background:var(--blue-50);padding:2px 8px;border-radius:4px;white-space:nowrap}
.term-en{font-weight:700;color:var(--text)}
.term-cn{font-weight:700;color:var(--dark)}

/* Book cards */
.tier-section{margin-bottom:40px}
.tier-header{display:inline-block;padding:6px 18px;border-radius:20px;font-size:14px;font-weight:700;margin-bottom:20px}
.tier-header.basic{color:#059669;background:#ecfdf5;border:1.5px dashed #a7f3d0}
.tier-header.mid{color:var(--blue);background:var(--blue-50);border:1.5px dashed var(--blue-100)}
.tier-header.adv{color:#7c3aed;background:#f5f3ff;border:1.5px dashed #c4b5fd}
.book-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.book-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:24px;transition:all .2s}
.book-card:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05)}
.book-card h4{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:4px}
.book-card .book-author{font-size:12px;color:var(--text3);margin-bottom:10px}
.book-card .book-desc{font-size:13px;color:var(--text2);line-height:1.7;margin-bottom:12px}
.book-tags{display:flex;gap:8px;flex-wrap:wrap}
.book-tag{font-size:11px;font-weight:600;padding:3px 10px;border-radius:4px}
.book-tag.easy{color:#059669;background:#ecfdf5}
.book-tag.med{color:var(--blue);background:var(--blue-50)}
.book-tag.hard{color:#7c3aed;background:#f5f3ff}
.book-tag.lang{color:var(--text3);background:var(--bg)}
.res-paid-tag{display:inline-block;font-size:12px;font-weight:700;color:#fff;background:#dc2626;padding:3px 10px;border-radius:4px;margin-left:8px;vertical-align:middle;letter-spacing:.5px}

/* Mistake examples */
.mistake-category{margin-bottom:40px}
.mistake-cat-header{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.mistake-cat-header .cat-icon{font-size:28px}
.mistake-cat-header h3{font-size:18px;font-weight:700;color:var(--dark);margin:0}
.mistake-cat-header p{font-size:13px;color:var(--text3);margin:0}
.mistake-example{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:24px;margin-bottom:16px}
.mistake-example h4{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:12px}
.trap-box{background:#fef2f2;border:1px dashed #fecaca;border-radius:4px;padding:14px 16px;margin-bottom:10px;font-size:13px;color:#991b1b;line-height:1.7}
.trap-box strong{color:#dc2626}
.correct-box{background:#f0fdf4;border:1px dashed #bbf7d0;border-radius:4px;padding:14px 16px;margin-bottom:10px;font-size:13px;color:#166534;line-height:1.7}
.correct-box strong{color:#16a34a}
.takeaway-box{background:var(--blue-50);border:1px dashed var(--blue-100);border-radius:4px;padding:14px 16px;font-size:13px;color:var(--blue);line-height:1.7;font-weight:600}

/* Method cards */
.method-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:32px;margin-bottom:24px;border-left:4px solid var(--blue)}
.method-top{display:flex;align-items:flex-start;gap:16px;margin-bottom:16px}
.method-num{width:48px;height:48px;border-radius:8px;background:var(--blue);color:#fff;font-family:var(--mono);font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.method-info h3{font-size:17px;font-weight:700;color:var(--dark);margin-bottom:2px}
.method-info .method-en{font-size:12px;color:var(--text3);margin-bottom:6px}
.method-info .method-summary{font-size:13px;color:var(--text2);line-height:1.7}
.method-when{background:var(--blue-50);border:1px dashed var(--blue-100);border-radius:4px;padding:14px 16px;margin-bottom:16px;font-size:13px;color:var(--text)}
.method-when strong{color:var(--blue)}
.method-steps{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.method-step{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text2)}
.method-step .ms-num{width:22px;height:22px;border-radius:50%;background:var(--blue-50);color:var(--blue);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.method-example{background:var(--bg);border-radius:4px;padding:16px;font-size:13px;color:var(--text2);line-height:1.7;border:1px dashed var(--border)}
.method-example strong{color:var(--text)}

/* Info cards (reused for cross-module, study plan, checklist) */
.info-card{background:var(--blue-50);border:1px dashed var(--blue-100);border-radius:4px;padding:24px;margin-bottom:16px}
.info-card h4{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:8px}
.info-card p,.info-card li{font-size:13px;color:var(--text2);line-height:1.8}
.info-card ul{padding-left:20px;margin:0}

/* ===== INFO CARD — HERO (blue accent) ===== */
.info-card--hero{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe;border-left:4px solid #072F97;border-radius:10px;padding:28px 28px 24px;position:relative;overflow:hidden}
.info-card--hero::after{content:"";position:absolute;right:-24px;top:-24px;width:96px;height:96px;border-radius:50%;background:rgba(37,99,235,.06);pointer-events:none}
.info-card--hero h4{font-size:17px;font-weight:800;color:#1e3a8a;margin-bottom:12px}

/* Badge icon in info cards */
.ic-badge{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;background:rgba(37,99,235,.12);color:#072F97}

/* Highlight mark */
.info-card mark{background:none;color:#072F97;font-weight:700;font-family:var(--mono);padding:0 2px;border-bottom:2px dotted currentColor}
.checklist{list-style:none;padding:0}
.checklist li{padding:8px 0;border-bottom:1px dashed var(--border);font-size:13px;color:var(--text);display:flex;align-items:flex-start;gap:8px}
.checklist li:last-child{border-bottom:none}
.checklist li::before{content:"✓";color:var(--blue);font-weight:700;flex-shrink:0}

/* ===== ADMISSION GRID ===== */
.admission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.admission-card{background:var(--white);border-radius:8px;overflow:hidden;border:1px solid var(--border);transition:transform .2s,box-shadow .2s}
.admission-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(37,99,235,.08)}
.admission-card img{width:100%;height:auto;display:block}
.admission-label{text-align:center;padding:10px 8px;font-family:var(--mono);font-size:13px;font-weight:700;color:var(--dark);letter-spacing:.5px}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .container{padding:0 24px}
  .header{height:auto}
  .header-inner{flex-wrap:wrap;padding:10px 16px 8px;gap:6px 0;overflow:hidden;max-width:100%}
  .nav{display:none !important}
  .header-btn{display:none}
  .auth-badge{display:none}
  .lang-switch{margin-left:auto}
  .year-bar{display:none}
  .mobile-years{display:none !important}
  .mobile-toolbar{display:flex;flex:1 1 100%;align-items:center;gap:8px;padding-top:6px;border-top:1px solid var(--border);min-width:0}
  .mobile-years-scroll{flex:1;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;min-width:0}
  .mobile-years-scroll::-webkit-scrollbar{display:none}
  .mobile-years-scroll .ypill{padding:4px 10px;font-size:11px;font-family:var(--mono);border-radius:14px;color:var(--text3);background:transparent;border:1px solid var(--border);white-space:nowrap;flex-shrink:0;text-decoration:none}
  .mobile-years-scroll .ypill.hot{color:var(--blue);border-color:var(--blue-100);background:var(--blue-50);font-weight:600}
  .mobile-years-scroll .ypill.active{color:#fff;background:var(--blue);border-color:var(--blue);border-style:solid}
  .mobile-years-scroll .ypill.hot.active{color:#fff;background:var(--blue);border-color:var(--blue)}
  .mobile-years-scroll .ypill.more{font-family:var(--font);font-size:13px;padding:4px 8px}
  .hamburger-btn{display:flex;flex-direction:column;justify-content:center;align-items:center;width:36px;height:36px;border-radius:8px;background:var(--blue-50);border:none;cursor:pointer;flex-shrink:0;gap:4px;padding:8px 6px}
  .hamburger-btn span{display:block;width:18px;height:2px;background:var(--blue);border-radius:1px;transition:all .25s ease}
  .hamburger-btn.open span:nth-child(1){transform:rotate(45deg) translate(4px,4px)}
  .hamburger-btn.open span:nth-child(2){opacity:0}
  .hamburger-btn.open span:nth-child(3){transform:rotate(-45deg) translate(4px,-4px)}
  .fan-menu{position:fixed;z-index:1001;background:var(--white);border-radius:6px;box-shadow:0 10px 32px rgba(37,99,235,.10),0 2px 6px rgba(0,0,0,.04);padding:6px 0;min-width:175px;overflow:hidden;border:1.5px dashed var(--border);transform-origin:top right;animation:fanIn .2s ease}
  @keyframes fanIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
  .fan-item{display:flex;align-items:center;justify-content:space-between;padding:11px 18px;font-size:13px;font-weight:600;color:var(--dark);text-decoration:none;transition:all .2s;white-space:nowrap;border-left:3px solid transparent}
  .fan-item .txt{display:flex;flex-direction:column}
  .fan-item .en{font-size:10px;color:var(--text3);font-weight:400;font-family:var(--mono);margin-top:2px}
  .fan-item::after{content:"›";font-size:18px;font-weight:300;color:var(--text3);transition:all .2s;transform:translateX(-4px);opacity:0}
  .fan-item:hover{background:var(--blue-50);color:var(--blue);border-left-color:var(--blue)}
  .fan-item:hover::after{opacity:1;transform:translateX(0);color:var(--blue)}
  .fan-item.active{color:var(--blue);background:var(--blue-50);border-left-color:var(--blue)}
  .fan-item.active::after{opacity:1;transform:translateX(0);color:var(--blue)}
  .fan-overlay{position:fixed;inset:0;background:rgba(0,0,0,.06);z-index:1000}
  .fan-overlay.open{display:block}
  .contact-banner{margin-top:96px}
  .contact-banner-inner{font-size:12px;padding:6px 16px;flex-wrap:wrap}
  html{scroll-padding-top:185px}
  .breadcrumb{margin-top:170px}
  .resource-hero{padding:48px 0 32px}
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero-desc{margin:0 auto 36px}
  .hero-stats{justify-content:center}
  .hero-actions{justify-content:center}
  .qr-card{max-width:280px;margin:0 auto}
  .year-hero .qr-card{display:none}
  .year-grid{grid-template-columns:repeat(2,1fr)}
  .agrid{grid-template-columns:repeat(4,1fr)}
  .rgrid{columns:2}
  .cta-grid{grid-template-columns:1fr;text-align:center}
  .cta-checks{justify-items:center}
  .cta-qr{max-width:280px;margin:0 auto}
  .footer-grid{grid-template-columns:1fr 1fr}
.footer-brand{grid-column:1 / -1}
  .footer-brand p{max-width:100%;font-size:11px;white-space:nowrap}
  .intro-grid{grid-template-columns:1fr;justify-items:center;gap:14px;margin-bottom:32px}
  .intro-card{max-width:400px;width:100%;padding:22px 20px}
  .about-stats{grid-template-columns:repeat(2,1fr);gap:14px}
  .about-stat-card{padding:20px 14px 16px}
  .about-stat-card .sc-num{font-size:24px}
  .about-stat-card .sc-icon{width:38px;height:38px}
  .award-grid{grid-template-columns:repeat(3,1fr)}
  .year-hero-grid{grid-template-columns:1fr;text-align:center}
  .year-hero-desc{margin:0 auto 28px}
  .year-hero-actions{justify-content:center}
  .overview-grid{grid-template-columns:1fr}
  .book-grid{grid-template-columns:1fr}
  .method-steps{flex-direction:column}
  .concept-item{flex-wrap:wrap}
  .concept-bar{min-width:100%;order:3}
  .problem-options{grid-template-columns:repeat(3,1fr)}
  .download-cta{flex-direction:column;text-align:center}
  .past-grid{grid-template-columns:1fr}
  .year-nav-pills{display:none}
  .contact-channel-grid{grid-template-columns:1fr;gap:16px}
  .channel-card{padding:24px 20px}
  .channel-card .ch-qr{width:160px;height:160px}
  .channel-card .ch-number{font-size:20px}
  .location-grid{grid-template-columns:1fr;gap:14px}
  .contact-quick-bar{flex-direction:column;gap:6px;padding:12px 16px}
  .cqb-sep{display:none}
  .teacher-grid{grid-template-columns:repeat(2,1fr)}
  .leaderboard-grid{grid-template-columns:repeat(2,1fr)}
  .case-grid{grid-template-columns:1fr}
  .partner-grid{grid-template-columns:repeat(3,1fr)}
  .coop-grid{grid-template-columns:1fr}
  .curriculum-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .curriculum-item{padding:20px 18px 16px}
  .curriculum-item .ci-head>.ci-num{width:32px;height:32px;font-size:14px;border-radius:8px}
  .admission-grid{grid-template-columns:repeat(2,1fr);gap:16px}
}
@media(max-width:640px){
  .nav a{display:none}
  .container{padding:0 16px}
  .hero{padding:144px 0 48px}
  .hero-badge{margin-bottom:20px}
  .hero-title{font-size:26px;margin-bottom:22px}
  .hero-desc{margin-bottom:34px}
  .hero-actions{margin-bottom:44px}
  .hero-stats{gap:20px;flex-wrap:wrap}
  .hero-stat strong{font-size:20px}
  .hero-stat span{font-size:11px}
  .year-grid{grid-template-columns:1fr}
  .agrid{grid-template-columns:repeat(3,1fr)}
  .rgrid{columns:1}
  .ggrid{grid-template-columns:1fr}
  .intro-grid{grid-template-columns:1fr;justify-items:center;gap:10px;margin-bottom:28px}
  .intro-card{max-width:360px;padding:18px 16px}
  .about-stats{grid-template-columns:repeat(2,1fr);gap:12px}
  .about-stat-card{padding:18px 12px 14px}
  .about-stat-card .sc-num{font-size:22px}
  .about-stat-card .sc-icon{width:34px;height:34px;border-radius:8px}
  .about-stat-card .sc-label{font-size:12px}
  .award-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px}
  .footer-brand{grid-column:1 / -1}
  .footer-bottom{flex-direction:column;gap:8px;text-align:center}
  .section{padding:48px 0}
  .section-head{margin-bottom:24px}
  .section-head h2{font-size:22px}
  .year-bar-inner{padding:10px 16px;gap:5px}
  .year-bar .label{display:none}
  .year-bar .ypill{padding:4px 11px;font-size:12px}
  .year-hero{padding:40px 0 32px}
  .year-hero-num{font-size:48px}
  .year-hero-title{font-size:22px}
  .year-hero-desc{font-size:14px}
  .year-nav-inner{padding:8px 16px}
  .year-nav-arrow{font-size:12px;padding:6px 10px}
  .breadcrumb-inner{font-size:12px}
  .inline-cta{flex-direction:column;text-align:center;padding:24px 20px;gap:16px}
  .stats-inner{gap:12px 16px;font-size:12px}
  .stats-inner div{font-size:12px}
  .problem-card{padding:20px 16px}
  .problem-options{grid-template-columns:1fr}
  .problem-option{padding:12px 14px;font-size:14px;text-align:left}
  .problem-question{font-size:14px}
  .problem-top{gap:6px}
  .problem-num{font-size:11px}
  .problem-diff{font-size:10px}
  .problem-concept{font-size:10px}
  .past-card{flex-direction:column;gap:12px;padding:20px}
  .past-card-year{font-size:28px;min-width:auto}
  .resource-toc{gap:4px}
  .resource-toc a{padding:5px 12px;font-size:12px}
  .resource-hero{padding:40px 0 24px}
  .resource-hero h1{font-size:22px}
  .resource-hero p{font-size:14px}
  .method-card{padding:20px}
  .method-num{width:40px;height:40px;font-size:16px}
  .method-info h3{font-size:15px}
  .method-example{padding:14px}
  .module-block{padding:20px}
  .module-header h3{font-size:16px}
  .concept-name{font-size:13px;min-width:110px}
  .concept-stat{font-size:11px;min-width:60px}
  .formula-table th,.glossary-table th,.formula-table td,.glossary-table td{padding:8px 10px;font-size:12px}
  .formula-expr{font-size:11px}
  .mistake-example{padding:18px}
  .trap-box,.correct-box,.takeaway-box{padding:12px 14px;font-size:12px}
  .book-card{padding:18px}
  .ycard-head{padding:18px 18px 10px}
  .ycard-year{font-size:28px}
  .ycard-body{padding:0 18px 16px}
  .ycard-body .desc{font-size:11px}
  .ycard-pills span{font-size:10px;padding:3px 8px}
  .ycard-foot{padding:12px 18px}
  .overview-card{padding:20px 16px}
  .cta{padding:64px 0}
  .cta-checks{grid-template-columns:1fr}
  .cta-qr img{width:140px;height:140px}
  .fab-group{bottom:16px;right:16px}
  .fab{padding:8px 14px;font-size:12px}
  .download-cta{padding:24px 20px}
  .download-cta h3{font-size:16px}
  .download-cta .qr-mini{width:100px;height:100px}
  .info-card{padding:18px}
  .info-card--hero,.info-card--accent,.info-card--green{padding:20px 18px 18px}
  .info-card--hero h4,.info-card--accent h4,.info-card--green h4{font-size:15px}
  .ic-badge{width:32px;height:32px;border-radius:8px}
  .tier-header{font-size:13px}
  .channel-card{padding:20px 16px}
  .channel-card .ch-qr{width:140px;height:140px}
  .channel-card .ch-number{font-size:18px}
  .channel-card .ch-icon{width:44px;height:44px}
  .location-grid{grid-template-columns:1fr;gap:14px}
  .location-card{padding:20px 18px}
  .location-card .lc-icon{width:38px;height:38px}
  .hours-card{padding:20px 18px}
  .hours-card .hc-icon{width:38px;height:38px}
  .contact-quick-bar{flex-direction:column;gap:6px;padding:10px 14px;font-size:13px}
  .cqb-sep{display:none}
  .teacher-grid{grid-template-columns:1fr}
  .leaderboard-grid{grid-template-columns:1fr}
  .partner-grid{grid-template-columns:repeat(2,1fr)}
  .subject-block{padding:20px 16px}
  .teacher-card .t-photo,.teacher-card .t-photo-placeholder{width:60px;height:60px}
  .case-card{padding:16px}
  .coop-card{padding:20px 16px}
  .admission-grid{grid-template-columns:1fr;gap:14px}
  .admission-label{font-size:12px;padding:8px 6px}
  .curriculum-grid{grid-template-columns:1fr;gap:14px}
  .curriculum-item .ci-head>.ci-num{width:30px;height:30px;font-size:13px;border-radius:8px}
}

/* ===== LOCATION CARDS ===== */
.contact-quick-bar{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:24px;padding:14px 20px;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe;border-radius:10px}
.cqb-item{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:#1e3a8a}
.cqb-item svg{color:#072F97;flex-shrink:0}
.cqb-sep{color:#93c5fd;font-size:16px}
.ucas-bar{text-align:center;margin-bottom:20px;padding:10px 16px;font-size:13px;font-weight:600;color:#1e3a8a;background:rgba(37,99,235,.05);border:1px dashed #bfdbfe;border-radius:8px;letter-spacing:.3px}

.location-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.location-card{background:var(--white);border:1px solid var(--border);border-left:4px solid #072F97;border-radius:10px;padding:24px 22px;display:flex;align-items:flex-start;gap:16px;transition:all .25s ease}
.location-card:hover{box-shadow:0 8px 28px rgba(37,99,235,.08);transform:translateY(-2px)}
.location-card .lc-icon{width:44px;height:44px;border-radius:10px;background:rgba(37,99,235,.08);color:#072F97;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.location-card .lc-body{flex:1;min-width:0}
.location-card .lc-body strong{font-size:15px;font-weight:700;color:var(--dark);display:block;margin-bottom:4px}
.location-card .lc-body p{font-size:13px;color:var(--text2);line-height:1.6;margin:0 0 8px}
.location-card .lc-tel{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:#072F97;font-family:var(--mono);background:rgba(37,99,235,.06);padding:3px 10px;border-radius:12px}
.location-card .lc-tel svg{color:#072F97}
@media(max-width:1024px){.location-grid{grid-template-columns:1fr;gap:14px}}

/* ===== HOURS CARD ===== */
.hours-card{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe;border-left:4px solid #072F97;border-radius:10px;padding:24px 22px;display:flex;align-items:flex-start;gap:16px}
.hours-card .hc-icon{width:44px;height:44px;border-radius:10px;background:rgba(37,99,235,.12);color:#072F97;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hours-card .hc-body{flex:1;min-width:0}
.hours-card .hc-body strong{font-size:15px;font-weight:700;color:#1e3a8a;display:block;margin-bottom:4px}
.hours-card .hc-body p{font-size:13px;color:var(--text2);line-height:1.6;margin:0 0 10px}
.hours-card .hc-contacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hours-card .hc-tel{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:#072F97;font-family:var(--mono);background:rgba(37,99,235,.08);padding:3px 10px;border-radius:12px}
.hours-card .hc-tel svg{color:#072F97}
.hours-card .hc-divider{color:#93c5fd;font-size:14px}

/* ===== CONTACT CHANNEL CARDS ===== */
.contact-channel-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.channel-card{background:var(--white);border:1px solid var(--border);border-top:3px solid #072F97;border-radius:12px;padding:32px 28px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:all .25s ease}
.channel-card:hover{box-shadow:0 8px 28px rgba(37,99,235,.10);transform:translateY(-2px)}
.channel-card .ch-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.channel-card--primary .ch-icon{background:#072F97;color:#fff;box-shadow:0 4px 14px rgba(37,99,235,.25)}
.channel-card .ch-icon--outline{background:rgba(37,99,235,.08);color:#072F97}
.channel-card h3{font-size:17px;font-weight:700;color:var(--dark);margin-bottom:10px}
.channel-card .ch-qr{width:180px;height:180px;border-radius:10px;border:1px solid var(--border);margin-bottom:12px;object-fit:contain}
@media(max-width:768px){
  .contact-channel-grid{grid-template-columns:1fr;gap:16px}
  .channel-card{padding:22px 16px}
  .channel-card .ch-qr{width:150px;height:150px}
}
.channel-card .ch-number{font-family:var(--mono);font-size:24px;font-weight:700;color:#072F97;margin-bottom:8px;letter-spacing:.5px}
.channel-card p{font-size:13px;color:var(--text2);line-height:1.7;margin:0 0 16px}
.channel-card .btn-blue{margin-top:auto}

/* ===== FACULTY / TEACHER SECTION ===== */
.subject-block{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px;margin-bottom:20px;transition:all .2s}
.subject-block:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05)}
.subject-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.subject-icon{width:40px;height:40px;border-radius:8px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.subject-head h3{font-size:16px;font-weight:700;color:var(--dark);margin:0}
.subject-head .subject-en{font-size:12px;color:var(--text3);font-weight:400;margin-left:8px}
.teacher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.teacher-card{background:var(--bg);border:1px dashed var(--border);border-radius:4px;padding:16px;text-align:center;transition:all .2s}
.teacher-card:hover{border-color:var(--blue-100);border-style:solid;background:var(--white)}
.teacher-card .t-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;margin:0 auto 10px;border:2px solid var(--blue-100);background:var(--blue-50)}
.teacher-card .t-photo-placeholder{width:72px;height:72px;border-radius:50%;margin:0 auto 10px;border:2px solid var(--blue-100);background:var(--blue-50);display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--blue);font-weight:700}
.teacher-card .t-name{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:4px}
.teacher-card .t-title{font-size:11px;color:var(--blue);font-weight:600;margin-bottom:6px}
.teacher-card .t-desc{font-size:11px;color:var(--text3);line-height:1.6}

/* ===== LEADERBOARD GALLERY ===== */
.leaderboard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.leaderboard-grid img{width:100%;border-radius:4px;border:1.5px dashed var(--border);transition:all .2s;cursor:pointer}
.leaderboard-grid img:hover{border-color:var(--blue);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.08);transform:translateY(-2px)}

/* ===== CASE STUDY CARDS ===== */
.case-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.case-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:22px;transition:all .2s}
.case-card:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05);transform:translateY(-2px)}
.case-card h4{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:6px}
.case-card .case-meta{font-size:11px;color:var(--blue);font-weight:600;margin-bottom:8px}
.case-card p{font-size:12px;color:var(--text3);line-height:1.6}

/* ===== PARTNER GRID ===== */
.partner-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.partner-tag{background:var(--white);border:1px dashed var(--border);border-radius:4px;padding:10px 12px;text-align:center;font-size:12px;font-weight:600;color:var(--text);transition:all .15s}
.partner-tag:hover{border-color:var(--blue-100);border-style:solid;color:var(--blue);background:var(--blue-50)}

/* ===== COOPERATION CARDS ===== */
.coop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.coop-card{background:var(--white);border:1.5px dashed var(--border);border-radius:4px;padding:28px 24px;text-align:center;transition:all .2s}
.coop-card:hover{border-color:var(--blue-100);border-style:solid;box-shadow:0 4px 16px rgba(37,99,235,.05);transform:translateY(-2px)}
.coop-card .coop-icon{width:48px;height:48px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:20px}
.coop-card h4{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:6px}
.coop-card p{font-size:13px;color:var(--text3);line-height:1.7}

/* ===== CURRICULUM FEATURE ===== */
.curriculum-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.curriculum-item{background:var(--white);border:1px solid var(--border);border-left:4px solid var(--ci-color,var(--blue));border-radius:10px;padding:24px 22px 20px;transition:all .25s ease;position:relative;overflow:hidden}
.curriculum-item:hover{border-color:var(--ci-color,var(--blue));box-shadow:0 8px 28px rgba(37,99,235,.10),0 2px 8px rgba(0,0,0,.04);transform:translateY(-3px)}
.curriculum-item .ci-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:12px}
.curriculum-item .ci-head>div{flex:1;min-width:0}
.curriculum-item h4{font-size:15px;font-weight:700;color:var(--dark);margin-bottom:4px;line-height:1.4}
.curriculum-item .ci-tag{display:inline-block;font-size:11px;font-weight:600;color:var(--ci-color,var(--blue));background:color-mix(in srgb,var(--ci-color,var(--blue)) 10%,transparent);padding:2px 10px;border-radius:12px;letter-spacing:.3px}
.curriculum-item h4 .ci-num{display:none}
.curriculum-item>p{font-size:13px;color:var(--text2);line-height:1.7;margin:0}
.curriculum-item .ci-head>.ci-num{width:38px;height:38px;border-radius:10px;background:var(--ci-color,var(--blue));color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;flex-shrink:0;box-shadow:0 3px 10px color-mix(in srgb,var(--ci-color,var(--blue)) 35%,transparent)}

/* ===== CONTACT MODAL ===== */
.contact-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9999;justify-content:center;align-items:center;padding:24px}
.contact-overlay.show{display:flex}
.contact-modal{background:var(--white);border-radius:12px;padding:36px 32px;text-align:center;max-width:340px;width:100%;position:relative;animation:contactIn .25s ease}
@keyframes contactIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.contact-modal .close-btn{position:absolute;top:12px;right:14px;font-size:22px;color:var(--text3);cursor:pointer;background:none;border:none;line-height:1;padding:4px}
.contact-modal .close-btn:hover{color:var(--text)}
.contact-modal .modal-icon{width:56px;height:56px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:24px}
.contact-modal h3{font-size:18px;font-weight:700;color:var(--dark);margin-bottom:8px}
.contact-modal .phone-number{font-family:var(--mono);font-size:24px;font-weight:700;color:var(--blue);margin:16px 0 8px;letter-spacing:1px}
.contact-modal .phone-tip{font-size:13px;color:var(--text3);line-height:1.7}
.contact-modal .call-btn{display:inline-block;margin-top:20px;padding:12px 36px;border-radius:6px;background:var(--blue);color:#fff;font-size:14px;font-weight:600;text-decoration:none;transition:all .2s}
.contact-modal .call-btn:hover{background:#1d4ed8}


/* ===== A/B PAPER SWITCHER ===== */
.paper-bar{background:var(--white);border-bottom:1px solid var(--border)}
.paper-bar-inner{display:flex;align-items:center;gap:6px;max-width:1200px;margin:0 auto;padding:10px 24px}
.paper-bar .label{font-size:12px;font-weight:600;color:var(--text3);margin-right:8px;flex-shrink:0}
.ppill{padding:5px 16px;border-radius:20px;font-size:13px;font-weight:600;color:var(--text3);border:1.5px solid transparent;cursor:pointer;background:transparent;font-family:inherit;white-space:nowrap;transition:all .15s}
.ppill:hover{color:var(--blue);background:var(--blue-50)}
.ppill.active{color:#fff;background:var(--blue);border-color:transparent}
.paper-label{display:inline-block;font-size:14px;font-weight:700;color:var(--blue);background:var(--blue-50);border:1px solid var(--blue-100);padding:2px 10px;border-radius:6px;margin-left:10px;vertical-align:middle}
.paper-b-placeholder{display:none;background:var(--white);border:1px solid var(--border);border-radius:8px;padding:56px 24px;text-align:center;margin-bottom:20px}
.paper-b-placeholder .pb-icon{font-size:40px;margin-bottom:12px}
.paper-b-placeholder h3{font-size:18px;font-weight:700;color:var(--dark);margin-bottom:8px}
.paper-b-placeholder p{font-size:13px;color:var(--text2);margin-bottom:20px;line-height:1.7}
.problem-card[data-paper="b"]{display:none}
body.paper-b .problem-card[data-paper="a"]{display:none}
body.paper-b .problem-card[data-paper="b"]{display:block}
@media(max-width:640px){.paper-bar .label{display:none}.paper-bar-inner{padding:8px 16px}}


/* ===== RESOURCES HUB: book cards / module cards / sections ===== */
.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}
.book-card{background:var(--white);border:1px solid var(--border);border-radius:10px;overflow:hidden;transition:all .2s;display:flex;flex-direction:column}
.book-card:hover{border-color:var(--blue-100);box-shadow:0 8px 24px rgba(7,47,151,.08);transform:translateY(-4px)}
.book-cover{height:170px;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;color:#fff;position:relative;overflow:hidden}
.book-cover.c1{background:linear-gradient(135deg,var(--blue),var(--blue-light))}
.book-cover.c2{background:linear-gradient(135deg,var(--orange),#fbbf24)}
.book-cover.c3{background:linear-gradient(135deg,#7c3aed,#0A8FD7)}
.book-cover.c4{background:linear-gradient(135deg,#0d9488,#06b6d4)}
.book-cover.c5{background:linear-gradient(135deg,#dc2626,#f59e0b)}
.book-cover.c6{background:linear-gradient(135deg,var(--dark),var(--blue))}
.book-cover .bc-icon{font-size:30px;margin-bottom:6px;opacity:.95}
.book-cover .bc-title{font-size:14px;font-weight:800;line-height:1.3;padding:0 8px}
.book-cover .bc-sub{font-size:10px;opacity:.85;margin-top:6px}
.book-body{padding:18px;flex:1;display:flex;flex-direction:column}
.book-body h3{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:6px}
.book-body p{font-size:12px;color:var(--text3);line-height:1.7;margin-bottom:12px;flex:1}
.book-tag{display:inline-block;font-size:10px;font-weight:700;color:var(--orange);background:rgba(247,155,46,.12);padding:2px 8px;border-radius:4px;margin-bottom:8px;align-self:flex-start}
.res-section{padding:64px 0}
.res-section:nth-child(even){background:var(--blue-50)}
.res-head{text-align:center;max-width:600px;margin:0 auto 36px}
.res-head .tag{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:2px;color:var(--orange);margin-bottom:8px}
.res-head h2{font-size:clamp(22px,3vw,30px);font-weight:800;color:var(--dark);margin-bottom:10px}
.res-head p{font-size:14px;color:var(--text2);line-height:1.8}
.module-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.mcard{background:var(--white);border:1px solid var(--border);border-radius:8px;padding:24px 20px;text-align:center;transition:all .2s}
.mcard:hover{border-color:var(--blue-100);transform:translateY(-3px);box-shadow:0 4px 16px rgba(7,47,151,.06)}
.mcard .mc-icon{font-size:28px;margin-bottom:10px}
.mcard h4{font-size:14px;font-weight:700;color:var(--dark);margin-bottom:6px}
.mcard p{font-size:11px;color:var(--text3);line-height:1.6}
@media(max-width:640px){.res-section{padding:48px 0}.book-grid{grid-template-columns:1fr}}


/* ===== image adaptation (kangaroo-style) ===== */
.book-cover{padding:0}
.book-cover img{width:100%;height:100%;object-fit:cover;display:block}
.book-cover .aops-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:100%;height:100%}
.book-cover .aops-grid img{width:100%;height:100%;object-fit:cover;display:block}
.res-img-wrap{max-width:640px;margin:0 auto 16px;text-align:center}
.res-img{width:100%;height:auto;border-radius:8px;border:1px solid var(--border);display:block;margin:0 auto}
.res-img-cap{font-size:12px;color:var(--text3);margin-top:8px;font-style:italic}
.res-img-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:760px;margin:0 auto 16px}
.res-img-row img{width:100%;height:auto;border-radius:8px;border:1px solid var(--border);display:block}
@media(max-width:640px){.res-img-row{grid-template-columns:1fr}}


/* book entry (full-image gallery per book) */
.book-entry{background:var(--white);border:1px solid var(--border);border-radius:10px;padding:26px 24px;margin-bottom:20px;transition:box-shadow .2s}
.book-entry:hover{box-shadow:0 6px 20px rgba(7,47,151,.06)}
.book-entry-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.book-num{width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0;font-family:var(--mono)}
.book-entry h3{font-size:17px;font-weight:800;color:var(--dark);margin:0}
.book-entry .book-sub{font-size:12px;color:var(--orange);font-weight:600;margin-left:8px}
.book-desc{font-size:13px;color:var(--text2);line-height:1.8;margin:6px 0 16px}
.book-gallery{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.book-gallery img{border-radius:6px;border:1px solid var(--border);display:block;object-fit:contain;background:var(--bg)}
.book-gallery img.p{height:176px;width:auto;max-width:100%}
.book-gallery img.l{width:100%;height:auto}
@media(max-width:640px){.book-gallery img.p{height:140px}.book-entry{padding:18px 14px}}

/* resources center: center buttons */
.res-section .info-card{text-align:center}
.res-section .info-card .book-desc{text-align:left;max-width:680px;margin:8px auto 16px}
.res-section .info-card .btn-blue,.res-section .info-card .btn-orange,.res-section .info-card button{display:inline-block;margin:16px auto 0}
.res-section .inline-cta{flex-direction:column;align-items:center;text-align:center;gap:14px}
.res-section .inline-cta>div{text-align:center}
.res-section .inline-cta .btn-blue,.res-section .inline-cta .btn-orange{margin:0}

/* harmonize resources images */
.res-section .book-gallery img{height:auto!important;max-height:360px!important;width:auto!important;max-width:100%!important;flex-shrink:0!important;object-fit:contain!important;display:block!important;margin:0 auto}
.res-section .res-img,.res-section .res-img-wrap img,.res-section .res-img-row img{max-height:380px!important;width:auto!important;max-width:100%!important;object-fit:contain!important;display:block!important;margin:0 auto}
.res-section .res-img-wrap{max-width:100%!important}
.res-section .res-img-row{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center;gap:16px!important}
.res-section .res-img-row img{max-width:48%!important}
.res-section .book-gallery{justify-content:center}

/* resources text size harmonize */
.res-section .res-head .tag{font-size:13px!important}
.res-section .res-head h2{font-size:clamp(24px,3vw,32px)!important}
.res-section .res-head p{font-size:16px!important;line-height:1.85!important}
.res-section .book-entry h3{font-size:20px!important}
.res-section .book-sub h4{font-size:17px!important}
.res-section .book-desc{font-size:15px!important;line-height:1.85!important}
.res-section .info-card h3{font-size:18px!important}
.res-section .info-card p{font-size:15px!important;line-height:1.85!important}
.res-section .book-tag{font-size:12px!important;padding:3px 10px!important}
.res-section .mcard h4{font-size:16px!important}
.res-section .mcard p{font-size:13px!important;line-height:1.7!important}
.res-section .res-img-cap{font-size:13px!important}
.res-section .book-num{width:34px!important;height:34px!important;font-size:15px!important}
.res-section .book-entry-head{margin-bottom:14px!important}
.res-section .book-entry{padding:30px 26px!important}
.res-section .mcard{padding:28px 18px!important}

/* tight (images adjacent) + split wide image into 2 halves */
.book-gallery.tight{gap:0!important}
.book-gallery.tight img{border-radius:0!important;margin:0!important}
.book-gallery.tight img:first-child{border-radius:6px 0 0 6px!important}
.book-gallery.tight img:last-child{border-radius:0 6px 6px 0!important}
.book-split{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--border);border-radius:6px;overflow:hidden;max-width:100%;margin:0 auto}
.book-split .half{overflow:hidden}
.book-split .half img{width:200%!important;max-width:none!important;height:auto!important;max-height:none!important;flex-shrink:1!important;object-fit:cover!important;display:block!important;margin:0!important;border:0!important;border-radius:0!important}
.book-split .half:first-child img{object-position:left center!important}
.book-split .half:last-child img{object-position:right center!important}
