/* ============================================================
   智能体技能提供 · youqi.cyou
   浅色主题样式表
   ============================================================ */

:root {
  --ink: #0e1526;
  --ink-soft: #2c3549;
  --muted: #626b80;
  --muted-2: #8b93a6;
  --line: #e5e9f2;
  --line-soft: #eef1f7;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #2c5cf0;
  --brand-deep: #1c3fbd;
  --brand-soft: #eaf0ff;
  --violet: #7757f0;
  --ok: #0ea47a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 56, 0.05), 0 2px 8px rgba(16, 26, 56, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 26, 56, 0.08), 0 2px 6px rgba(16, 26, 56, 0.04);
  --shadow-lg: 0 24px 60px rgba(16, 26, 56, 0.16);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--violet) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(44, 92, 240, 0.28);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.2px; }
.brand-domain { font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); letter-spacing: 0.3px; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #3d6df5 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(44, 92, 240, 0.26);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(44, 92, 240, 0.32); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: #c9d3ea; background: #fbfcff; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; border-radius: 9px; }

.nav-cta { display: flex; align-items: center; gap: 9px; }
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 62px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(44, 92, 240, 0.16), transparent 68%);
  top: -160px; right: -100px;
}
.hero::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(119, 87, 240, 0.13), transparent 68%);
  bottom: -180px; left: -80px;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 8px;
  background: var(--brand-soft);
  border: 1px solid #d8e2ff;
  border-radius: 999px;
  font-size: 13px; color: var(--brand-deep); font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(14, 164, 122, 0.16);
  margin-left: 5px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.24;
  letter-spacing: -0.6px;
  font-weight: 800;
  max-width: 15em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--violet) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 0 0 30px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 40em;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
}
.hero-stats .stat { background: #fff; padding: 18px 22px; }
.hero-stats .num { font-size: 25px; font-weight: 800; letter-spacing: -0.5px; }
.hero-stats .num small { font-size: 14px; font-weight: 700; color: var(--brand); margin-left: 2px; }
.hero-stats .lbl { font-size: 13px; color: var(--muted-2); margin-top: 2px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 74px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 34px; max-width: 44em; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.4px;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------------- 筛选 ---------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 26px;
}
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.16s;
}
.chip:hover { border-color: #c9d3ea; color: var(--brand-deep); }
.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}
.chip .count { opacity: 0.55; margin-left: 5px; font-size: 12.5px; }

/* ---------------- 技能卡片 ---------------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.skill-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.24s, border-color 0.24s;
  overflow: hidden;
}
.skill-card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent, var(--brand));
  opacity: 0; transition: opacity 0.24s;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d9e1f2;
}
.skill-card:hover::after { opacity: 1; }

.skill-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.skill-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand)) 22%, #fff);
}
.skill-name { margin: 0 0 5px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.2px; }
.skill-cat {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--accent, var(--brand));
  background: color-mix(in srgb, var(--accent, var(--brand)) 9%, #fff);
  border-radius: 6px;
  padding: 2px 8px;
}
.skill-tagline {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.6;
}
.skill-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; margin-bottom: 16px; }
.skill-tags span {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.skill-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--brand);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  width: 100%;
}
.skill-more .arrow { transition: transform 0.2s; }
.skill-card:hover .skill-more .arrow { transform: translateX(4px); }

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 15px;
}

/* ---------------- 接入步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.step-no {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.72; }

.code-block {
  margin-top: 26px;
  background: #0f1729;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #1d2739;
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: #151e30;
  border-bottom: 1px solid #222d42;
  font-size: 12.5px;
  color: #93a1bd;
  font-family: var(--mono);
}
.code-head .b { width: 9px; height: 9px; border-radius: 50%; background: #3a4560; }
.code-head .b1 { background: #ff5f57; }
.code-head .b2 { background: #febc2e; }
.code-head .b3 { background: #28c840; }
.code-head .fname { margin-left: 8px; }
.code-block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: #d7e0f2;
}
.code-block .c { color: #6f7f9e; }
.code-block .k { color: #7fb3ff; }
.code-block .s { color: #86e0b4; }

/* ---------------- 特性 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .fi {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid; place-items: center;
  font-size: 17px;
  margin-bottom: 13px;
}
.feature h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 0; font-size: 13.8px; color: var(--muted); line-height: 1.7; }

/* ---------------- 联系 ---------------- */
.contact-box {
  background: linear-gradient(135deg, #12203f 0%, #1c3fbd 100%);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  color: #fff;
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
  box-shadow: 0 18px 44px rgba(20, 40, 110, 0.22);
}
.contact-box h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.3px; }
.contact-box p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; max-width: 34em; }
.contact-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: #f0f4ff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

/* ---------------- 详情弹层 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 20, 40, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-mask.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 780px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

.modal-head {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(180deg, #fbfcff, #fff);
}
.modal-head .skill-icon { width: 50px; height: 50px; font-size: 23px; border-radius: 14px; }
.modal-head h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.3px; }
.modal-head .skill-tagline { margin: 0; font-size: 15px; }
.modal-close {
  margin-left: auto;
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: all 0.16s;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }

.modal-body { padding: 24px 28px 8px; }
.modal-body h4 {
  margin: 0 0 12px;
  font-size: 14px; font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.modal-body .block { margin-bottom: 26px; }
.modal-body p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.8; }

.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.io-list { list-style: none; margin: 0; padding: 0; }
.io-list li {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fcfdff;
}
.io-list .k { font-size: 14px; font-weight: 600; display: block; }
.io-list .v { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-list li {
  position: relative;
  padding: 0 0 0 26px;
  margin-bottom: 11px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.72;
}
.hl-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(14, 164, 122, 0.12);
  color: var(--ok);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row span {
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.delivery-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--brand-soft);
  border: 1px solid #d8e2ff;
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 14px;
  color: var(--brand-deep);
}
.delivery-note .ic { flex: none; font-size: 15px; line-height: 1.5; }

.modal-foot {
  padding: 18px 28px 24px;
  display: flex; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #fcfdff;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--muted-2);
}
.footer-inner .fnote { max-width: 46em; line-height: 1.7; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 56px 0 46px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 25px; }
  .io-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 34px 26px; }
  .contact-box h2 { font-size: 22px; }
  .modal-mask { padding: 16px 12px; }
  .modal-head { padding: 22px 20px 18px; }
  .modal-body { padding: 20px 20px 4px; }
  .modal-foot { padding: 16px 20px 20px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.3px; }
  .hero-stats { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .brand-domain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
