/* ============================================
   花间境 · Y2K 千禧风格主样式表
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "Comic Sans MS", "楷体", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #2b2240;
  background:
    radial-gradient(circle at 20% 10%, #ffd1ec 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #c9f3ff 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, #fff3b8 0%, transparent 40%),
    linear-gradient(135deg, #f6e9ff 0%, #e6f7ff 50%, #fff0f6 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 满屏网格底纹 —— 千禧经典 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(190,160,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190,160,255,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* 漂浮星光 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff, transparent),
    radial-gradient(2px 2px at 78% 16%, #fff, transparent),
    radial-gradient(2px 2px at 35% 70%, #fff, transparent),
    radial-gradient(2px 2px at 88% 64%, #fff, transparent),
    radial-gradient(2px 2px at 60% 38%, #fff, transparent),
    radial-gradient(2px 2px at 22% 88%, #fff, transparent);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  animation: starshine 4s ease-in-out infinite alternate;
}

@keyframes starshine {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

a {
  color: #d23b9b;
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: #6a4cff; text-shadow: 0 0 4px rgba(214,59,155,0.5); }

img { max-width: 100%; display: block; }

/* ===== 顶栏 ===== */
.topbar {
  position: relative;
  z-index: 5;
  background: linear-gradient(90deg,#ff5fa2,#a85eff 40%,#5ed7ff 75%,#7afd62);
  color:#fff;
  padding:6px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  letter-spacing:1px;
  border-bottom:2px solid #fff;
  box-shadow:0 4px 0 rgba(106,76,255,.25);
}
.topbar b { color:#fff7a8; }

/* ===== 顶部 Logo 区 ===== */
.hdr {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hdr .logo {
  width: 96px; height: 96px;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 30%, #ffe9f5 0%, #ff8fd0 40%, #b75eff 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.7),
    0 0 0 4px #fff,
    0 0 0 6px #ff5fa2,
    0 8px 0 #c8478f,
    0 14px 22px rgba(192,89,234,.35);
  flex-shrink: 0;
}
.hdr .logo span {
  font-size: 32px;
  color: #fff;
  text-shadow: 2px 2px 0 #ff3aa0, 4px 4px 0 rgba(0,0,0,.15);
  font-weight: 800;
  font-family: "Comic Sans MS", "黑体", sans-serif;
}
.hdr .name h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg,#ff3aa0,#a85eff,#5ed7ff,#7afd62);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 #fff);
}
.hdr .name p {
  font-size: 13px;
  color: #6a4cff;
  margin-top: 4px;
  letter-spacing: 4px;
}
.hdr .qr {
  margin-left: auto;
  width: 92px; height: 92px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 0 #ffb3d6,
              0 0 0 3px #fff,
              0 0 0 5px #a85eff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== 导航 ===== */
.nav {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 0 18px;
}
.nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid #fff;
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow:
    inset 0 0 18px rgba(255,200,235,.5),
    0 8px 0 rgba(168,94,255,.18);
}
.nav li a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff !important;
  background: linear-gradient(180deg,#ff7ab8,#ff3aa0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -3px 0 rgba(0,0,0,.12),
    0 3px 0 #b32775;
  letter-spacing: 1px;
}
.nav li a.alt { background: linear-gradient(180deg,#b793ff,#7a4cff); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 #4b2aa8; }
.nav li a.alt2 { background: linear-gradient(180deg,#7ee9ff,#22b3ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 #1260a8; }
.nav li a.alt3 { background: linear-gradient(180deg,#aaff7a,#3acf3a); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 #1f8820; color:#fff !important;}
.nav li a.alt4 { background: linear-gradient(180deg,#ffe27a,#ff9c1f); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.12), 0 3px 0 #a85d05; }
.nav li a:hover { transform: translateY(1px); filter: brightness(1.08); }

/* ===== 主容器 ===== */
.wrap {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 18px auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 16px;
}

@media (max-width: 980px){
  .wrap { grid-template-columns: 1fr; }
  .sidebar-l, .sidebar-r { display:none; }
}

/* ===== 侧栏 ===== */
.card-box {
  background: rgba(255,255,255,.7);
  border: 2px solid #fff;
  border-radius: 18px;
  padding: 14px 14px 18px;
  margin-bottom: 14px;
  box-shadow:
    inset 0 0 14px rgba(255,210,240,.5),
    0 8px 0 rgba(168,94,255,.15);
  position: relative;
}
.card-box::before {
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:20px;
  padding:2px;
  background: linear-gradient(135deg,#ff5fa2,#a85eff,#5ed7ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}
.card-box h3 {
  font-size: 15px;
  margin-bottom: 10px;
  padding: 6px 10px;
  color:#fff;
  border-radius: 10px;
  background: linear-gradient(90deg,#ff5fa2,#a85eff);
  letter-spacing: 1px;
  display:inline-block;
  box-shadow: 0 3px 0 rgba(168,94,255,.35);
}
.card-box ul { list-style:none; }
.card-box li {
  padding: 7px 4px;
  border-bottom: 1px dashed rgba(168,94,255,.25);
  font-size: 13px;
  display:flex; justify-content:space-between; gap:8px;
}
.card-box li:last-child { border-bottom: 0; }
.card-box li a { color:#5a3da8; }
.card-box li em { color:#ff3aa0; font-style:normal; font-size:11px; }

/* ===== 主体内容 ===== */
.main {
  background: rgba(255,255,255,.75);
  border:2px solid #fff;
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow:
    inset 0 0 22px rgba(255,210,240,.4),
    0 10px 0 rgba(168,94,255,.18);
}
.crumb {
  font-size: 12px;
  color: #6a4cff;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(168,94,255,.3);
  margin-bottom: 14px;
}
.crumb b { color:#ff3aa0; }

/* banner */
.banner {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 18% 60%, #ffd6ef 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, #d3f1ff 0%, transparent 45%),
    linear-gradient(135deg,#ffb3e0 0%,#c7a8ff 35%,#8ee2ff 75%,#bbffb3 100%);
  box-shadow:
    inset 0 0 24px rgba(255,255,255,.55),
    0 0 0 3px #fff,
    0 0 0 6px #ff5fa2,
    0 12px 22px rgba(106,76,255,.3);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
}
.banner .b-txt h2 {
  font-size: 36px;
  color:#fff;
  letter-spacing: 6px;
  text-shadow:
    3px 3px 0 #ff3aa0,
    6px 6px 0 rgba(106,76,255,.4);
  font-weight: 800;
}
.banner .b-txt p {
  color:#fff7a8;
  letter-spacing: 4px;
  margin-top: 8px;
  font-weight: 700;
}
.banner::after{
  content:"✦ ❀ ✦ ❀ ✦";
  position:absolute;
  bottom:8px; left:0; right:0;
  color:#fff;
  letter-spacing: 14px;
  font-size: 18px;
  opacity:.9;
}

/* 区块 */
.sec { margin-bottom: 22px; }
.sec h2.title {
  font-size: 18px;
  padding-left: 14px;
  margin-bottom: 14px;
  border-left: 6px solid #ff3aa0;
  position: relative;
  color:#3a1c66;
  letter-spacing: 1px;
}
.sec h2.title::after{
  content:"";
  position:absolute; left:14px; bottom:-6px;
  width:46px; height:3px;
  background:linear-gradient(90deg,#ff3aa0,#5ed7ff);
  border-radius:2px;
}
.sec .more {
  float: right;
  font-size: 12px;
  color:#ff3aa0;
  background:#fff;
  padding:3px 10px;
  border-radius:999px;
  border:2px solid #ff3aa0;
  margin-top: 4px;
}

/* ===== 文章卡片 ===== */
.list-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 720px){
  .list-card { grid-template-columns: 1fr; }
}
.post-card {
  background:#fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px #fff,
    0 0 0 2px #ffd1ec,
    0 6px 0 rgba(255,95,162,.25);
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card .pic {
  height: 130px;
  background:
    radial-gradient(circle at 30% 30%, #ffe1f1 0%, transparent 50%),
    linear-gradient(135deg, #ffd1ec 0%, #c7a8ff 50%, #8ee2ff 100%);
  position: relative;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-size: 40px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.18);
}
.post-card .pic::before{
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
}
.post-card .body { padding: 12px 14px; }
.post-card h4 {
  font-size: 15px;
  color:#3a1c66;
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-card p {
  font-size: 12px; color:#7a6aa8; line-height: 1.6;
  height: 56px; overflow: hidden;
}
.post-card .meta {
  display:flex; justify-content:space-between; align-items:center;
  font-size: 11px; color:#a08ec8;
  padding: 6px 14px 10px;
  border-top: 1px dashed #ffd1ec;
}
.post-card .tag {
  display:inline-block; padding:1px 8px; border-radius:999px;
  background: linear-gradient(90deg,#ff7ab8,#a85eff);
  color:#fff; font-size: 11px;
}

/* ===== 列表（栏目内页） ===== */
.list-row {
  display: flex;
  gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px dashed #ffd1ec;
  align-items: flex-start;
}
.list-row .thumb {
  flex: 0 0 140px;
  height: 100px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, #ffe1f1 0%, transparent 50%),
    linear-gradient(135deg, #ffd1ec 0%, #c7a8ff 50%, #8ee2ff 100%);
  position: relative;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-size: 28px;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #ffd1ec;
}
.list-row .info { flex: 1; }
.list-row h4 a { color:#3a1c66; font-size: 15px; }
.list-row p { font-size: 12px; color:#7a6aa8; margin-top: 4px; line-height: 1.6; }
.list-row .meta {
  font-size: 11px; color:#a08ec8; margin-top: 6px;
}
.list-row .tag {
  display:inline-block; padding:1px 8px; border-radius:999px;
  background: linear-gradient(90deg,#ff7ab8,#a85eff);
  color:#fff; font-size: 11px; margin-right: 6px;
}
@media (max-width: 600px){
  .list-row { flex-direction: column; }
  .list-row .thumb { width: 100%; flex-basis: 160px; }
}

/* ===== 分页 ===== */
.pager {
  text-align: center;
  margin: 30px 0 8px;
  display:flex; justify-content:center; flex-wrap:wrap; gap:6px;
}
.pager a, .pager span {
  display:inline-block;
  min-width: 34px; padding: 6px 10px;
  background:#fff;
  border:2px solid #ffd1ec;
  border-radius: 8px;
  color:#5a3da8;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 3px 0 #ffb3d6;
}
.pager a:hover { background:#ff5fa2; color:#fff; border-color:#ff5fa2; }
.pager .cur {
  background: linear-gradient(135deg,#ff3aa0,#a85eff);
  color:#fff; border-color:#ff3aa0;
}

/* ===== 友情区 ===== */
.flinks {
  background: rgba(255,255,255,.6);
  border:2px solid #fff;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 12px;
  box-shadow: inset 0 0 12px rgba(255,210,240,.4);
}
.flinks b { color:#ff3aa0; margin-right: 8px; }
.flinks a { color:#5a3da8; margin: 0 8px; }

/* ===== 底部 ===== */
.footer {
  position: relative;
  z-index: 5;
  text-align:center;
  padding: 22px 18px 30px;
  margin-top: 18px;
  background: linear-gradient(90deg,#ff5fa2 0%,#a85eff 40%,#5ed7ff 100%);
  color:#fff;
  border-top: 4px solid #fff;
  box-shadow: 0 -8px 0 rgba(168,94,255,.3);
}
.footer p { font-size: 12px; letter-spacing:1px; line-height: 1.9; }
.footer a { color:#fff7a8 !important; }

/* ===== 浮动装饰 ===== */
.float-deco {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  font-size: 28px;
  opacity: .7;
  animation: float 6s ease-in-out infinite alternate;
}
.d1 { top: 18%; left: 1.5%; color:#ff5fa2; }
.d2 { top: 38%; right: 1.5%; color:#5ed7ff; animation-delay: -2s; }
.d3 { bottom: 14%; left: 2%; color:#7afd62; animation-delay: -4s; }

@keyframes float {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-14px) rotate(4deg); }
}

/* ===== 通用工具 ===== */
.center { text-align:center; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt22 { margin-top: 22px; }
.mb8 { margin-bottom: 8px; } .mb14 { margin-bottom: 14px; } .mb22 { margin-bottom: 22px; }
.pill {
  display:inline-block; padding:2px 10px; border-radius:999px;
  background: linear-gradient(90deg,#ff7ab8,#a85eff); color:#fff; font-size: 11px;
}
.pill.alt { background: linear-gradient(90deg,#7ee9ff,#22b3ff); }
.pill.alt2 { background: linear-gradient(90deg,#aaff7a,#3acf3a); }
.pill.alt3 { background: linear-gradient(90deg,#ffe27a,#ff9c1f); }

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff5fa2, #a85eff, #5ed7ff, transparent);
  margin: 14px 0;
  border-radius: 2px;
}

/* 大屏放大小 */
@media (min-width: 1200px){
  .wrap { grid-template-columns: 240px 1fr 260px; }
}