:root{
  --gh-pri:#2563eb;
  --gh-pri-light:#3b82f6;
  --gh-pri-dark:#1d4ed8;
  --gh-pri-bg:#eff6ff;
  --gh-bg:#f5f7fa;
  --gh-card:#ffffff;
  --gh-text:#1e293b;
  --gh-text-secondary:#64748b;
  --gh-text-muted:#94a3b8;
  --gh-border:#e2e8f0;
  --gh-border-light:#f1f5f9;
  --gh-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --gh-shadow-md:0 4px 12px rgba(0,0,0,.08);
  --gh-shadow-lg:0 10px 30px rgba(0,0,0,.1);
  --gh-radius:8px;
  --gh-radius-lg:12px;
}

*{box-sizing:border-box;margin:0;padding:0}

body.theme-guohe{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
  background:var(--gh-bg);
  color:var(--gh-text);
  font-size:14px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:inherit;text-decoration:none}

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

.gh-icon-btn{
  width:36px;height:36px;
  display:inline-flex;align-items:center;justify-content:center;
  border:none;background:transparent;border-radius:8px;
  color:var(--gh-text-secondary);cursor:pointer;
  font-size:16px;transition:all .2s;
}
.gh-icon-btn:hover{background:var(--gh-border-light);color:var(--gh-pri)}

.gh-topbar{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--gh-border);
}
.gh-topbar-inner{
  max-width:1280px;margin:0 auto;padding:0 20px;
  display:flex;align-items:center;justify-content:space-between;
  height:56px;
}
.gh-topbar-left{display:flex;align-items:center;gap:24px}
.gh-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.gh-brand img{width:32px;height:32px;border-radius:8px;object-fit:contain}
.gh-brand-name{font-size:18px;font-weight:700;color:var(--gh-text)}
.gh-topnav{display:flex;align-items:center;gap:4px}
.gh-topnav-link{
  padding:6px 14px;border-radius:6px;
  font-size:14px;color:var(--gh-text-secondary);
  transition:all .2s;
}
.gh-topnav-link:hover{color:var(--gh-pri);background:var(--gh-pri-bg)}
.gh-topnav-link.active{color:var(--gh-pri);font-weight:500}

.gh-topbar-right{display:flex;align-items:center;gap:4px}
.gh-mobile-menu{display:none}

.gh-announce{
  background:linear-gradient(90deg,#fef3c7,#fde68a);
  color:#92400e;font-size:13px;padding:8px 0;
  border-bottom:1px solid #fde68a;
}
.gh-announce .gh-container{display:flex;align-items:center;gap:8px}
.gh-announce i{font-size:12px}

.gh-hero{
  position:relative;
  padding:48px 20px 60px;
  overflow:hidden;
  text-align:center;
}
.gh-hero-bg{
  position:absolute;inset:0;z-index:0;
  background:linear-gradient(135deg,#1e40af 0%,#3b82f6 40%,#60a5fa 70%,#93c5fd 100%);
}
.gh-hero-bg::before{
  content:"";position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.gh-hero-bg::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.15) 0%,transparent 70%);
}
.gh-hero-wave{
  position:absolute;bottom:-1px;left:0;right:0;z-index:1;
  height:50px;pointer-events:none;
}
.gh-hero-wave svg{display:block;width:100%;height:100%}
.gh-hero-inner{position:relative;z-index:2;max-width:720px;margin:0 auto}
.gh-hero-title{
  font-size:26px;font-weight:700;color:#fff;
  margin-bottom:18px;text-shadow:0 2px 8px rgba(0,0,0,.15);
}

.gh-search-form{max-width:680px;margin:0 auto}
.gh-search-input-wrap{
  display:flex;align-items:center;
  background:#fff;border-radius:50px;
  padding:4px 4px 4px 18px;
  box-shadow:0 4px 20px rgba(0,0,0,.12);
  transition:box-shadow .25s;
  height:46px;
}
.gh-search-input-wrap:focus-within{
  box-shadow:0 6px 28px rgba(0,0,0,.18);
}
.gh-search-ico{color:var(--gh-text-muted);font-size:15px;margin-right:10px;flex-shrink:0}
.gh-search-input{
  flex:1;border:none;outline:none;background:transparent;
  font-size:14px;color:var(--gh-text);padding:8px 0;
  min-width:0;
}
.gh-search-input::placeholder{color:var(--gh-text-muted)}
.gh-search-btn{
  background:var(--gh-pri);color:#fff;border:none;
  padding:8px 22px;border-radius:50px;
  font-size:14px;font-weight:500;cursor:pointer;
  transition:background .2s;white-space:nowrap;
  height:38px;
}
.gh-search-btn:hover{background:var(--gh-pri-dark)}

.gh-search-tabs{
  display:flex;justify-content:center;gap:6px;
  margin-top:14px;flex-wrap:wrap;
}
.gh-search-tab{
  background:rgba(255,255,255,.2);color:rgba(255,255,255,.85);
  border:none;padding:5px 14px;border-radius:20px;
  font-size:12px;cursor:pointer;transition:all .2s;
  backdrop-filter:blur(4px);
}
.gh-search-tab:hover{background:rgba(255,255,255,.35);color:#fff}
.gh-search-tab.active{background:#fff;color:var(--gh-pri);font-weight:500}

.gh-hitokoto{
  margin-top:20px;color:rgba(255,255,255,.8);font-size:13px;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.gh-hitokoto i{opacity:.7}

/* 搜索弹窗 */
.gh-search-modal{
  position:fixed;inset:0;z-index:300;
  visibility:hidden;opacity:0;
  transition:opacity .25s,visibility .25s;
}
.gh-search-modal.open{visibility:visible;opacity:1}
.gh-search-modal-mask{
  position:absolute;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.gh-search-modal-box{
  position:relative;z-index:1;
  max-width:600px;margin:12vh auto 0;
  background:#fff;border-radius:16px;
  padding:0;overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  transform:translateY(-20px) scale(.97);
  transition:transform .25s cubic-bezier(.2,.8,.3,1);
  display:flex;flex-direction:column;
  max-height:80vh;
}
.gh-search-modal.open .gh-search-modal-box{
  transform:translateY(0) scale(1);
}
.gh-search-modal-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px 8px;
}
.gh-search-modal-title{
  margin:0;font-size:16px;font-weight:600;color:var(--gh-text);
}
.gh-search-modal-close{
  width:30px;height:30px;border:none;background:transparent;
  border-radius:8px;cursor:pointer;color:var(--gh-text-muted);
  display:flex;align-items:center;justify-content:center;font-size:18px;
  transition:all .15s;flex-shrink:0;
}
.gh-search-modal-close:hover{background:var(--gh-border-light);color:var(--gh-text)}
.gh-search-modal-form{max-width:100%;padding:0 20px}
.gh-search-modal-inputwrap{
  display:flex;align-items:center;gap:0;
  border:2px solid var(--gh-pri);border-radius:12px;
  background:#fff;overflow:hidden;
  transition:box-shadow .2s;
}
.gh-search-modal-inputwrap:focus-within{
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}
.gh-search-engine-select{
  position:relative;display:flex;align-items:center;
  padding:0 28px 0 14px;flex-shrink:0;
  border-right:1px solid #e5e7eb;height:46px;
  cursor:pointer;
}
.gh-search-engine-sel{
  appearance:none;-webkit-appearance:none;
  border:none;background:transparent;outline:none;
  font-size:13px;font-weight:500;color:var(--gh-text);
  cursor:pointer;padding-right:0;
}
.gh-search-engine-select > i{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  font-size:10px;color:var(--gh-text-muted);pointer-events:none;
}
.gh-search-modal-input{
  flex:1;border:none;outline:none;background:transparent;
  height:46px;padding:0 12px;font-size:14px;color:var(--gh-text);
  min-width:0;
}
.gh-search-modal-input::placeholder{color:#9ca3af}
.gh-search-modal-btn{
  height:46px;padding:0 22px;border:none;cursor:pointer;
  background:var(--gh-pri);color:#fff;font-size:14px;font-weight:500;
  white-space:nowrap;flex-shrink:0;transition:background .15s;
  display:flex;align-items:center;gap:5px;
}
.gh-search-modal-btn:hover{background:#1d4ed8}
.gh-search-modal-hint{
  text-align:center;padding:12px 20px 16px;
  font-size:12px;color:var(--gh-text-muted);
  border-top:1px solid var(--gh-border-light);
}
.gh-search-modal-hint kbd{
  display:inline-block;padding:1px 6px;margin:0 2px;
  font-size:11px;font-family:inherit;
  background:var(--gh-border-light);border-radius:4px;
  border:1px solid var(--gh-border);
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
}

.gh-mobile-overlay{
  position:fixed;inset:0;z-index:200;
  visibility:hidden;opacity:0;transition:opacity .3s;
  height:100vh;height:100dvh;
}
.gh-mobile-overlay.open{visibility:visible;opacity:1}
.gh-mobile-overlay-bg{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.gh-mobile-drawer{
  position:absolute;left:0;top:0;bottom:0;
  width:280px;max-width:82vw;
  background:var(--gh-card);transform:translateX(-100%);
  transition:transform .3s ease;
  display:flex;flex-direction:column;
  overflow:hidden;
  -webkit-overflow-scrolling:touch;
  box-sizing:border-box;
}
.gh-mobile-overlay.open .gh-mobile-drawer{transform:translateX(0)}
.gh-mobile-drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;padding-top:max(14px,env(safe-area-inset-top,0px));
  border-bottom:1px solid var(--gh-border);
  font-weight:600;font-size:15px;
  flex-shrink:0;
  background:var(--gh-card);
  color:var(--gh-text);
  min-height:50px;
  box-sizing:border-box;
  z-index:1;
}
.gh-mobile-drawer-head > span{display:inline-flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gh-mobile-drawer-head > span i{font-size:15px;color:var(--gh-pri);flex-shrink:0}
.gh-mobile-drawer-head button{
  width:32px;height:32px;border:none;background:transparent;
  border-radius:6px;cursor:pointer;color:var(--gh-text-secondary);
  display:flex;align-items:center;justify-content:center;font-size:16px;
}
.gh-mobile-drawer-head button:hover{background:var(--gh-border-light)}
.gh-mobile-drawer-body{
  flex:1;overflow-y:auto;overflow-x:hidden;
  padding:8px 10px;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.gh-cat-list-mobile{list-style:none}
.gh-cat-list-mobile li a{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:8px;
  color:var(--gh-text);font-size:14px;
  transition:all .15s;
}
.gh-cat-list-mobile li a:hover{background:var(--gh-pri-bg);color:var(--gh-pri)}
.gh-cat-list-mobile .gh-g-ico{width:20px;text-align:center;color:var(--gh-pri-light);font-size:14px}
.gh-cat-list-mobile .gh-g-ico-emoji{width:20px;text-align:center;font-size:16px}

.gh-layout{
  display:flex;gap:18px;
  padding-top:18px;padding-bottom:32px;
  align-items:flex-start;
}

.gh-sidebar{
  width:220px;flex-shrink:0;
  position:sticky;top:16px;
  align-self:flex-start;
  background:var(--gh-card);
  border-radius:var(--gh-radius-lg);
  border:1px solid var(--gh-border);
  overflow:hidden;
  opacity:var(--gh-sidebar-opacity,1);
  z-index:2;
  box-shadow:0 4px 20px rgba(0,0,0,.08);
}
.gh-sidebar-head{
  display:flex;align-items:center;gap:8px;
  padding:16px 18px;
  font-size:15px;font-weight:600;
  border-bottom:1px solid var(--gh-border-light);
  color:var(--gh-text);
  background:var(--gh-border-light);
}
.gh-sidebar-head i{color:var(--gh-pri);font-size:14px}
.gh-cat-list{list-style:none;padding:8px}
.gh-cat-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:8px;
  font-size:14px;color:var(--gh-text-secondary);
  transition:all .15s;cursor:pointer;
  border-left:3px solid transparent;
}
.gh-cat-item:hover{background:var(--gh-border-light);color:var(--gh-text)}
.gh-cat-item.active{
  background:var(--gh-pri-bg);
  color:var(--gh-pri);
  font-weight:500;
  border-left-color:var(--gh-pri);
}
.gh-cat-item .gh-g-ico{
  width:20px;text-align:center;font-size:14px;
  color:var(--gh-text-muted);
}
.gh-cat-item.active .gh-g-ico{color:var(--gh-pri)}
.gh-cat-item .gh-g-ico-emoji{width:20px;text-align:center;font-size:16px}
.gh-cat-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.gh-main{flex:1;min-width:0}

.gh-banners{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:12px;margin-bottom:18px;
}
.gh-banner{
  height:100px;border-radius:var(--gh-radius-lg);
  cursor:pointer;transition:transform .2s,box-shadow .2s;
  position:relative;overflow:hidden;
}
.gh-banner:hover{transform:translateY(-2px);box-shadow:var(--gh-shadow-md)}
.gh-banner-text{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:8px;color:#fff;font-size:14px;font-weight:500;
}
.gh-banner-text i{font-size:28px;opacity:.9}
.gh-banner-text .gh-nav-emoji{font-size:28px;line-height:1;opacity:.95}
.gh-banner-image{
  display:block;
  background-color:#f1f5f9;
}
.gh-banner-image img{width:100%;height:100%;object-fit:cover;display:block;border-radius:var(--gh-radius-lg)}
.gh-banner-img-label{
  position:absolute;left:14px;bottom:12px;
  padding:4px 10px;background:rgba(0,0,0,.5);
  color:#fff;font-size:12px;border-radius:6px;
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.gh-section{
  background:var(--gh-card);
  border-radius:var(--gh-radius-lg);
  border:1px solid var(--gh-border);
  padding:16px;
  margin-bottom:14px;
}
.gh-section-head{
  display:flex;align-items:center;gap:10px;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--gh-border-light);
}
.gh-section-icon{
  width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;
  background:var(--gh-pri-bg);
  border-radius:8px;color:var(--gh-pri);
  font-size:15px;flex-shrink:0;
}
.gh-section-icon .gh-g-ico{
  font-size:15px;color:var(--gh-pri);
}
.gh-section-icon .gh-g-ico-emoji{font-size:18px}
.gh-section-title{
  font-size:16px;font-weight:600;color:var(--gh-text);
}
.gh-section-desc{
  font-size:12px;color:var(--gh-text-muted);
  margin-left:auto;
}

.gh-links{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.gh-link-card{
  display:flex;gap:10px;
  padding:12px;
  border:1px solid var(--gh-border-light);
  border-radius:var(--gh-radius);
  background:#fff;
  transition:all .2s;
  cursor:pointer;
  position:relative;
}
.gh-link-card:hover{
  border-color:var(--gh-pri-light);
  box-shadow:0 4px 16px rgba(37,99,235,.1);
  transform:translateY(-2px);
}
.gh-link-card:hover .gh-link-arrow{color:var(--gh-pri);transform:translateX(2px)}

.gh-link-ico-wrap{
  width:44px;height:44px;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background:var(--gh-border-light);
  overflow:hidden;
}
.gh-link-ico-wrap .link-ico{
  width:36px!important;height:36px!important;
  border-radius:8px!important;
  object-fit:contain!important;
  background:transparent!important;
  opacity:1!important;
}
.gh-link-ico-wrap i.link-ico{
  display:flex!important;align-items:center;justify-content:center;
  font-size:20px!important;color:var(--gh-pri)!important;
  width:36px!important;height:36px!important;
  background:transparent!important;
}
.gh-link-ico-wrap span.link-ico-svg{
  display:flex!important;align-items:center;justify-content:center;
  width:36px!important;height:36px!important;
}
.gh-link-ico-wrap span.link-ico-svg svg{width:32px;height:32px}

.gh-link-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.gh-link-title-row{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.gh-link-title{
  font-size:14px;font-weight:600;color:var(--gh-text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.gh-link-arrow{
  color:var(--gh-text-muted);font-size:12px;
  transition:all .2s;flex-shrink:0;
}
.gh-link-desc{
  font-size:12px;color:var(--gh-text-muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  line-height:1.5;
}
.gh-link-tags{
  display:flex;gap:6px;margin-top:2px;flex-wrap:wrap;
}
.gh-link-tag{
  display:inline-block;padding:1px 8px;
  font-size:11px;line-height:18px;
  background:var(--gh-pri-bg);color:var(--gh-pri);
  border-radius:4px;font-weight:500;
}

.gh-link-empty{
  grid-column:1/-1;
  padding:24px;text-align:center;
  color:var(--gh-text-muted);font-size:13px;
  background:var(--gh-border-light);
  border-radius:var(--gh-radius);
}

.gh-empty{
  background:var(--gh-card);
  padding:48px 20px;text-align:center;
  border-radius:var(--gh-radius-lg);
  border:1px solid var(--gh-border);
  color:var(--gh-text-muted);
}
.gh-empty a{color:var(--gh-pri);font-weight:500}

.gh-footer{
  margin-top:20px;
  background:#fff;
  border-top:1px solid var(--gh-border);
  padding:30px 0 24px;
}
.gh-footer .gh-container{text-align:center}
.gh-footer-links{
  display:flex;justify-content:center;gap:20px;
  margin-bottom:12px;flex-wrap:wrap;
}
.gh-footer-links a{
  font-size:13px;color:var(--gh-text-secondary);
  transition:color .2s;
}
.gh-footer-links a:hover{color:var(--gh-pri)}
.gh-footer-text{
  font-size:13px;color:var(--gh-text-muted);margin-bottom:6px;
}
.gh-footer-beian{
  font-size:12px;color:var(--gh-text-muted);margin-bottom:6px;
}
.gh-footer-beian a{color:inherit}
.gh-footer-beian a:hover{color:var(--gh-pri)}
.gh-footer-power{
  font-size:12px;color:var(--gh-text-muted);opacity:.7;
}
.gh-footer-power a{color:inherit}
.gh-footer-power a:hover{color:var(--gh-pri)}

.gh-back-top{
  position:fixed;right:24px;bottom:24px;
  width:44px;height:44px;
  border-radius:50%;
  background:var(--gh-pri);color:#fff;
  border:none;cursor:pointer;
  box-shadow:0 4px 16px rgba(37,99,235,.35);
  display:flex;align-items:center;justify-content:center;
  font-size:16px;
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:all .3s;z-index:90;
}
.gh-back-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.gh-back-top:hover{background:var(--gh-pri-dark);transform:translateY(-2px)}

.gh-nav-emoji{display:inline-block;line-height:1}

.gh-page-body h2{font-size:20px;margin:28px 0 14px;font-weight:600;color:var(--gh-text)}
.gh-page-body h3{font-size:17px;margin:22px 0 10px;font-weight:600;color:var(--gh-text)}
.gh-page-body h4{font-size:15px;margin:18px 0 8px;font-weight:600}
.gh-page-body p{margin:0 0 14px}
.gh-page-body ul,.gh-page-body ol{margin:0 0 14px;padding-left:24px}
.gh-page-body li{margin:4px 0}
.gh-page-body a{color:var(--gh-pri);text-decoration:underline;text-underline-offset:2px}
.gh-page-body a:hover{color:var(--gh-pri-dark)}
.gh-page-body pre{background:var(--gh-border-light);border:1px solid var(--gh-border);border-radius:8px;padding:14px;overflow-x:auto;font-size:13px;line-height:1.6;margin:0 0 14px}
.gh-page-body code{background:var(--gh-border-light);padding:2px 6px;border-radius:4px;font-size:13px;color:var(--gh-pri)}
.gh-page-body pre code{background:transparent;padding:0;color:inherit}
.gh-page-body blockquote{border-left:3px solid var(--gh-pri);padding:8px 16px;margin:0 0 14px;background:var(--gh-pri-bg);border-radius:0 8px 8px 0;color:var(--gh-text-secondary)}
.gh-page-body img{max-width:100%;height:auto;border-radius:8px;margin:10px 0}
.gh-page-body table{width:100%;border-collapse:collapse;margin:0 0 14px}
.gh-page-body th,.gh-page-body td{border:1px solid var(--gh-border);padding:8px 12px;text-align:left}
.gh-page-body th{background:var(--gh-border-light);font-weight:600}
.gh-page-body hr{border:none;border-top:1px solid var(--gh-border);margin:20px 0}

/* Dark mode */
body.theme-guohe.dark{
  --gh-bg:#0f172a;
  --gh-card:#1e293b;
  --gh-text:#e2e8f0;
  --gh-text-secondary:#94a3b8;
  --gh-text-muted:#64748b;
  --gh-border:#334155;
  --gh-border-light:#1e293b;
  --gh-pri-bg:rgba(59,130,246,.15);
  --gh-shadow:0 1px 3px rgba(0,0,0,.2);
  --gh-shadow-md:0 4px 12px rgba(0,0,0,.3);
}

body.theme-guohe.dark .gh-topbar{
  background:rgba(15,23,42,.88);
  border-bottom-color:var(--gh-border);
}
body.theme-guohe.dark .gh-icon-btn:hover{background:#334155}
body.theme-guohe.dark .gh-announce{
  background:rgba(251,191,36,.15);
  color:#fbbf24;border-bottom-color:rgba(251,191,36,.2);
}
body.theme-guohe.dark .gh-mobile-drawer{background:var(--gh-card)}
body.theme-guohe.dark .gh-mobile-drawer-head{border-bottom-color:var(--gh-border)}
body.theme-guohe.dark .gh-mobile-drawer-head button:hover{background:#334155}
body.theme-guohe.dark .gh-cat-list-mobile li a:hover{background:#334155}
body.theme-guohe.dark .gh-sidebar-head{background:#334155}
body.theme-guohe.dark .gh-sidebar{box-shadow:0 4px 24px rgba(0,0,0,.3)}
body.theme-guohe.dark .gh-cat-item:hover{background:#334155}
body.theme-guohe.dark .gh-search-input-wrap{background:#1e293b}
body.theme-guohe.dark .gh-search-input{color:var(--gh-text)}
body.theme-guohe.dark .gh-search-tab{background:rgba(255,255,255,.1)}
body.theme-guohe.dark .gh-search-tab:hover{background:rgba(255,255,255,.2)}
body.theme-guohe.dark .gh-search-tab.active{background:var(--gh-card);color:var(--gh-pri-light)}
body.theme-guohe.dark .gh-search-modal-box{background:var(--gh-card);box-shadow:0 20px 60px rgba(0,0,0,.5)}
body.theme-guohe.dark .gh-search-modal-close:hover{background:#334155;color:var(--gh-text)}
body.theme-guohe.dark .gh-search-modal-inputwrap{background:#1e293b;border-color:var(--gh-pri)}
body.theme-guohe.dark .gh-search-modal-input{color:var(--gh-text)}
body.theme-guohe.dark .gh-search-engine-select{border-right-color:#334155}
body.theme-guohe.dark .gh-search-engine-sel{color:var(--gh-text)}
body.theme-guohe.dark .gh-search-modal-hint kbd{background:#334155;border-color:#475569;color:var(--gh-text-secondary)}
body.theme-guohe.dark .gh-search-result-item:hover{background:#334155}
body.theme-guohe.dark .gh-search-result-icon{background:linear-gradient(135deg,rgba(96,165,250,.12),rgba(167,139,250,.1));border-color:#334155}
body.theme-guohe.dark .gh-search-result-item mark{background:rgba(96,165,250,.25);color:#93c5fd}
body.theme-guohe.dark .gh-search-results-header{background:#1e293b}
body.theme-guohe.dark .gh-search-empty{background:#1e293b;border-color:#334155}
body.theme-guohe.dark .gh-search-results{border-top-color:#334155}
body.theme-guohe.dark .gh-search-empty-icon{background:#334155}
body.theme-guohe.dark .gh-search-modal-hint{border-top-color:#334155}
body.theme-guohe.dark .gh-banner-image{background-color:#0f172a}
body.theme-guohe.dark .gh-banner-img-label{background:rgba(0,0,0,.6)}
body.theme-guohe.dark .gh-link-card{background:#1e293b;border-color:#334155}
body.theme-guohe.dark .gh-link-card:hover{border-color:var(--gh-pri-light);box-shadow:0 4px 16px rgba(59,130,246,.2)}
body.theme-guohe.dark .gh-link-ico-wrap{background:#334155}
body.theme-guohe.dark .gh-link-tag{background:rgba(59,130,246,.2)}
body.theme-guohe.dark .gh-section{background:var(--gh-card);border-color:var(--gh-border)}
body.theme-guohe.dark .gh-section-head{border-bottom-color:#334155}
body.theme-guohe.dark .gh-section-icon{background:rgba(59,130,246,.15)}
body.theme-guohe.dark .gh-link-empty{background:#334155}
body.theme-guohe.dark .gh-empty{background:var(--gh-card);border-color:var(--gh-border)}
body.theme-guohe.dark .gh-footer{background:#1e293b;border-top-color:var(--gh-border)}
body.theme-guohe.dark .gh-footer-links a:hover{color:var(--gh-pri-light)}
body.theme-guohe.dark .gh-page-body pre{background:#0f172a;border-color:var(--gh-border)}
body.theme-guohe.dark .gh-page-body code{background:#334155;color:var(--gh-pri-light)}
body.theme-guohe.dark .gh-page-body blockquote{background:rgba(59,130,246,.1);border-left-color:var(--gh-pri-light)}
body.theme-guohe.dark .gh-page-body th{background:#334155}
body.theme-guohe.dark .gh-page-body th,body.theme-guohe.dark .gh-page-body td{border-color:var(--gh-border)}

.gnav-ico{display:none}

@media(min-width:1200px){
  .gh-sidebar{margin-top:-140px}
}

@media(max-width:1100px){
  .gh-links{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:900px){
  .gh-banners{grid-template-columns:repeat(3,1fr);gap:10px}
  .gh-banner{height:100px}
  .gh-banner-text i{font-size:24px}
  .gh-banner-text .gh-nav-emoji{font-size:24px}
}

@media(max-width:768px){
  .gh-topnav{display:none}
  .gh-mobile-menu{display:inline-flex}
  .gh-topbar-inner{height:52px}
  .gh-container{padding:0 12px}
  .gh-topbar-inner{padding:0 12px}

  .gh-icon-btn{width:40px;height:40px;font-size:18px}

  .gh-announce{font-size:12px;padding:8px 0}
  .gh-announce .gh-container{gap:6px;padding:0 12px}

  .gh-hero{padding:28px 14px 36px}
  .gh-hero-wave{height:36px}
  .gh-hero-title{font-size:20px;margin-bottom:14px;line-height:1.4}
  .gh-search-input-wrap{padding:3px 3px 3px 14px;border-radius:24px;height:42px}
  .gh-search-ico{margin-right:8px;font-size:14px}
  .gh-search-input{font-size:16px;padding:7px 0;-webkit-appearance:none}
  .gh-search-btn{padding:7px 16px;font-size:13px;border-radius:20px;min-height:36px;height:36px}
  .gh-search-tabs{gap:6px;margin-top:10px}
  .gh-search-tab{padding:5px 12px;font-size:12px;border-radius:16px;min-height:30px}
  .gh-hitokoto{font-size:12px;margin-top:12px}

  .gh-search-modal{display:flex;align-items:flex-start;justify-content:center;padding:8vh 10px 0;overflow-y:auto}
  .gh-search-modal-mask{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
  .gh-search-modal-box{margin:0;position:relative;left:auto;right:auto;bottom:auto;top:auto;max-width:560px;width:100%;border-radius:14px;padding:0;max-height:80vh;display:flex;flex-direction:column;transform:scale(.96);opacity:0;transition:transform .25s cubic-bezier(.2,.8,.3,1),opacity .25s}
  .gh-search-modal.open .gh-search-modal-box{transform:scale(1);opacity:1}
  .gh-search-modal-head{padding:14px 14px 6px}
  .gh-search-modal-title{font-size:15px}
  .gh-search-modal-close{width:32px;height:32px;font-size:16px}
  .gh-search-modal-form{padding:0 12px}
  .gh-search-modal-inputwrap{border-radius:10px}
  .gh-search-engine-select{padding:0 24px 0 10px;height:42px}
  .gh-search-engine-sel{font-size:12px}
  .gh-search-modal-input{height:42px;padding:0 10px;font-size:16px}
  .gh-search-modal-btn{height:42px;padding:0 16px;font-size:13px}
  .gh-search-results{max-height:50vh;flex:1;overflow-y:auto}
  .gh-search-results-list{padding:4px 6px 6px}
  .gh-search-result-item{padding:10px 10px;gap:10px;border-radius:8px}
  .gh-search-result-icon{width:36px;height:36px;border-radius:8px}
  .gh-search-result-arrow{display:none}
  .gh-search-results-header{padding:8px 14px 4px}
  .gh-search-modal-hint{padding:10px 14px 14px;font-size:11px}

  .gh-mobile-drawer{width:260px;max-width:78vw}
  .gh-mobile-drawer-head{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top,0px));font-size:15px;min-height:48px}
  .gh-mobile-drawer-head button{width:34px;height:34px;font-size:16px}
  .gh-mobile-drawer-body{padding:6px 8px}
  .gh-cat-list-mobile li a{padding:11px 12px;border-radius:9px;font-size:14px;min-height:42px}
  .gh-cat-list-mobile .gh-g-ico{width:22px;font-size:15px}
  .gh-cat-list-mobile .gh-g-ico-emoji{width:22px;font-size:17px}

  .gh-layout{flex-direction:column;gap:0;padding-top:10px;padding-bottom:20px}
  .gh-sidebar{display:none;position:static;width:100%;top:0;max-height:none}
  .gh-main{width:100%}

  .gh-banners{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;margin-top:8px}
  .gh-banner{height:68px;border-radius:10px}
  .gh-banner-text{flex-direction:row;gap:10px;padding:0 14px;justify-content:flex-start;font-size:13px}
  .gh-banner-text i{font-size:24px}
  .gh-banner-text .gh-nav-emoji{font-size:24px}
  .gh-banner-img-label{left:8px;bottom:6px;font-size:10px;padding:2px 6px}

  .gh-section{padding:12px;margin-bottom:10px;border-radius:10px}
  .gh-section-head{margin-bottom:10px;padding-bottom:8px;gap:8px}
  .gh-section-icon{width:26px;height:26px;font-size:12px;border-radius:6px}
  .gh-section-icon .gh-g-ico{font-size:12px}
  .gh-section-icon .gh-g-ico-emoji{font-size:15px}
  .gh-section-title{font-size:14px}
  .gh-section-desc{display:none}

  .gh-links{grid-template-columns:repeat(2,1fr);gap:8px}
  .gh-link-card{padding:10px;gap:8px;border-radius:9px;min-height:58px}
  .gh-link-ico-wrap{width:36px;height:36px;border-radius:8px}
  .gh-link-ico-wrap .link-ico{width:28px!important;height:28px!important;border-radius:6px!important}
  .gh-link-ico-wrap i.link-ico{font-size:15px!important;width:28px!important;height:28px!important}
  .gh-link-ico-wrap span.link-ico-svg{width:28px!important;height:28px!important}
  .gh-link-ico-wrap span.link-ico-svg svg{width:24px;height:24px}
  .gh-link-title{font-size:12.5px;line-height:1.3}
  .gh-link-desc{font-size:11px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  .gh-link-tag{font-size:10px;padding:1px 5px;line-height:15px}

  .gh-footer{padding:16px 0 16px;margin-top:6px}
  .gh-footer-links{gap:14px;flex-wrap:wrap}
  .gh-footer-links a{font-size:12px;padding:3px 0}
  .gh-footer-text{font-size:11px;margin-top:6px}
  .gh-footer-beian{font-size:10px;margin-top:4px}
  .gh-footer-power{font-size:10px;margin-top:4px}

  .gh-back-top{width:40px;height:40px;right:12px;bottom:12px;font-size:15px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
}

@media(max-width:480px){
  .gh-brand-name{font-size:15px;letter-spacing:-.01em}
  .gh-brand img{width:28px;height:28px}
  .gh-container{padding:0 10px}
  .gh-topbar-inner{padding:0 10px}

  .gh-hero{padding:22px 12px 32px}
  .gh-hero-wave{height:30px}
  .gh-hero-title{font-size:18px;margin-bottom:12px}
  .gh-search-input-wrap{padding:3px 3px 3px 12px;height:40px;border-radius:20px}
  .gh-search-ico{margin-right:8px;font-size:13px}
  .gh-search-input{font-size:16px;padding:6px 0}
  .gh-search-btn{padding:6px 14px;font-size:13px;height:34px;min-height:34px;border-radius:18px}
  .gh-search-tabs{margin-top:8px;gap:4px}
  .gh-search-tab{padding:4px 10px;font-size:11px;min-height:28px}

  .gh-links{grid-template-columns:repeat(2,1fr);gap:6px}
  .gh-link-card{padding:8px;gap:6px;min-height:52px;border-radius:8px}
  .gh-link-ico-wrap{width:32px;height:32px;border-radius:7px}
  .gh-link-ico-wrap .link-ico{width:26px!important;height:26px!important;border-radius:5px!important}
  .gh-link-ico-wrap i.link-ico{font-size:13px!important;width:26px!important;height:26px!important}
  .gh-link-ico-wrap span.link-ico-svg{width:26px!important;height:26px!important}
  .gh-link-ico-wrap span.link-ico-svg svg{width:22px;height:22px}
  .gh-link-title{font-size:12px;line-height:1.25}
  .gh-link-desc{display:none}
  .gh-link-tags{display:none}

  .gh-banners{gap:5px;margin-bottom:10px}
  .gh-banner{height:56px;border-radius:8px}
  .gh-banner-text{padding:0 8px;font-size:11px;gap:6px}
  .gh-banner-text i{font-size:18px}
  .gh-banner-text .gh-nav-emoji{font-size:18px}

  .gh-section{padding:10px;margin-bottom:8px;border-radius:8px}
  .gh-section-head{margin-bottom:8px;padding-bottom:6px}
  .gh-section-icon{width:24px;height:24px;font-size:11px;border-radius:5px}
  .gh-section-title{font-size:13px}

  .gh-footer{padding:14px 0 12px}
  .gh-footer-links{gap:10px}
  .gh-footer-links a{font-size:11px}

  .gh-back-top{width:36px;height:36px;right:8px;bottom:8px;font-size:14px}

  .gh-mobile-drawer{width:250px;max-width:82vw}
  .gh-mobile-drawer-head{padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top,0px));min-height:44px;font-size:14px}
  .gh-mobile-drawer-head button{width:32px;height:32px;font-size:15px}
  .gh-cat-list-mobile li a{padding:10px 10px;font-size:13px;min-height:40px}
}

/* 搜索结果（弹窗内） */
.gh-search-results{margin:0;border-top:1px solid var(--gh-border-light);padding:0;max-height:55vh;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;min-height:0}
.gh-search-results-header{padding:10px 20px 6px;font-size:11px;color:var(--gh-text-secondary);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--gh-card);z-index:1}
.gh-search-count{display:inline-flex;align-items:center;gap:4px;font-weight:500}
.gh-search-count::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gh-pri);display:inline-block}
.gh-search-results-list{display:flex;flex-direction:column;gap:0;padding:4px 8px 8px}
.gh-search-result-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:10px;color:var(--gh-text);text-decoration:none;transition:all .18s cubic-bezier(.4,0,.2,1);position:relative}
.gh-search-result-item:hover{background:var(--gh-border-light);transform:translateX(2px)}
.gh-search-result-icon{width:40px;height:40px;border-radius:10px;overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(99,102,241,.1),rgba(139,92,246,.1));border:1px solid var(--gh-border-light)}
.gh-search-result-favicon{width:100%;height:100%;object-fit:contain;padding:6px}
.gh-search-result-faicon{font-size:18px;color:var(--gh-pri)}
.gh-search-result-faicon i{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.gh-search-result-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--gh-pri),var(--gh-pri-light,var(--gh-pri)));color:#fff;font-weight:700;font-size:16px;border-radius:10px}
.gh-search-result-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.gh-search-result-title{font-size:14px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gh-search-result-item mark{background:rgba(99,102,241,.18);color:var(--gh-pri);padding:1px 4px;border-radius:3px;font-weight:600}
.gh-search-result-desc{font-size:12px;color:var(--gh-text-secondary);line-height:1.5;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.gh-search-result-meta{font-size:11px;color:var(--gh-text-secondary);opacity:.75;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.gh-search-result-meta i{font-size:10px;opacity:.7;margin-right:2px}
.gh-search-result-cat,.gh-search-result-host{display:inline-flex;align-items:center}
.gh-search-result-arrow{color:var(--gh-text-secondary);opacity:0;font-size:12px;transition:all .18s;flex-shrink:0}
.gh-search-result-item:hover .gh-search-result-arrow{opacity:1;transform:translateX(2px)}
.gh-search-empty-modal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 16px;color:var(--gh-text-secondary)}
.gh-search-empty-icon{width:52px;height:52px;border-radius:50%;background:var(--gh-border-light);display:flex;align-items:center;justify-content:center;font-size:24px;opacity:.6}
.gh-search-empty-modal span{font-size:13px}

/* 内联搜索空状态 */
.gh-search-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 20px;color:var(--gh-text-secondary);text-align:center;background:var(--gh-card);border:1px solid var(--gh-border);border-radius:var(--gh-radius-lg);margin-bottom:14px}
.gh-search-empty i{font-size:40px;margin-bottom:10px;opacity:.5}
.gh-search-empty p{margin:0;font-size:14px}
