/* 123问全站统一视觉层 v1
 * 统一主站、工具站、内容子站的视觉语言与响应式体验。
 */
:root{
  --ui-bg:#f6f3ed;
  --ui-bg-soft:#fbfaf7;
  --ui-surface:#fff;
  --ui-surface-2:#f8f5ef;
  --ui-text:#26231f;
  --ui-muted:#746e65;
  --ui-line:#e9e2d8;
  --ui-primary:#8b1e2d;
  --ui-primary-deep:#681522;
  --ui-gold:#b8893f;
  --ui-gold-soft:#f3e8d3;
  --ui-success:#28705a;
  --ui-radius-sm:10px;
  --ui-radius:16px;
  --ui-radius-lg:22px;
  --ui-shadow-sm:0 3px 14px rgba(65,45,25,.055);
  --ui-shadow:0 12px 36px rgba(65,45,25,.09);
  --ui-shadow-hover:0 18px 44px rgba(65,45,25,.14);
  --ui-container:1200px;
  --ui-nav-height:64px;
}

.gshell-nav,.gshell-nav *,.gshell-footer,.gshell-footer *,.site-promo-strip,.site-promo-strip *{box-sizing:border-box}
.gshell-nav a,.gshell-footer a,.site-promo-strip a{transition:color .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.gshell-nav img,.gshell-footer img,.site-promo-strip img{max-width:100%;height:auto}
.gshell-nav ::selection,.gshell-footer ::selection,.site-promo-strip ::selection{background:rgba(139,30,45,.15);color:var(--ui-primary-deep)}

/* 全局站点外壳：命名空间隔离 */
.gshell-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body .gshell-nav{position:sticky;top:0;z-index:10000;width:100%;background:rgba(255,253,249,.97);border-bottom:1px solid rgba(139,30,45,.15);box-shadow:0 5px 22px rgba(65,45,25,.07);font-family:"PingFang SC","Microsoft YaHei",sans-serif}
body .gshell-nav__inner{max-width:1240px;min-height:66px;margin:auto;padding:0 20px;display:flex;align-items:center;gap:24px}
body .gshell-nav__brand{display:flex;align-items:baseline;gap:10px;flex:0 0 auto;color:var(--ui-primary);text-decoration:none}
body .gshell-nav__brand strong{font:800 25px/1 "STKaiti","KaiTi",serif;letter-spacing:2px}
body .gshell-nav__brand span{color:#776d62;font-size:12px;letter-spacing:.4px}
body .gshell-nav__menu{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
body .gshell-nav__list{display:flex;align-items:center;justify-content:center;gap:2px;flex:1;list-style:none;margin:0;padding:0}
body .gshell-nav__link{display:block;padding:9px 7px;border-radius:8px;color:#4d463e;font-size:13px;line-height:24px;text-decoration:none;white-space:nowrap}
body .gshell-nav__link:hover,body .gshell-nav__link.is-current{color:var(--ui-primary);background:#f8eee7}
body .gshell-nav__link.is-current{font-weight:700;box-shadow:inset 0 -2px var(--ui-gold)}
body .gshell-nav__tools{padding:9px 14px;border:1px solid var(--ui-primary);border-radius:9px;color:var(--ui-primary);font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
body .gshell-nav__tools:hover{background:var(--ui-primary);color:#fff}
body .gshell-nav__toggle{display:none;width:44px;height:44px;margin-left:auto;padding:10px;border:0;border-radius:9px;background:transparent}
body .gshell-nav__toggle i{display:block;width:22px;height:2px;margin:4px auto;background:var(--ui-primary);border-radius:2px;transition:transform .16s ease,opacity .16s ease}
body .gshell-footer{clear:both;width:100%;margin-top:44px;background:#2b2520;color:#d8cfc5;border-top:3px solid var(--ui-primary);font-family:"PingFang SC","Microsoft YaHei",sans-serif}
body .gshell-footer__inner{max-width:1200px;margin:auto;padding:38px 22px 20px}
body .gshell-footer__intro{display:flex;align-items:baseline;gap:16px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.1)}
body .gshell-footer__brand{color:#f3d29a;font:800 25px/1 "STKaiti","KaiTi",serif;text-decoration:none}
body .gshell-footer__intro p{margin:0;color:#c6bbb0;font-size:14px}
body .gshell-footer__groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;padding:26px 0}
body .gshell-footer__groups h2{margin:0 0 12px;color:#fff;font-size:14px;line-height:1.4}
body .gshell-footer__groups a{display:block;width:max-content;max-width:100%;padding:4px 0;color:#c6bbb0;font-size:13px;text-decoration:none}
body .gshell-footer__groups a:hover{color:#f3d29a}
body .gshell-footer__notice{padding:12px 14px;border:1px solid rgba(243,210,154,.18);border-radius:8px;background:rgba(255,255,255,.035);color:#cfc4b8;font-size:13px}
body .gshell-footer__bottom{display:flex;justify-content:space-between;gap:20px;padding-top:18px;color:#998e83;font-size:12px}
body .gshell-nav a:focus-visible,body .gshell-nav button:focus-visible,body .gshell-footer a:focus-visible{outline:3px solid #d5a95f;outline-offset:3px}

/* 全站主导航：兼容静态页无 JS 的旧导航 */
body .gnav{
  min-height:var(--ui-nav-height);
  background:rgba(255,255,255,.96);
  border:0;
  border-bottom:1px solid rgba(139,30,45,.12);
  box-shadow:0 5px 24px rgba(64,39,22,.07);
  backdrop-filter:saturate(140%) blur(16px);
  -webkit-backdrop-filter:saturate(140%) blur(16px);
  position:sticky;
  top:0;
  z-index:1000;
}
body .gnav::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,var(--ui-gold),transparent);opacity:.55}
body .gnav-inner{max-width:var(--ui-container);min-height:var(--ui-nav-height);padding:0 24px}
body .gnav-brand{color:var(--ui-primary);font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-size:23px;font-weight:800;letter-spacing:3px}
body .gnav-item>a{color:#514b43;font-size:15px;padding:20px 14px;line-height:24px;border-radius:8px}
body .gnav-item>a:hover,body .gnav-item.gnav-active>a{color:var(--ui-primary);background:rgba(139,30,45,.055);opacity:1}
body .gnav-item.gnav-active>a{font-weight:700}
body .gnav-item.gnav-active>a::after{content:"";position:absolute;left:15px;right:15px;bottom:8px;height:2px;background:var(--ui-primary);border-radius:2px}
body .gnav-dropdown{background:rgba(255,255,255,.98);border:1px solid var(--ui-line);border-radius:14px;padding:8px;box-shadow:var(--ui-shadow);min-width:190px}
body .gnav-dropdown li a{padding:10px 13px;border-radius:8px;color:#514b43}
body .gnav-dropdown li a:hover{background:var(--ui-surface-2);color:var(--ui-primary)}
body .gnav-toggle{width:44px;height:44px;align-items:center;justify-content:center;border-radius:10px}
body .gnav-toggle:focus-visible{outline:3px solid rgba(139,30,45,.2);outline-offset:2px}
body .gnav-toggle span{background:var(--ui-primary);transition:transform .2s ease,opacity .2s ease}

/* 主站旧主题头部不再与统一导航重叠 */
body>.header{display:none!important}
body .index-breadcrumb{margin-top:0!important}

/* 全站推广横条：作为内容推荐，不使用广告类名 */
body .site-promo-strip{max-width:var(--ui-container);margin:18px auto 0;padding:0 20px}
body .site-promo-strip>a{display:flex;align-items:center;gap:14px;min-height:68px;padding:13px 18px;background:linear-gradient(115deg,#fffaf1 0%,#fff 45%,#faf3e7 100%);border:1px solid #e8d2ab;border-radius:var(--ui-radius);box-shadow:var(--ui-shadow-sm);text-decoration:none;overflow:hidden;position:relative}
body .site-promo-strip>a::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--ui-primary),var(--ui-gold))}
body .site-promo-strip>a:hover{box-shadow:var(--ui-shadow);transform:translateY(-1px)}
body .site-promo-strip .ba-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ui-primary);color:#fff;font-family:"STKaiti","KaiTi",serif;font-size:20px;font-weight:700;flex:0 0 auto}
body .site-promo-strip .ba-text{flex:1;min-width:0}
body .site-promo-strip .ba-title{color:var(--ui-primary-deep);font-size:15px;font-weight:700;letter-spacing:.2px;margin:0 0 2px}
body .site-promo-strip .ba-desc{color:var(--ui-muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .site-promo-strip .ba-arrow{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ui-gold-soft);color:var(--ui-primary);font-size:19px;flex:0 0 auto}

/* 面包屑统一 */
body .breadcrumb,body .shici-breadcrumb,body .tool-breadcrumb{background:transparent;border:0;padding:13px 0}
body .breadcrumb>.container,body .shici-breadcrumb>.shici-container,body .tool-breadcrumb>.tool-container{max-width:var(--ui-container);padding-left:22px;padding-right:22px}
body .breadcrumb a,body .breadcrumb span,body .shici-breadcrumb a,body .shici-breadcrumb span,body .tool-breadcrumb a,body .tool-breadcrumb span{color:var(--ui-muted);font-size:13px}
body .breadcrumb a:hover,body .shici-breadcrumb a:hover,body .tool-breadcrumb a:hover{color:var(--ui-primary)}

/* 统一双栏布局 */
body .shici-layout{max-width:var(--ui-container);gap:28px;padding:22px 20px 48px;align-items:flex-start}
body .shici-layout>.shici-content{flex:1;min-width:0;max-width:none!important}
body .shici-layout>.shici-sidebar{width:300px;flex:0 0 300px;position:sticky;top:84px}
body #content.content{max-width:var(--ui-container);padding-left:20px;padding-right:20px}
body #mainbox{min-width:0}
body #sidebar.unified-sidebar{width:300px!important;margin-left:28px!important;top:84px!important}

/* 统一卡片质感 */
body .side-card,body .tool-box,body .tool-card,body .faq-item,body .guide-content,
body .block,body .sm-block,body .bazi-form,body .article-list,body .art-main,
body .search-box,body .poem-list>.poem-card{
  background:var(--ui-surface);
  border:1px solid var(--ui-line);
  border-radius:var(--ui-radius);
  box-shadow:var(--ui-shadow-sm);
}
body .side-card{padding:20px;margin-bottom:18px}
body .side-card h3{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;color:var(--ui-text);font-size:17px;letter-spacing:1px;border-bottom:1px solid var(--ui-line);padding-bottom:11px;margin-bottom:13px}
body .side-card p,body .side-card li{color:var(--ui-muted);font-size:13px;line-height:1.85}
body .side-card ul li{border-color:var(--ui-line)}
body .side-card ul li a{color:#60574d}
body .side-card ul li a:hover{color:var(--ui-primary);text-decoration:none;padding-left:3px}
body .side-promo .promo-img{height:142px;border-radius:12px;background:var(--ui-surface-2)}
body .side-promo .promo-name{color:var(--ui-text);font-size:15px}
body .side-promo .promo-tag{background:#f8eee6;color:#8b4736}
body .side-promo .promo-btn{min-height:42px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--ui-primary),#a63a38);border-radius:10px;color:#fff}
body .side-promo .promo-more{color:var(--ui-primary)}

/* 主站列表与正文 */
body .article-list{padding:22px;margin-bottom:18px;transition:transform .2s ease,box-shadow .2s ease}
body .article-list:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow)}
body .article-list .title a,body .art-title{color:var(--ui-text)}
body .article-list .title a:hover{color:var(--ui-primary)}
body .art-main{padding:34px 38px}
body .art-title{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-weight:800;letter-spacing:.5px}
body .art-content{color:#37322c;font-size:16px;line-height:1.95;word-break:break-word}
body .art-content p{margin:0 0 1.2em}
body .art-content h2,body .art-content h3{color:var(--ui-text);font-family:"STKaiti","KaiTi","Noto Serif SC",serif;margin:1.8em 0 .8em}
body .art-content h2{padding-left:14px;border-left:4px solid var(--ui-primary)}
body .art-content blockquote{background:var(--ui-surface-2);border-left:4px solid var(--ui-gold);border-radius:0 12px 12px 0;padding:16px 20px;color:#62594f}
body .art-content pre{max-width:100%;overflow:auto;border-radius:12px}
body .art-content table{display:block;max-width:100%;overflow-x:auto;white-space:nowrap;border-collapse:collapse}

/* 内容子站 */
body .shici-header,body .poem-header{text-align:center;border-bottom:0;padding:8px 0 18px;margin-bottom:20px}
body .shici-h1,body .poem-header h1,body .shici-header h1,body main.container>header h1{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;color:var(--ui-text);font-weight:800;letter-spacing:2px}
body .section-title,body .block h2,body .sm-h2,body .tool-h2,body .cate-title{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;color:var(--ui-text);border-left:4px solid var(--ui-primary);padding-left:13px}
body .block,body .sm-block{padding:28px 30px}
body .analysis-text,body .sm-p{color:#3c3731;line-height:2}
body .quote-box{background:var(--ui-surface-2);border-left-color:var(--ui-gold);color:#665e55}
body .faq-list{gap:12px}
body .faq-item{padding:16px 18px;border-left:3px solid var(--ui-gold)}
body .faq-q{color:var(--ui-text);font-weight:700}
body .faq-q::before{color:var(--ui-primary)}
body .faq-a{color:var(--ui-muted);line-height:1.9}
body .search-box{padding:20px}
body .search-input,body .search-select,body .bazi-field input,body .bazi-field select,
body .tool-field input,body .tool-field select,body .tool-textarea{
  min-height:46px;background:#fff;border:1px solid #dcd4c9;border-radius:11px;color:var(--ui-text);font-size:16px;outline:none;
}
body .search-input:focus,body .search-select:focus,body .bazi-field input:focus,body .bazi-field select:focus,
body .tool-field input:focus,body .tool-field select:focus,body .tool-textarea:focus{border-color:var(--ui-primary);box-shadow:0 0 0 3px rgba(139,30,45,.10)}
body .search-btn,body .bazi-submit,body .btn-primary{min-height:46px;border-radius:11px;background:linear-gradient(135deg,var(--ui-primary),#a53a3b);color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(139,30,45,.15)}
body .search-btn:hover,body .bazi-submit:hover,body .btn-primary:hover{background:linear-gradient(135deg,var(--ui-primary-deep),var(--ui-primary));transform:translateY(-1px)}
body .dynasty-tabs a,body .tag{border-radius:999px;background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-muted)}
body .dynasty-tabs a:hover,body .dynasty-tabs a.active{border-color:var(--ui-primary);background:var(--ui-primary);color:#fff}
body .poem-list{gap:18px}
body .poem-list>.poem-card{padding:22px;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
body .poem-list>.poem-card:hover{transform:translateY(-3px);box-shadow:var(--ui-shadow-hover);border-color:#d9bd94}
body .poem-card-title{color:var(--ui-text);font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-size:19px}
body .poem-card-author{color:var(--ui-primary)}
body .toolbar{top:var(--ui-nav-height);background:rgba(246,243,237,.94);backdrop-filter:blur(10px);border-color:var(--ui-line);z-index:50}
body .toolbar button{min-width:44px;min-height:44px;padding:8px 13px!important;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:999px;color:var(--ui-text);font:600 14px/1.4 "PingFang SC","Microsoft YaHei",sans-serif}
body .toolbar button:hover{background:var(--ui-primary);border-color:var(--ui-primary);color:#fff}
body .bazi-table,body .tool-table{border-collapse:separate;border-spacing:0;width:100%}
body .bazi-table th,body .tool-table th{background:var(--ui-primary);color:#fff}
body .bazi-table td,body .tool-table td{border-color:var(--ui-line)}

/* 工具站 */
body .tool-container{max-width:var(--ui-container);padding-left:20px;padding-right:20px}
body .tool-main{padding:24px 0 34px}
body .tool-title{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-size:30px;color:var(--ui-text);font-weight:800;letter-spacing:1px}
body .tool-subtitle{color:var(--ui-muted);font-size:15px}
body .tool-box{padding:30px}
body .btn{min-height:44px;border-radius:10px;font-weight:600}
body .btn-secondary{background:var(--ui-surface-2);color:var(--ui-text);border:1px solid var(--ui-line)}
body .tool-result{background:var(--ui-surface-2);border-left-color:var(--ui-primary);border-radius:12px}
body .tool-result h3,body .tool-stat .v{color:var(--ui-primary)}
body .tool-table-wrap{max-width:100%;overflow:auto;border-color:var(--ui-line);border-radius:12px}
body .tool-tabs{overflow-x:auto;scrollbar-width:thin;border-color:var(--ui-line)}
body .tool-tab{flex:0 0 auto;min-height:44px;color:var(--ui-muted)}
body .tool-tab.active{color:var(--ui-primary);border-bottom-color:var(--ui-primary)}
body .tool-section{padding:20px 0}
body .guide-content{padding:22px 24px;color:#49433c}
body .tool-grid{gap:16px}
body .tool-card{padding:18px;color:var(--ui-text);min-height:124px}
body .tool-card:hover{color:var(--ui-primary);border-color:#d9bd94;box-shadow:var(--ui-shadow);transform:translateY(-3px)}
body .tool-footer,body .shici-footer,body .poem-footer{background:#ede8df;border-color:#ddd3c5;color:var(--ui-muted)}

/* suiranx_air 主站：强制使用与诗词子站一致的浅色品牌视觉 */
body.gshell-theme-suiranx,
body.gshell-theme-suiranx.night{
  --ui-bg:#f8f5f0;--ui-bg-soft:#fbfaf7;--ui-surface:#fff;--ui-surface-2:#f8f5ef;
  --ui-text:#2c241e;--ui-muted:#746e65;--ui-line:#e2d8cc;--ui-primary:#8b3a2c;
  --ui-primary-deep:#681522;--ui-gold:#b8893f;--ui-gold-soft:#f3e8d3;
  background:#f8f5f0!important;color:#2c241e!important;
  color-scheme:light;font:400 14px/1.8 "PingFang SC","Lantinghei SC","Microsoft Yahei","Hiragino Sans GB","Microsoft Sans Serif","WenQuanYi Micro Hei",sans-serif
}
body.gshell-theme-suiranx .dark-mode{display:none!important}
body.gshell-theme-suiranx #content,body.gshell-theme-suiranx #mainbox{color:#2c241e}
body.gshell-theme-suiranx #mainbox a{color:#8b3a2c}
body.gshell-theme-suiranx #mainbox a:hover{color:#681522}
body.gshell-theme-suiranx .article-list,body.gshell-theme-suiranx .art-main{
  background:#fff!important;color:#2c241e!important;border:1px solid #e2d8cc!important;border-radius:16px;box-shadow:0 3px 14px rgba(65,45,25,.055)!important
}
body.gshell-theme-suiranx .article-list{padding:1.5em;margin-bottom:20px}
body.gshell-theme-suiranx .article-list .content,body.gshell-theme-suiranx .article-list .intro,
body.gshell-theme-suiranx .article-list .data,body.gshell-theme-suiranx .article-list .data a,
body.gshell-theme-suiranx .article-list .tag a,body.gshell-theme-suiranx .art-main .head-info{color:#746e65!important}
body.gshell-theme-suiranx .article-list .title a,body.gshell-theme-suiranx .art-title{color:#8b3a2c!important}
body.gshell-theme-suiranx .article-list .title a:hover{color:#681522!important}
body.gshell-theme-suiranx .art-main{padding:2em 3em}
body.gshell-theme-suiranx .art-title{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-weight:800;letter-spacing:.5px}
body.gshell-theme-suiranx .art-content,body.gshell-theme-suiranx .art-content p,
body.gshell-theme-suiranx .art-content li,body.gshell-theme-suiranx .art-content span{color:#2c241e!important}
body.gshell-theme-suiranx .art-content{font-size:16px;line-height:1.95}
body.gshell-theme-suiranx .art-content a{color:#8b3a2c!important}
body.gshell-theme-suiranx .art-content h1,body.gshell-theme-suiranx .art-content h2,body.gshell-theme-suiranx .art-content h3{color:#2c241e!important;font-family:"STKaiti","KaiTi","Noto Serif SC",serif}
body.gshell-theme-suiranx .art-content h2{padding-left:14px;border-left:4px solid #8b3a2c}
body.gshell-theme-suiranx .art-content blockquote{color:#62594f!important;background:#f8f5ef!important;border-left:4px solid #b8893f;border-radius:0 12px 12px 0}
body.gshell-theme-suiranx .art-content .tags{color:#8b3a2c!important;background:#fff!important;border-color:#e2d8cc!important}
body.gshell-theme-suiranx .art-content .tags:hover{color:#fff!important;background:#8b3a2c!important;border-color:#8b3a2c!important}
body.gshell-theme-suiranx .side-card{background:#fff!important;color:#2c241e!important;border:1px solid #e2d8cc!important;border-radius:16px;box-shadow:0 3px 14px rgba(65,45,25,.055)!important}
body.gshell-theme-suiranx .side-card h3{font-family:"STKaiti","KaiTi","Noto Serif SC",serif;color:#2c241e!important;border-color:#e2d8cc!important}
body.gshell-theme-suiranx .side-card p,body.gshell-theme-suiranx .side-card li{color:#746e65!important}
body.gshell-theme-suiranx .side-card ul li{border-color:#e2d8cc!important}
body.gshell-theme-suiranx .side-card ul li a,body.gshell-theme-suiranx .side-promo .promo-more{color:#8b3a2c!important}
body.gshell-theme-suiranx .side-promo .promo-tag{background:#f8eee7;color:#8b3a2c}
body.gshell-theme-suiranx .side-promo .promo-btn{background:linear-gradient(135deg,#8b3a2c,#a53a3b);color:#fff!important}
body.gshell-theme-suiranx .pagebar a,body.gshell-theme-suiranx .pagebar span{background:#fff!important;color:#8b3a2c!important;border-color:#e2d8cc!important}
body.gshell-theme-suiranx .pagebar a:hover,body.gshell-theme-suiranx .pagebar .now-page{background:#8b3a2c!important;color:#fff!important;border-color:#8b3a2c!important}

/* 键盘与触控可访问性（仅全局组件） */
body .gshell-nav a:focus-visible,body .gshell-nav button:focus-visible,body .gshell-footer a:focus-visible,body .site-promo-strip a:focus-visible{outline:3px solid rgba(139,30,45,.2);outline-offset:2px}

/* 平板和手机 */
@media(max-width:1100px){
  :root{--ui-nav-height:58px}
  body .gshell-nav__inner{min-height:60px;padding:0 15px}
  body .gshell-nav__brand span{display:none}
  body .gshell-nav__toggle{display:block}
  body .gshell-nav__menu{display:none;position:absolute;top:100%;left:10px;right:10px;max-height:calc(100vh - 72px);overflow:auto;flex-direction:column;align-items:stretch;padding:12px;background:#fffdf9;border:1px solid var(--ui-line);border-radius:0 0 14px 14px;box-shadow:var(--ui-shadow)}
  body .gshell-nav.is-open .gshell-nav__menu{display:flex}
  body .gshell-nav.is-open .gshell-nav__toggle i:nth-of-type(1){transform:translateY(6px) rotate(45deg)}
  body .gshell-nav.is-open .gshell-nav__toggle i:nth-of-type(2){opacity:0}
  body .gshell-nav.is-open .gshell-nav__toggle i:nth-of-type(3){transform:translateY(-6px) rotate(-45deg)}
  body .gshell-nav__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  body .gshell-nav__link{padding:11px 12px}
  body .gshell-nav__tools{text-align:center}
  body .gshell-footer__groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  body .gshell-footer__intro{display:block}
  body .gshell-footer__intro p{margin-top:9px}
  body .gshell-footer__bottom{flex-wrap:wrap}
  body .gnav-inner{min-height:var(--ui-nav-height);padding:0 16px;position:relative}
  body .gnav-toggle{display:flex}
  body .gnav-list{display:none;position:absolute;top:100%;left:12px;right:12px;max-height:calc(100vh - 74px);overflow-y:auto;overscroll-behavior:contain;flex-direction:column;align-items:stretch;background:#fff;border:1px solid var(--ui-line);border-radius:0 0 16px 16px;padding:10px 14px 14px;box-shadow:var(--ui-shadow)}
  body .gnav-list.gnav-open{display:flex}
  body .gnav-item{width:100%}
  body .gnav-item>a{padding:12px 10px;border-bottom:1px solid var(--ui-line)}
  body .gnav-item.gnav-active>a::after{display:none}
  body .gnav-dropdown{position:static;box-shadow:none;border:0;background:var(--ui-surface-2);padding:5px 10px;margin:4px 0}
  body .shici-layout{flex-direction:column;padding:16px 16px 36px;gap:20px}
  body .shici-layout>.shici-content{width:100%}
  body .shici-layout>.shici-sidebar{width:100%;flex-basis:auto;position:static}
  body #mainbox{width:100%!important;float:none!important}
  body #sidebar.unified-sidebar{display:none!important}
}

@media(max-width:700px){
  body .site-promo-strip{margin-top:12px;padding:0 12px}
  body .site-promo-strip>a{min-height:58px;padding:10px 12px;gap:10px;border-radius:12px}
  body .site-promo-strip .ba-icon{width:34px;height:34px;font-size:17px}
  body .site-promo-strip .ba-title{font-size:14px}
  body .site-promo-strip .ba-desc{display:none}
  body .site-promo-strip .ba-arrow{width:26px;height:26px}
  body .breadcrumb>.container,body .shici-breadcrumb>.shici-container,body .tool-breadcrumb>.tool-container{padding-left:14px;padding-right:14px;white-space:nowrap;overflow-x:auto;display:block}
  body .shici-layout{padding-left:12px;padding-right:12px}
  body .shici-layout>.shici-sidebar{display:none}
  body .art-main{padding:22px 17px}
  body .art-title{font-size:25px;line-height:1.45}
  body .art-content{font-size:16px;line-height:1.9}
  body .art-content a,body .art-content strong,body .art-content span{overflow-wrap:anywhere;word-break:break-word}
  body.gshell-theme-suiranx .art-content a{white-space:normal!important}
  body .block,body .sm-block,body .tool-box{padding:20px 16px;border-radius:14px}
  body .tool-container{padding-left:13px;padding-right:13px}
  body .tool-title{font-size:25px;line-height:1.4}
  body .tool-subtitle{font-size:14px;line-height:1.7}
  body .tool-form{grid-template-columns:1fr}
  body .tool-actions{display:grid;grid-template-columns:1fr 1fr}
  body .tool-actions .btn{width:100%}
  body .tool-result .row{gap:14px;align-items:flex-start}
  body .tool-table,body .bazi-table{display:block;max-width:100%;overflow-x:auto;white-space:nowrap}
  body .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .tool-card{min-height:110px;padding:15px}
  body .tool-card .desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  body .bazi-pillars{grid-template-columns:repeat(2,1fr)}
  body .search-form{flex-direction:column}
  body .search-input,body .search-select,body .search-btn{width:100%;min-width:0}
  body .faq-a{padding-left:0}
  body .toolbar{top:var(--ui-nav-height);overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start}
}

@media(max-width:380px){
  body .tool-grid,body .tool-related .tool-grid{grid-template-columns:1fr}
  body .tool-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body .gshell-nav *,body .gshell-footer *{transition:none!important;animation:none!important}
}

/* 深色模式 */
[data-theme="dark"]{
  --ui-bg:#171512;--ui-bg-soft:#1d1a17;--ui-surface:#24211d;--ui-surface-2:#2c2823;
  --ui-text:#f0e9df;--ui-muted:#b7ada1;--ui-line:#403a33;--ui-primary:#e2989f;--ui-primary-deep:#f1b0b6;--ui-gold:#d7ad6d;--ui-gold-soft:#443726;
}
[data-theme="dark"] body .gnav,[data-theme="dark"] body .gnav-list,[data-theme="dark"] body .gnav-dropdown{background:rgba(36,33,29,.97)}
[data-theme="dark"] body .gnav-item>a,[data-theme="dark"] body .gnav-dropdown li a{color:var(--ui-text)}
[data-theme="dark"] body .site-promo-strip>a{background:linear-gradient(115deg,#30271d,#24211d);border-color:#5a4830}
[data-theme="dark"] body .side-card,[data-theme="dark"] body .tool-box,[data-theme="dark"] body .tool-card,[data-theme="dark"] body .faq-item,[data-theme="dark"] body .guide-content,[data-theme="dark"] body .block,[data-theme="dark"] body .sm-block,[data-theme="dark"] body .bazi-form,[data-theme="dark"] body .search-box{background:var(--ui-surface);border-color:var(--ui-line)}
[data-theme="dark"] body .analysis-text,[data-theme="dark"] body .sm-p,[data-theme="dark"] body .art-content,[data-theme="dark"] body .guide-content{color:var(--ui-text)}
