/* 台州中学98 · 落地页
   视觉核心：浙江省台州中学校门照片
   取色自图片本身——米黄石材 / 墨绿铁艺 / 灰蓝天空，现代艺术构成风格 */

:root {
  --stone: #e4dcc2;        /* 校门石材米黄 */
  --stone-deep: #d8cfb4;
  --stone-shadow: #a9a28c;
  --iron: #1e241f;         /* 铁艺门墨绿黑 */
  --iron-soft: #2b2f2a;
  --foliage: #3e5b3a;      /* 松柏深绿 */
  --foliage-light: #5c7a4a;
  --sky: #afc2ce;          /* 天空灰蓝 */
  --cloud: #ede7da;
  --ink-plate: #3a3228;    /* 匾额深褐 */
  --line-gold: #d9b84a;    /* 路面黄线 */
  --paper: #f7f4ec;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--iron);
  color: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============================ 首屏 ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 校门照片作为背景主体 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('gate.jpg');
  background-size: cover;
  background-position: center 42%;
  /* 现代艺术处理：提高对比、压暗、轻微去饱和，让文字可读 */
  filter: grayscale(.28) contrast(1.12) brightness(.62) saturate(.9);
  transform: scale(1.04);
  animation: heroDrift 24s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.11) translateY(-14px); }
}

/* 分层色调叠加：墨绿 → 透明 → 米黄，形成冷暖对冲 */
.hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(228, 220, 194, .16), transparent 70%),
    linear-gradient(180deg, rgba(30, 36, 31, .82) 0%, rgba(30, 36, 31, .32) 34%, rgba(30, 36, 31, .55) 62%, rgba(30, 36, 31, .95) 100%);
}

/* 几何构成层：呼应校门的对称拱券与立柱 */
.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 中轴细线 —— 对应校门严格的对称轴 */
.axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(228, 220, 194, .3) 25%, rgba(228, 220, 194, .3) 75%, transparent);
  transform: translateX(-.5px);
}

/* 拱形描边 —— 抽象化的主拱券 */
.arch {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 520px);
  height: min(62vw, 520px);
  transform: translate(-50%, -54%);
  border: 1px solid rgba(228, 220, 194, .22);
  border-radius: 50% 50% 4px 4px;
  animation: archPulse 7s ease-in-out infinite;
}
.arch.arch-2 {
  width: min(74vw, 620px);
  height: min(74vw, 620px);
  border-color: rgba(228, 220, 194, .12);
  animation-delay: -3.5s;
}

@keyframes archPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* 色块构成 —— 现代艺术感的不对称色面 */
.block {
  position: absolute;
  mix-blend-mode: overlay;
}
.block-gold {
  top: 0; right: 0;
  width: 26vw; height: 38vh;
  background: linear-gradient(200deg, rgba(217, 184, 74, .5), transparent 72%);
}
.block-green {
  bottom: 0; left: 0;
  width: 30vw; height: 44vh;
  background: linear-gradient(20deg, rgba(62, 91, 58, .62), transparent 70%);
}

/* 顶栏 */
.hero-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px clamp(20px, 5vw, 56px);
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--stone);
}

/* 校徽：暗底上反白为米黄，并加投影压住背景照片的纹理 */
.mark-logo {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    sepia(.22) saturate(1.5) hue-rotate(4deg) brightness(1.02)
    drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
}

.mark-name {
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
.mark-name .dash { margin: 0 1px; }
.mark-unofficial {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--stone);
  border: 1px solid rgba(228, 220, 194, .45);
  border-radius: 3px;
  padding: 2px 7px;
}

.hero-top .spacer { flex: 1; }

.top-link {
  font-size: 13.5px;
  color: rgba(247, 244, 236, .72);
  letter-spacing: .5px;
  padding: 7px 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.top-link:hover { color: var(--stone); border-bottom-color: var(--line-gold); }

/* 主标题区 */
.hero-core {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px clamp(20px, 5vw, 56px) 0;
}

.eyebrow {
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: clamp(4px, 1.1vw, 9px);
  color: rgba(228, 220, 194, .78);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  animation: riseIn .9s cubic-bezier(.2, .7, .3, 1) .15s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 11vw, 132px);
  line-height: .96;
  letter-spacing: clamp(2px, 1.5vw, 14px);
  margin: 0;
  font-weight: 700;
  color: var(--paper);
  text-shadow: 0 10px 50px rgba(0, 0, 0, .6);
  opacity: 0;
  animation: riseIn 1.1s cubic-bezier(.2, .7, .3, 1) .3s forwards;
}
.hero-title .accent {
  color: var(--line-gold);
  font-family: var(--font);
  font-size: .72em;
  letter-spacing: 0;
}

/* 标题下的金线 —— 呼应匾额边框 */
.rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  margin: 30px 0 26px;
  animation: ruleGrow 1.3s cubic-bezier(.2, .7, .3, 1) .9s forwards;
}

@keyframes ruleGrow { to { width: min(340px, 62vw); } }

.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 2;
  color: rgba(247, 244, 236, .86);
  letter-spacing: 1.5px;
  max-width: 620px;
  margin: 0 0 14px;
  opacity: 0;
  animation: riseIn 1s cubic-bezier(.2, .7, .3, 1) .55s forwards;
}

.hero-note {
  font-size: 12.5px;
  color: rgba(228, 220, 194, .58);
  letter-spacing: 1px;
  max-width: 560px;
  line-height: 1.9;
  opacity: 0;
  animation: riseIn 1s cubic-bezier(.2, .7, .3, 1) .7s forwards;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 入口按钮 */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
  opacity: 0;
  animation: riseIn 1s cubic-bezier(.2, .7, .3, 1) .85s forwards;
}

.enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 38px;
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 500;
  border-radius: 13px;
  border: 0;
  background: #cca11d;
  color: #1a1606;
  cursor: pointer;
  font-family: var(--font);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition:
    transform .22s cubic-bezier(.2, .7, .3, 1),
    box-shadow .22s cubic-bezier(.2, .7, .3, 1),
    background-color .22s;
}

/* 光泽：悬停时一道柔光横扫过去，不留高反光 */
.enter::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, .16) 44%,
    rgba(255, 255, 255, .34) 50%,
    rgba(255, 255, 255, .16) 56%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform .62s cubic-bezier(.35, .6, .25, 1);
  z-index: 2;
}
.enter:hover::before,
.enter:focus-visible::before { transform: translateX(110%); }

.enter:hover,
.enter:focus-visible {
  transform: translateY(-2px);
  background: #d8ac22;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .36);
}

/* 按下去时厚度被压扁 */
.enter:active {
  transform: translateY(0);
  background: #bd9417;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.enter > * { position: relative; z-index: 3; }
.enter .arrow { transition: transform .3s; }
.enter:hover .arrow { transform: translateX(5px); }

.enter-ghost {
  color: #ece6d2;
  background: #26302a;
  box-shadow:
    0 5px 0 #141a16,
    0 5px 14px rgba(0, 0, 0, .38);
}
.enter-ghost::before {
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, .1) 44%,
    rgba(255, 255, 255, .22) 50%,
    rgba(255, 255, 255, .1) 56%,
    transparent 70%);
}
.enter-ghost:hover,
.enter-ghost:focus-visible {
  transform: translateY(-2px);
  background: #303b33;
  box-shadow:
    0 7px 0 #141a16,
    0 10px 20px rgba(0, 0, 0, .44);
}
.enter-ghost:active {
  transform: translateY(4px);
  background: #1f2823;
  box-shadow:
    0 1px 0 #141a16,
    0 2px 6px rgba(0, 0, 0, .34);
}

@media (prefers-reduced-motion: reduce) {
  .enter, .enter::before, .enter::after { transition-duration: .01ms; }
  .enter:hover, .enter:active { transform: none; }
}

/* 底部提示条 */
.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 clamp(20px, 5vw, 56px) 30px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(247, 244, 236, .5);
  opacity: 0;
  animation: riseIn 1s cubic-bezier(.2, .7, .3, 1) 1.05s forwards;
}
.hero-foot .dotsep { color: rgba(228, 220, 194, .3); }

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.scroll-hint .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(228, 220, 194, .5), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.7); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ============================ 下半部分 ============================ */

.panel {
  position: relative;
  background: var(--paper);
  color: var(--iron);
  padding: clamp(50px, 8vw, 92px) clamp(20px, 5vw, 56px);
}

.panel-inner { max-width: 1060px; margin: 0 auto; }

.sec-label {
  font-size: 11.5px;
  letter-spacing: 5px;
  color: var(--stone-shadow);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: 3px;
  margin: 0 0 12px;
  color: var(--iron);
}

.sec-desc {
  font-size: 14.5px;
  line-height: 2;
  color: #5b6b5d;
  max-width: 680px;
  margin: 0 0 44px;
}

/* 三大板块 */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--stone-deep);
  border: 1px solid var(--stone-deep);
}

.pillar {
  background: var(--paper);
  padding: 34px 30px;
  transition: background .35s, transform .35s;
}
.pillar:hover { background: #fffdf8; transform: translateY(-4px); }

.pillar-no {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--stone-deep);
  margin-bottom: 18px;
}
.pillar h3 {
  font-size: 17px;
  letter-spacing: 2px;
  margin: 0 0 10px;
  color: var(--iron);
}
.pillar p {
  font-size: 13.5px;
  line-height: 1.95;
  color: #66705f;
  margin: 0 0 14px;
}
.pillar .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pillar .tags span {
  font-size: 11.5px;
  letter-spacing: .5px;
  color: var(--foliage);
  border: 1px solid rgba(62, 91, 58, .25);
  border-radius: 2px;
  padding: 2px 8px;
}

/* 准入说明 */
.gate-note {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.gate-card {
  background: var(--iron);
  color: var(--paper);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
}
.gate-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 170px; height: 170px;
  border: 1px solid rgba(228, 220, 194, .18);
  border-radius: 50% 50% 0 0;
}
.gate-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 2px;
  margin: 0 0 16px;
  color: var(--stone);
}
.gate-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 2.1;
  color: rgba(247, 244, 236, .82);
}
.gate-card li::marker { color: var(--line-gold); }

.rules-brief p {
  font-size: 14px;
  line-height: 2.05;
  color: #5b6b5d;
  margin: 0 0 16px;
}
.rules-brief strong { color: var(--iron); }

.disclaim-strip {
  margin-top: 56px;
  border-top: 1px solid var(--stone-deep);
  border-bottom: 1px solid var(--stone-deep);
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6d7a6c;
  letter-spacing: .5px;
}
.disclaim-strip .badge {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--paper);
  background: var(--foliage);
  padding: 4px 12px;
}

.panel-foot {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--stone-shadow);
  letter-spacing: 1px;
}
.panel-foot .spacer { flex: 1; }

.foot-enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: var(--iron);
  color: var(--stone);
  font-size: 14px;
  letter-spacing: 2.5px;
  transition: background .3s, transform .3s;
}
.foot-enter:hover { background: var(--foliage); transform: translateY(-2px); }

@media (max-width: 860px) {
  .gate-note { grid-template-columns: 1fr; }
  .hero-top { padding: 18px 20px; }
  .mark { font-size: 16px; letter-spacing: 2px; }
  .hero-core { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .arch, .scroll-hint .line { animation: none; }
  .eyebrow, .hero-title, .hero-sub, .hero-note, .hero-cta, .hero-foot {
    opacity: 1;
    animation: none;
  }
  .rule { width: min(340px, 62vw); animation: none; }
}
