/* =========================================================
   八字命盘计算器 — WordPress 插件样式表（中文版）
   更强对比色 · 加粗字体 · 字号略大
   所有 class 以 .bazicn- 为前缀，避免冲突
   四柱手机端始终保持一行四列
   ========================================================= */

.bazicn-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: .5rem 0 2rem;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #111;
}
.bazicn-wrap *, .bazicn-wrap *::before, .bazicn-wrap *::after { box-sizing: border-box; }

/* ── 卡片 ── */
.bazicn-card { background: #fff; border: 1px solid #d5d0c5; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.bazicn-sec-title { font-size: 11px; font-weight: 800; color: #555; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.bazicn-divider { height: 1px; background: #e8e3d8; margin: .85rem 0; }

/* ── 表单 ── */
.bazicn-form-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-bottom: 12px; }
.bazicn-form-group label { font-size: 11px; color: #333; display: block; margin-bottom: 3px; font-weight: 700; }
.bazicn-form-group input,
.bazicn-form-group select {
    width: 100%; font-size: 13px; padding: 7px 9px;
    border: 1px solid #c0bbb0; border-radius: 7px;
    background: #fff; color: #111; outline: none;
    font-family: inherit; -webkit-appearance: none; appearance: none; font-weight: 600;
}
.bazicn-form-group input:focus,
.bazicn-form-group select:focus { border-color: #8B5200; box-shadow: 0 0 0 2px rgba(139,82,0,.15); }
.bazicn-btn {
    background: #8B5200; border: none; border-radius: 7px;
    padding: 9px 24px; font-size: 14px; font-weight: 700;
    cursor: pointer; color: #fff; font-family: inherit; transition: background .15s;
}
.bazicn-btn:hover { background: #6B3E00; }

/* ── 四柱 — 始终四列 ── */
.bazicn-chart-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-bottom: .85rem; }

/* ── 单柱 ── */
.bazicn-pillar { border: 1px solid #d5d0c5; border-radius: 10px; text-align: center; overflow: hidden; background: #fff; }
.bazicn-p-label {
    font-size: 11px; font-weight: 800; color: #333;
    padding: 6px 2px; background: #f2efe8;
    border-bottom: 1px solid #ddd8ce; letter-spacing: .1em;
}

/* 天干 */
.bazicn-p-stem { padding: 12px 4px 9px; border-bottom: 1px solid #ede8df; }
.bazicn-p-stem-char { font-size: 32px; font-weight: 700; line-height: 1.1; margin-bottom: 3px; font-family: "STSong","SimSun","NSimSun",serif; }
.bazicn-p-stem-pin { font-size: 10px; color: #444; margin-bottom: 4px; font-weight: 700; }
.bazicn-p-stem-god { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; display: inline-block; line-height: 1.4; }

/* 地支 */
.bazicn-p-branch { padding: 9px 4px 7px; border-bottom: 1px solid #ede8df; }
.bazicn-p-branch-char { font-size: 32px; font-weight: 700; line-height: 1.1; margin-bottom: 3px; font-family: "STSong","SimSun","NSimSun",serif; }
.bazicn-p-branch-pin { font-size: 10px; color: #444; margin-bottom: 2px; font-weight: 700; }
.bazicn-p-branch-anim { font-size: 11px; color: #333; font-weight: 700; font-family: "STSong","SimSun",serif; }

/* 藏干 */
.bazicn-p-hidden {
    padding: 6px 3px; min-height: 30px; background: #f8f5ee;
    border-bottom: 1px solid #ede8df;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bazicn-p-hidden-label { font-size: 9px; color: #777; letter-spacing: .06em; font-weight: 700; }
.bazicn-p-hidden-stems { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.bazicn-hidden-stem { font-size: 13px; font-weight: 700; padding: 1px 6px; border-radius: 7px; font-family: "STSong","SimSun",serif; }

/* 纳音 */
.bazicn-p-nayin { font-size: 9px; color: #444; font-weight: 700; padding: 5px 3px; background: #f2efe8; text-align: center; line-height: 1.3; }

/* ── 五行分布 ── */
.bazicn-elem-bars { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 1rem; }
.bazicn-elem-bar-item { text-align: center; }
.bazicn-eb-label { font-size: 20px; font-weight: 700; margin-bottom: 4px; font-family: "STSong","SimSun",serif; }
.bazicn-eb-track { height: 60px; background: #ede8df; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column-reverse; }
.bazicn-eb-fill { width: 100%; border-radius: 2px; transition: height .3s; }
.bazicn-eb-val { font-size: 11px; color: #333; font-weight: 700; margin-top: 4px; }

/* ── 十神 ── */
.bazicn-tg-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.bazicn-tg-badge { font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 10px; display: inline-block; }

/* ── 大运 ── */
.bazicn-luck-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 6px; }
.bazicn-lp {
    border: 1px solid #d5d0c5; border-radius: 8px; text-align: center;
    cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.bazicn-lp:hover { border-color: #888; box-shadow: 0 1px 5px rgba(0,0,0,.1); }
.bazicn-lp.active { border: 2px solid #8B5200; background: #FDF0E0; }
.bazicn-lp-age { font-size: 9px; padding: 4px 0; background: #f2efe8; border-bottom: 1px solid #ddd8ce; color: #333; font-weight: 800; }
.bazicn-lp-stem { font-size: 20px; padding: 6px 0 2px; font-family: "STSong","SimSun",serif; font-weight: 700; }
.bazicn-lp-branch { font-size: 20px; padding: 2px 0 4px; border-bottom: 1px solid #ede8df; font-family: "STSong","SimSun",serif; font-weight: 700; }
.bazicn-lp-anim { font-size: 10px; color: #333; font-weight: 700; padding: 2px 0 1px; font-family: "STSong","SimSun",serif; }
.bazicn-lp-yr { font-size: 8px; color: #777; font-weight: 600; padding: 0 0 5px; }

/* ── 十年详情 ── */
.bazicn-dd-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #ede8df; }
.bazicn-dd-chars { display: flex; gap: 6px; align-items: center; }
.bazicn-dd-stem-char { font-size: 32px; font-weight: 700; font-family: "STSong","SimSun",serif; }
.bazicn-dd-branch-char { font-size: 32px; font-weight: 700; font-family: "STSong","SimSun",serif; }
.bazicn-dd-sep { font-size: 20px; color: #ccc; }
.bazicn-dd-meta { font-size: 12px; color: #444; font-weight: 600; margin-top: 4px; line-height: 1.6; }

.bazicn-year-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.bazicn-yr-cell { background: #f2efe8; border-radius: 7px; padding: 7px 3px; text-align: center; border: 1px solid #ddd8ce; }
.bazicn-yr-num { font-size: 10px; font-weight: 800; color: #444; margin-bottom: 3px; }
.bazicn-yr-stem { font-size: 17px; font-family: "STSong","SimSun",serif; font-weight: 700; }
.bazicn-yr-branch { font-size: 17px; font-family: "STSong","SimSun",serif; font-weight: 700; }
.bazicn-yr-anim { font-size: 10px; color: #444; font-weight: 700; margin-top: 2px; font-family: "STSong","SimSun",serif; }
.bazicn-yr-god { font-size: 9px; font-weight: 800; margin-top: 3px; padding: 2px 5px; border-radius: 7px; display: inline-block; }

/* ── 五行颜色 — 更深更强 ── */
.bazicn-ew    { color: #1E5000; }
.bazicn-ef    { color: #7A1800; }
.bazicn-ee    { color: #5A2C00; }
.bazicn-em    { color: #282826; }
.bazicn-ewater{ color: #003878; }

/* ── 十神颜色 — 更强背景 + 描边 ── */
.bazicn-g-self { background: #D4EDBC; color: #1E4A00; border: 1px solid #A8D070; }
.bazicn-g-rw   { background: #F5D0E0; color: #7A1040; border: 1px solid #E090B0; }
.bazicn-g-ho   { background: #DDDCFC; color: #2E1E9A; border: 1px solid #A8A0F0; }
.bazicn-g-eg   { background: #C8E4F8; color: #003880; border: 1px solid #80BCEC; }
.bazicn-g-dw   { background: #B8EDD8; color: #004830; border: 1px solid #60C898; }
.bazicn-g-iw   { background: #F8D8C8; color: #6A1800; border: 1px solid #E89060; }
.bazicn-g-do   { background: #E4E0D4; color: #1A1810; border: 1px solid #B0A888; }
.bazicn-g-7k   { background: #F8C8C8; color: #780000; border: 1px solid #E07070; }
.bazicn-g-dr   { background: #F8E4B0; color: #4A2800; border: 1px solid #D8A830; }
.bazicn-g-ir   { background: #D4EDBC; color: #1E4A00; border: 1px solid #A8D070; }

/* ── 手机端：四柱始终保持一行四列 ── */
@media (max-width: 600px) {
    .bazicn-form-row { grid-template-columns: repeat(3,1fr); }
    .bazicn-chart-grid { gap: 5px; }
    .bazicn-p-stem-char, .bazicn-p-branch-char { font-size: 26px; }
    .bazicn-p-stem-god { font-size: 9px; padding: 1px 5px; }
    .bazicn-hidden-stem { font-size: 11px; padding: 1px 4px; }
    .bazicn-p-nayin { font-size: 8px; padding: 4px 2px; }
    .bazicn-p-label { font-size: 10px; }
    .bazicn-luck-grid { grid-template-columns: repeat(4,1fr); }
    .bazicn-year-grid { grid-template-columns: repeat(2,1fr); }
    .bazicn-dd-stem-char, .bazicn-dd-branch-char { font-size: 26px; }
    .bazicn-lp-stem, .bazicn-lp-branch { font-size: 17px; }
}
@media (max-width: 360px) {
    .bazicn-p-stem-char, .bazicn-p-branch-char { font-size: 22px; }
    .bazicn-p-stem-god { display: none; }
    .bazicn-p-nayin { display: none; }
}
