/* ===== 逢真命理 — Modern 2026 Design ===== */
:root {
  --pri: #c33;
  --pri-dark: #a11;
  --pri-light: #fef0f0;
  --warm: #fef9f3;
  --warm2: #fdf3e4;
  --warm3: #fef0db;
  --card-bg: #fff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --text: #2c2c2c;
  --text2: #666;
  --text3: #999;
  --border: #e8e4e0;
  --radius: 10px;
  --radius-sm: 6px;
  --gap: 16px;
}

/* ===== Reset & Base ===== */
body { background: #faf7f2 !important; }
.wrapper { width: 100% !important; max-width: 1200px; background: transparent !important; padding: 0 !important; overflow: visible !important; }
.h2-wrap { max-width: 1200px; margin: 0 auto; padding: 0 8px; }

/* ===== Header ===== */
.header {
  background: #faf6f0;
  padding: 22px 24px 18px 24px !important;
  margin: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e5dbcf;
}
/* decorative top strip: red + gold accents */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background:
    repeating-linear-gradient(90deg,
      var(--pri) 0px, var(--pri) 5px,
      transparent 5px, transparent 7px,
      #d4a843 7px, #d4a843 9px,
      transparent 9px, transparent 11px
    );
}
.header a[href="/"] {
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #6b2020 !important;
  letter-spacing: 10px !important;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
}
/* slogan below title */
.header a[href="/"]::after {
  content: '知命识运 · 传承经典';
  display: block;
  font-size: 12px;
  color: #b09880;
  font-weight: 400;
  letter-spacing: 3px;
  margin-top: 6px;
}
/* wavy divider */
.header .center::after {
  content: '';
  display: block;
  width: 120px; height: 6px;
  margin: 10px auto 0;
  background:
    radial-gradient(circle at 6px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 18px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 30px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 42px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 54px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 66px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 78px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 90px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 102px 3px, #d4c0a0 1.5px, transparent 2px),
    radial-gradient(circle at 114px 3px, #d4c0a0 1.5px, transparent 2px);
}
.header .center div {
  font-size: 11px !important;
  color: #b0a090 !important;
  font-style: normal;
  letter-spacing: 4px;
  margin-top: 8px !important;
  text-transform: uppercase;
  font-weight: 400;
}

/* ===== Nav ===== */
.nav {
  background: linear-gradient(180deg, #b82222 0%, #991111 100%) !important;
  padding: 6px 0; height: auto !important; width: 100% !important;
  box-shadow: 0 2px 8px rgba(150,20,20,.12);
}
.nav ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; padding: 0; margin: 0; max-width: 1200px; margin: 0 auto;
}
.nav ul li { list-style: none; float: none !important; width: auto !important; overflow: visible !important; background: none !important; }
.nav ul li a {
  display: block; padding: 10px 14px !important; line-height: normal !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 16px !important;
  font-weight: 400;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}
.nav ul li a.active,
.nav ul li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.1);
  border-bottom-color: rgba(255,255,255,.6);
}
.nav ul li a.active {
  font-weight: 600;
  border-bottom-color: #fff;
  background: rgba(255,255,255,.12);
}

/* ===== Sub-nav (correl) ===== */
.correl {
  width: 100% !important; max-width: 1200px;
  height: auto !important; margin: 8px auto 20px !important;
  padding: 0 !important; text-align: center;
}
.correl ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; padding: 0; margin: 0;
  list-style: none;
}
.correl ul li {
  float: none !important; padding: 6px 14px;
  background: #fff5ec; border: 1px solid #f0dcc0;
  border-radius: 20px; font-size: 15px;
  transition: all .15s;
}
.correl ul li:hover { background: #ffe8d0; border-color: #d4a843; }
.correl ul li a { color: #6b4a2a; text-decoration: none; }
.correl ul li a:hover { color: #8b2020; }

/* ===== Disclaimer ===== */
.declare {
  background: var(--warm) !important;
  border: 1px solid #f0e0cc;
  border-radius: var(--radius-sm);
  max-width: 1200px; margin: 0 auto !important;
  padding: 8px 20px !important;
  box-sizing: border-box;
  color: #8b7b6b !important;
  font-size: 13px !important;
  line-height: 1.6;
  text-align: center;
}

/* ===== Main 3-Column Grid ===== */
.h2-main {
  display: grid;
  grid-template-columns: 185px 1fr 275px;
  gap: var(--gap);
  margin: 10px 0;
}
.h2-left, .h2-center, .h2-right {
  display: flex; flex-direction: column; gap: var(--gap); min-width: 0;
}

/* ===== Card ===== */
.h2-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow .25s;
}
.h2-card:hover { box-shadow: var(--card-shadow-hover); }
.h2-card-title {
  background: linear-gradient(180deg, #fefefe, #faf8f5);
  padding: 0 14px; height: 38px; line-height: 38px;
  font-size: 14px; font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--pri);
  display: flex; align-items: center; gap: 6px;
}
.h2-card-title strong { color: var(--pri); font-size: 15px; }
.h2-card-title a { color: var(--text); text-decoration: none; }
.h2-card-title a:hover { color: var(--pri); }
.h2-card-title .more { margin-left: auto; font-weight: 400; font-size: 12px; }
.h2-card-title .more a { color: var(--text2); margin-left: 10px; font-size: 12px; }
.h2-card-title .more a:hover { color: var(--pri); }
.h2-card-body { padding: 12px 14px; }

/* ===== Link Lists ===== */
.h2-links { list-style: none; padding: 0; margin: 0; }
.h2-links li { padding: 5px 0; line-height: 1.7; }
.h2-links li + li { border-top: 1px solid #f5f2ef; }
.h2-links li a {
  color: var(--text); text-decoration: none; font-size: 14px;
  display: block; padding: 2px 0; transition: color .15s;
  position: relative; padding-left: 14px;
}
.h2-links li a::before {
  content: '›'; position: absolute; left: 2px;
  color: var(--pri); font-weight: 700; font-size: 16px; line-height: 1;
  opacity: .4; transition: opacity .15s;
}
.h2-links li a:hover { color: var(--pri); padding-left: 16px; }
.h2-links li a:hover::before { opacity: 1; }
.h2-links-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 14px; }
.h2-links-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px 10px; }

/* ===== Hero ===== */
.h2-hero {
  background: linear-gradient(160deg, #fffdf9 0%, #fff8ee 30%, #fef3e2 100%);
  border: 1px solid #f0dcc4;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(180,130,70,.1);
  overflow: hidden;
}
.h2-hero h1 {
  text-align: center; font-size: 22px; font-weight: 800;
  color: var(--pri-dark); padding: 22px 0 6px; margin: 0;
  letter-spacing: 4px;
}
.h2-hero-desc {
  padding: 8px 28px 14px; color: var(--text2);
  line-height: 1.8; font-size: 14px; text-align: center;
}
.h2-hero-desc strong { color: var(--pri); font-weight: 700; }
.h2-hero-form-title {
  background: linear-gradient(180deg, #fef0df, #fde6cc);
  padding: 12px 22px; font-size: 15px; font-weight: 700;
  color: var(--pri-dark);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f0d4b0; border-bottom: 1px solid #f0d4b0;
}
.h2-hero-form-title span { display: flex; gap: 8px; }
.h2-hero-form-title span a {
  font-size: 12px; color: var(--text2); text-decoration: none;
  margin-left: 10px; transition: color .15s;
}
.h2-hero-form-title span a:hover { color: var(--pri); text-decoration: underline; }
.h2-hero-form-wrap { padding: 16px 22px; }
.h2-hero-form-note { padding: 0 22px 14px; font-size: 12px; color: var(--text3); text-align: center; }

/* ===== Form Elements ===== */
.inform { line-height: 44px; font-size: 15px; color: #5a4530; text-align: center; }
.inform .xminpt {
  font-size: 14px; color: var(--text); height: 32px; padding: 4px 8px; width: 64px;
  border: 1px solid #d4c4b0; border-radius: var(--radius-sm);
  background: #fffdf8; transition: border-color .2s;
}
.inform .xminpt:focus { border-color: var(--pri); outline: none; box-shadow: 0 0 0 3px rgba(200,50,50,.08); }
.inform .select, .inform .zbslt {
  font-size: 14px; height: 34px; vertical-align: middle;
  border: 1px solid #d4c4b0; border-radius: var(--radius-sm);
  background: #fffdf8; padding: 2px 8px; color: var(--text); min-width: 70px;
}
.zbbtn {
  font-size: 15px; margin: 12px 5px; padding: 12px 40px; font-weight: 700;
  border-radius: 50px; border: 0;
  background: linear-gradient(135deg, var(--pri) 0%, #d44 100%);
  color: #fff; cursor: pointer; letter-spacing: 3px;
  box-shadow: 0 4px 14px rgba(200,40,40,.25);
  transition: all .25s;
}
.zbbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,40,40,.35);
}

/* ===== Button Grid ===== */
.h2-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.h2-btn-grid a, .h2-btn-grid-3 a {
  display: block; padding: 8px 6px;
  background: #faf8f5; border: 1px solid var(--border);
  text-align: center; color: var(--text); text-decoration: none;
  font-size: 15px; border-radius: var(--radius-sm);
  transition: all .2s;
}
.h2-btn-grid a:hover, .h2-btn-grid-3 a:hover {
  background: var(--pri-light); color: var(--pri);
  border-color: var(--pri); transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(200,50,50,.1);
}
.h2-btn-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }

/* ===== Calendar ===== */
.h2-cal { font-size: 15px; line-height: 1.8; }
.h2-cal a { text-decoration: none; color: inherit; display: block; }
.h2-cal .date { text-align: center; font-weight: 800; font-size: 15px; color: var(--text); padding: 4px 0; }
.h2-cal .lunar { text-align: center; color: var(--text2); font-size: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); margin-bottom: 6px; }
.h2-cal .yi { color: #4a8; padding: 2px 12px; font-size: 12px; }
.h2-cal .ji { color: var(--pri); padding: 2px 12px; font-size: 12px; }
.h2-cal .chong { padding: 2px 12px; font-size: 12px; color: var(--text2); }
.h2-cal-links { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px 12px; }
.h2-cal-links a {
  text-align: center; font-size: 12px; font-weight: 600; color: var(--pri);
  text-decoration: none; padding: 7px 4px;
  background: var(--pri-light); border-radius: var(--radius-sm);
  border: 1px solid #f0d4d4; transition: all .2s;
}
.h2-cal-links a:hover { background: #ffe8e8; transform: translateY(-1px); }

/* ===== Channel Row ===== */
.h2-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: var(--gap) 0; }
.h2-chan {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  overflow: hidden; transition: all .25s;
}
.h2-chan:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.h2-chan-title {
  background: linear-gradient(180deg, #fefefe, #faf8f5);
  padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--text);
  border-bottom: 2px solid var(--pri); text-align: center;
}
.h2-chan-title a { color: var(--text); text-decoration: none; }
.h2-chan-title a:hover { color: var(--pri); }
.h2-chan-body { padding: 12px 14px; font-size: 15px; color: var(--text); line-height: 1.8; }
.h2-chan-body .h2-links li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-chan-body .h2-links li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ===== Friend Links ===== */
.h2-friends {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin: var(--gap) 0; display: flex; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.h2-friends-title {
  background: linear-gradient(180deg, #fefefe, #faf8f5);
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: var(--text); white-space: nowrap;
  border-right: 2px solid var(--pri); min-width: 80px;
}
.h2-friends-list { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.h2-friends-list a { color: var(--text2); font-size: 15px; text-decoration: none; transition: color .15s; }
.h2-friends-list a:hover { color: var(--pri); }

/* ===== Inner Page Layout: plt+prt → Grid ===== */
.main-grid { display: block; max-width: 1200px; margin: 0 auto; padding: 0 8px; box-sizing: border-box; }
.main-grid .wrapper {
  display: grid !important;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  width: 100% !important;
  max-width: none !important;
}
.plt { float: none !important; width: auto !important; grid-column: 1; min-width: 0; }
.prt { float: none !important; width: auto !important; grid-column: 2; min-width: 0; }

/* No-sidebar: centered single-column layout */
.main-grid .wrapper.no-sidebar {
  grid-template-columns: 1fr !important;
  max-width: 860px;
  margin: 0 auto;
}
.main-grid .wrapper.no-sidebar .plt {
  grid-column: 1 !important;
}
.main-grid .wrapper.no-sidebar .prt {
  display: none;
}

/* Breadcrumb */
.place {
  width: auto !important; height: auto !important; line-height: 1.6 !important;
  background: var(--warm) !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm); padding: 8px 14px !important;
  margin-bottom: 12px; font-size: 13px !important;
}

/* Main content box */
.viewbox {
  width: 100% !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding-bottom: 16px !important;
  overflow: visible !important;
}
.viewbox .title h2 {
  font-size: 24px !important; margin: 18px auto 8px !important;
  color: var(--pri-dark) !important;
}
.viewbox .info {
  height: auto !important; line-height: 1.6 !important;
  padding: 6px 20px 10px !important; margin: 0 20px !important;
  background: none !important;
}
.viewbox .content {
  font-size: 15px; line-height: 1.9; color: var(--text);
  padding: 8px 25px 10px !important;
}

/* Form wrapper */
.inform_vip {
  background: var(--warm) !important;
  border: 1px solid #f0dcc4 !important;
  border-radius: var(--radius);
  margin: 10px 20px !important; padding: 16px 20px !important;
  text-align: center;
}
.inform_vip .ipt {
  height: 32px; padding: 4px 10px; border: 1px solid #d4c4b0;
  border-radius: var(--radius-sm); background: #fffdf8; font-size: 14px;
}
.inform_vip .select {
  font-size: 14px; height: 34px; border: 1px solid #d4c4b0;
  border-radius: var(--radius-sm); background: #fffdf8; padding: 2px 6px;
  color: var(--text); vertical-align: middle;
}
.inform_vip .button {
  font-size: 15px; margin-top: 12px; padding: 10px 36px; font-weight: 700;
  border-radius: 50px; border: 0; cursor: pointer; letter-spacing: 2px;
  background: linear-gradient(135deg, var(--pri) 0%, #d44 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(200,40,40,.25);
  transition: all .25s;
}
.inform_vip .button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,40,40,.35); }

/* Sidebar cards */
.tbox {
  margin: 0 0 12px 0 !important; border: 1px solid var(--border) !important;
  border-radius: var(--radius); background: var(--card-bg);
  box-shadow: var(--card-shadow); overflow: hidden !important;
  font-size: 14px;
}
.tbox dt {
  height: auto !important; line-height: 1.5 !important;
  background: linear-gradient(180deg, #fefefe, #faf8f5) !important;
  border-bottom: 2px solid var(--pri) !important;
  padding: 10px 14px !important;
}
.tbox dt strong { font-size: 14px !important; background: none !important; padding-left: 0 !important; margin-left: 0 !important; line-height: 1.5 !important; height: auto !important; display: inline !important; float: none !important; }
.tbox dd { border: none !important; padding: 10px 14px !important; }

/* Quick-tool cards — must match pc.css specificity to override */
.csbox {
  background: var(--warm) !important; border: 1px solid #f0dcc4 !important;
  border-radius: var(--radius-sm) !important; margin: 8px 0 !important;
  padding: 12px !important; box-sizing: border-box !important;
  height: auto !important; width: 100% !important; overflow: visible !important;
}
.csbox form { display: flex !important; flex-direction: column !important; gap: 6px !important; overflow: visible !important; }
.csbox form .cminpt, .csbox form .czinpt {
  width: 100% !important; height: 34px !important; float: none !important;
  padding: 4px 10px !important; border: 1px solid #d4c4b0 !important;
  border-radius: var(--radius-sm) !important; background: #fffdf8 !important;
  font-size: 13px !important; box-sizing: border-box !important;
}
/* Two-column select groups */
.csbox form .cmbox { width: 100% !important; float: none !important; height: auto !important; display: flex !important; gap: 6px; margin: 0; overflow: visible !important; }
.csbox form .cmbox .pd_sele { flex: 1; }
.csbox form .cmbox .pd_sele select {
  width: 100% !important; height: 34px !important; box-sizing: border-box !important;
  font-size: 13px !important; border: 1px solid #d4c4b0 !important;
  border-radius: var(--radius-sm) !important; background: #fffdf8 !important;
  padding: 2px 8px !important; color: var(--text) !important; float: none !important;
}
.bdr { border: 0 !important; }
/* Buttons */
.csbox form .btnbox { width: 100% !important; float: none !important; height: auto !important; overflow: visible !important; text-align: center !important; border: 0 !important; }
.csbox form .btnbox .cmbtn {
  width: 100% !important; height: auto !important; float: none !important;
  font-size: 14px !important; padding: 10px 0 !important;
  font-weight: 600 !important; border-radius: 50px !important;
  border: 0 !important; cursor: pointer !important; overflow: visible !important;
  background: linear-gradient(135deg, var(--pri) 0%, #d44 100%) !important;
  color: #fff !important; box-shadow: 0 2px 8px rgba(200,40,40,.2) !important;
  transition: all .2s !important;
}
.csbox form .btnbox .cmbtn:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(200,40,40,.3) !important; }

/* Sidebar link lists */
.d4, .d6, .d7, .d8 { list-style: none; padding: 0; margin: 0; }
.d4 li, .d6 li, .d7 li, .d8 li {
  padding: 5px 0; line-height: 1.6; border-bottom: 1px dotted #f0ece8;
  font-size: 15px;
}
.d4 li a, .d6 li a, .d7 li a, .d8 li a {
  color: var(--text); text-decoration: none; display: block;
  padding: 2px 0; transition: color .15s;
}
.d4 li a:hover, .d6 li a:hover, .d7 li a:hover, .d8 li a:hover { color: var(--pri); }
.d8 li b { color: var(--pri); }

/* Empty list → hide entire box */
.d4:empty { display: none; }
.tbox:has(.d4:empty) { display: none; }

/* Two-column select groups (cmbox) */
.cmbox { display: flex; gap: 4px; margin: 2px 0; }
.cmbox .pd_sele { flex: 1; }
.bdr { border: 0 !important; }

/* Clearfix */
.clr { overflow: visible !important; }

/* Prev/Next nav */
.handle { margin-top: 16px; }
.handle ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; }
.handle ul li {
  flex: 1; padding: 10px 16px; background: var(--warm);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px;
}
.handle ul li a { color: var(--text); text-decoration: none; }
.handle ul li a:hover { color: var(--pri); }

/* Bottom section */
.mt1 { margin-top: 16px !important; }

/* ===== Bottom Link Sections (4-column grid) ===== */
.bottom-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.bottom-sections .tbox { margin: 0 !important; }

/* Page intro between content and bottom sections */
.page-intro { margin-top: 20px; }
.page-intro .intro-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  padding: 20px 24px;
}
.page-intro .intro-card h3 {
  font-size: 18px; color: var(--pri-dark); margin: 0 0 10px 0;
  padding-bottom: 10px; border-bottom: 2px solid var(--pri);
}
.page-intro .intro-card p {
  font-size: 14px; color: var(--text2); line-height: 1.8; margin: 0;
}

/* ===== Legacy component overrides ===== */
/* Hot articles (d2) */
.d2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.d2 li { float: none !important; width: auto !important; margin: 0 !important; padding: 4px 0; border-bottom: 1px dotted #f0ece8; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d2 li a { display: inline !important; color: var(--text); text-decoration: none; line-height: 1.7; text-indent: 0 !important; background: none !important; overflow: visible !important; }
.d2 li a:first-child { color: var(--pri); font-size: 12px; margin-right: 2px; }
.d2 li a:hover { text-decoration: underline; }
/* Zodiac 2026 (d3) */
.d3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px 8px; }
.d3 li { padding: 3px 0; }
.d3 li a { color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.7; }
.d3 li a:hover { color: var(--pri); text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  width: 100% !important; max-width: 1200px;
  margin: 24px auto 0 !important; padding: 20px 16px !important;
  text-align: center; color: var(--text2);
  border-top: 2px solid var(--pri);
  background: linear-gradient(180deg, #fefefe, #faf8f5);
  font-size: 15px; line-height: 2;
}
.footer .powered { font-size: 13px !important; color: var(--text2) !important; }
.footer .powered a { color: var(--text2); text-decoration: none; margin: 0 6px; }
.footer .powered a:hover { color: var(--pri); }
.footer .powered br + a { font-weight: 600; color: var(--text); }

/* ===== Responsive ===== */
@media (min-width: 1025px) and (max-width: 1200px) {
  .h2-main { grid-template-columns: 175px 1fr 260px; }
  .main-grid .wrapper { grid-template-columns: 1fr 260px; gap: 14px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .nav ul li a { padding: 8px 8px !important; font-size: 13px !important; letter-spacing: 0.5px !important; }
  .h2-main { grid-template-columns: 1fr 1fr; }
  .h2-left { grid-column: 1; }
  .h2-center { grid-column: 1 / -1; order: -1; }
  .h2-right { grid-column: 2; }
  .h2-channels { grid-template-columns: repeat(2, 1fr); }
  .main-grid .wrapper { grid-template-columns: 1fr 240px; gap: 12px; }
  .bottom-sections { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 767px) {
  .h2-main { grid-template-columns: 1fr; gap: 12px; }
  .h2-left, .h2-center, .h2-right { grid-column: 1; }
  .h2-center { order: -1; }
  .h2-channels { grid-template-columns: 1fr; gap: 12px; }
  .h2-friends { flex-direction: column; }
  .h2-friends-title { border-right: none; border-bottom: 2px solid var(--pri); }
  .h2-links-2col, .h2-links-3col { grid-template-columns: 1fr; }
  .d2 { grid-template-columns: 1fr; }
  .d3 { grid-template-columns: 1fr 1fr; }
  .header a[href="/"] { font-size: 28px !important; letter-spacing: 4px !important; }
  .nav ul li a { padding: 6px 8px !important; font-size: 12px !important; letter-spacing: 0 !important; }
  .main-grid .wrapper { grid-template-columns: 1fr !important; gap: 12px; }
  .plt, .prt { grid-column: 1 !important; }
  .viewbox .content { padding: 8px 15px 10px !important; }
  .inform_vip { margin: 10px 10px !important; padding: 14px 12px !important; }
  .handle ul { flex-direction: column; gap: 8px; }
  .bottom-sections { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.nav-right{float:right;display:flex;gap:10px;align-items:center;height:100%;padding-right:15px}
.nav-auth{color:#fff!important;text-decoration:none;font-size:14px;padding:6px 16px;border-radius:4px}
.nav-auth:hover{background:rgba(255,255,255,0.15)}
.nav-register{background:rgba(255,255,255,0.2);font-weight:bold}
.nav-register:hover{background:rgba(255,255,255,0.3)}

/* Header Auth (右上角登录/注册) */
.header { position: relative; }
.header-auth, .header-auth-logged {
    position: absolute;
    top: 12px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}
.hdr-login, .hdr-register {
    font-size: 14px;
    text-decoration: none;
    padding: 5px 18px;
    border-radius: 4px;
    transition: all 0.2s;
}
.hdr-login {
    color: #c33;
    border: 1px solid #c33;
    background: #fff;
}
.hdr-login:hover {
    background: #fdf2f2;
}
.hdr-register {
    color: #fff;
    background: #c33;
    border: 1px solid #c33;
}
.hdr-register:hover {
    background: #a22;
}
.hdr-username {
    font-size: 14px;
    color: #666;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hdr-member {
    font-size: 15px;
    color: #c33;
    text-decoration: none;
    border: 1px solid #c33;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
}
.hdr-member:hover {
    background: #fdf2f2;
}

/* Header admin/role-aware buttons */
.hdr-admin {
    background: #c33;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
}
.hdr-admin:hover {
    background: #a00;
    color: #fff !important;
}



/* ── 二级导航条（buyiju风格） ── */
.nav-sub-bar {
  background: #9b1b1b;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0;
}
.nav-sub-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0;
}
.nav-sub-inner a {
  display: inline-block; padding: 8px 16px;
  color: rgba(255,255,255,.85);
  font-size: 14px; text-decoration: none;
  transition: background .2s;
}
.nav-sub-inner a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ===== Hub Page v2 (2026-07-14) ===== */
.hub-desc { font-size:15px; color:#666; margin-bottom:20px; line-height:1.6; }
.hub-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.hub-card {
  display:flex; align-items:center; gap:10px;
  padding:14px 16px; background:#fff; border:1px solid #e8e0d0;
  border-radius:8px; text-decoration:none; transition:all 0.2s;
}
.hub-card:hover { border-color:#c33; box-shadow:0 2px 8px rgba(204,51,51,0.08); }
.hc-icon { font-size:24px; flex-shrink:0; }
.hc-name { font-size:15px; font-weight:600; color:#333; flex-shrink:0; }
.hc-desc { font-size:12px; color:#999; }
@media (max-width:768px) { .hub-grid{grid-template-columns:1fr} }

/* ====== 文章正文排版 ====== */
.article-body {
    font-size: 16px;
    line-height: 2;
    color: #4a3f35;
    text-align: justify;
    word-break: break-word;
}

.article-body p {
    margin: 0 0 18px 0;
    text-indent: 2em;
}

/* 一级标题（一、二、三...） */
.article-body p:has(strong:first-child) {
    text-indent: 0;
}
.article-body p:has(strong) {
    text-indent: 0;
}
.article-body p strong:only-child,
.article-body p:has(> strong:first-child:only-child) {
    font-size: 18px;
    color: #c33;
    display: block;
    margin: 28px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e8dcc8;
}

/* 二级标题（1、2、3...） */
.article-body p strong {
    color: #8B4513;
}

/* 列表项 */
.article-body p:has(strong) ~ p {
    /* 紧跟在标题后的正文取消缩进 */
}

/* em和斜体 */
.article-body em, .article-body i {
    color: #999;
    font-style: italic;
}

/* 行内链接 */
.article-body a {
    color: #b3472a;
    text-decoration: none;
    border-bottom: 1px dotted #d4a08a;
    transition: all 0.2s;
}
.article-body a:hover {
    color: #c33;
    border-bottom-color: #c33;
}

/* 引用块 */
.article-body blockquote {
    margin: 16px 0;
    padding: 14px 20px;
    background: #fdf8f0;
    border-left: 4px solid #c33;
    color: #666;
    font-size: 14px;
}

/* 首段缩进取消 */
.article-body p:first-of-type {
    text-indent: 0;
}

/* 列表样式 */
.article-body ul, .article-body ol {
    margin: 0 0 18px 2em;
    padding: 0;
}
.article-body li {
    margin-bottom: 6px;
    list-style-position: outside;
}
.article-body li::marker {
    color: #c33;
}

/* 分隔线 */
.article-body hr {
    border: none;
    border-top: 1px dashed #e8dcc8;
    margin: 24px 0;
}

/* 表格 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.article-body th {
    background: #fdf5eb;
    padding: 10px 14px;
    border: 1px solid #e8dcc8;
    text-align: left;
    color: #8B4513;
}
.article-body td {
    padding: 10px 14px;
    border: 1px solid #e8dcc8;
}
.article-body tr:nth-child(even) td {
    background: #fdfcf8;
}

/* ====== 文章正文排版 ====== */
.article-body {
    font-size: 16px;
    line-height: 2.2;
    color: #4a3f35;
    text-align: justify;
}

.article-body p {
    margin: 0 0 18px 0;
    text-indent: 2em;
}
.article-body p:first-of-type {
    text-indent: 0;
}

/* 一级标题 h2 */
.article-body h2 {
    font-size: 20px;
    color: #b33;
    margin: 32px 0 16px 0;
    padding: 12px 16px;
    border-left: 4px solid #c33;
    background: linear-gradient(90deg, #fdf5f0, transparent);
    letter-spacing: 2px;
}

/* 二级标题 h3 */
.article-body h3 {
    font-size: 17px;
    color: #a0522d;
    margin: 22px 0 10px 0;
    padding-left: 12px;
    border-left: 3px solid #d4a08a;
}

/* 引用块 */
.article-body blockquote {
    margin: 18px 0;
    padding: 16px 22px;
    background: #fefbf7;
    border: 1px solid #ede0cc;
    border-radius: 6px;
    color: #777;
    font-size: 14px;
}

/* 行内链接 */
.article-body a {
    color: #b3472a;
    text-decoration: none;
    border-bottom: 1px dotted #d4a08a;
}
.article-body a:hover {
    color: #c33;
    border-bottom-color: #c33;
}

/* 列表 */
.article-body ul, .article-body ol {
    margin: 0 0 18px 2.5em;
    padding: 0;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body li::marker {
    color: #c33;
}

/* 表格 */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
}
.article-body th {
    background: #fdf5eb;
    padding: 10px 14px;
    border: 1px solid #e8dcc8;
    color: #8B4513;
    text-align: left;
}
.article-body td {
    padding: 10px 14px;
    border: 1px solid #e8dcc8;
}
.article-body tr:nth-child(even) td {
    background: #fdfcf8;
}

/* 分隔线 */
.article-body hr {
    border: none;
    border-top: 1px dashed #e0d5c7;
    margin: 24px 0;
}

/* 加强 */
.article-body strong {
    color: #8B4513;
}

/* 婚姻配对 — 表单下拉框浅色样式 */
select {border:1px solid #e0d8c8 !important;background:#faf8f3 !important;color:#5a4a3a !important;border-radius:6px !important}

/* 下拉框纯白 — 消除浏览器原生灰底 */
select {
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  appearance:none !important;
  background-color:#fff !important;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 8px center !important;
  padding-right:28px !important;
}
