/* ==========================================================================
   保良局馬錦明中學 · Apple 风格静态复刻
   设计系统 Design System
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --bg-alt-2: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-2: #1d1d1f;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-inv: #f5f5f7;

  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #2f9e44;

  --border: #d2d2d7;
  --border-soft: #e8e8ed;

  --nav-h: 44px;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;

  --max: 1120px;
  --max-wide: 1280px;
  --narrow: 720px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang TC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft JhengHei", "Microsoft YaHei", sans-serif;

  --shadow-s: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-l: 0 20px 60px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 22px; }

/* ==========================================================================
   顶部导航 Global Nav
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav .nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.nav-brand .brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
  height: 100%;
}

.nav-item { position: relative; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.nav-item > a {
  display: flex; align-items: center; height: 100%;
  padding: 0 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-item > a:hover { color: #fff; text-decoration: none; }
.nav-item.active > a { color: #fff; }

/* Flyout 子菜单 */
.nav-flyout {
  position: fixed;
  left: 0; right: 0;
  top: var(--nav-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(200%) blur(34px);
  backdrop-filter: saturate(200%) blur(34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 60px rgba(0, 0, 0, 0.12);
  padding: 32px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-item:hover .nav-flyout,
.nav-item:focus-within .nav-flyout {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-flyout-inner { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.nav-flyout h4 {
  font-size: 12px; color: var(--text-3); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.nav-flyout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 40px;
}
.nav-flyout-grid a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  font-weight: 500;
}
.nav-flyout-grid a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  margin-left: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(180deg, #2b8ff0, #0071e3);
  padding: 6px 14px;
  border-radius: 980px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-hover); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: #f5f5f7;
  transition: 0.3s var(--ease);
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(0, 0, 0, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px 22px 60px;
  overflow-y: auto;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu .m-group { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-menu .m-group > button {
  width: 100%; background: none; border: 0; cursor: pointer;
  color: #f5f5f7; font-size: 22px; font-weight: 600; font-family: var(--font);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
  text-align: left;
}
.mobile-menu .m-group > button .chev { transition: transform 0.3s var(--ease); color: #86868b; }
.mobile-menu .m-group.open > button .chev { transform: rotate(45deg); }
.mobile-menu .m-sub { display: none; padding: 0 0 16px; }
.mobile-menu .m-group.open .m-sub { display: block; }
.mobile-menu .m-sub a { display: block; color: rgba(255,255,255,0.78); font-size: 16px; padding: 9px 0; }
.mobile-menu .m-sub a:hover { color: #fff; text-decoration: none; }
.mobile-menu .m-direct { padding: 18px 0; color: #f5f5f7; font-size: 22px; font-weight: 600; display: block; border-bottom: 1px solid rgba(255,255,255,0.12); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  text-align: center;
  padding: 88px 22px 0;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero .eyebrow {
  font-size: 19px; color: var(--text-2); font-weight: 500; margin-bottom: 6px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 900px;
}
.hero .sub {
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 26px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-actions a:not(.btn) { font-size: 19px; color: var(--link); }
.hero-actions a:not(.btn):hover { text-decoration: underline; }
.hero-actions .btn { color: #fff; }

.hero-media {
  max-width: var(--max-wide);
  margin: 0 auto;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-l);
  background: #000;
}
.hero-media img { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  padding: 12px 24px;
  border-radius: 980px;
  white-space: nowrap;
  background: linear-gradient(180deg, #2b8ff0, #0071e3);
  color: #fff;
  transition: 0.25s var(--ease);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(0, 113, 227, 0.3);
}
.btn:hover { background: linear-gradient(180deg, #2b8ff0, #0077ed); text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px rgba(0, 113, 227, 0.4); }
.btn.ghost {
  background: transparent; color: var(--link);
  padding: 12px 26px;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.ghost::after { content: " ›"; }
.btn.ghost:hover { background: var(--bg-alt-2); transform: translateY(-1px); box-shadow: none; }
.btn.dark { background: #1d1d1f; color: #fff; box-shadow: none; }
.btn.light { background: #f5f5f7; color: #1d1d1f; box-shadow: none; }
.btn.light:hover { background: #ffffff; }

/* ==========================================================================
   首页 · 沉浸式 Hero
   ========================================================================== */

.hero-full {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 40px) 24px 120px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides .hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.3s var(--ease), transform 9s linear;
}
.hero-slides .hero-slide.active { opacity: 1; transform: scale(1.12); }
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.8) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 920px; color: #fff; }
.hero-content .eyebrow {
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.hero-brand {
  display: inline-flex; align-items: center; gap: 15px;
  margin-bottom: 26px;
}
.hero-brand img {
  width: 66px; height: 66px; object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.5));
}
.hero-brand .hb-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.hero-brand .hb-name { font-size: 25px; font-weight: 700; letter-spacing: 0.04em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.hero-brand .hb-en { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); margin-top: 3px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero-content h1 {
  font-size: clamp(44px, 7vw, 94px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero-content .sub {
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 22px auto 34px;
  line-height: 1.5;
}
.hero-actions .btn { font-size: 17px; padding: 14px 30px; }
.hero-actions .btn.outline {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-actions .btn.outline:hover { background: rgba(255, 255, 255, 0.26); }
.hero-dots {
  position: absolute; bottom: 36px; left: 0; right: 0;
  display: flex; gap: 9px; justify-content: center; z-index: 4;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.42); cursor: pointer; transition: 0.3s var(--ease);
}
.hero-dots button.active { background: #fff; width: 26px; border-radius: 5px; }

/* 成绩亮点 */
.highlight-band { padding: 96px 0; background: var(--bg); }
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.hl {
  border: 1px solid var(--border-soft); border-radius: var(--radius-l);
  padding: 40px 32px; background: var(--bg-alt);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hl:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hl .hl-num { font-size: clamp(42px, 5vw, 62px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hl .hl-num small { font-size: 0.38em; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.hl .hl-sub { font-weight: 600; font-size: 19px; margin-top: 16px; }
.hl .hl-desc { color: var(--text-2); font-size: 15px; margin-top: 8px; line-height: 1.6; }
.hl .hl-desc b { color: var(--text); font-weight: 600; }

/* 特色图文卡 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  min-height: 480px; display: flex; align-items: flex-end;
  color: #fff; background: #111; box-shadow: var(--shadow);
}
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.feature:hover > img { transform: scale(1.06); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.85) 100%); }
.feature .f-body { position: relative; z-index: 2; padding: 32px; }
.feature .f-body .tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #74e0a0; font-weight: 700; }
.feature .f-body h3 { font-size: 27px; font-weight: 600; margin: 10px 0 8px; color: #fff; letter-spacing: -0.01em; }
.feature .f-body p { font-size: 15px; color: rgba(255,255,255,0.84); line-height: 1.55; }
a.feature:hover { text-decoration: none; }

/* 30 周年 banner */
.banner-30 { background: #000; color: #fff; padding: 96px 0; }
.banner-30 .inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.banner-30 .kicker { font-size: 16px; font-weight: 600; color: #74e0a0; margin-bottom: 12px; }
.banner-30 h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.banner-30 p { color: #a1a1a6; font-size: 18px; margin: 20px 0 28px; line-height: 1.6; }
.banner-30 .media { position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }
.banner-30 .media img { width: 100%; display: block; }
.banner-30 .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.banner-30 .play span {
  width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,0.92); color: #000;
  display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 6px;
  transition: transform 0.3s var(--ease);
}
.banner-30 a.media:hover .play span { transform: scale(1.08); }

/* 相片墙 */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; display: block; background: var(--bg-alt-2); }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.07); }

/* 轮播（旧组件保留兼容） */
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

/* ==========================================================================
   通用区块
   ========================================================================== */

.section { padding: 90px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: var(--text-inv); }
.section.dark .kicker,
.section.dark h2,
.section.dark h3 { color: #fff; }
.section.dark p { color: #a1a1a6; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head .kicker {
  font-size: 17px; font-weight: 600; color: var(--green);
  letter-spacing: 0.01em; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.02em;
}
.section-head p { font-size: 19px; color: var(--text-2); margin-top: 14px; }

/* 卡片网格 */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow-s);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .tag {
  font-size: 12px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-2); flex: 1; }
.card .card-link { margin-top: 18px; font-size: 15px; color: var(--link); }
.card .card-link::after { content: " ›"; }
.card.dark { background: var(--bg-dark-2); color: #fff; border-color: transparent; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #a1a1a6; }

.card-cover { overflow: hidden; border-radius: var(--radius-l); background: var(--bg-alt-2); position: relative; display: block; }
.card-cover > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s var(--ease); }
.card-cover:hover > img { transform: scale(1.04); }
.card-cover .cc-body { padding: 24px 4px 4px; }
.card-cover h3 { font-size: 21px; font-weight: 600; color: var(--text); }
.card-cover p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
a.card-cover:hover { text-decoration: none; }

/* 新闻列表 */
.news-list { max-width: 900px; margin: 0 auto; }
.news-list .news-item {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 22px 4px; border-bottom: 1px solid var(--border-soft);
  transition: background 0.25s var(--ease);
}
.news-list .news-item:hover { background: var(--bg-alt); }
.news-date {
  flex: 0 0 76px;
  text-align: center;
  background: var(--bg-alt-2);
  border-radius: var(--radius-s);
  padding: 10px 4px;
}
.news-date .d { font-size: 24px; font-weight: 700; line-height: 1; }
.news-date .m { font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; margin-top: 4px; }
.news-body h3 { font-size: 17px; font-weight: 500; color: var(--text); line-height: 1.4; }
.news-body p { font-size: 14px; color: var(--text-3); margin-top: 4px; }
.news-item:hover h3 { color: var(--blue); }

/* 数据统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.stat .lbl { font-size: 15px; color: #a1a1a6; margin-top: 8px; }

/* ==========================================================================
   内容页
   ========================================================================== */

.page-hero {
  background: var(--bg-alt);
  padding: 72px 22px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .crumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.page-hero .crumb a { color: var(--text-3); }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
}
.page-hero .en { font-size: 19px; color: var(--text-2); margin-top: 10px; font-weight: 400; }
.page-hero .hero-img { margin: 40px auto 0; max-width: 980px; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.page-hero .hero-img img { width: 100%; }

.page-body { padding: 60px 0 90px; }
.content {
  max-width: var(--narrow);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.content.wide { max-width: 980px; }

.content h1, .content h2, .content h3, .content h4 {
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  margin: 1.6em 0 0.6em; color: var(--text);
}
.content h1 { font-size: 34px; }
.content h2 { font-size: 28px; }
.content h3 { font-size: 22px; }
.content h4 { font-size: 18px; }
.content > :first-child { margin-top: 0; }
.content p { margin: 0 0 1.1em; }
.content strong, .content b { font-weight: 600; }
.content a { color: var(--link); }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.content ul li { list-style: disc; margin-bottom: 0.5em; }
.content ol li { list-style: decimal; margin-bottom: 0.5em; }
.content img { border-radius: var(--radius); margin: 1.4em auto; box-shadow: var(--shadow-s); }
.content figure { margin: 1.6em 0; }
.content hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.4em 0; }
.content blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px; margin: 1.4em 0; color: var(--text-2);
}

/* 表单控件（下拉年份选择等）· Apple 风格 */
.content select,
.content input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.content textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  min-height: 44px;
  max-width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.content select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.content select:hover,
.content input:focus,
.content select:focus,
.content textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.content input[type="submit"],
.content button[type="submit"] {
  font-family: var(--font);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  color: #fff;
  background: linear-gradient(180deg, #2b8ff0, #0071e3);
  border: 0; border-radius: 980px;
  padding: 12px 26px;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}

/* 表格 */
.content table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-s); border: 1px solid var(--border-soft);
}
.content th, .content td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.content th { background: var(--bg-alt-2); font-weight: 600; color: var(--text); }
.content tr:last-child td { border-bottom: 0; }
.content tbody tr:hover { background: var(--bg-alt); }
.content table img { box-shadow: none; margin: 0; }

/* 文章内嵌列表（列表页） */
.content .view-content a { display: block; }

/* 侧栏式布局（列表页） */
.layout-split { display: grid; grid-template-columns: 1fr 320px; gap: 48px; max-width: var(--max); margin: 0 auto; }

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  background: var(--bg-alt-2);
  color: var(--text-2);
  font-size: 12px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--border-soft);
}
.site-footer .foot-note { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; line-height: 1.6; }
.site-footer .foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.site-footer h5 { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-3); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,0.72); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: 0.3s var(--ease);
  font-size: 18px;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: #000; }

/* ==========================================================================
   滚动动效
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1000px) {
  .nav-menu { display: none; }
  .nav-cta { margin-left: auto; margin-right: 8px; }
  .nav-toggle { display: flex; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .layout-split { grid-template-columns: 1fr; }
  .site-footer .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .hl-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .banner-30 .inner { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- 手机 */
@media (max-width: 640px) {
  :root { --radius-l: 20px; --radius: 16px; }

  /* 容器与导航 */
  .container, .container-wide { padding: 0 18px; }
  .nav-brand { font-size: 0; }
  .nav-brand .brand-mark { width: 30px; height: 30px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }

  /* Hero：减少空黑、内容居中、按钮纵向堆叠 */
  .hero-full {
    min-height: auto;
    padding: calc(var(--nav-h) + 60px) 20px 84px;
  }
  .hero-brand { gap: 12px; margin-bottom: 22px; }
  .hero-brand img { width: 54px; height: 54px; }
  .hero-brand .hb-name { font-size: 20px; }
  .hero-brand .hb-en { font-size: 10.5px; letter-spacing: 0.1em; }
  .hero-content h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.08; }
  .hero-content .sub { font-size: 16px; margin: 18px auto 28px; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 30px; }
  .hero-actions .btn,
  .hero-actions a:not(.btn) { width: 100%; max-width: 340px; }
  .hero-actions .btn { font-size: 16px; padding: 15px 24px; }
  .hero-actions a:not(.btn) { font-size: 16px; }
  .hero-dots { bottom: 22px; }

  /* 区块留白与标题 */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head .kicker { font-size: 15px; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .section-head p { font-size: 16px; margin-top: 10px; }

  /* 成绩亮点 */
  .highlight-band { padding: 60px 0; }
  .hl-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
  .hl { padding: 24px; }
  .hl .hl-num { font-size: 44px; }
  .hl .hl-sub { font-size: 17px; margin-top: 12px; }
  .hl .hl-desc { margin-top: 6px; }

  /* 特色图文卡 */
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { min-height: 340px; }
  .feature .f-body { padding: 24px; }
  .feature .f-body h3 { font-size: 23px; }
  .feature .f-body p { font-size: 14px; }

  /* 30 周年 */
  .banner-30 { padding: 60px 0; }
  .banner-30 .inner { gap: 28px; }
  .banner-30 h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .banner-30 p { font-size: 16px; margin: 16px 0 24px; }
  .banner-30 .play span { width: 58px; height: 58px; font-size: 18px; }

  /* 相片墙 */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid a { border-radius: 12px; }

  /* 新闻列表 */
  .news-list .news-item { gap: 14px; padding: 16px 2px; }
  .news-date { flex: 0 0 58px; padding: 8px 4px; border-radius: 10px; }
  .news-date .d { font-size: 20px; }
  .news-body h3 { font-size: 15.5px; }

  /* 通用卡片 */
  .card { padding: 24px; }

  /* 内容页 */
  .page-hero { padding: 44px 20px 34px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .page-hero .en { font-size: 16px; margin-top: 8px; }
  .page-body { padding: 40px 0 64px; }
  .content { font-size: 16px; line-height: 1.78; }
  .content h1 { font-size: 26px; }
  .content h2 { font-size: 22px; }
  .content h3 { font-size: 19px; }
  .content h4 { font-size: 17px; }
  .content h2, .content h3 { margin: 1.4em 0 0.5em; }
  .content img { border-radius: 14px; }
  .content ul, .content ol { padding-left: 1.2em; }
  .content .view-content a { word-break: break-word; }
  /* 表格：窄屏可横向滑动 */
  .content table {
    display: block; width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .content th, .content td { padding: 10px 12px; }

  /* 页脚 */
  .site-footer { padding: 34px 0 26px; }
  .site-footer .foot-cols { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .site-footer .foot-bottom { flex-direction: column; gap: 6px; }

  /* 回到顶部 */
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------- 超小屏 */
@media (max-width: 400px) {
  .hero-brand .hb-name { font-size: 18px; }
  .hero-brand img { width: 48px; height: 48px; }
  .hero-content h1 { font-size: clamp(30px, 9.5vw, 40px); }
  .hl .hl-num { font-size: 40px; }
  .feature { min-height: 300px; }
}
