/* YOCIM AGENT 官网样式：只依赖系统字体，无外部资源 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --bg-elevated: #ffffff;
  --text: #14171a;
  --text-muted: #5b6470;
  --border: #e4e7eb;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: #e6f4f1;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 12px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d0e;
    --bg-soft: #121516;
    --bg-elevated: #15191b;
    --text: #e8eaec;
    --text-muted: #9aa3ad;
    --border: #262b2e;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand-name strong {
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav-ext {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

.nav-ext:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .btn.primary {
    color: #062c28;
  }
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-elevated);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.block {
  width: 100%;
}

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

/* Hero 中的窗口示意图 */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.mock-bar span {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.mock-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 104px;
  height: 258px;
}

.mock-side,
.mock-panel {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-soft);
}

.mock-side {
  border-right: 1px solid var(--border);
}

.mock-panel {
  border-left: 1px solid var(--border);
}

.mock-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mock-item,
.mock-file {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.mock-item.active {
  background: var(--accent);
  opacity: 0.75;
}

.mock-item.short,
.mock-file.short {
  width: 62%;
}

.mock-file.mid {
  width: 78%;
}

.mock-chat {
  position: relative;
  padding: 16px 14px 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-msg {
  height: 12px;
  border-radius: 6px;
  background: var(--border);
  width: 72%;
}

.mock-msg.user {
  align-self: flex-end;
  width: 56%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.mock-msg.mid {
  width: 84%;
}

.mock-msg.short {
  width: 48%;
}

.mock-composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.mock-composer span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.mock-composer i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* 通用区块 */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 8px;
  color: var(--text-muted);
  max-width: 46em;
}

.grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.card .index {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* 下载 */
.download-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.download-card.quiet {
  background: transparent;
}

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

.platform h3 {
  font-size: 17px;
}

.platform p {
  font-size: 13px;
  color: var(--text-muted);
}

.win-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.download-desc {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.download-meta {
  font-size: 13px;
  color: var(--text-muted);
}

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

.download-meta a:hover {
  text-decoration: underline;
}

.asset-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 说明 */
.notes {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note {
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.note p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner nav {
  display: flex;
  gap: 20px;
}

.footer-inner a:hover {
  color: var(--text);
}

/* 响应式 */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 14px;
  }

  .nav a:not(.nav-ext):not(:first-child) {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .mock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
