:root {
  --wxd-bg: #f7f7f5;
  --wxd-surface: #ffffff;
  --wxd-surface-soft: #fafaf8;
  --wxd-border: #e7e5e0;
  --wxd-border-hover: #d6d3cc;
  --wxd-ink: #1c1917;
  --wxd-ink-secondary: #57534e;
  --wxd-ink-muted: #78716c;
  --wxd-red: #d93d2e;
  --wxd-red-hover: #bf3224;
  --wxd-green: #5a9e2e;
  --wxd-wf-bg: #f4f3ef;
  --wxd-wf-block: #e9e7e1;
  --wxd-wf-line: #dedbd3;
  --wxd-radius: 10px;
  --wxd-radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--wxd-bg);
  color: var(--wxd-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, a, button, span, strong, b { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wxd-red); outline-offset: 2px; }

.wxd-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* L1: Restrained Topbar (60px) */
.wxd-topbar {
  height: 60px;
  background: var(--wxd-surface);
  border-bottom: 1px solid var(--wxd-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wxd-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wxd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wxd-brand img { display: block; }

.wxd-sep {
  width: 1px;
  height: 16px;
  background: var(--wxd-border-hover);
  flex-shrink: 0;
}

.wxd-brand-sub {
  font-size: 13px;
  color: var(--wxd-ink-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wxd-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.wxd-nav-link {
  font-size: 13px;
  color: var(--wxd-ink-secondary);
  transition: color 0.15s ease;
}

.wxd-nav-link:hover { color: var(--wxd-ink); }

.wxd-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--wxd-ink);
  background: var(--wxd-surface);
  border: 1px solid var(--wxd-border-hover);
  border-radius: var(--wxd-radius-sm);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.wxd-btn-outline:hover {
  border-color: var(--wxd-red);
  color: var(--wxd-red);
}

/* L2: Hero & Business Scenario Switcher */
.wxd-hero { padding: 44px 0 28px; }

.wxd-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.wxd-hero-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--wxd-ink);
}

.wxd-hero-sub {
  margin: 0;
  font-size: 14px;
  color: var(--wxd-ink-secondary);
}

.wxd-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--wxd-ink-muted);
  white-space: nowrap;
  padding-bottom: 3px;
}

.wxd-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wxd-green);
  flex-shrink: 0;
}

.wxd-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  background: var(--wxd-surface);
  border: 1px solid var(--wxd-border);
  border-radius: 8px;
  overflow-x: auto;
}

.wxd-tab {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--wxd-ink-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--wxd-radius-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.wxd-tab:hover { color: var(--wxd-ink); background: var(--wxd-surface-soft); }

.wxd-tab.is-active {
  color: var(--wxd-red);
  background: #fdf4f3;
  border-color: #f3d2ce;
}

/* L3: Two-Column Showcase Gallery */
.wxd-gallery-section { padding-bottom: 40px; }

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

.wxd-card {
  display: flex;
  flex-direction: column;
  background: var(--wxd-surface);
  border: 1px solid var(--wxd-border);
  border-radius: var(--wxd-radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.wxd-card:hover { border-color: var(--wxd-border-hover); }

/* 16:9 Ghost Wireframe Preview */
.wxd-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--wxd-wf-bg);
  border-bottom: 1px solid var(--wxd-border);
  padding: 18px 20px 0;
  overflow: hidden;
}

.wxd-browser {
  width: 100%;
  height: 100%;
  background: var(--wxd-surface);
  border: 1px solid var(--wxd-border);
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wxd-browser-bar {
  height: 22px;
  padding: 0 10px;
  background: var(--wxd-surface-soft);
  border-bottom: 1px solid var(--wxd-border);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.wxd-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--wxd-wf-line); }
.wxd-addr { width: 34%; height: 6px; margin-left: 8px; border-radius: 3px; background: var(--wxd-wf-block); }

.wxd-wf-stage {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-row { display: flex; gap: 10px; align-items: stretch; }
.wf-col { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.wf-block { background: var(--wxd-wf-block); border-radius: 4px; }
.wf-line { height: 6px; border-radius: 3px; background: var(--wxd-wf-block); }
.wf-line-strong { height: 8px; border-radius: 3px; background: var(--wxd-wf-line); }
.wf-accent-dot { width: 18px; height: 5px; border-radius: 3px; background: #edd4d0; }

.wf-card {
  background: var(--wxd-surface-soft);
  border: 1px solid var(--wxd-border);
  border-radius: 5px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Card Body & Actions */
.wxd-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.wxd-card-title { margin: 0; font-size: 16px; line-height: 1.4; color: var(--wxd-ink); }
.wxd-card-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--wxd-ink-secondary); }

.wxd-card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--wxd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wxd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  color: #ffffff;
  background: var(--wxd-red);
  border: 1px solid var(--wxd-red);
  border-radius: var(--wxd-radius-sm);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wxd-btn-primary:hover { background: var(--wxd-red-hover); border-color: var(--wxd-red-hover); }

.wxd-link-subtle {
  font-size: 13px;
  color: var(--wxd-ink-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.wxd-link-subtle:hover { color: var(--wxd-ink); }

/* Bottom Soft Conversion Bar & Footer */
.wxd-cta-section { padding-bottom: 40px; }

.wxd-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--wxd-surface);
  border: 1px solid var(--wxd-border);
  border-radius: var(--wxd-radius);
}

.wxd-cta-text { margin: 0; font-size: 13px; color: var(--wxd-ink-secondary); }
.wxd-footer { border-top: 1px solid var(--wxd-border); background: var(--wxd-surface); }

.wxd-footer-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--wxd-ink-muted);
}

@media (max-width: 840px) {
  .wxd-grid { grid-template-columns: 1fr; }
  .wxd-hero-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wxd-cta-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wxd-wrap { padding: 0 16px; }
  .wxd-nav-link { display: none; }
  .wxd-hero { padding: 28px 0 20px; }
  .wxd-hero-title { font-size: 24px; }
}
