:root {
  --yred: #8a1c1c;
  --yred-deep: #64110f;
  --ygold: #c9a227;
  --ygold-soft: #f0d98c;
  --yink: #3a2c00;
  --ybg: #fdf8ef;
  --ycard: #ffffff;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--ybg); color: var(--yink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }

/* ===== 顶部：扬大红横幅（真实校园图 + 红色罩染） ===== */
.y-hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(175deg, rgba(92, 14, 14, .84) 0%, rgba(70, 10, 10, .88) 58%, rgba(52, 8, 8, .92) 100%),
    url("/yzu-hero.jpg") center 30% / cover no-repeat;
  color: #fff; text-align: center;
  padding: 50px 20px 58px;
}
.y-logo {
  position: relative;
  width: min(62vw, 262px); height: auto; margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

/* 两侧奶蛙立像 */
.y-mascot {
  position: absolute; bottom: -4px;
  width: clamp(96px, 15vw, 185px); height: auto;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .32));
}
.y-mascot-l { left: max(0px, 1vw); transform: rotate(3deg); }
.y-mascot-r { right: max(0px, 1vw); transform: rotate(-3deg); }
@media (max-width: 560px) {
  .y-mascot { width: clamp(64px, 17vw, 96px); opacity: .96; }
}
.y-hero::before, .y-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .28), rgba(201, 162, 39, 0) 70%);
}
.y-hero::before { width: 380px; height: 380px; top: -160px; left: -120px; }
.y-hero::after { width: 460px; height: 460px; bottom: -240px; right: -160px; }

.y-seal {
  position: relative;
  writing-mode: vertical-rl;
  display: inline-block;
  padding: 12px 9px; margin-bottom: 18px;
  border: 2px solid var(--ygold); border-radius: 8px;
  color: var(--ygold-soft); font-size: 17px; font-weight: 700; letter-spacing: .32em;
}
.y-hero h1, .y-hero h2 {
  position: relative;
  font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: .14em; padding-left: .14em;
}
.y-sub {
  position: relative;
  margin-top: 12px; color: var(--ygold-soft);
  font-size: clamp(13px, 3.6vw, 15.5px); letter-spacing: .12em;
}

/* 奶蛙导游 */
.y-guide { position: relative; margin-top: 26px; display: inline-flex; flex-direction: column; align-items: center; }
.y-guide img {
  width: min(46vw, 170px); height: auto; border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.y-bubble {
  position: relative; margin-top: 12px;
  background: #fff; color: var(--yink);
  padding: 10px 16px; border-radius: 14px;
  font-size: 13.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.y-bubble::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top: 0; border-bottom-color: #fff;
}

/* ===== 正文 ===== */
.y-main { max-width: 760px; margin: 0 auto; padding: 44px 20px 24px; }
.y-main section { margin-bottom: 42px; }
.y-main h2, .y-h2 {
  text-align: center;
  font-size: clamp(21px, 5.4vw, 27px); font-weight: 800; letter-spacing: .12em;
  color: var(--yred);
}
.y-hr {
  width: 56px; height: 3px; margin: 12px auto 26px;
  background: linear-gradient(90deg, var(--ygold), #e8c96a);
  border-radius: 2px;
}

/* 校史时间线 */
.y-timeline { display: grid; gap: 12px; }
.y-tl {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ycard); border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(74, 50, 0, .07);
}
.y-year {
  flex: none; min-width: 64px;
  color: var(--yred); font-size: 22px; font-weight: 800; letter-spacing: .02em;
}
.y-tl p { font-size: 14.5px; line-height: 1.9; }

/* 夸夸卡 */
.y-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.y-card {
  background: var(--ycard); border-radius: 16px; padding: 22px;
  box-shadow: 0 6px 16px rgba(74, 50, 0, .07);
}
.y-card h4 { font-size: 16.5px; margin-bottom: 8px; color: var(--yred); letter-spacing: .04em; }
.y-card p { font-size: 14px; line-height: 1.9; }
.y-card b { color: var(--yred); }
.y-banner {
  display: block; width: 100%; height: auto;
  border-radius: 10px; margin-bottom: 12px;
}
.y-champ {
  background: linear-gradient(150deg, var(--yred), var(--yred-deep));
  color: #fff;
}
.y-champ h4 { color: var(--ygold-soft); }
.y-champ p { color: #fff; }
.y-champ b { color: var(--ygold-soft); font-size: 1.08em; }

/* 酸奶高亮条 */
.y-highlight {
  background: #fff6d9; border: 1.5px dashed var(--ygold);
  border-radius: 16px; padding: 22px; text-align: center;
  margin-bottom: 14px;
}
.y-highlight h4 { font-size: 18px; color: var(--yred); margin-bottom: 6px; }
.y-highlight p { font-size: 14px; line-height: 1.9; }
.y-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.y-tag {
  background: var(--ycard); border-radius: 999px; padding: 9px 16px;
  font-size: 13px; box-shadow: 0 4px 12px rgba(74, 50, 0, .07);
}

/* 校园掠影照片墙 */
.y-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.y-photo {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--ycard); box-shadow: 0 6px 16px rgba(74, 50, 0, .07);
}
.y-photo img { display: block; width: 100%; height: 210px; object-fit: cover; }
.y-photo figcaption {
  padding: 10px 14px 12px; font-size: 12.5px; color: var(--muted);
}

/* 奶蛙日记 */
.y-diary { display: grid; gap: 14px; }
.y-quote {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ycard); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(74, 50, 0, .07);
}
.y-quote img {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: #fff; object-fit: cover;
}
.y-quote p { font-size: 14px; line-height: 1.9; }
.y-quote span { color: var(--yred); font-weight: 700; }

/* 页脚 */
.y-footer {
  background: var(--yred-deep); color: #fff;
  text-align: center; padding: 30px 20px 36px; margin-top: 28px;
}
.y-footer p { font-size: 12.5px; opacity: .82; line-height: 1.9; }
.y-links { margin-top: 14px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.y-links a {
  color: var(--ygold-soft); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
