/* 桐庐杭传高级中学 · 共享样式 */
:root {
  --primary: #23408F;
  --secondary: #14264F;
  --accent: #C93A2B;
  --gold: #E8A33D;
  --jade: #2E8B6E;
  --paper: #F7F4EC;
  --ink: #232838;
}

[v-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

/* 主题化滚动条 */
* { scrollbar-width: thin; scrollbar-color: #23408F #EFEAE0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EFEAE0; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #23408F, #4A3D8F);
  border-radius: 6px;
  border: 2px solid #EFEAE0;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #C93A2B, #E8A33D); }

/* 入场揭示动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 轮播 Ken Burns */
@keyframes kenburns {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.12); }
}
.kenburns { animation: kenburns 9s ease-out forwards; }

/* 首页英雄区纹理 */
.hero-grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* 印章式校名徽记 */
.seal {
  font-family: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  background: linear-gradient(135deg, #C93A2B, #A92C1F);
  color: #FFF7EC;
  box-shadow: 0 4px 14px rgba(201,58,43,.35);
}

/* 文章正文排版（兼容原站富文本） */
.article-body { font-size: 16px; line-height: 1.95; color: #2A3040; word-break: break-word; }
.article-body p { margin: 0 0 1.1em; }
.article-body img { max-width: 100%; height: auto !important; border-radius: 10px; margin: 14px auto; display: block; box-shadow: 0 4px 18px rgba(20,38,79,.12); }
.article-body table { width: 100% !important; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.article-body td, .article-body th { border: 1px solid #D8D2C4 !important; padding: 10px 12px !important; height: auto !important; width: auto !important; }
.article-body tr:first-child td { background: #EDE7D9 !important; font-weight: 600; }
.article-body section { margin: 0; }
.article-body span { font-size: inherit !important; }
.article-body p[style*="text-align:center"], .article-body p[style*="text-align: center"] { text-align: center; }
.article-body video { max-width: 100%; }

/* 富文本列表页摘要截断 */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 图片缺失兜底 */
img.img-fallback { object-fit: cover; background: linear-gradient(135deg, #EDE7D9, #DFD8C8); }

/* 通用卡片悬停 */
.hover-lift { transition: transform .35s ease, box-shadow .35s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(20,38,79,.16); }

/* 导航链接下划线动效 */
.nav-link-fx { position: relative; }
.nav-link-fx::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; background: #C93A2B;
  transition: width .3s ease, left .3s ease;
}
.nav-link-fx:hover::after, .nav-link-fx.active-menu::after { width: 100%; left: 0; }

/* 分页按钮 */
.page-btn { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #E5DFD2; background: #fff; color: #232838; font-size: 14px; cursor: pointer; transition: all .25s; padding: 0 10px; }
.page-btn:hover:not(:disabled) { border-color: #23408F; color: #23408F; }
.page-btn.on { background: #23408F; border-color: #23408F; color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 浮动咨询 */
.float-consult { box-shadow: 0 10px 30px rgba(20,38,79,.28); }

/* 视口锚定层：层本身不拦截点击，仅其子元素可交互 */
.vlayer > * { pointer-events: auto; }

/* 走马灯 */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { animation: marquee 36s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

/* 标题装饰 */
.title-brush { position: relative; display: inline-block; }
.title-brush::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #C93A2B, #E8A33D);
}