/* ============================================================
   杭州不匠 · 官网样式基座
   站点：itlove.cn
   风格：深空科技（Deep Space Tech）
   说明：单文件样式，全站 4 页共用
   ============================================================ */

:root {
  /* 底色层次 */
  --bg: #05070e;
  --bg-2: #080d18;
  --bg-3: #0b1222;

  /* 玻璃面板 */
  --panel: rgba(255, 255, 255, .038);
  --panel-hi: rgba(255, 255, 255, .066);

  /* 描边 */
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .18);

  /* 文字 */
  --ink: #eaf1ff;
  --ink-2: #c2cee3;
  --muted: #8593ad;

  /* 品牌色 */
  --brand: #5b7cfa;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --mint: #34d399;

  --grad: linear-gradient(115deg, #5b7cfa 0%, #8b5cf6 46%, #22d3ee 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .5);
  --max: 1200px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: .2px;
  color: var(--ink);
}

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(91,124,250,.22), rgba(139,92,246,.22));
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 22px rgba(91, 124, 250, .30);
  flex: 0 0 auto;
}

.brand .brand-txt small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1.6px;
  font-family: var(--mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a { position: relative; padding: 6px 0; transition: color .18s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  font-size: 17px;
  color: var(--ink);
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 26px rgba(91, 124, 250, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(91, 124, 250, .5); }

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-hi);
}
.btn-ghost:hover { background: var(--panel-hi); border-color: var(--brand); color: #fff; }

.btn-light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
}
.btn-light:hover { background: rgba(255, 255, 255, .2); }

/* ================= Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 420px at 8% -6%, rgba(34, 211, 238, .16), transparent 62%),
    radial-gradient(880px 480px at 92% -4%, rgba(139, 92, 246, .22), transparent 64%),
    radial-gradient(700px 400px at 50% 110%, rgba(91, 124, 250, .14), transparent 70%),
    var(--bg);
}

/* 网格层 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(860px 480px at 32% 14%, #000 5%, transparent 78%);
  -webkit-mask-image: radial-gradient(860px 480px at 32% 14%, #000 5%, transparent 78%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(91, 124, 250, .1);
  border: 1px solid rgba(91, 124, 250, .3);
  font-size: 12.5px;
  letter-spacing: 1.4px;
  color: #b9caff;
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.8px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 620px;
  font-size: 16.5px;
  color: var(--ink-2);
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero 右侧：AI 运行面板 */
.ai-panel {
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.ai-panel .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.ai-panel .bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: block;
}
.ai-panel .bar i:nth-child(1) { background: #ff5f57; }
.ai-panel .bar i:nth-child(2) { background: #febc2e; }
.ai-panel .bar i:nth-child(3) { background: #28c840; }

.ai-panel .bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}

.ai-panel .body { padding: 20px 18px 22px; }

.ai-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  font-family: var(--mono);
  color: var(--ink-2);
}
.ai-line:last-child { border-bottom: none; }

.ai-line .t { display: flex; align-items: center; gap: 9px; }
.ai-line .t b { font-weight: 500; }
.ai-line .v { color: var(--mint); font-weight: 600; font-size: 13px; }
.ai-line .v.run { color: var(--accent); }
.ai-line .v.wait { color: #fbbf24; }

.ai-chart {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 62px;
}
.ai-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(91,124,250,.85), rgba(34,211,238,.25));
  animation: barGrow 3.2s ease-in-out infinite;
}
.ai-chart span:nth-child(2) { animation-delay: .25s; }
.ai-chart span:nth-child(3) { animation-delay: .5s; }
.ai-chart span:nth-child(4) { animation-delay: .75s; }
.ai-chart span:nth-child(5) { animation-delay: 1s; }
.ai-chart span:nth-child(6) { animation-delay: 1.25s; }
.ai-chart span:nth-child(7) { animation-delay: 1.5s; }
.ai-chart span:nth-child(8) { animation-delay: 1.75s; }

@keyframes barGrow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Hero 数据条 */
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.hero-stats .num {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .lbl {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .4px;
}

/* ================= 通用区块 ================= */
.section { padding: 88px 0; position: relative; }
.section.soft {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 740px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 13px 0 14px;
  letter-spacing: -.5px;
  font-weight: 800;
}

.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--mono);
}
.kicker::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: .7;
}

h1, h2, h3 { letter-spacing: -.3px; }

/* ================= 卡片 ================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: .22s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .22s;
}

.card:hover {
  background: var(--panel-hi);
  border-color: var(--line-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::after { opacity: 1; }

.card .ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(140deg, rgba(91,124,250,.5), rgba(139,92,246,.35));
  border: 1px solid var(--line-hi);
}

.card:nth-child(2) .ico { background: linear-gradient(140deg, rgba(139,92,246,.5), rgba(34,211,238,.32)); }
.card:nth-child(3) .ico { background: linear-gradient(140deg, rgba(34,211,238,.45), rgba(52,211,153,.3)); }
.card:nth-child(4) .ico { background: linear-gradient(140deg, rgba(52,211,153,.42), rgba(91,124,250,.34)); }

.card .ico.num {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.card h3 { margin: 0 0 9px; font-size: 17.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.card ul { margin: 13px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin: 6px 0; }

/* ================= 关于 ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.about-points { list-style: none; margin: 26px 0 0; padding: 0; }
.about-points li {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.about-points li:last-child { border-bottom: none; }

.about-points .tick {
  flex: 0 0 auto;
  width: 23px; height: 23px;
  border-radius: 7px;
  background: rgba(34, 211, 238, .13);
  border: 1px solid rgba(34, 211, 238, .3);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

/* 数据面板 */
.visual-card {
  border-radius: 18px;
  padding: 30px;
  background: linear-gradient(160deg, rgba(91,124,250,.16), rgba(139,92,246,.09) 60%, rgba(34,211,238,.08));
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.visual-card .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.visual-card .row:last-child { border-bottom: none; }
.visual-card .row span:last-child {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* ================= 时间线 ================= */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 30px 32px;
  border-left: 1.5px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -7px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(91, 124, 250, .14);
}
.timeline .yr {
  font-weight: 800; color: #fff; font-size: 14px;
  letter-spacing: .6px; font-family: var(--mono);
}
.timeline .txt { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ================= CTA ================= */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, rgba(91,124,250,.2), rgba(139,92,246,.14) 55%, rgba(34,211,238,.14));
  border: 1px solid var(--line-hi);
  box-shadow: var(--shadow);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(500px 200px at 80% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(500px 200px at 80% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 2; }
.cta h2 { margin: 0 0 8px; font-size: 25px; }
.cta p { margin: 0; color: var(--ink-2); }

/* ================= 联系 ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  color: var(--accent);
  display: grid; place-items: center;
}
.info-list .k { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }
.info-list .v { font-weight: 600; color: var(--ink); }

.form { display: grid; gap: 15px; }
.form .field { display: grid; gap: 7px; }
.form label { font-size: 12.5px; color: var(--muted); letter-spacing: .3px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  background: rgba(255,255,255,.04);
  color: var(--ink);
  transition: .18s;
}
.form input::placeholder, .form textarea::placeholder { color: #64718c; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(91,124,250,.07);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, .16);
}
.form select option { background: #0b1222; color: var(--ink); }
.form textarea { min-height: 124px; resize: vertical; }

.note {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border: 1px dashed var(--line-hi);
  border-radius: 11px;
  padding: 13px 15px;
}

/* ================= 页脚 ================= */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 58px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(91,124,250,.22), rgba(139,92,246,.22));
  border: 1px solid var(--line-hi);
}
.footer-brand strong { color: #fff; font-size: 16px; letter-spacing: .3px; }

.site-footer h4 { color: #fff; font-size: 14.5px; margin: 0 0 15px; letter-spacing: .3px; }
.site-footer a { transition: color .18s; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 9px 0; color: var(--muted); }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6d7c96;
}

.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: #fff; }

/* 备案 / 资质占位 */
.credits a {
  color: inherit;
  text-decoration: none;
}

.credits a:hover {
  color: var(--fg, #cdd8ea);
  text-decoration: underline;
}

.credits {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: #6d7c96;
}
.credits .tag {
  font-family: var(--mono);
  letter-spacing: .3px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  color: #93a3bd;
}
.credits .tag.todo { color: #b8a26a; border-color: rgba(184,162,106,.28); }

/* ================= 通用小工具 ================= */
.lead-text { color: var(--ink-2); max-width: 780px; font-size: 16.5px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag-row span {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(91,124,250,.09);
  border: 1px solid rgba(91,124,250,.25);
  color: #a9bcff;
}

/* ================= 响应式 ================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(6, 9, 18, .98);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    box-shadow: var(--shadow);
  }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 62px 0 66px; }
  .section { padding: 60px 0; }
  .cta { padding: 30px; flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 20px; margin-top: 42px; }
  .footer-top { grid-template-columns: 1fr; }
}
