/* AIWorker 企业站 · 全站外壳与首页。子页面正文样式在 pages.css。 */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #0f1115;
  --muted: #5b616e;
  --line: #e6e8ec;
  --line-strong: #c9ced6;
  --accent: #1268b3;
  --accent-dark: #0c477f;
  --accent-soft: rgba(18, 104, 179, 0.08);
  --radius: 12px;
  --shadow: 0 24px 60px rgba(15, 17, 21, 0.08);
  /* 旧变量名：pages.css 仍在引用，映射到新色板 */
  --paper: var(--bg);
  --paper-strong: var(--bg-soft);
  --blue: var(--accent);
  --blue-dark: var(--accent-dark);
  --orange: var(--accent);
  --lime: #9cc8ef;
  --white: #ffffff;
  --dark: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow a {
  color: inherit;
}

.accent {
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  padding: 4px 12px;
  color: var(--muted);
  font-size: 13px;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
}

/* 按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #2a2e36;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.desktop-nav > a:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: var(--ink);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -16px;
  display: grid;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
}

.nav-menu__panel a {
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 14px;
}

.nav-menu__panel a:hover {
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-link {
  color: var(--muted);
  font-size: 15px;
}

.header-link:hover {
  color: var(--ink);
}

.mobile-menu {
  display: none;
  margin-left: auto;
}

.mobile-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary i,
.mobile-menu summary i::before,
.mobile-menu summary i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s, background 0.2s;
}

.mobile-menu summary i {
  position: relative;
}

.mobile-menu summary i::before,
.mobile-menu summary i::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu summary i::before {
  top: -6px;
}

.mobile-menu summary i::after {
  top: 6px;
}

.mobile-menu[open] summary i {
  background: transparent;
}

.mobile-menu[open] summary i::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu[open] summary i::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu nav {
  position: fixed;
  top: 64px;
  right: 0;
  left: 0;
  display: grid;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px 20px;
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
  font-size: 15px;
}

.mobile-menu__label {
  padding: 16px 4px 4px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-menu nav .button {
  margin-top: 16px;
  border-bottom: 0;
}

/* 首屏 */
.hero-home {
  padding-top: 96px;
  text-align: center;
}

.hero-home h1 {
  max-width: 880px;
  margin: 24px auto 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-home .lede {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.hero-shot {
  max-width: 1080px;
  margin: 64px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-shot img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* 区块 */
.section {
  padding: 112px 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.feature-split h2 {
  font-size: 36px;
  font-weight: 700;
}

.section-head > p:not(.eyebrow),
.feature-split .lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

.value-num {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.value-grid h3 {
  font-size: 20px;
}

.value-grid p {
  margin-top: 12px;
  color: var(--muted);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  transition: border-color 0.15s;
}

.cap-card:hover {
  border-color: var(--line-strong);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.cap-icon svg {
  width: 20px;
  height: 20px;
}

.cap-card h3 {
  margin-top: 20px;
  font-size: 18px;
}

.cap-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.flow-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.flow-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-panel li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  counter-increment: flow;
}

.flow-panel li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.flow-panel strong {
  display: block;
  font-size: 15px;
}

.flow-panel span {
  color: var(--muted);
  font-size: 14px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shot-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  object-fit: cover;
}

.shot-grid figcaption {
  padding: 18px 20px;
}

.shot-grid strong {
  display: block;
}

.shot-grid span {
  color: var(--muted);
  font-size: 14px;
}

/* 下载 */
.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.hint {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--accent-dark);
  font-size: 14px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.download-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.download-card__badge {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 2px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.download-card strong {
  margin-top: 12px;
  font-size: 22px;
}

.download-card small {
  color: var(--muted);
  font-size: 14px;
}

.download-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.download-card__sha {
  margin-top: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.download-card--disabled {
  color: var(--muted);
}

.download-card--disabled .download-card__badge,
.download-card--disabled b {
  background: var(--bg-soft);
  color: var(--muted);
}

.download-steps {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.download-steps a {
  color: var(--accent);
}

.loading {
  color: var(--muted);
}

/* 联系 */
.contact-band {
  text-align: center;
}

.contact-band h2 {
  font-size: 40px;
}

.contact-band > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.mail-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding: 56px 0 40px;
}

.site-footer__brand p {
  max-width: 260px;
  margin-top: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer__legal {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 980px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .value-grid,
  .cap-grid,
  .shot-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .value-grid {
    gap: 32px;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 32px);
  }

  .hero-home {
    padding-top: 56px;
  }

  .hero-home h1 {
    font-size: 34px;
  }

  .hero-home .lede {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-shot {
    margin-top: 40px;
    padding: 6px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head h2,
  .feature-split h2 {
    font-size: 26px;
  }

  .contact-band h2 {
    font-size: 28px;
  }
}

.cap-more {
  margin-top: 32px;
  text-align: center;
}

.cap-more a {
  color: var(--accent);
  font-weight: 600;
}

.cap-more a:hover {
  color: var(--accent-dark);
}
