/* yexunshe.com 全站样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0c0813;
  --bg-2: #14101d;
  --bg-card: #1b1428;
  --bg-card-h: #251c35;
  --bg-soft: #1f1730;
  --accent: #b32844;
  --accent-2: #d63351;
  --accent-soft: rgba(214, 51, 81, 0.12);
  --accent-glow: rgba(214, 51, 81, 0.35);
  --gold: #c79b5d;
  --text: #ece6f5;
  --text-muted: #9a92ad;
  --text-dim: #5e576f;
  --border: #2a2138;
  --border-soft: #221a30;
  --green: #67b58a;
  --warning: #d9a960;
  --radius: 14px;
  --radius-sm: 8px;
}
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 5%, rgba(179, 40, 68, 0.10), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(125, 40, 100, 0.08), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(179, 40, 68, 0.06), transparent 50%);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 8, 19, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 22px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 0 0 18px var(--accent-glow);
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6e1830);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 0 14px var(--accent-glow), inset 0 0 8px rgba(0,0,0,0.4);
  position: relative;
  color: #fff;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 2px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
}
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent-2); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 2px;
}
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft);
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  width: 240px;
  transition: all 0.2s;
  margin-left: auto;
}
.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  width: 280px;
}
.search-wrap input {
  flex: 1; border: none; outline: none;
  background: transparent; color: var(--text);
  font-family: inherit; font-size: 13px;
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-icon { color: var(--text-dim); font-size: 12px; }
.btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  font-family: inherit;
  display: inline-block;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 6px 22px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.btn-lg { padding: 12px 26px; font-size: 14px; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 14px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ===== Breadcrumb ===== */
.breadcrumb { padding: 18px 0; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-dim); }

/* ===== Page H1 ===== */
.page-h1 {
  font-size: 26px;
  margin: 12px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-h1::before {
  content: "";
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 28px 90px;
  overflow: hidden;
  text-align: center;
  margin: 0 -28px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(179, 40, 68, 0.25), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(80, 20, 70, 0.15), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.age-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 14px;
  font-size: 11px;
  border: 1px solid rgba(214, 51, 81, 0.3);
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.age-chip::before { content: "●"; color: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-h {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 8px;
  background: linear-gradient(180deg, #fff 20%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  text-shadow: 0 0 60px var(--accent-glow);
}
.hero-sub { font-size: 16px; color: var(--text-muted); letter-spacing: 4px; margin-bottom: 18px; }
.hero-desc { font-size: 14px; color: var(--text-muted); max-width: 540px; margin: 0 auto 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Section ===== */
.section { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
  letter-spacing: 1px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}
.section-head .more { font-size: 12px; color: var(--text-muted); }
.section-head .more:hover { color: var(--accent-2); }

/* ===== Categories ===== */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: block;
}
.category-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px var(--accent-soft);
}
.category-card:hover::before { opacity: 1; }
.cat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(80, 20, 70, 0.3));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 18px; color: var(--accent-2);
  border: 1px solid var(--border);
  position: relative;
}
.cat-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); position: relative; }
.cat-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; position: relative; }
.cat-count { font-size: 11px; color: var(--accent-2); font-weight: 500; position: relative; }

/* ===== Subcategory tabs ===== */
.cat-subs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}

/* ===== Post / Video cards ===== */
.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all 0.2s;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.post-card::after {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s;
}
.post-card:hover { background: var(--bg-card-h); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.post-card:hover::after { width: 100%; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-thumb {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2a1530, #1a0e25 60%, #3a1a2a);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.post-thumb.placeholder::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(214, 51, 81, 0.25), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(125, 40, 110, 0.2), transparent 45%);
}
.post-thumb.placeholder::after {
  content: attr(data-label);
  position: absolute; bottom: 8px; right: 10px;
  font-size: 9px; color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #1a0e25; }
.post-thumb.video .play-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}
.post-thumb.big { height: 360px; }
.post-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag, a.tag {
  font-size: 10px; padding: 2px 9px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  letter-spacing: 0.5px;
  border: 1px solid rgba(214, 51, 81, 0.18);
  display: inline-block;
}
.tag.alt { background: rgba(199, 155, 93, 0.12); color: var(--gold); border-color: rgba(199, 155, 93, 0.2); }
.tag.green { background: rgba(103, 181, 138, 0.12); color: var(--green); border-color: rgba(103, 181, 138, 0.2); }
.tag.pinned { background: rgba(214, 51, 81, 0.22); color: #fff; border-color: var(--accent-2); }
.post-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
  line-height: 1.5;
  transition: color 0.2s;
}
.post-card:hover .post-title { color: var(--accent-2); }
.post-summary {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 14px;
  flex: 1;
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.post-meta .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6e1830);
  color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.post-meta .spacer { flex: 1; }
.post-meta .stat { display: inline-flex; align-items: center; gap: 3px; }

/* ===== Task ===== */
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.task-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative; overflow: hidden;
}
.task-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--green); }
.task-card.medium::before { background: var(--warning); }
.task-card.high::before { background: var(--accent-2); }
.task-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.task-title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; flex: 1; }
.risk-badge { font-size: 10px; padding: 3px 10px; border-radius: 10px; margin-left: 10px; white-space: nowrap; font-weight: 600; }
.risk-low { background: rgba(103, 181, 138, 0.15); color: var(--green); border: 1px solid rgba(103, 181, 138, 0.3); }
.risk-medium { background: rgba(217, 169, 96, 0.15); color: var(--warning); border: 1px solid rgba(217, 169, 96, 0.3); }
.risk-high { background: rgba(214, 51, 81, 0.15); color: var(--accent-2); border: 1px solid rgba(214, 51, 81, 0.3); }
.task-safety {
  font-size: 12px; color: var(--text-muted);
  background: rgba(214, 51, 81, 0.06);
  border-left: 2px solid var(--accent);
  padding: 8px 11px;
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
}

/* ===== Circle ===== */
.circle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.circle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
}
.circle-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6e1830);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(179, 40, 68, 0.25);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.circle-icon img { width: 100%; height: 100%; object-fit: cover; }
.circle-info .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.circle-info .desc { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.circle-info .stats { font-size: 11px; color: var(--accent-2); }

/* ===== Detail ===== */
.detail-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.detail-head { margin-bottom: 22px; }
.detail-head .meta-row, .meta-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; font-size: 12px; color: var(--text-muted);
  flex-wrap: wrap;
}
.detail-title {
  font-size: 28px; line-height: 1.4; margin-bottom: 14px;
  background: linear-gradient(180deg, #fff, #e0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.detail-cw {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid rgba(214, 51, 81, 0.2);
  margin-bottom: 22px;
}
.detail-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.detail-body h2 { margin: 28px 0 14px; color: var(--accent-2); font-size: 19px; }
.detail-body h3 { margin: 24px 0 12px; color: var(--accent-2); font-size: 17px; }
.detail-body p { margin-bottom: 14px; color: #d4cde0; }
.detail-body ul, .detail-body ol { margin: 8px 0 16px 24px; color: #d4cde0; }
.detail-body li { margin-bottom: 6px; }
.detail-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px; background: var(--bg-soft);
  color: var(--text-muted);
  margin: 14px 0; font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.video-player { width: 100%; border-radius: var(--radius-sm); background: #000; max-height: 600px; }

/* ===== Tag cloud ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-tag {
  font-size: 13px; padding: 6px 14px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.15s;
  display: inline-block;
}
.hot-tag:hover { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent); }
.tag-count {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-dim);
}
.cat-subs .hot-tag { background: var(--bg-card); }

/* ===== Archive ===== */
.archive-group { margin-bottom: 28px; }
.archive-h {
  font-size: 16px; color: var(--accent-2);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.archive-list { list-style: none; }
.archive-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 14px;
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
}
.archive-list a { color: var(--text); }
.archive-list a:hover { color: var(--accent-2); }
.archive-list .meta { font-size: 12px; color: var(--text-dim); }

/* ===== Empty ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state .ico {
  font-size: 36px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.empty-state .t { font-size: 14px; margin-bottom: 6px; }
.empty-state .d { font-size: 12px; color: var(--text-dim); }

/* ===== Footer ===== */
footer {
  margin-top: 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 50px 28px 30px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .desc { font-size: 12px; color: var(--text-muted); line-height: 1.8; max-width: 300px; }
.footer-col h4 { font-size: 12px; color: var(--text); margin-bottom: 14px; font-weight: 700; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 12px; color: var(--text-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-dim);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .age-tag {
  background: var(--accent-soft); color: var(--accent-2);
  padding: 4px 12px; border-radius: 12px;
  border: 1px solid rgba(214, 51, 81, 0.3);
  font-weight: 600; letter-spacing: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .circle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .search-wrap { display: none; }
  .container { padding: 0 14px; }
  .hero { padding: 50px 14px 60px; }
  .hero-h { font-size: 36px; letter-spacing: 4px; }
  .hero-sub { font-size: 13px; letter-spacing: 2px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .circle-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 28px 0; }
  .section-head h2 { font-size: 18px; }
  .detail-wrap { padding: 22px; }
  .detail-title { font-size: 22px; }
  .page-h1 { font-size: 22px; }
}
