/* TradeInWork — 与桌面端 global.css / Ant Design 灰色主题对齐 */
:root {
  --trade-border: #f0f0f0;
  --trade-surface: #ffffff;
  --trade-surface-muted: #f5f5f5;
  --trade-surface-subtle: #f9fafb;
  --trade-fill-muted: #fafafa;
  --trade-fill-secondary: #f0f0f0;
  --trade-text: rgba(0, 0, 0, 0.88);
  --trade-text-secondary: rgba(0, 0, 0, 0.45);
  --trade-text-muted: rgba(0, 0, 0, 0.65);
  --trade-primary: #1677ff;
  --trade-primary-hover: #4096ff;
  --trade-price: #ff4d4f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --max-w: 1120px;
  --hero-preview-aspect: 1449 / 861;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC',
    'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--trade-text);
  background: var(--trade-surface-subtle);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--trade-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--trade-primary-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--trade-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 10000;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trade-border);
  z-index: 1000;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--trade-text);
  font-weight: 600;
  font-size: 17px;
}

.brand:hover {
  color: var(--trade-text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--trade-text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-main a:hover {
  color: var(--trade-text);
  background: var(--trade-fill-secondary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--trade-primary);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--trade-primary-hover);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--trade-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--trade-text);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 48px) 24px 80px;
  background: linear-gradient(180deg, var(--trade-surface) 0%, var(--trade-surface-subtle) 100%);
  border-bottom: 1px solid var(--trade-border);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: 40px;
  align-items: center;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--trade-primary);
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--trade-fill-secondary);
  border: 1px solid var(--trade-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--trade-text-secondary);
  margin-bottom: 16px;
}

.hero-visual-caption {
  margin: 12px 0 0;
  padding: 0 4px;
  font-size: 12px;
  text-align: center;
  color: var(--trade-text-secondary);
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.product-card--featured {
  border-color: rgba(22, 119, 255, 0.35);
  box-shadow: var(--shadow-md);
}

.product-card--soon {
  background: var(--trade-fill-muted);
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.product-status {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(22, 119, 255, 0.1);
  color: var(--trade-primary);
}

.product-status--soon {
  background: var(--trade-fill-secondary);
  color: var(--trade-text-secondary);
}

.product-family {
  font-size: 12px;
  color: var(--trade-text-secondary);
}

.product-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.product-tagline {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--trade-text-muted);
}

.product-card>p:not(.product-tagline) {
  flex: 1;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--trade-text-muted);
}

.product-highlights {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--trade-text-secondary);
}

.product-highlights li+li {
  margin-top: 4px;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-card--soon .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* TradeWork spotlight */
.product-spotlight {
  text-align: center;
}

.product-spotlight .section-eyebrow {
  margin-bottom: 8px;
}

.product-spotlight h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
}

.spotlight-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--trade-text-muted);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.workflow-steps {
  list-style: none;
  counter-reset: none;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--trade-text);
}

.hero-lead {
  font-size: 17px;
  color: var(--trade-text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

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

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

.btn-secondary {
  background: var(--trade-surface);
  color: var(--trade-text);
  border-color: var(--trade-border);
}

.btn-secondary:hover {
  border-color: var(--trade-primary);
  color: var(--trade-primary);
}

.hero-visual {
  margin: 0;
  min-width: 0;
  padding: 0 6px;
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.hero-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hero-preview-aspect);
  background: var(--trade-fill-muted);
  border: 1px solid var(--trade-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-preview-frame.is-loaded {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
}

.hero-preview-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-preview-frame.is-loaded .hero-preview-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-preview-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-preview-frame.is-loaded .hero-preview-img {
  opacity: 1;
}

.hero-preview-placeholder .mock-window {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-preview-placeholder .mock-body {
  flex: 1;
  min-height: 0;
}

.mock-window {
  padding: 0;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--trade-fill-muted);
  border-bottom: 1px solid var(--trade-border);
}

.mock-app-name {
  margin-left: auto;
  font-size: 11px;
  color: var(--trade-text-secondary);
  font-weight: 500;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--trade-fill-secondary);
}

.mock-dot:nth-child(1) {
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.mock-sidebar {
  background: var(--trade-surface-muted);
  border-right: 1px solid var(--trade-border);
  padding: 12px 8px;
}

.mock-nav-item {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--trade-text-secondary);
  border-radius: 6px;
  margin-bottom: 4px;
}

.mock-nav-item.active {
  background: var(--trade-fill-secondary);
  color: var(--trade-text);
  font-weight: 500;
}

.mock-content {
  padding: 16px;
  background: var(--trade-surface-subtle);
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mock-kpi {
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: 8px;
  padding: 10px;
}

.mock-kpi span {
  display: block;
  font-size: 10px;
  color: var(--trade-text-secondary);
}

.mock-kpi strong {
  font-size: 18px;
  color: var(--trade-text);
}

.mock-chart {
  height: 100px;
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px;
}

.mock-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--trade-primary) 0%, #91caff 100%);
  border-radius: 4px 4px 0 0;
  min-height: 20%;
}

/* Sections */
.section {
  padding: 72px 24px;
}

.section-alt {
  background: var(--trade-surface-muted);
  border-top: 1px solid var(--trade-border);
  border-bottom: 1px solid var(--trade-border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.section-header p {
  margin: 0;
  color: var(--trade-text-muted);
  font-size: 16px;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-card {
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--trade-fill-secondary);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--trade-text-secondary);
  line-height: 1.55;
}

/* Highlight blocks */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.highlight-row.reverse .highlight-copy {
  order: 2;
}

.highlight-row.reverse .highlight-panel {
  order: 1;
}

.highlight-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--trade-primary);
  margin-bottom: 8px;
}

.highlight-copy h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
}

.highlight-copy p {
  color: var(--trade-text-muted);
  margin: 0 0 16px;
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--trade-text-muted);
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--trade-primary);
  border-radius: 2px;
  opacity: 0.7;
}

.highlight-panel {
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--trade-border);
  font-size: 14px;
}

.panel-list li:last-child {
  border-bottom: none;
}

.panel-list .status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--trade-fill-secondary);
  color: var(--trade-text-secondary);
}

.status-warn {
  background: #fff7e6;
  color: #d48806;
}

.status-ok {
  background: #f6ffed;
  color: #389e0d;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
}

.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--trade-primary);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  color: var(--trade-text-secondary);
}

/* Download */
.download-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: var(--trade-surface);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.download-card-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.download-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--trade-fill-muted);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius-sm);
}

.download-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.download-version {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--trade-text-muted);
}

.download-filename {
  margin: 0;
  font-size: 13px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--trade-text-secondary);
}

.btn-download {
  width: 100%;
  margin-bottom: 20px;
}

.download-notes {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--trade-text-secondary);
}

.download-notes li+li {
  margin-top: 8px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* CTA */
.cta-section {
  background: var(--trade-surface);
  border-top: 1px solid var(--trade-border);
}

.cta-box {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--trade-surface-muted) 0%, var(--trade-fill-muted) 100%);
  border: 1px solid var(--trade-border);
  border-radius: var(--radius);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.cta-box p {
  color: var(--trade-text-muted);
  margin: 0 0 24px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item span {
  font-size: 12px;
  color: var(--trade-text-secondary);
}

.contact-item a,
.contact-item strong {
  font-size: 16px;
  color: var(--trade-text);
}

/* Footer */
.site-footer {
  padding: 40px 24px 32px;
  background: var(--trade-surface-muted);
  border-top: 1px solid var(--trade-border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--trade-text-secondary);
  margin: 12px 0 0;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--trade-text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--trade-text-muted);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--trade-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--trade-text-secondary);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .highlight-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    padding: 0;
  }

  .hero-preview-frame.is-loaded {
    max-width: 100%;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--trade-surface);
    border-bottom: 1px solid var(--trade-border);
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-main.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

  .highlight-row.reverse .highlight-copy,
  .highlight-row.reverse .highlight-panel {
    order: unset;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }
}