/* ==========================================================================
   lnrk.cn · 开封八大员报考服务 · 全站共享基础样式 base.css
   童装森系：米杏 + 浅绿 + 柔白。本文件为全站唯一基础层，禁止页面内联样式。
   页面专属样式一律写入各页独立 css 文件。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --c-cream: #FBF7F0;
  --c-apricot: #EAD9C5;
  --c-apricot-d: #DCBB9C;
  --c-green: #A8C3A0;
  --c-green-d: #7C9C76;
  --c-sage: #D7E2CE;
  --c-forest: #33503C;
  --c-ink: #5B4E3F;
  --c-line: #E7D9C6;
  --c-sand: #F3E7D7;
  --c-white: #FFFFFF;
  --c-gold: #C9A45C;
  --c-clay: #B96A4E;
  --shadow-soft: 0 10px 30px rgba(86, 96, 74, 0.10);
  --shadow-card: 0 6px 18px rgba(86, 96, 74, 0.12);
  --radius: 16px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

/* ---------- 2. 重置与排版 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  animation: pageIn .5s ease both;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5, h6 { color: var(--c-forest); line-height: 1.4; font-weight: 700; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* 通用小节头部：各页面可个性定制，此为兜底 */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .sec-overline { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-green-d); font-size: .85rem; letter-spacing: .18em; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--c-ink); opacity: .85; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  will-change: transform;
}
.btn-primary { background: var(--c-forest); color: var(--c-cream); box-shadow: 0 6px 16px rgba(51, 80, 60, .28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(51, 80, 60, .32); }
.btn-green { background: var(--c-green-d); color: #Fffaf2; box-shadow: 0 6px 16px rgba(124, 156, 118, .32); }
.btn-green:hover { transform: translateY(-3px); background: var(--c-forest); }
.btn-apricot { background: var(--c-apricot-d); color: #5a4230; }
.btn-apricot:hover { transform: translateY(-3px); background: var(--c-apricot); }
.btn-outline { border: 2px solid var(--c-green-d); color: var(--c-green-d); background: transparent; }
.btn-outline:hover { background: var(--c-green-d); color: #Fffaf2; transform: translateY(-3px); }
.btn-light { background: var(--c-cream); color: var(--c-forest); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ---------- 4. 徽章 / 标签 / 分割 ---------- */
.badge { display: inline-block; padding: .28rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--c-sage); color: var(--c-forest); }
.badge-gold { background: #F1E3C8; color: #7a5a22; }
.badge-clay { background: #F2DDD4; color: var(--c-clay); }
.tag { display: inline-block; padding: .2rem .6rem; border: 1px solid var(--c-line); border-radius: 6px; font-size: .76rem; color: var(--c-ink); background: var(--c-white); }
.divider-leaf { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--c-green-d); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--c-green)); }
.divider-leaf::after { background: linear-gradient(270deg, transparent, var(--c-green)); }

/* ---------- 5. 顶部导航 ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 999;
  background: linear-gradient(180deg, rgba(251, 247, 240, .92), rgba(251, 247, 240, .78));
  backdrop-filter: blur(12px);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-nav.scrolled { background: rgba(251, 247, 240, .98); box-shadow: 0 6px 24px rgba(86, 96, 74, .14); }
.nav-inner { width: min(1280px, 94%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(86,96,74,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.08rem; color: var(--c-forest); letter-spacing: .02em; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--c-green-d); letter-spacing: .14em; }
.nav-panel { display: flex; align-items: center; gap: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: .55rem .78rem; font-size: .92rem; color: var(--c-ink); border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-links > li > a:hover { color: var(--c-forest); background: var(--c-sage); }
.nav-links > li > a.active { color: var(--c-cream); background: var(--c-forest); font-weight: 600; }
.drop-arrow { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 5px; transition: transform .25s ease; }
.has-drop:hover .drop-arrow, .has-drop.open .drop-arrow { transform: rotate(225deg) translateY(-1px); }
.drop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 148px; background: var(--c-white); border-radius: 14px; box-shadow: var(--shadow-soft);
  padding: .5rem; opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
  border: 1px solid var(--c-line);
}
.has-drop:hover .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop li a { display: block; padding: .45rem .7rem; border-radius: 9px; font-size: .88rem; color: var(--c-ink); transition: background .2s, color .2s; }
.drop li a:hover { background: var(--c-sage); color: var(--c-forest); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--c-apricot); color: var(--c-forest); font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-phone:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(220, 187, 156, .5); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .6rem; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--c-forest); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. 页脚 ---------- */
.site-foot { background: var(--c-forest); color: #DCE6D6; margin-top: 0; }
.foot-main { width: min(1280px, 94%); margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1.1fr 1.3fr 1fr; gap: 2.5rem; padding: 3.6rem 0 2.6rem; }
.foot-col h3 { color: var(--c-cream); font-size: 1rem; margin-bottom: 1rem; letter-spacing: .06em; }
.foot-col ul li { margin-bottom: .5rem; }
.foot-col ul a { color: #C6D3C0; font-size: .9rem; transition: color .2s, padding-left .2s; }
.foot-col ul a:hover { color: var(--c-cream); padding-left: 4px; }
.foot-brand .brand-text strong { color: var(--c-cream); }
.foot-brand .brand-text em { color: var(--c-green); }
.foot-brand > p { font-size: .9rem; color: #C6D3C0; margin: 1rem 0; }
.foot-contact { font-size: .92rem; }
.foot-contact a { color: var(--c-apricot); }
.foot-contact a:hover { color: var(--c-cream); }
.foot-bottom { border-top: 1px solid rgba(216, 228, 208, .18); padding: 1.1rem 0; }
.foot-bottom p { width: min(1280px, 94%); margin: 0 auto; font-size: .8rem; color: #A9BCA2; text-align: center; }
.foot-bottom .icp { margin-top: .2rem; letter-spacing: .05em; }

/* ---------- 7. 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r { opacity: 0; transform: translateX(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .7s ease, transform .7s ease; }
.reveal.in, .reveal-l.in, .reveal-r.in, .reveal-scale.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r, .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* ---------- 8. 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; background: var(--c-forest); color: var(--c-cream);
  font-size: 1.15rem; box-shadow: 0 8px 20px rgba(51, 80, 60, .35);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-green-d); }

/* ---------- 9. 表格 / 表单基础 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.tbl th, .tbl td { padding: .85rem 1rem; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--c-line); }
.tbl thead th { background: var(--c-forest); color: var(--c-cream); font-weight: 600; }
.tbl tbody tr:nth-child(even) { background: #F7F2E9; }
.tbl tbody tr:hover { background: var(--c-sage); }

.form-grid { display: grid; gap: 1rem; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--c-forest); margin-bottom: .4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--c-line); border-radius: 12px;
  background: var(--c-white); color: var(--c-ink); outline: none; transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--c-green-d); box-shadow: 0 0 0 4px rgba(168, 195, 160, .22); }

/* ---------- 10. 面包屑 ---------- */
.crumb { font-size: .86rem; color: var(--c-ink); }
.crumb a { color: var(--c-green-d); }
.crumb a:hover { color: var(--c-forest); text-decoration: underline; }

/* ---------- 11. 响应式断点 ---------- */
@media (max-width: 1024px) {
  .foot-main { grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--c-cream); flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.2rem 5%; overflow-y: auto;
    transform: translateX(100%); transition: transform .38s ease;
    box-shadow: 0 20px 40px rgba(86, 96, 74, .16);
  }
  .nav-panel.open { transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-links > li > a { font-size: 1.02rem; padding: .85rem .8rem; }
  .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 .4rem 1rem; display: none; }
  .has-drop.open .drop { display: block; }
  .drop li a { padding: .6rem .7rem; }
  .nav-phone { margin-top: 1rem; justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .foot-main { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding-top: 2.6rem; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-inner { height: 62px; }
  .nav-panel { top: 62px; }
  .to-top { right: 14px; bottom: 18px; width: 42px; height: 42px; }
}
