  /* ===================== 主题变量 ===================== */
  :root{
    --brand:#1f9d55;
    --brand-strong:#17824a;
    --brand-soft:#e8f6ed;
    --brand-glow:rgba(31,157,85,.28);
    --bg:#f4f6f8;
    --surface:#ffffff;
    --surface-2:#f7f9fa;
    --text:#1b2430;
    --muted:#6b7785;
    --border:#e3e8ee;
    --header-bg:rgba(255,255,255,.85);
    --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --shadow-hover:0 2px 4px rgba(16,24,40,.05), 0 14px 32px rgba(16,24,40,.10);
    --radius:16px;
  }
  html[data-theme="dark"]{
    --brand:#34d07f;
    --brand-strong:#2bbd6f;
    --brand-soft:#12301f;
    --brand-glow:rgba(52,208,127,.25);
    --bg:#0f1418;
    --surface:#161d23;
    --surface-2:#1b242c;
    --text:#e7edf3;
    --muted:#93a1b0;
    --border:#25303a;
    --header-bg:rgba(22,29,35,.85);
    --shadow:0 1px 2px rgba(0,0,0,.30), 0 8px 24px rgba(0,0,0,.35);
    --shadow-hover:0 2px 4px rgba(0,0,0,.35), 0 14px 32px rgba(0,0,0,.45);
  }

  /* ===================== 基础 ===================== */
  *,*::before,*::after{box-sizing:border-box;}
  html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    transition:background .3s ease,color .3s ease;
  }
  a{color:inherit;text-decoration:none;}
  img,svg{display:block;}
  button{font:inherit;color:inherit;cursor:pointer;}
  input{font:inherit;}

  .container{
    width:100%;
    max-width:1200px;
    margin-inline:auto;
    padding-inline:16px;
  }

  /* ===================== 顶栏 ===================== */
  .site-header{
    position:sticky;
    top:0;
    z-index:20;
    background:var(--header-bg);
    backdrop-filter:saturate(180%) blur(14px);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    border-bottom:1px solid var(--border);
  }
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:64px;
  }
  .brand{display:flex;align-items:center;gap:10px;}
  .brand-mark{
    display:grid;
    place-items:center;
    width:auto;height:35px;
    border-radius:6px;
    background:linear-gradient(135deg,#fff,#fff);
    color:#fff;
    font-weight:800;
    font-size:14px;
    letter-spacing:-.5px;
    box-shadow:0 4px 14px var(--brand-glow);
  }
  .brand-text{display:flex;flex-direction:column;line-height:1.25;}
  .brand-text strong{font-size:17px;letter-spacing:.5px;}
  .brand-text small{font-size:11px;color:var(--muted);letter-spacing:.3px;}

  .icon-btn{
    width:40px;height:40px;
    display:grid;place-items:center;
    border-radius:12px;
    background:var(--surface);
    border:1px solid var(--border);
    font-size:17px;
    line-height:1;
    transition:background .2s,border-color .2s,transform .2s;
  }
  .icon-btn:hover{background:var(--brand-soft);border-color:var(--brand);transform:translateY(-1px);}

  /* ===================== 搜索区 ===================== */
  .hero{padding-block:24px 8px;}
  .hero-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:22px;
  }
  .hero-top{
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    justify-content:space-between;
    gap:8px 20px;
    margin-bottom:18px;
  }
  .greeting{margin:0;font-size:14px;color:var(--muted);}
  .greeting strong{color:var(--brand-strong);font-weight:600;}
 .clock{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 12px;
  font-variant-numeric:tabular-nums;
}
.clock-time{font-size:26px;font-weight:700;letter-spacing:1px;}
.clock-date{font-size:13px;color:var(--muted);}
.clock-lunar{
  font-size:13px;
  font-weight:500;
  color:var(--brand-strong);
}
@media (max-width:640px){
  .clock-lunar{font-size:12px;}
}

  .engine-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
  .engine-tab{
    padding:6px 14px;
    border-radius:999px;
    background:var(--surface-2);
    border:1px solid var(--border);
    font-size:13px;
    color:var(--muted);
    transition:all .2s;
  }
  .engine-tab:hover{color:var(--brand-strong);border-color:var(--brand);}
  .engine-tab.is-active{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff;
    font-weight:600;
    box-shadow:0 4px 14px var(--brand-glow);
  }

  .search{
    display:flex;
    align-items:center;
    gap:10px;
    padding:6px 6px 6px 16px;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:999px;
    transition:border-color .2s,box-shadow .2s;
  }
  .search:focus-within{
    border-color:var(--brand);
    box-shadow:0 0 0 4px var(--brand-glow);
  }
  .search-icon{width:18px;height:18px;flex:none;color:var(--muted);}
  .search input{
    flex:1;
    min-width:0;
    padding:8px 0;
    border:0;
    outline:none;
    background:transparent;
    color:var(--text);
    font-size:15px;
  }
  .search input::placeholder{color:var(--muted);}
  .search-btn{
    flex:none;
    padding:9px 24px;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,#34d07f,#1f9d55);
    color:#fff;
    font-size:14px;
    font-weight:600;
    transition:filter .2s,transform .2s;
  }
  .search-btn:hover{filter:brightness(1.06);transform:translateY(-1px);}
  .search-btn:active{transform:translateY(0);}

  /* ===================== 通用区块 ===================== */
  .section{padding-block:16px;}
  .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
  }
  .section-head h2{
    margin:0;
    font-size:17px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:9px;
  }
  .section-head h2::before{
    content:"";
    width:4px;height:18px;
    border-radius:2px;
    background:linear-gradient(180deg,#34d07f,#1f9d55);
  }
  .section-head .more{font-size:13px;color:var(--muted);transition:color .2s;}
  .section-head .more:hover{color:var(--brand-strong);}

  /* ===================== 分类卡片 ===================== */
  .cards{
    display:grid;
    gap:16px;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  }
  .card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:18px;
    box-shadow:var(--shadow);
    transition:transform .22s,box-shadow .22s;
  }
  .card:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover);}
  .card-head{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:14px;
  }
  .card-head .dot{
    width:8px;height:8px;
    border-radius:50%;
    background:var(--brand);
    box-shadow:0 0 0 4px var(--brand-soft);
  }
  .card-head h3{margin:0;font-size:16px;font-weight:700;letter-spacing:.3px;}

  .links{display:flex;flex-wrap:wrap;gap:8px;}
  .links a{
    padding:6px 13px;
    border-radius:999px;
    background:var(--surface-2);
    border:1px solid var(--border);
    font-size:13.5px;
    transition:all .18s;
  }
  .links a:hover{
    background:var(--brand-soft);
    border-color:var(--brand);
    color:var(--brand-strong);
    transform:translateY(-1px);
  }

  /* ===================== 网格列表 ===================== */
  .grid{display:grid;gap:10px;}
  .grid-sites{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));}
  .grid-tools{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));}
  .grid a{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:11px 8px;
    text-align:center;
    border-radius:12px;
    background:var(--surface);
    border:1px solid var(--border);
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    transition:background .18s,border-color .18s,color .18s,transform .18s,box-shadow .18s;
  }
  .grid-tools a{white-space:normal;line-height:1.4;}
  .grid a:hover{
    background:var(--brand-soft);
    border-color:var(--brand);
    color:var(--brand-strong);
    transform:translateY(-2px);
    box-shadow:0 8px 18px var(--brand-glow);
  }

  /* ===================== 页脚 ===================== */
  .site-footer{
    margin-top:36px;
    padding:26px 0 44px;
    border-top:1px solid var(--border);
    color:var(--muted);
    font-size:13px;
    text-align:center;
  }
  .site-footer p{margin:4px 0;}
  .site-footer a{transition:color .2s;}
  .site-footer a:hover{color:var(--brand-strong);}

  /* ===================== 响应式 ===================== */
  @media (max-width:640px){
    .hero-card{padding:16px;}
    .clock-time{font-size:22px;}
    .clock-date{font-size:12px;}
    .brand-text small{display:none;}
    .search-btn{padding:9px 18px;}
    .grid-sites{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));}
    .grid-tools{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));}
    .card{padding:16px;}
  }

  @media (prefers-reduced-motion:reduce){
    *,*::before,*::after{transition:none!important;animation:none!important;}
  }