:root{
  --bg:#f5f6f8;
  --surface:#ffffff;
  --surface-2:#f0f2f5;
  --text:#17191c;
  --muted:#6c727c;
  --line:#e2e5e9;
  --accent:#111315;
  --accent-soft:#e9ebee;
  --success:#1f7a4f;
  --warning:#9a6619;
  --danger:#a23a3a;
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 16px 45px rgba(17,19,21,.07);
  --max:1400px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height:1.6;
}

button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit}

.wrap{width:min(calc(100% - 48px),var(--max));margin-inline:auto}

.hero{
  padding:72px 0 52px;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.08),transparent 28%),
    linear-gradient(135deg,#121416,#1d2024);
  color:#fff;
}
.eyebrow,.kicker{
  display:block;
  margin-bottom:10px;
  font-size:12px;
  line-height:1.2;
  letter-spacing:.14em;
  font-weight:700;
  color:#8f969f;
}
.hero .eyebrow{color:#aeb4bc}
.hero h1{
  margin:0;
  font-size:clamp(38px,5.5vw,74px);
  line-height:1;
  letter-spacing:-.04em;
}
.lead{
  max-width:850px;
  margin:22px 0 30px;
  color:#c8cdd3;
  font-size:18px;
}
.search-box{
  position:relative;
  max-width:900px;
}
.search-box svg{
  position:absolute;
  left:18px;
  top:50%;
  width:21px;
  height:21px;
  transform:translateY(-50%);
  fill:none;
  stroke:#858b93;
  stroke-width:1.8;
  stroke-linecap:round;
}
.search-box input{
  width:100%;
  height:60px;
  padding:0 54px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:15px;
  outline:none;
  background:#fff;
  color:#151719;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.search-box input:focus{
  border-color:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.12),0 10px 30px rgba(0,0,0,.18);
}
.clear-btn{
  position:absolute;
  right:12px;
  top:50%;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  transform:translateY(-50%);
  background:#eff1f3;
  color:#60656c;
  font-size:24px;
  line-height:1;
}
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin-top:18px;
  color:#9ea5ad;
  font-size:13px;
}
.hero-meta strong{color:#fff}

.main{padding:32px 0 72px}
.panel{
  margin-bottom:24px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
}
.section-head,.results-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.section-head h2,.results-head h2{
  margin:0;
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.text-btn{
  border:0;
  padding:8px 0;
  background:transparent;
  color:var(--muted);
}
.text-btn:hover{color:var(--text)}

.question-nav,.domain-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.question-chip,.domain-chip{
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:#4f555d;
  transition:.18s ease;
}
.question-chip{
  padding:10px 14px;
}
.domain-chip{
  padding:9px 13px;
}
.question-chip:hover,.domain-chip:hover{
  border-color:#b9bec5;
  color:var(--text);
  transform:translateY(-1px);
}
.question-chip.active,.domain-chip.active{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

.filter-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.filter-row label span{
  display:block;
  margin-bottom:7px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.filter-row select{
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  outline:none;
  background:#fff;
  color:var(--text);
}
.filter-row select:focus{border-color:#a9afb7}

.featured{
  margin:36px 0 42px;
}
.featured-tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.featured-btn{
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:#33383e;
  box-shadow:0 3px 8px rgba(17,19,21,.02);
}
.featured-btn:hover{
  border-color:#aeb4bc;
  transform:translateY(-1px);
}

.results-head{margin-bottom:18px}
.result-count{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.tool-card{
  display:flex;
  flex-direction:column;
  min-height:330px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  transition:.2s ease;
}
.tool-card:hover{
  border-color:#c6cad0;
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.tool-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.tool-name{
  margin:0;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.tool-cn{
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.priority{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:27px;
  padding:0 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.priority-s{background:#17191c;color:#fff}
.priority-a{background:#e9ecef;color:#444a51}
.priority-b{background:#f1eee8;color:#725c37}

.tool-desc{
  min-height:72px;
  margin:16px 0 14px;
  color:#565d65;
  font-size:14px;
}
.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:16px;
}
.badge{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border-radius:7px;
  background:var(--surface-2);
  color:#626871;
  font-size:11px;
  line-height:1.2;
}
.best-title{
  margin:0 0 7px;
  color:#8b9199;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
}
.best-list{
  display:grid;
  gap:5px;
  margin:0 0 18px;
  padding:0;
  list-style:none;
  color:#444a51;
  font-size:13px;
}
.best-list li::before{
  content:"";
  display:inline-block;
  width:4px;
  height:4px;
  margin:0 8px 3px 0;
  border-radius:50%;
  background:#999fa7;
}
.tool-actions{
  display:flex;
  gap:8px;
  margin-top:auto;
}
.btn{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:#34393f;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}
.btn:hover{border-color:#adb3ba}
.btn-primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

.empty-state{
  padding:70px 20px;
  border:1px dashed #cbd0d6;
  border-radius:var(--radius);
  background:#fafbfc;
  text-align:center;
}
.empty-icon{font-size:44px;color:#a4aab2}
.empty-state h3{margin:8px 0 4px}
.empty-state p{margin:0;color:var(--muted)}

.drawer{
  position:fixed;
  inset:0;
  z-index:100;
  pointer-events:none;
  visibility:hidden;
}
.drawer.open{
  pointer-events:auto;
  visibility:visible;
}
.drawer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,12,14,.45);
  opacity:0;
  transition:.22s ease;
}
.drawer.open .drawer-backdrop{opacity:1}
.drawer-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(580px,92vw);
  height:100%;
  overflow:auto;
  padding:36px 30px 44px;
  background:#fff;
  transform:translateX(100%);
  transition:.26s ease;
  box-shadow:-20px 0 60px rgba(0,0,0,.16);
}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-close{
  position:sticky;
  z-index:2;
  top:0;
  float:right;
  width:40px;
  height:40px;
  margin:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:#50555c;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.drawer-title{
  margin:18px 50px 6px 0;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.drawer-subtitle{margin:0;color:var(--muted)}
.drawer-intro{
  margin:22px 0;
  padding:16px 18px;
  border-radius:12px;
  background:var(--surface-2);
  color:#454b52;
}
.drawer-section{
  padding:22px 0;
  border-top:1px solid var(--line);
}
.drawer-section h3{
  margin:0 0 12px;
  font-size:15px;
}
.drawer-list{
  display:grid;
  gap:9px;
  margin:0;
  padding-left:20px;
  color:#4d535a;
  font-size:14px;
}
.drawer-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.limit{
  padding:14px 16px;
  border-left:3px solid #9b7b43;
  background:#f7f4ee;
  color:#665537;
  border-radius:0 10px 10px 0;
  font-size:14px;
}
.drawer-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:10px 18px;
  border-radius:11px;
  background:#17191c;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.alt-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.alt-btn{
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  padding:8px 10px;
  color:#4b5158;
}

body.drawer-lock{overflow:hidden}

@media (max-width:1180px){
  .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .hero{padding:54px 0 42px}
  .wrap{width:min(calc(100% - 32px),var(--max))}
  .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-row{grid-template-columns:1fr}
  .tool-desc{min-height:0}
}
@media (max-width:560px){
  .wrap{width:min(calc(100% - 22px),var(--max))}
  .hero{padding:42px 0 34px}
  .lead{font-size:15px}
  .search-box input{height:56px;padding-left:48px;font-size:14px}
  .panel{padding:20px;border-radius:15px}
  .section-head,.results-head{align-items:flex-start}
  .section-head h2,.results-head h2{font-size:22px}
  .tools-grid{grid-template-columns:1fr}
  .tool-card{min-height:0;padding:19px}
  .question-nav,.domain-nav{
    flex-wrap:nowrap;
    overflow:auto;
    margin-inline:-20px;
    padding-inline:20px;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .question-nav::-webkit-scrollbar,.domain-nav::-webkit-scrollbar{display:none}
  .question-chip,.domain-chip{flex:0 0 auto}
  .featured-tools{
    flex-wrap:nowrap;
    overflow:auto;
    margin-inline:-11px;
    padding:2px 11px 7px;
    scrollbar-width:none;
  }
  .featured-tools::-webkit-scrollbar{display:none}
  .featured-btn{flex:0 0 auto}
  .drawer-panel{padding:26px 20px 38px}
  .drawer-title{font-size:29px}
}

.docs-section{
  margin-top:48px;
  padding-top:36px;
  border-top:1px solid var(--line);
}
.docs-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.doc-card{
  display:block;
  min-height:190px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  text-decoration:none;
  transition:.2s ease;
}
.doc-card:hover{
  transform:translateY(-3px);
  border-color:#c6cad0;
  box-shadow:var(--shadow);
}
.doc-card>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:26px;
  border-radius:999px;
  background:var(--surface-2);
  color:#6c727c;
  font-size:11px;
  font-weight:800;
}
.doc-card h3{
  margin:17px 0 8px;
  font-size:18px;
  line-height:1.3;
}
.doc-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
@media (max-width:1180px){
  .docs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .docs-grid{grid-template-columns:1fr}
  .doc-card{min-height:0}
}
