/* YFcloud Cloud-Native Official & Docs — Crisp Mint & Pure Slate */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --slate: #0F172A;
  --muted: #475569;
  --mint: #059669;
  --mint-bright: #10B981;
  --mint-bg: #ECFDF5;
  --border: #E2E8F0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--slate); line-height: 1.7; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* Top Status Strip */
.doc-strip {
  background: #0F172A; color: #F8FAFC; text-align: center; padding: 7px 16px; font-size: 13px;
}
.doc-strip span { color: #34D399; font-weight: 700; }

/* Header */
.doc-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.doc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.doc-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.doc-brand img { width: 34px; height: 34px; border-radius: 8px; }
.doc-brand-title { font-size: 18px; font-weight: 800; }
.doc-brand-title span { color: var(--mint); font-weight: 700; font-size: 12px; background: var(--mint-bg); padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.doc-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.doc-nav::-webkit-scrollbar { display: none; }
.doc-nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: all 0.15s; white-space: nowrap !important; flex-shrink: 0 !important;
}
.doc-nav a:hover, .doc-nav a.active { color: var(--mint); background: var(--mint-bg); }
.btn-mint {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 9px; background: var(--mint); color: #FFF;
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.24);
  white-space: nowrap !important; flex-shrink: 0 !important; transition: all 0.2s;
}
.btn-mint:hover { background: #047857; transform: translateY(-1px); }
.btn-slate-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--slate); font-size: 14px; font-weight: 700;
  white-space: nowrap !important; flex-shrink: 0 !important; transition: all 0.2s;
}
.btn-slate-outline:hover { border-color: var(--mint); color: var(--mint); }

/* Hero */
.search-hero {
  background: radial-gradient(circle at 50% 0%, #D1FAE5 0%, #F8FAFC 65%);
  padding: 68px 0 54px; text-align: center; border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid #A7F3D0; color: var(--mint); font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
.search-hero h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; line-height: 1.18; margin-bottom: 14px; letter-spacing: -0.5px; }
.search-hero p { color: var(--muted); max-width: 680px; margin: 0 auto 26px; font-size: 17px; }
.search-box-wrap { max-width: 640px; margin: 0 auto 28px; position: relative; }
.search-input {
  width: 100%; padding: 16px 24px; border-radius: 14px; border: 2px solid var(--border);
  background: var(--surface); font-size: 15px; outline: none; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.search-input:focus { border-color: var(--mint); }
.kpi-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 880px; margin: 32px auto 0;
  padding-top: 26px; border-top: 1px solid var(--border);
}
.kpi-val { font-size: 24px; font-weight: 800; color: var(--mint); }
.kpi-lbl { font-size: 12px; color: var(--muted); }

/* Sections & Grids */
.section { padding: 64px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.doc-card:hover { border-color: var(--mint); box-shadow: 0 14px 32px rgba(5, 150, 105, 0.09); transform: translateY(-3px); }
.doc-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--mint); background: var(--mint-bg); padding: 3px 10px; border-radius: 6px; margin-bottom: 12px; }
.doc-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.doc-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* Terminal & Rule Switcher */
.split-tools { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; }
.term-box {
  background: #0F172A; color: #E2E8F0; border-radius: 16px; padding: 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px; box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}
.term-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #334155; }
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; }
.term-output { min-height: 150px; line-height: 1.85; color: #34D399; }

.rule-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.rule-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rule-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer; }
.rule-btn.active { background: var(--mint); color: #FFF; border-color: var(--mint); }
.rule-code { background: #F1F5F9; padding: 14px; border-radius: 10px; font-family: monospace; font-size: 12px; color: #0F172A; flex: 1; overflow-x: auto; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.p-card.pop { border: 2px solid var(--mint); box-shadow: 0 16px 36px rgba(5,150,105,0.1); }
.p-price { font-size: 38px; font-weight: 900; color: var(--mint); margin: 12px 0; }
.p-list { list-style: none; margin: 14px 0 24px; flex: 1; font-size: 14px; color: var(--muted); }
.p-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }

/* FAQ Accordion */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 17px 22px; background: none; border: none;
  font-size: 15px; font-weight: 700; color: var(--slate); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a { display: none; padding: 0 22px 17px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.faq-item.open .faq-a { display: block; }

/* Ecosystem & Footer */
.yf-eco-section { padding: 52px 0; background: #F1F5F9; border-top: 1px solid var(--border); }
.yf-eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.yf-eco-card { display: block; padding: 15px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); transition: all 0.2s; }
.yf-eco-card:hover, .yf-eco-active { border-color: var(--mint); }
.yf-eco-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.yf-eco-dom { font-size: 12px; font-weight: 700; color: var(--mint); }
.yf-eco-badge { font-size: 11px; padding: 2px 6px; background: var(--mint-bg); color: var(--mint); border-radius: 4px; font-weight: 700; }
.yf-eco-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.yf-eco-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.doc-footer { padding: 30px 0; text-align: center; font-size: 13px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--border); }

@media (max-width: 960px) {
  .grid-3, .split-tools, .pricing-grid, .yf-eco-grid { grid-template-columns: 1fr; }
  .kpi-bar { grid-template-columns: repeat(2, 1fr); }
}
