:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #17182b;
  --muted: #677184;
  --muted-2: #98a1b3;
  --line: #e4e7ec;
  --line-strong: #d6dae2;
  --blue: #2f66f4;
  --blue-2: #1f4fd2;
  --blue-soft: #eef4ff;
  --green: #06c755;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 102, 244, 0.018) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(47, 102, 244, 0.016) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 48px));
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 32px 0 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 78px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.footer-brand span {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.nav-links a {
  padding: 13px 24px;
  color: #384152;
  font-size: 15px;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.nav-links a:last-child {
  border-right: 0;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.header-actions a {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #4a5363;
  font-weight: 800;
}

.header-actions .header-button {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a5363;
  background: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.header-actions .line-link {
  color: #0a7f39;
  border-color: rgba(6, 199, 85, 0.35);
  background: rgba(6, 199, 85, 0.08);
}

.hero {
  padding: 76px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cbd9ff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

.hero h1 span {
  color: var(--blue);
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.9;
  font-weight: 500;
}

.prompt-box {
  width: min(720px, 100%);
  margin: 28px 0 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.prompt-box span {
  min-width: 0;
  padding-left: 18px;
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 700;
}

.prompt-box strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-size: 17px;
  font-weight: 900;
}

.button-primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 18px 38px rgba(23, 24, 43, 0.18);
}

.button-secondary {
  color: #293142;
  background: var(--surface);
}

.button:hover,
.tool-card a:hover,
.price-card a:hover,
.case-body a:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.hero-metrics div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-metrics strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 800;
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-panel-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.hero-panel-head strong {
  color: var(--ink);
  font-weight: 900;
}

.hero-panel-head small {
  margin-left: auto;
  color: var(--blue);
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 18px 0 #facc15, 36px 0 #22c55e;
}

.before-after {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.before-card,
.after-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}

.before-card img,
.after-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-card p,
.after-card p {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.output-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.output-strip span {
  padding: 10px 4px;
  border-radius: 8px;
  text-align: center;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-head .kicker,
.about .kicker,
.final-cta .kicker {
  margin-bottom: 16px;
}

.section-head h2,
.about h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 900;
}

.section-head p:not(.kicker) {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.tool-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.tool-shortcuts a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tool-shortcuts span,
.tool-icon,
.flow-grid span,
.case-index,
.plan-label {
  font-family: "Inter", monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tool-shortcuts span,
.tool-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d2ddff;
  font-size: 13px;
  font-weight: 900;
}

.tool-shortcuts strong {
  font-size: 18px;
  font-weight: 900;
}

.tool-shortcuts small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.about {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.9;
  font-weight: 500;
}

.about-copy p {
  margin: 0;
}

.tools-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-rail a {
  padding: 13px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.category-rail a.active,
.category-rail a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card,
.case-card,
.price-card,
.flow-grid article,
.faq-list details,
.cta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tool-card {
  padding: 26px;
}

.template-library-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 84% 20%, rgba(47, 102, 244, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff, #f4f7ff);
}

.template-library-card .tool-icon {
  color: #fff;
  background: var(--ink);
}

.template-library-card a {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.tool-card-top small {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-card h3,
.case-body h3,
.price-card h3,
.flow-grid h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 900;
}

.tool-card p,
.case-body p,
.price-card li,
.flow-grid p,
.faq-list p,
.pricing-note {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.tool-card p {
  margin: 14px 0 18px;
}

.tool-card ul,
.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tool-card li,
.price-card li {
  position: relative;
  padding-left: 18px;
}

.tool-card li::before,
.price-card li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.tool-card a,
.case-body a,
.price-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cbd9ff;
  font-weight: 900;
  transition: transform 0.16s ease;
}

.cases-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.case-card {
  overflow: hidden;
}

.case-mosaic {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.case-output {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-cell {
  position: absolute;
  top: calc(33.333% + 3px);
  left: calc(33.333% + 3px);
  width: calc(33.333% - 6px);
  height: calc(33.333% - 6px);
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  background: var(--surface);
}

.source-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-cell span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(23, 24, 43, 0.82);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.case-body {
  padding: 24px;
}

.case-index {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #cbd9ff;
  font-size: 13px;
  font-weight: 900;
}

.case-body p:not(.case-index) {
  min-height: 52px;
  margin: 12px 0 18px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.case-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #4a5363;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 900;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 26px;
}

.price-card.featured {
  border-color: #b8c8ff;
  box-shadow: 0 24px 60px rgba(47, 102, 244, 0.16);
  transform: translateY(-8px);
}

.plan-label {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin: 14px 0 18px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.price-card a {
  width: 100%;
}

.featured a {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.pricing-note {
  margin: 24px auto 0;
  padding: 16px 18px;
  max-width: 920px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-section {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.flow-grid article {
  min-height: 220px;
  padding: 24px;
}

.flow-grid span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-size: 16px;
  font-weight: 900;
}

.flow-grid p {
  margin: 12px 0 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 19px;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
  line-height: 1.9;
}

.final-cta {
  padding-bottom: 80px;
}

.cta-card {
  padding: 64px;
  text-align: center;
  background: var(--ink);
  color: white;
}

.cta-card .kicker {
  color: #c8d5ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.cta-card p:not(.kicker) {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.cta-card .hero-cta {
  justify-content: center;
}

.cta-card .button-primary {
  color: var(--ink);
  background: white;
  border-color: white;
}

.cta-card .button-secondary {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer {
  background: #101223;
  color: white;
  padding: 54px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin-top: 9px;
}

.footer-bottom {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.floating-line {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(6, 199, 85, 0.32);
  font-weight: 900;
}

.mobile-sticky {
  display: none;
}

.app-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(47, 102, 244, 0.018) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, rgba(47, 102, 244, 0.016) 1px, transparent 1px) 0 0 / 72px 72px,
    #f7f8fb;
}

.app-main {
  padding-bottom: 80px;
}

.app-hero {
  padding: 72px 0 42px;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: start;
}

.app-hero h1,
.app-panel h2,
.auth-card h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-card,
.app-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  padding: 28px;
}

.auth-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card p:not(.auth-label),
.panel-note {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.app-button {
  width: 100%;
  margin-top: 12px;
  cursor: pointer;
}

.app-button.small {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  padding: 0 16px;
}

.app-button:disabled,
.header-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.setup-warning {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #f7c56d;
  border-radius: 8px;
  color: #7a4b00;
  background: #fff7e6;
}

.setup-warning strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 900;
}

.setup-warning p {
  margin: 0;
}

.login-gate,
.next-step-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cad7ff;
  border-radius: 8px;
  color: #21409a;
  background: #f2f6ff;
}

.login-gate[hidden],
.next-step-card[hidden] {
  display: none;
}

.login-gate strong,
.next-step-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.login-gate span,
.next-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.next-step-card {
  border-color: #9ad9b4;
  color: #07863d;
  background: #f0fff5;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.member-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.member-stats strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.member-stats span {
  color: var(--muted);
  font-weight: 800;
}

.app-section {
  padding: 44px 0;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.app-panel {
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #4a5363;
  font-weight: 900;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  outline: none;
}

.form-grid input,
.form-grid select {
  height: 54px;
  padding: 0 14px;
}

.form-grid textarea {
  resize: vertical;
  padding: 14px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 102, 244, 0.1);
}

.full-span {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: #07863d;
}

.form-status[data-type="error"] {
  color: #c2410c;
}

.scope-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.scope-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.scope-list strong {
  color: var(--blue);
  font-weight: 900;
}

.scope-list span {
  color: var(--muted);
  font-weight: 750;
}

.orders-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.orders-empty {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 800;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-row strong,
.order-row span,
.order-row small {
  display: block;
}

.order-row strong {
  font-weight: 900;
}

.order-row span,
.order-row small {
  color: var(--muted);
  font-weight: 750;
}

.order-row mark {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-self: stretch;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    overflow-x: auto;
  }

  .hero-grid,
  .about-grid,
  .app-hero-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 820px) {
  .container,
  .narrow,
  .header-inner {
    width: min(100% - 28px, 720px);
  }

  .section {
    padding: 58px 0;
  }

  .section-tight {
    padding: 24px 0 46px;
  }

  .site-header {
    position: relative;
  }

  .brand img {
    width: 64px;
    height: 48px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    font-size: 13px;
  }

  .nav-links {
    border-radius: 8px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 15px;
  }

  .header-actions a {
    flex: 0 0 auto;
  }

  .header-actions .header-button {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.04;
  }

  .lead {
    font-size: 17px;
    line-height: 1.8;
  }

  .prompt-box {
    grid-template-columns: 1fr;
    border-radius: 8px;
    padding: 14px;
  }

  .prompt-box span {
    padding-left: 0;
  }

  .prompt-box strong {
    width: 100%;
    border-radius: 8px;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-metrics div {
    padding: 14px 10px;
  }

  .hero-metrics strong {
    font-size: 27px;
  }

  .hero-metrics span {
    font-size: 12px;
  }

  .hero-panel {
    display: none;
  }

  .tool-shortcuts {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .tool-shortcuts a {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .about-grid {
    gap: 28px;
  }

  .about-copy {
    font-size: 17px;
  }

  .tools-layout {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .category-rail a {
    flex: 0 0 auto;
  }

  .tool-grid,
  .case-grid,
  .pricing-grid,
  .flow-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .case-body p:not(.case-index) {
    min-height: auto;
  }

  .flow-grid article {
    min-height: auto;
  }

  .form-grid,
  .order-row {
    grid-template-columns: 1fr;
  }

  .orders-head {
    display: grid;
  }

  .flow-grid span {
    margin-bottom: 18px;
  }

  .cta-card {
    padding: 38px 22px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    padding-bottom: 72px;
  }

  .floating-line {
    display: none;
  }

  .mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-sticky a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-sticky a:first-child {
    color: white;
    background: var(--green);
  }

  .mobile-sticky a:last-child {
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .header-actions {
    display: none;
  }

  .section-head h2,
  .about h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .tool-card,
  .price-card,
  .case-body {
    padding: 20px;
  }

  .tool-card h3,
  .case-body h3,
  .price-card h3,
  .flow-grid h3 {
    font-size: 24px;
  }

  .source-cell span {
    font-size: 10px;
    left: 4px;
    bottom: 4px;
    padding: 3px 5px;
  }
}

/* ================================================
   暖心 AI 副產品線宣傳區塊 — warmheart-promo
   ================================================ */

.warmheart-promo {
  padding: 56px 0;
}

.warmheart-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 52px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.warmheart-card::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 160, 80, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.warmheart-body {
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.warmheart-body .kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c07a30;
  margin: 0 0 10px;
}

.warmheart-body h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.25;
}

.warmheart-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 28px;
}

.button-warmheart {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff6ed;
  border: 1.5px solid #e8b87a;
  color: #a05a1a;
  font-size: 15px;
  font-weight: 800;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.14s;
  white-space: nowrap;
}

.button-warmheart:hover {
  background: #ff9c3a;
  border-color: #ff9c3a;
  color: #ffffff;
  transform: translateY(-2px);
}

.warmheart-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.wh-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 200px;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.wh-tag:hover {
  border-color: #e8b87a;
  box-shadow: 0 4px 16px rgba(200, 120, 40, 0.08);
}

.wh-tag-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.wh-tag-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}

.wh-tag-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
  line-height: 1.3;
  margin-top: 2px;
}

.nav-links a[href*="gensparkspace"] {
  color: #a05a1a;
  background: #fff8f0;
}

.nav-links a[href*="gensparkspace"]:hover {
  color: #ffffff;
  background: #ff9c3a;
}

@media (max-width: 860px) {
  .warmheart-card {
    grid-template-columns: 1fr;
    padding: 36px 32px;
    gap: 28px;
  }

  .warmheart-tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .wh-tag {
    min-width: 0;
    flex: 1 1 160px;
  }
}

@media (max-width: 480px) {
  .warmheart-card {
    padding: 28px 20px;
  }

  .warmheart-tags {
    flex-direction: column;
  }

  .wh-tag {
    width: 100%;
  }

  .button-warmheart {
    width: 100%;
    justify-content: center;
  }
}
