/* 功德记录页：保留原表单逻辑，按现行念经福缘 UI 重绘 */

/* Banner + 正文一体：无间隙、无圆角 */
#page.nj-gongde-page {
  width: 1226px;
  max-width: 100%;
  /* 顶栏与 Banner 贴合：去掉顶距，避免露出背景缝 */
  margin: 0 auto 24px !important;
  padding: 0 !important;
  float: none !important;
}

/* 功德页：顶栏底边与内容板无空隙（去掉 min-height 留白） */
body.slide.slide3:has(.nj-gongde-page) #header-wrapper {
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.slide.slide3:has(.nj-gongde-page) #header {
  padding-bottom: 0 !important;
}
body.slide.slide3:has(.nj-gongde-page) #wrapper {
  padding-top: 0 !important;
}
body.slide.slide3:has(.nj-gongde-page) .nj-tip-bar,
body.slide.slide3:has(.nj-gongde-page) .scrollDiv {
  margin-bottom: 0 !important;
}

/* Banner 顶直角贴合；底边圆角，与下方 SEO 卡顶圆角对称（中间有间隙） */
#page.nj-gongde-page #pagecon.nj-gongde-board,
.nj-gongde-board {
  width: 1226px;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
  clear: both;
  overflow: hidden;
  background: #fffef8 !important;
  border: none !important;
  outline: none !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 12px 36px rgba(30, 16, 0, 0.1);
}

#page.nj-gongde-page {
  overflow: visible;
}

#page.nj-gongde-page #banner.nj-gongde-banner,
#banner.nj-gongde-banner {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
  line-height: 0;
  background: transparent;
}

#banner.nj-gongde-banner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  border: 0;
  border-radius: 0 !important;
}

.nj-gongde-board #content {
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 16px 18px !important;
  float: none !important;
  background: #fffef8 !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* 简洁页眉：无大块浅底卡片；压过 .slide.slide3 h2 { color:#fff } */
.nj-gd-intro {
  margin: 4px 0 16px;
  padding: 6px 4px 14px;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(140, 105, 50, 0.28);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.nj-gd-intro-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #8a6a28;
  font-weight: 600;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-gd-intro h2,
body.slide.slide3 .nj-gd-intro h2 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  line-height: 1.2 !important;
  color: #4a2e0c !important;
  text-shadow: none !important;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "SimSun", serif !important;
}

.nj-gd-intro p {
  margin: 0 auto;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.75;
  color: #6b5230;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 简明公开：功德获取约定（非完整善恶表） */
.nj-gd-rules {
  margin: 0 0 16px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(140, 105, 50, 0.28);
  background: linear-gradient(180deg, #fffaf0, #f7efd8);
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-gd-rules-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5a4018;
  text-align: center;
}

.nj-gd-rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.nj-gd-rules-list li {
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 254, 248, 0.9);
  border: 1px solid rgba(180, 155, 110, 0.28);
  font-size: 13px;
  line-height: 1.55;
  color: #3a2810;
}

.nj-gd-rules-list strong {
  color: #6b4a12;
}

.nj-gd-rules-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #7a5e38;
  text-align: center;
}

@media (max-width: 720px) {
  .nj-gd-rules-list {
    grid-template-columns: 1fr;
  }
}

#biaoge.nj-gd-sheet {
  margin: 0 auto 16px;
  padding: 8px 0 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow-x: auto;
}

/* 主表 + 展开表（#bb/#cc）统一皮肤 */
#biaoge.nj-gd-sheet table.tab {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 13px;
  color: #2c1c0a;
}

#biaoge.nj-gd-sheet table.tab td {
  border: 1px solid rgba(180, 155, 110, 0.35) !important;
  padding: 7px 8px !important;
  vertical-align: middle;
  background-color: #fffdf8;
  line-height: 1.45;
}

#biaoge.nj-gd-sheet table.tab tr.row:nth-child(even) td {
  background-color: #faf6eb;
}

#biaoge.nj-gd-sheet table.tab tr.row:hover td {
  background-color: #f3ead2;
}

/* 表头：善 / 恶（仅首张主表） */
#biaoge.nj-gd-sheet > table.tab > tbody > tr:first-child td {
  border: none !important;
  padding: 12px 10px 10px !important;
  background: transparent !important;
  text-align: center;
}

#biaoge.nj-gd-sheet > table.tab > tbody > tr:first-child td:nth-child(2) strong {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 18px !important;
  letter-spacing: 0.12em;
  color: #1a4f8c !important;
  background: linear-gradient(180deg, #e8f1fb, #d5e6f7);
  border: 1px solid rgba(26, 79, 140, 0.22);
}

#biaoge.nj-gd-sheet > table.tab > tbody > tr:first-child td:nth-child(3) strong {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 18px !important;
  letter-spacing: 0.12em;
  color: #8b1e1e !important;
  background: linear-gradient(180deg, #fbeaea, #f3d6d6);
  border: 1px solid rgba(139, 30, 30, 0.2);
}

/* 列标题行 */
#biaoge.nj-gd-sheet > table.tab > tbody > tr.tec td {
  background: linear-gradient(180deg, #f0e6cc, #e7d9b4) !important;
  color: #5a4018;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  border-color: rgba(150, 120, 70, 0.4) !important;
}

/* 分享专用行 */
#biaoge.nj-gd-sheet table.tab tr.row[style*="9C3"] td,
#biaoge.nj-gd-sheet table.tab tr.nj-gd-share-row td {
  background: linear-gradient(90deg, #6b8f3a, #7fa346) !important;
  color: #fffef5 !important;
  font-weight: 700;
  border-color: rgba(80, 110, 40, 0.35) !important;
}

#biaoge.nj-gd-sheet table.tab tr.row[style*="9C3"] select,
#biaoge.nj-gd-sheet table.tab tr.nj-gd-share-row select {
  background: #fffef8;
  color: #2c1c0a;
}

/* 题目列略强调 */
#biaoge.nj-gd-sheet td.f16.yssl {
  font-size: 14px !important;
  font-weight: 600;
  color: #3a2810;
  text-align: left !important;
}

#biaoge.nj-gd-sheet tr.row[style*="9C3"] td.f16.yssl,
#biaoge.nj-gd-sheet tr.nj-gd-share-row td.f16.yssl {
  color: #fffef5 !important;
}

/* 单位下拉 / 勾选（含展开区） */
#biaoge.nj-gd-sheet select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 3.2em;
  padding: 3px 22px 3px 8px;
  border: 1px solid rgba(140, 105, 50, 0.45);
  border-radius: 6px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b5230'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffef8, #f5edd8);
  background-repeat: no-repeat, repeat;
  background-position: right 7px center, 0 0;
  color: #2c1c0a;
  font-size: 13px;
  cursor: pointer;
}

#biaoge.nj-gd-sheet input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #8a6a20;
  cursor: pointer;
  vertical-align: middle;
}

#biaoge.nj-gd-sheet input.nobo.w80 {
  width: 18px !important;
}

/* 「更多」展开条：取代旧亮蓝按钮 */
.nj-gd-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 42px;
  margin: 12px 0 8px !important;
  padding: 10px 16px !important;
  box-sizing: border-box;
  border: 1px solid rgba(140, 105, 50, 0.4) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #f7efd8 0%, #ebe0c0 100%) !important;
  color: #4a2e0c !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 20, 0, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nj-gd-more-btn:hover,
.nj-gd-more-btn:focus-visible {
  background: linear-gradient(180deg, #faf3e0 0%, #f0e4c4 100%) !important;
  border-color: rgba(120, 90, 40, 0.55) !important;
  color: #3a2208 !important;
  outline: none;
}

.nj-gd-more-btn.is-open {
  background: linear-gradient(180deg, #5a4528 0%, #3f301c 100%) !important;
  border-color: #3d3220 !important;
  color: #f0e2c0 !important;
}

.nj-gd-more-btn .nj-gd-more-ico {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  opacity: 0.85;
}

.nj-gd-more-btn.is-open .nj-gd-more-ico {
  transform: rotate(-135deg);
  margin-top: 4px;
}

#biaoge.nj-gd-sheet #bb,
#biaoge.nj-gd-sheet #cc {
  display: none;
  width: 100%;
  margin: 0 0 10px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(140, 105, 50, 0.22);
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.85);
}

#biaoge.nj-gd-sheet #bb.is-open,
#biaoge.nj-gd-sheet #cc.is-open {
  display: block;
}

#biaoge.nj-gd-sheet #bb table.tab,
#biaoge.nj-gd-sheet #cc table.tab {
  margin: 0 !important;
}

/* 汇总与提交表 */
.nj-gd-summary-wrap,
.nj-gongde-board > table.tab.nj-gd-summary,
#pagecon table.tab.nj-gd-summary,
.nj-gongde-board table.tab.nj-gd-summary {
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 14px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(140, 105, 50, 0.3) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fffef8 !important;
  box-shadow: 0 8px 22px rgba(40, 20, 0, 0.05);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-gongde-board table.tab.nj-gd-summary td,
#pagecon table.tab.nj-gd-summary td {
  border: none !important;
  border-bottom: 1px solid rgba(180, 155, 110, 0.28) !important;
  padding: 14px 18px !important;
  background: transparent !important;
  text-align: center;
  color: #3a2810;
}

.nj-gongde-board table.tab.nj-gd-summary tr:last-child td,
#pagecon table.tab.nj-gd-summary tr:last-child td {
  border-bottom: none !important;
}

.nj-gongde-board table.tab.nj-gd-summary .f18,
#pagecon table.tab.nj-gd-summary .f18 {
  font-size: 16px !important;
  font-weight: 600;
}

.nj-gongde-board table.tab.nj-gd-summary .f24,
#pagecon table.tab.nj-gd-summary .f24 {
  font-size: 18px !important;
  line-height: 1.7 !important;
}

#count_de,
#count_shi,
#count_all {
  display: inline-block;
  min-width: 1.5em;
  margin: 0 4px;
  padding: 1px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.15em;
  letter-spacing: 0.04em;
}

#count_de {
  color: #1a4f8c;
  background: rgba(26, 79, 140, 0.1);
}

#count_shi {
  color: #8b1e1e;
  background: rgba(139, 30, 30, 0.1);
}

#count_all {
  color: #6b4a12;
  background: rgba(200, 150, 40, 0.18);
}

#realname {
  width: 160px !important;
  height: 36px !important;
  margin: 0 8px !important;
  padding: 0 12px !important;
  border: none !important;
  border-bottom: 2px solid #5a4018 !important;
  background: transparent !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #2c1c0a !important;
  font-family: "LXGW WenKai", "KaiTi", "Microsoft YaHei", serif !important;
}

#realname:focus {
  outline: none;
  border-bottom-color: #1a5fb4 !important;
}

.nj-gongde-board table.tab.nj-gd-summary input[type="button"],
#pagecon table.tab.nj-gd-summary input[type="button"],
input.nj-gd-submit {
  width: auto !important;
  min-width: 280px;
  height: 48px !important;
  margin: 12px 0 4px !important;
  padding: 0 28px !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6b4e1e, #3d2a10) !important;
  color: #fff4c8 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(61, 42, 16, 0.18);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nj-gongde-board table.tab.nj-gd-summary input[type="button"]:hover,
input.nj-gd-submit:hover {
  filter: brightness(1.06);
}

/* 说明区 */
.nj-gongde-board table.tab.nj-gd-notes,
#pagecon table.tab.nj-gd-notes {
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 18px !important;
  border: 1px solid rgba(140, 105, 50, 0.28) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fffef8 !important;
  box-shadow: 0 8px 22px rgba(40, 20, 0, 0.05);
}

.nj-gongde-board table.tab.nj-gd-notes td,
#pagecon table.tab.nj-gd-notes td {
  border: none !important;
  padding: 18px 22px 20px !important;
  background: transparent !important;
  text-align: left !important;
  color: #3a2810;
  font-size: 14px !important;
  line-height: 1.8 !important;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-gongde-board table.tab.nj-gd-notes td > p:first-child strong,
#pagecon table.tab.nj-gd-notes td > p:first-child strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px !important;
  letter-spacing: 0.08em;
  color: #5a3208;
  font-family: "LXGW WenKai", "KaiTi", "SimSun", serif;
}

.nj-gongde-board table.tab.nj-gd-notes p[style*="FFC"],
#pagecon table.tab.nj-gd-notes p[style*="FFC"] {
  border: 1px solid rgba(200, 150, 40, 0.35) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #fff8e0, #f7ebc8) !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
}

/* 页底：主动分享认领（广种福田上方） */
.nj-gd-share-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 8px 0 12px;
  padding: 14px 16px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f3f7ea 0%, #e7efd4 100%);
  border: 1px solid rgba(107, 143, 58, 0.35);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.nj-gd-share-claim-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.nj-gd-share-claim-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #3d5a18;
}

.nj-gd-share-claim-copy span {
  font-size: 13px;
  line-height: 1.65;
  color: #4a5c30;
}

.nj-gd-share-claim-copy em {
  font-style: normal;
  font-weight: 700;
  color: #5a7a28;
}

.nj-gd-claim-btn {
  /* 压过 jing-img/style.css 的 button{width:80px;height:20px} */
  flex: 0 0 auto !important;
  align-self: center !important;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto !important;
  min-width: 168px !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6b8f3a, #4e6e28) !important;
  color: #fffef5 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
  box-shadow: 0 4px 12px rgba(60, 90, 30, 0.18);
  transition: filter 0.15s ease, background 0.15s ease;
}

.nj-gd-claim-btn:hover,
.nj-gd-claim-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}

.nj-gd-claim-btn.is-claimed {
  background: linear-gradient(180deg, #5a4528, #3f301c);
  box-shadow: none;
}

/* 功德页底部广种福田（兼容无 #page 结构） */
.nj-gongde-board .nj-share-teaser,
#page .nj-gongde-board .nj-share-teaser,
#page #content .nj-share-teaser {
  position: relative;
  margin: 8px 0 12px;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, rgba(255, 248, 230, 0.95) 0%, transparent 70%),
    linear-gradient(165deg, #fffef8 0%, #f8f1e2 100%);
  border: 1px solid rgba(140, 105, 50, 0.28);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 20, 0, 0.05);
}

.nj-gongde-board .nj-share-teaser h2 {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  color: #5c4528 !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(140, 105, 50, 0.28);
}

.nj-gongde-board .nj-share-teaser .nj-share-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.nj-gongde-board .nj-share-teaser .nj-share-deco-fo {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  opacity: 0.08;
}

.nj-gongde-board .nj-share-teaser .nj-share-eyebrow {
  position: relative;
  margin: 2px 0 10px !important;
  font-size: 12px !important;
  letter-spacing: 0.22em;
  color: #a08050 !important;
  font-weight: 600;
}

.nj-gongde-board .nj-share-teaser .nj-share-warm {
  position: relative;
  margin: 0 0 12px !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.85 !important;
  color: #3d2a10 !important;
  letter-spacing: 0.06em;
  font-family: "LXGW WenKai", "KaiTi", "STKaiti", "Microsoft YaHei", serif;
}

.nj-gongde-board .nj-share-teaser .nj-share-warm-sub {
  position: relative;
  margin: 0 auto 18px !important;
  max-width: 18.5em;
  font-size: 13px !important;
  line-height: 1.9 !important;
  letter-spacing: 0.04em;
  color: #7a5e38 !important;
}

.nj-gongde-board .nj-share-teaser .nj-share-cta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.nj-gongde-board .nj-share-teaser .nj-share-btn-cta {
  display: inline-block;
  width: auto !important;
  min-width: 168px;
  padding: 9px 28px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6b4e1e, #3d2a10) !important;
  color: #fff4c8 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 4px 14px rgba(61, 42, 16, 0.14);
}

@media (max-width: 1000px) {
  #page.nj-gongde-page,
  .nj-gongde-board {
    width: 100%;
  }
  .nj-gongde-board #content {
    padding: 12px 10px 14px !important;
  }
  #biaoge.nj-gd-sheet {
    padding: 4px 0;
  }
  .nj-gd-intro h2,
  body.slide.slide3 .nj-gd-intro h2 {
    font-size: 22px !important;
    letter-spacing: 0.1em !important;
  }
  .nj-gd-more-btn {
    font-size: 13px !important;
    letter-spacing: 0.03em;
  }
}
