/* ==========================================================================
   WcceWiki · 导航首页（学院风格）
   ========================================================================== */

:root {
  --green: #2f6b3f;
  --green-2: #40814f;
  --green-deep: #143622;
  --gold: #c8a45c;
  --home-ink: #26372b;
  --home-muted: #7d887c;
}

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #fbfff6 0%, #f5f9ed 52%, #eef4e3 100%);
  color: var(--home-ink);
}

/* ---------- 头图 ---------- */

.hero {
  position: relative;
  min-height: 392px;
  background: url("banner.jpg") center 42% / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 38, 23, .9) 0%, rgba(12, 38, 23, .62) 44%, rgba(12, 38, 23, .22) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, rgba(12, 38, 23, .34), transparent);
}

.site-header { position: relative; z-index: 3; }

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand-text { min-width: 0; }
.brand-text b {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: none;
}
.site-nav a {
  position: relative;
  padding: 7px 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.site-nav a:hover::after { right: 0; }
.site-nav a:hover { text-decoration: none; color: #fff; }

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 30px;
  padding-bottom: 108px;
}
.hero-en {
  margin: 0 0 12px;
  font-size: 10.5px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .52);
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: .07em;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}
.hero-sub {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .8);
}
.hero-line {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
}

/* ---------- 主体卡片 ---------- */

.page-main {
  position: relative;
  z-index: 4;
  flex: 1;
  margin-top: -64px;
  padding-bottom: 68px;
}

.quick-card {
  background: #fff;
  border-top: 3px solid var(--green);
  border-radius: 4px;
  padding: 32px 38px 38px;
  box-shadow: 0 22px 55px -36px rgba(20, 54, 34, .55);
}

.quick-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9efe2;
}
.quick-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.quick-title::before {
  content: "";
  width: 4px;
  height: 22px;
  flex: none;
  border-radius: 2px;
  background: var(--green);
}
.quick-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1f3a28;
  white-space: nowrap;
}
.quick-title .en {
  margin-left: 2px;
  font-size: 9.5px;
  letter-spacing: .24em;
  color: #a6b0a2;
  white-space: nowrap;
}
.quick-count {
  flex: none;
  font-size: 11.5px;
  color: #94a08f;
  letter-spacing: .04em;
}

.quick-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
}

.ql-item {
  width: 122px;
  padding: 18px 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.ql-item:hover {
  background: #f6faf1;
  transform: translateY(-2px);
  text-decoration: none;
}
.ql-item:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

.ql-icon {
  position: relative;
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ql-bg, #eef5ea);
  color: var(--ql-fg, var(--green));
  border: 1px solid rgba(47, 107, 63, .08);
  transition: box-shadow .18s, transform .18s;
}
.ql-item:hover .ql-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 24px -16px var(--ql-fg, var(--green));
}
.ql-icon svg { width: 31px; height: 31px; }

.ql-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ql-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 13px;
}
.ql-emoji {
  font-size: 30px;
  line-height: 1;
}

.ql-name {
  width: 100%;
  min-height: 39px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: #2a3b2f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.ql-item:hover .ql-name { color: var(--green); }

.ql-meta {
  margin-top: -3px;
  font-size: 10.5px;
  color: #9aa598;
  letter-spacing: .04em;
}

/* 空状态 */

.quick-empty {
  padding: 46px 20px 52px;
  text-align: center;
  color: #96a092;
}
.quick-empty svg {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  color: #c4cfc0;
}
.quick-empty h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #4c5b4f;
}
.quick-empty p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero { min-height: 360px; }
  .hero h1 { font-size: 40px; }
  .quick-card { padding: 28px 26px 32px; }
}

@media (max-width: 720px) {
  .header-inner { height: 68px; }
  .brand-text b { font-size: 21px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .site-nav a.nav-top,
  .site-nav a.nav-ima { display: none; }

  .hero { min-height: 320px; }
  .hero-copy { padding-top: 20px; padding-bottom: 92px; }
  .hero h1 { font-size: 33px; margin-bottom: 12px; }
  .hero-sub { font-size: 13px; margin-bottom: 18px; }

  .page-main { margin-top: -48px; padding-bottom: 48px; }
  .quick-card { padding: 22px 16px 26px; }
  .quick-head { margin-bottom: 16px; padding-bottom: 13px; }
  .quick-title h2 { font-size: 19px; }
  .quick-title .en { display: none; }
  .quick-count { font-size: 10.5px; }

  .ql-item { width: calc(33.333% - 4px); max-width: 120px; padding: 14px 4px 10px; }
  .ql-icon { width: 60px; height: 60px; }
  .ql-icon svg { width: 26px; height: 26px; }
  .ql-img { padding: 11px; }
  .ql-emoji { font-size: 26px; }
  .ql-name { min-height: 36px; font-size: 12px; }
}

@media (max-width: 380px) {
  .ql-item { width: calc(50% - 4px); max-width: none; }
}
