/* ============================================================
   网站骨架版：框架 + 占位块 + 按钮
   ============================================================ */

:root {
  --blue: #2b6cb8;
  --blue-dark: #1d4e89;
  --line: #b7d5ef;
  --page: #dde7f0;
  --ph: #edf1f5;
  --ph-line: #c3ccd6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  color: #444;
  background: var(--page);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px dashed var(--blue); outline-offset: 2px; }

.wrap {
  width: min(1000px, 95%);
  margin: 16px auto 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(29, 78, 137, .1);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
}

/* ---------- 站头框架（无文字，占位条） ---------- */

.site-head {
  background: linear-gradient(180deg, #3a7ec2, var(--blue));
  padding: 22px 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.ph-line {
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
}
.ph-line--w1 { width: min(260px, 60%); }
.ph-line--w2 { width: min(150px, 38%); height: 10px; }

/* ---------- 菜单栏（框架按钮 ×4） ---------- */

.menu { background: var(--blue-dark); }
.menu ul { display: flex; justify-content: center; flex-wrap: wrap; }
.menu li + li { border-left: 1px solid #3f6ea5; }
.menu a {
  display: block;
  padding: 10px 34px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 4px;
  transition: background-color .25s;
}
.menu a:hover { background: #3a7ec2; }
.menu a.cur { background: #ffd25e; color: var(--blue-dark); font-weight: bold; }

/* ---------- 正文（只剩占位块） ---------- */

.content {
  flex: 1;
  padding: 30px 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.ph {
  border: 2px dashed var(--ph-line);
  border-radius: 6px;
  background: var(--ph);
}

/* 图片占位：对角叉 */
.ph-img {
  border: 2px solid var(--ph-line);
  border-radius: 6px;
  background:
    linear-gradient(to top right,
      transparent calc(50% - 1px), var(--ph-line) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right,
      transparent calc(50% - 1px), var(--ph-line) 50%, transparent calc(50% + 1px)),
    var(--ph);
}

.ph-row { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.ph-row--2 { grid-template-columns: repeat(2, 1fr); }

/* 文字占位条 */
.ph-lines { display: grid; gap: 12px; }
.ph-lines i { display: block; height: 12px; border-radius: 3px; background: var(--ph-line); opacity: .55; }
.ph-lines i:nth-child(1) { width: 96%; }
.ph-lines i:nth-child(2) { width: 88%; }
.ph-lines i:nth-child(3) { width: 92%; }
.ph-lines i:nth-child(4) { width: 60%; }

/* ---------- 按钮 ---------- */

.btn-row { display: grid; place-items: center; padding: 8px 0; }
.btn {
  padding: 10px 34px;
  font-size: 15px;
  letter-spacing: 3px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue-dark);
  border-radius: 4px;
  transition: background-color .25s, transform .25s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(2px); }
.btn--ghost { background: #fff; color: var(--blue-dark); }
.btn--ghost:hover { background: var(--ph); }

/* ---------- 页脚框架（一根条 + 返回顶部按钮） ---------- */

.foot {
  background: var(--blue-dark);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot .ph-line { flex: 1; max-width: 240px; height: 10px; background: rgba(255, 255, 255, .3); }
.top-btn {
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 4px;
  transition: background-color .25s;
}
.top-btn:hover { background: rgba(255, 255, 255, .15); }

/* ---------- 模态弹窗（空框架） ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 10, 40, .45);
}
.modal.open { display: flex; }

.m-box {
  width: min(560px, 94vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  animation: pop .3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

.m-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #3a7ec2, var(--blue));
  padding: 8px 12px;
}
.m-bar .ph-line { width: 120px; height: 12px; background: rgba(255, 255, 255, .4); }
.m-x {
  width: 22px; height: 22px;
  border: 1px solid #a33;
  border-radius: 3px;
  background: #e05a5a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.m-x:hover { background: #c94242; }

.m-body { padding: 20px; overflow: auto; display: grid; gap: 18px; }
.m-foot { display: flex; gap: 12px; justify-content: center; padding-bottom: 4px; }

body.lock { overflow: hidden; }

/* ---------- 滚动显现（框架动效保留） ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.on { opacity: 1; transform: none; }

/* ---------- 自适应 ---------- */

@media (max-width: 760px) {
  .ph-row, .ph-row--2 { grid-template-columns: 1fr; }
  .content { padding: 22px 16px; }
  .modal { align-items: flex-end; padding: 0; }
  .m-box { width: 100%; max-height: 86vh; border-radius: 10px 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
