:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --surface: #f7f8fb;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }

.home-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 70% 20%, #dbeafe 0, transparent 32%), linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  overflow: hidden;
}
.home-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8vw;
}
.home-brand { font-size: 24px; font-weight: 900; letter-spacing: 0; }
.home-tag { color: var(--muted); font-size: 14px; }
.home-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 7vw;
  padding: 4vh 8vw 7vh;
}
.home-kicker { margin: 0 0 10px; color: var(--blue); font-weight: 700; }
.home-copy h1 { margin: 0; font-size: clamp(76px, 13vw, 164px); line-height: 0.9; letter-spacing: 0; }
.home-subtitle { max-width: 520px; margin: 24px 0 34px; font-size: 21px; line-height: 1.65; color: #374151; }
.home-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 46px;
  border-radius: 8px;
  font-weight: 700;
}
.home-btn.primary { color: #fff; background: var(--blue); }
.home-btn.primary:hover { background: var(--blue-dark); }
.home-btn.secondary { color: var(--ink); border: 1px solid #cfd6e4; background: rgba(255,255,255,0.72); }
.home-visual {
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-panel {
  width: min(560px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.24);
  padding: 26px;
  transform: rotate(-2deg);
}
.visual-line { width: 62%; height: 18px; border-radius: 999px; background: #60a5fa; margin-bottom: 28px; }
.visual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.visual-grid span {
  display: block;
  aspect-ratio: 1 / 0.78;
  border-radius: 12px;
  background: linear-gradient(135deg, #bfdbfe, #fef3c7);
}
.visual-grid span:nth-child(2) { background: linear-gradient(135deg, #fecaca, #dbeafe); }
.visual-grid span:nth-child(3) { background: linear-gradient(135deg, #bbf7d0, #bfdbfe); }
.visual-grid span:nth-child(4) { background: linear-gradient(135deg, #fde68a, #e9d5ff); }
.visual-prompt {
  margin-top: 22px;
  padding: 16px 18px;
  color: #dbeafe;
  border: 1px solid rgba(219, 234, 254, 0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.home-foot {
  display: flex;
  gap: 28px;
  padding: 0 8vw 28px;
  color: var(--muted);
  font-size: 14px;
}

.web-shell { background: var(--surface); }
.web-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}
.web-logo { font-size: 22px; font-weight: 900; }
.web-header nav { display: flex; gap: 22px; color: #475467; font-size: 14px; }
.web-main {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 28px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px;
}
.web-workspace, .case-section, .talk-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.web-workspace {
  padding: 22px;
  position: sticky;
  top: 92px;
  align-self: start;
}
.workspace-head p, .section-title p, .case-meta { margin: 0; color: var(--muted); font-size: 13px; }
.workspace-head h1, .section-title h2 { margin: 4px 0 8px; letter-spacing: 0; }
.workspace-head span { color: #475467; font-size: 14px; line-height: 1.6; }
#promptInput {
  width: 100%;
  min-height: 220px;
  margin-top: 18px;
  padding: 14px;
  resize: vertical;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  line-height: 1.65;
}
.reference-preview {
  min-height: 92px;
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
  background: #f8fafc;
}
.reference-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workspace-actions { display: flex; gap: 10px; margin-top: 14px; }
.workspace-actions button, .case-actions button {
  border: 1px solid #cfd6e4;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}
.workspace-actions .primary, .case-actions .same { background: var(--blue); color: #fff; border-color: var(--blue); }
.case-section { padding: 22px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.case-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.case-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef2ff; }
.case-body { padding: 14px; }
.case-body h3 { margin: 6px 0 8px; font-size: 17px; }
.case-body p {
  height: 66px;
  overflow: hidden;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.case-actions { display: flex; gap: 8px; }
.talk-section {
  grid-column: 2;
  padding: 22px;
}
.talk-line {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #475467;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .home-stage, .web-main { grid-template-columns: 1fr; }
  .home-visual { min-height: 300px; }
  .home-foot { flex-direction: column; gap: 10px; }
  .web-workspace { position: static; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talk-section { grid-column: auto; }
}

@media (max-width: 560px) {
  .home-topbar, .web-header { padding: 0 18px; }
  .home-stage, .web-main { padding: 22px 18px; }
  .home-tag { display: none; }
  .home-copy h1 { font-size: 76px; }
  .home-subtitle { font-size: 17px; }
  .case-grid { grid-template-columns: 1fr; }
}
