/* ============================================================
   AI 服务官网 · MVP-08 · Combined Polish
   Theme: 浅色 · 干净 · 克制 · 高级 · Apple式留白 · 蓝紫渐变
   Changelog: hero orb, tool detail pages, case columns, motion
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --green: #10b981;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg: #f8faff;
  --bg-alt: #eef4ff;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --max-w: 1120px;
  --radius: 24px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.08);
  --shadow-card: 0 18px 45px rgba(15,23,42,0.06);
  --shadow-card-hover: 0 24px 60px rgba(15,23,42,0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: .25s cubic-bezier(0.4,0,0.2,1);
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-hero-bg: linear-gradient(160deg, #f0f4ff 0%, #eef2ff 30%, #f5f3ff 60%, #f0f4ff 100%);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 32px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo-mark {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); border-radius: 8px;
  font-size: .7rem; font-weight: 800; color: #fff; line-height: 1;
}
.logo-text { font-size: .92rem; font-weight: 700; letter-spacing: -.2px; }
.header-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.header-nav a {
  text-decoration: none; color: var(--text-tertiary); font-size: .82rem; font-weight: 500;
  transition: color var(--transition); position: relative; padding: 4px 0;
}
.header-nav a:hover { color: var(--text); }
.header-nav a.active { color: var(--indigo); font-weight: 600; }
.header-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo);
}
.header-cta {
  text-decoration: none; font-size: .8rem; font-weight: 600;
  color: var(--indigo); padding: 7px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--indigo); transition: all var(--transition); white-space: nowrap;
}
.header-cta:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* ===== Hero ===== */
.hero-section {
  position: relative; overflow: hidden;
  padding: 60px 24px 48px;
  background: var(--gradient-hero-bg);
  display: flex; justify-content: center; min-height: 600px; align-items: center;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 85% 40%, rgba(99,102,241,0.06) 0%, transparent 70%),
    radial-gradient(800px circle at 20% 60%, rgba(139,92,246,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-orb {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(99,102,241,0.28), rgba(139,92,246,0.18) 50%, transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: 0;
  opacity: 1;
  box-shadow: 0 40px 110px rgba(99,102,241,0.25);
  animation: orbFloat 7s ease-in-out infinite;
}
.hero-orb-inner {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 40%, rgba(99,102,241,0.10), transparent 60%);
  border: 1px solid rgba(99,102,241,0.16);
  box-shadow: 0 40px 110px rgba(99,102,241,0.10);
  pointer-events: none; z-index: 1; font-size: 2.4rem; font-weight: 800;
  letter-spacing: -2px;
  animation: orbFloat 7s ease-in-out infinite;
}
.hero-orb-inner span {
  background: linear-gradient(135deg, rgba(79,70,229,0.42), rgba(139,92,246,0.35));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-8px); }
}
.hero-orb-inner { animation-delay: -0.5s; }
.hero-bg-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 860px; width: 100%; text-align: center; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-title { font-size: 3.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.8px; color: var(--text); max-width: 800px; }
.hero-ai { background: linear-gradient(135deg, #2563EB, #6366f1, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-top: 16px; max-width: 660px; line-height: 1.5; font-weight: 500; }
.hero-desc { font-size: .95rem; color: var(--text-tertiary); margin-top: 10px; max-width: 720px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-trust span { font-size: .78rem; color: var(--text-tertiary); display: flex; align-items: center; gap: 6px; }
.trust-check { width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; flex-shrink: 0; }
.trust-divider { width: 1px; height: 14px; background: #d1d5db; }

/* ===== Page Shell (transition wrapper) ===== */
.page-shell {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ===== Sections ===== */
.section { padding: 88px 24px; }
.section-alt { background: linear-gradient(180deg, #f8faff, #eef4ff); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.section-link { font-size: .82rem; color: var(--indigo); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.section-link:hover { text-decoration: underline; }

.section-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
.page-desc { font-size: .88rem; color: var(--text-secondary); max-width: 560px; line-height: 1.5; }
.page-header { padding: 52px 24px 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #f8faff, #ffffff); }
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; }
.page-header .page-desc { margin-top: 8px; max-width: 600px; }

/* ===== Service Cards (4-col) ===== */
.cards-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards-4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards-4col { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-card); transition: all var(--transition);
  min-height: 240px; display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.sc-icon-block {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; margin-bottom: 18px;
}
.sc-icon-block-b1 { background: #eef2ff; color: #6366f1; }
.sc-icon-block-b2 { background: #ecfdf5; color: #10b981; }
.sc-icon-block-b3 { background: #f5f3ff; color: #8b5cf6; }
.sc-icon-block-b4 { background: #fff7ed; color: #f59e0b; }

.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .84rem; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.sc-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: 3px; }
.sc-label { color: var(--text-secondary); font-weight: 600; display: inline-block; margin-right: 2px; }

/* ===== Tool Cards (2-col) ===== */
.cards-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .cards-2col { grid-template-columns: 1fr; } }

.tool-card-lg {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card); display: flex; gap: 22px; align-items: center;
  transition: all var(--transition); min-height: 190px;
}
.tool-card-lg:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.tcl-left { flex-shrink: 0; }
.tcl-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.tcl-icon-resume { background: #eef2ff; }
.tcl-icon-copy { background: #ecfdf5; }
.tcl-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tcl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tcl-top h3 { font-size: 1rem; font-weight: 700; }
.tcl-badge { font-size: .68rem; font-weight: 600; padding: 3px 12px; border-radius: 6px; letter-spacing: .2px; }
.tcl-badge-full { background: #eef2ff; color: var(--indigo); border: 1px solid #c7d2fe; }
.tcl-badge-native { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.tcl-right p { font-size: .84rem; color: var(--text-tertiary); line-height: 1.5; }

/* ===== Home tool card buttons: content-style, not full width ===== */
.tcl-right .btn {
  width: fit-content;
  padding: 0 24px;
  height: 42px;
  line-height: 42px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
}
.btn-primary-green { background: var(--green); }
.btn-primary-green:hover { background: #059669; box-shadow: 0 4px 16px rgba(16,185,129,.25); }

/* ===== Case Cards (home preview) ===== */
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-card); transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.case-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.case-row { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--text-tertiary); margin-bottom: 10px; line-height: 1.5; }
.case-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.case-dot-problem { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.case-dot-solution { background: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.case-dot-result { background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.case-label { font-weight: 600; color: var(--text); }

/* ===== CTA Card ===== */
.cta-card {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.cta-text p { font-size: .86rem; color: var(--text-tertiary); max-width: 480px; line-height: 1.5; }
.cta-card .btn { flex-shrink: 0; position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-card { flex-direction: column; text-align: center; } .cta-text p { max-width: 100%; } }

/* ===== Case Detail Page (2-column layout) ===== */
.case-detail-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 40px 42px; margin-bottom: 32px; box-shadow: var(--shadow-card);
  max-width: var(--max-w);
}
.case-detail-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 28px; }
.case-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 28px 36px;
}
@media (max-width: 768px) { .case-detail-grid { grid-template-columns: 1fr; } }
.cd-section { margin-bottom: 0; }
.cd-label {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .4px; color: var(--indigo); background: #eef2ff; padding: 2px 10px;
  border-radius: 4px; margin-bottom: 8px;
}
.cd-section p { font-size: .86rem; color: var(--text-tertiary); line-height: 1.7; }
.cd-link { color: var(--indigo); text-decoration: none; font-weight: 600; }
.cd-link:hover { text-decoration: underline; }
.cd-status-badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: 3px 12px; border-radius: 6px;
}
.cd-status-badge.ready { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cd-status-badge.researching { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ===== Service Detail ===== */
.service-detail {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.service-detail h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.sd-row { display: flex; gap: 12px; font-size: .84rem; color: var(--text-tertiary); margin-bottom: 8px; line-height: 1.5; }
.sd-label { font-weight: 600; color: var(--text); flex-shrink: 0; min-width: 100px; }
.services-cta { text-align: center; padding: 48px 24px; }
.services-cta p { font-size: .92rem; color: var(--text-tertiary); margin-bottom: 14px; }

/* ===== Contact ===== */
.contact-card {
  max-width: 780px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-xs);
  font-size: .86rem; font-family: inherit; background: var(--bg); outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.success-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius-sm); padding: 24px; margin-bottom: 20px; }
.success-box h3 { font-size: 1rem; font-weight: 700; color: #065f46; }
.success-box p { font-size: .84rem; color: #065f46; margin-top: 6px; }
.contact-summary { background: #f8faff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; font-size: .84rem; color: var(--text-tertiary); line-height: 1.6; }
.contact-summary hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.contact-summary p { margin-bottom: 6px; }

/* ===== Tools Page ===== */
.tools-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tools-filter button {
  padding: 6px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-tertiary); font-size: .78rem; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.tools-filter button:hover { border-color: var(--indigo); color: var(--indigo); }
.tools-filter button.active { background: var(--gradient-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.20); }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 0; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; min-height: 200px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  cursor: default; position: relative;
}
.tool-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.tool-card[data-id="resume-optimizer"] { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(99,102,241,.08); }
.tool-card[data-id="resume-optimizer"]:hover { box-shadow: 0 12px 36px rgba(99,102,241,.12); }
.tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tc-badge { font-size: .65rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; letter-spacing: .2px; }
.tc-badge-content { background: #f5f3ff; color: #7c3aed; }
.tc-badge-ecommerce { background: #fef2f2; color: #dc2626; }
.tc-badge-xiaohongshu { background: #fce7f3; color: #db2777; }
.tc-badge-video { background: #eef2ff; color: #4f46e5; }
.tc-badge-office { background: #ecfdf5; color: #059669; }
.tc-badge-learning { background: #ffedd5; color: #d97706; }
.tc-badge-hr { background: #fef3c7; color: #d97706; }
.tc-badge-business { background: #e0f2fe; color: #0284c7; }
.tc-badge-ip { background: #fdf2f8; color: #db2777; }

.tc-status { font-size: .65rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tc-status-ready { background: #ecfdf5; color: #065f46; }
.tc-status-planned { background: #f1f5f9; color: #94a3b8; }
.tool-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 6px; }
.tc-summary { font-size: .78rem; color: var(--text-tertiary); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.tc-users { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-users span { font-size: .68rem; color: var(--text-muted); background: var(--bg); padding: 2px 8px; border-radius: 4px; }
.tc-actions { display: flex; gap: 6px; }

/* ===== Tool Detail Pages ===== */
.tool-detail-header {
  max-width: var(--max-w); margin: 0 auto; padding: 48px 24px 36px;
}
.td-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--indigo); text-decoration: none; font-weight: 500; margin-bottom: 24px;
  transition: color var(--transition);
}
.td-back:hover { text-decoration: underline; }
.td-hero {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow-card);
}
.td-hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.td-cat-badge { font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; background: #eef2ff; color: var(--indigo); }
.td-status-badge { font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.td-status-badge.ready { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.td-hero h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.4px; margin-bottom: 8px; }
.td-hero p { font-size: .9rem; color: var(--text-tertiary); max-width: 600px; line-height: 1.6; }
.td-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border);
}
@media (max-width: 640px) { .td-meta { grid-template-columns: 1fr; } }
.td-meta-item h4 { font-size: .76rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.td-meta-item p { font-size: .86rem; color: var(--text); max-width: 100%; }

.td-body {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 48px;
}

/* Resume tool detail specific */
.td-resume-main {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-card);
}
.td-resume-main h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.td-resume-main p { font-size: .86rem; color: var(--text-tertiary); line-height: 1.6; margin-bottom: 16px; }
.td-resume-main .btn { margin-bottom: 12px; }
.td-hint {
  background: #fef3c7; border: 1px solid #fde68a; border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 20px; font-size: .82rem; color: #92400e; line-height: 1.5;
}
.td-hint code {
  background: rgba(0,0,0,.04); padding: 1px 6px; border-radius: 3px; font-size: .78rem;
}

/* Marketing copy workspace */
.td-workspace {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-card);
}
.td-workspace h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.td-ws-form { max-width: 100%; }
.td-ws-form .form-row { display: flex; flex-direction: column; gap: 14px; }
.td-ws-form .form-row .form-group { margin-bottom: 0; }
.td-ws-actions { display: flex; gap: 10px; margin-top: 20px; }
.td-ws-status { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; color: var(--text-muted); }
.td-ws-result { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; display: none; }
.td-ws-result.visible { display: block; }
.td-ws-empty {
  background: #f8faff; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 32px; text-align: center; font-size: .86rem; color: var(--text-muted); line-height: 1.6;
}

/* ===== Run Panel (legacy compatibility) ===== */
.run-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; margin: 20px 0; display: none; overflow: hidden; box-shadow: var(--shadow-lg);
}
.run-panel.active { display: block; }
.run-panel-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 32px 0; gap: 16px;
}
.run-panel-header h3 { font-size: 1rem; font-weight: 700; }
.run-panel-desc { font-size: .82rem; color: var(--text-tertiary); margin-top: 4px; font-weight: 400; }
.run-close { background: none; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 4px; }
.run-close:hover { color: var(--text); }
.run-panel-body { padding: 20px 32px 32px; }

.run-result { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 22px; display: none; }
.run-result.visible { display: block; }

/* ===== Result sections (shared) ===== */
.result-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.result-actions h4 { font-size: .84rem; font-weight: 700; }
.result-section { margin-bottom: 16px; }
.result-section .r-label { font-size: .7rem; font-weight: 600; letter-spacing: .3px; color: var(--indigo); margin-bottom: 6px; }
.result-section .r-content {
  font-size: .84rem; line-height: 1.6; white-space: pre-wrap;
  background: #f8faff; padding: 14px 18px; border-radius: var(--radius-xs);
  border: 1px solid var(--border);
}
.status-line { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); margin-top: 12px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--indigo); border-radius: 50%; animation: spin .6s linear infinite; display: none; }
.spinner.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.api-error-box { margin-top: 14px; padding: 14px 18px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); color: #991b1b; font-size: .82rem; line-height: 1.5; }
.btn-copy { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: .7rem; color: var(--text-muted); cursor: pointer; transition: all var(--transition); font-family: inherit; }
.btn-copy:hover { border-color: var(--indigo); color: var(--indigo); }
.tool-copy-all { margin-bottom: 12px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 24px; border-radius: var(--radius-pill); font-size: .84rem; font-weight: 600; border: none; cursor: pointer; transition: all 220ms ease; font-family: inherit; text-decoration: none; }
.btn-primary { background: var(--gradient-primary); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(99,102,241,.30); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); box-shadow: 0 4px 12px rgba(99,102,241,.08); transform: translateY(-1px); }
.btn-lg { padding: 14px 36px; font-size: .92rem; }
.btn-sm { padding: 6px 16px; font-size: .76rem; border-radius: 14px; }
.btn-ghost { background: transparent; border: none; color: var(--text-tertiary); font-size: .76rem; font-weight: 500; padding: 4px 8px; }
.btn-ghost:hover { color: var(--indigo); }
.btn-disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; pointer-events: none; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 12px 24px; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 200; }
.toast.visible { opacity: 1; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 24px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo-mark { font-size: .8rem; }
.footer-brand .logo-text { font-size: .88rem; font-weight: 700; }
.footer-brand p { font-size: .8rem; color: var(--text-muted); margin-top: 8px; max-width: 260px; line-height: 1.5; }
.footer-col h4 { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; font-size: .78rem; color: var(--text-tertiary); text-decoration: none; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom { max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: .74rem; color: var(--text-muted); }

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: translateY(0); filter: blur(0); }
  .page-shell { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-orb, .hero-orb-inner { display: none; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hero-title { font-size: 2rem; letter-spacing: -.5px; }
  .hero-subtitle { font-size: .95rem; }
  .hero-desc { font-size: .85rem; }
  .hero-section { min-height: auto; padding: 56px 20px 44px; }
  .section { padding: 56px 16px; }
  .section-title { font-size: 1.3rem; }
  .page-header { padding: 36px 16px 28px; }
  .page-header h1 { font-size: 1.3rem; }
  .contact-card { padding: 24px; }
  .case-detail-card { padding: 28px 24px; }
  .case-detail-grid { grid-template-columns: 1fr; }
  .service-detail { padding: 24px; }
  .cta-card { padding: 32px 24px; }
  .td-hero { padding: 28px 24px; }
  .td-meta { grid-template-columns: 1fr; }
  .td-resume-main, .td-workspace { padding: 24px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .trust-divider { display: none; }
}
