/* AIWorker.aiworker.aimemory.cafe — 静态官网样式 */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --paper-2: #F1F5F9;
  --text: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --accent: #0EA5E9;
  --accent-2: #6366F1;
  --accent-dark: #0284C7;
  --accent-light: #E0F2FE;
  --gold: #F59E0B;
  --shadow: 0 10px 40px rgba(15, 23, 42, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }

.container {
  width: min(92%, var(--maxw));
  margin: 0 auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(14, 165, 233, .4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-light); }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .28);
}
.btn-gold:hover { color: #fff; box-shadow: 0 10px 28px rgba(245, 158, 11, .36); }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand .logo { height: 34px; width: auto; border-radius: 50%; object-fit: cover; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 72px 0 90px;
  background:
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, .10) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(14, 165, 233, .10) 0, transparent 40%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-text .hl { color: var(--accent); }
.hero-text .lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stats .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
}
.hero-stats .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #E0F2FE, #E0E7FF);
}
.float-card {
  position: absolute;
  right: -12px;
  bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.float-card .ic {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
}
.float-card b { display: block; font-size: 14px; }
.float-card span { font-size: 12px; color: var(--muted); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 通用区块 */
.block { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-head .tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* 工作流步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.step h3 { margin: 8px 0 10px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* 引言/信任状 */
.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote blockquote {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--text);
}
.quote .by { color: var(--muted); font-size: 15px; }

/* CTA */
.cta {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #fff;
  border-radius: var(--radius);
}
.cta h2 { font-size: 32px; margin: 0 0 12px; }
.cta p { color: #CBD5E1; font-size: 17px; margin: 0 0 28px; }

/* 表格/价格 */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.pricing-table th { background: var(--paper-2); font-weight: 700; }
.pricing-table tr:last-child td { border-bottom: none; }
.price-tag { font-weight: 800; color: var(--accent-dark); }

/* 页脚 */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #1E293B;
}
.footer-top .brand { color: #fff; }
.footer-top .brand small { color: #94A3B8; }
.footer-about { max-width: 340px; font-size: 14px; line-height: 1.8; color: #94A3B8; margin-top: 14px; }
.footer-col h4 { color: #fff; margin: 0 0 16px; font-size: 15px; }
.footer-col a {
  display: block;
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 14px; color: #94A3B8; }
.footer-contact .k { display: inline-block; min-width: 42px; color: #CBD5E1; margin-right: 8px; }
.footer-bottom {
  padding: 22px 0;
  font-size: 13px;
  color: #64748B;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #64748B; margin-left: 14px; }
.footer-bottom a:hover { color: #fff; }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  box-shadow: 0 6px 20px rgba(14, 165, 233, .35);
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* 内容列表 / AI最前沿 */
.post-list { display: grid; gap: 20px; }
.post-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card .cover {
  height: 100%;
  min-height: 150px;
  background: linear-gradient(135deg, var(--accent-light), #E0E7FF);
  display: grid; place-items: center;
  font-size: 48px;
}
.post-card .meta { padding: 22px; }
.post-card .cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.post-card h3 { margin: 0 0 8px; font-size: 18px; }
.post-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.post-card .date { font-size: 12px; color: #94A3B8; }

/* 分类标签 */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.category-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.category-tabs a:hover, .category-tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 响应式 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual img { max-width: 320px; }
  .float-card { right: 10%; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .cover { min-height: 160px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: rgba(248, 250, 252, .98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 64px; }
  .hero-stats { gap: 20px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .block { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
