:root {
  --ew-blue: #0f5bb5;
  --ew-blue-dark: #0a4388;
  --ew-cyan: #0ea5e9;
  --ew-emerald: #059669;
  --ew-emerald-dark: #047857;
  --ew-ink-900: #0f172a;
  --ew-ink-700: #334155;
  --ew-ink-600: #475569;
  --ew-ink-500: #64748b;
  --ew-line: #e2e8f0;
  --ew-line-soft: #f1f5f9;
  --ew-tint: #f8fafc;
  --ew-white: #ffffff;
  --ew-radius-sm: 8px;
  --ew-radius-md: 14px;
  --ew-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --ew-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --ew-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --ew-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ew-font);
  color: var(--ew-ink-700);
  background: var(--ew-white);
  line-height: 1.68;
  overflow-x: hidden;
}

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

a {
  color: var(--ew-blue);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--ew-cyan);
}

h1, h2, h3, h4 {
  color: var(--ew-ink-900);
  margin-top: 0;
  line-height: 1.32;
  font-weight: 700;
}

code {
  font-family: var(--ew-mono);
  font-size: 0.86em;
  background: #eff6ff;
  color: var(--ew-blue-dark);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-word;
}

.ew-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ew-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ew-line);
}

.ew-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.ew-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ew-logo img {
  height: 50px;
  width: auto;
}

.ew-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ew-nav-link {
  padding: 8px 11px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ew-ink-700);
  border-radius: var(--ew-radius-sm);
  white-space: nowrap;
}

.ew-nav-link:hover,
.ew-nav-link.active {
  color: var(--ew-blue);
  background: #eff6ff;
}

.ew-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ew-search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--ew-line);
  border-radius: 999px;
  background: var(--ew-tint);
  padding: 3px 4px 3px 12px;
}

.ew-search-box:focus-within {
  border-color: var(--ew-cyan);
  background: #fff;
}

.ew-search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 155px;
  font-size: 0.85rem;
  color: var(--ew-ink-900);
  font-family: inherit;
}

.ew-search-box button {
  border: 0;
  background: var(--ew-blue);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ew-search-box button:hover {
  background: var(--ew-emerald);
}

.ew-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}

.ew-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ew-ink-900);
}

/* Announcement Banner (Directly under Nav) */
.ew-announce {
  background: linear-gradient(90deg, #0c4a94 0%, #0f5bb5 50%, #0284c7 100%);
  color: #fff;
}

.ew-announce-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 0.88rem;
}

.ew-announce-pill {
  background: #10b981;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ew-announce-msg {
  font-weight: 700;
  color: #fff;
}

.ew-announce-divider {
  opacity: 0.5;
}

.ew-announce-note {
  color: rgba(255, 255, 255, 0.9);
}

.ew-announce-link {
  margin-left: auto;
  color: #bae6fd;
  font-weight: 600;
  white-space: nowrap;
}

.ew-announce-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Buttons */
.ew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--ew-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

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

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

.ew-btn-emerald {
  background: var(--ew-emerald);
  color: #fff;
}

.ew-btn-emerald:hover {
  background: var(--ew-emerald-dark);
  color: #fff;
}

.ew-btn-outline {
  background: #fff;
  color: var(--ew-blue);
  border-color: #bfdbfe;
}

.ew-btn-outline:hover {
  background: #eff6ff;
  border-color: var(--ew-blue);
  color: var(--ew-blue-dark);
}

.ew-btn-block {
  width: 100%;
  margin-top: 10px;
}

/* Light Editorial SaaS Hero */
.ew-hero {
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 88% 15%, rgba(14, 165, 233, 0.14), transparent 44%),
    radial-gradient(circle at 12% 85%, rgba(16, 185, 129, 0.08), transparent 38%),
    linear-gradient(to right, rgba(15, 91, 181, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 91, 181, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
  border-bottom: 1px solid var(--ew-line);
  padding: 56px 0 62px;
}

.ew-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: 38px;
  align-items: center;
}

.ew-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ew-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.ew-hero-copy h1 {
  font-size: 2.32rem;
  line-height: 1.24;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

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

.ew-hero-lead {
  font-size: 1.01rem;
  color: var(--ew-ink-600);
  margin: 0 0 24px;
}

.ew-hero-lead strong {
  color: var(--ew-ink-900);
}

.ew-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.ew-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--ew-line);
}

.ew-hero-metrics strong {
  display: block;
  font-size: 1.12rem;
  color: var(--ew-ink-900);
}

.ew-hero-metrics span {
  font-size: 0.76rem;
  color: var(--ew-ink-500);
}

.ew-hero-frame {
  position: relative;
  border-radius: var(--ew-radius-md);
  overflow: hidden;
  border: 1px solid var(--ew-line);
  background: #fff;
  box-shadow: var(--ew-shadow-md);
}

.ew-hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ew-hero-caption {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--ew-line);
  font-size: 0.82rem;
  color: var(--ew-ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ew-cap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ew-emerald);
  flex-shrink: 0;
}

/* Sections */
.ew-section {
  padding: 60px 0;
}

.ew-section-tint {
  background: var(--ew-tint);
  border-top: 1px solid var(--ew-line-soft);
  border-bottom: 1px solid var(--ew-line-soft);
}

.ew-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.ew-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ew-emerald);
  margin-bottom: 5px;
}

.ew-sec-head h2 {
  font-size: 1.66rem;
  margin-bottom: 6px;
}

.ew-sec-head p {
  margin: 0;
  color: var(--ew-ink-600);
  font-size: 0.94rem;
}

.ew-more {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Grids */
.ew-grid {
  display: grid;
  gap: 22px;
}

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

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

/* Cards */
.ew-tool-card,
.ew-card,
.ew-article-card,
.ew-box {
  background: #fff;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
  padding: 24px;
  box-shadow: var(--ew-shadow-sm);
  min-width: 0;
}

.ew-tool-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--ew-blue);
}

.ew-tool-card-emerald {
  border-top-color: var(--ew-emerald);
}

.ew-tool-card-cyan {
  border-top-color: var(--ew-cyan);
}

.ew-tool-card:hover,
.ew-card:hover,
.ew-article-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--ew-shadow-md);
}

.ew-tool-badge {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ew-blue);
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ew-badge-emerald {
  color: var(--ew-emerald-dark);
  background: #ecfdf5;
}

.ew-badge-cyan {
  color: #0369a1;
  background: #e0f2fe;
}

.ew-tool-card h3,
.ew-card h3,
.ew-card h2,
.ew-article-card h3,
.ew-article-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.ew-tool-card p,
.ew-card-desc,
.ew-article-card p {
  font-size: 0.89rem;
  color: var(--ew-ink-600);
  margin: 0 0 14px;
  flex: 1;
}

.ew-card {
  display: flex;
  flex-direction: column;
}

.ew-card h3 a,
.ew-card h2 a,
.ew-article-card h3 a,
.ew-article-card h2 a {
  color: var(--ew-ink-900);
}

.ew-card h3 a:hover,
.ew-card h2 a:hover,
.ew-article-card h3 a:hover,
.ew-article-card h2 a:hover {
  color: var(--ew-blue);
}

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

.ew-chip-blue,
.ew-chip-emerald,
.ew-chip-muted {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.ew-chip-blue {
  background: #eff6ff;
  color: var(--ew-blue);
}

.ew-chip-emerald {
  background: #ecfdf5;
  color: var(--ew-emerald-dark);
}

.ew-chip-muted {
  background: var(--ew-tint);
  color: var(--ew-ink-600);
  border: 1px solid var(--ew-line);
}

.ew-card-meta-row {
  font-size: 0.82rem;
  color: var(--ew-ink-700);
  background: var(--ew-tint);
  padding: 8px 11px;
  border-radius: var(--ew-radius-sm);
  margin-bottom: 14px;
}

.ew-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ew-blue);
}

.ew-article-card {
  display: flex;
  flex-direction: column;
}

.ew-art-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--ew-ink-500);
}

.ew-art-cat {
  background: #eff6ff;
  color: var(--ew-blue);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
}

.ew-art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--ew-line-soft);
  font-size: 0.8rem;
  color: var(--ew-ink-500);
}

/* Split Feature */
.ew-split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.ew-split-media img {
  border-radius: var(--ew-radius-md);
  border: 1px solid var(--ew-line);
  box-shadow: var(--ew-shadow-sm);
}

.ew-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.ew-check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.92rem;
}

.ew-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ew-emerald);
  font-weight: 700;
}

/* Pills */
.ew-pill-row,
.ew-tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.ew-pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--ew-line);
  background: #fff;
  color: var(--ew-ink-700);
  font-size: 0.87rem;
  font-weight: 500;
}

.ew-pill:hover,
.ew-pill.active {
  background: var(--ew-blue);
  border-color: var(--ew-blue);
  color: #fff;
}

/* Page Head */
.ew-page-head {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--ew-line);
  padding: 34px 0 38px;
}

.ew-crumb {
  font-size: 0.82rem;
  color: var(--ew-ink-500);
  margin-bottom: 10px;
}

.ew-crumb span {
  margin: 0 6px;
}

.ew-page-head h1 {
  font-size: 1.88rem;
  margin-bottom: 10px;
}

.ew-page-head p {
  margin: 0;
  color: var(--ew-ink-600);
  max-width: 820px;
}

.ew-art-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.83rem;
  color: var(--ew-ink-500);
  margin-top: 12px;
}

/* Roadmap */
.ew-roadmap-list {
  display: grid;
  gap: 20px;
}

.ew-step-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  background: #fff;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
  padding: 24px;
  box-shadow: var(--ew-shadow-sm);
}

.ew-step-num {
  font-family: var(--ew-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ew-blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--ew-radius-sm);
  padding: 10px 12px;
  text-align: center;
  align-self: start;
}

.ew-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ew-step-head h2 {
  font-size: 1.24rem;
  margin: 0;
}

.ew-step-summary {
  color: var(--ew-ink-600);
  margin: 0 0 12px;
  font-weight: 500;
}

.ew-step-deliverable {
  margin-top: 12px;
  padding: 10px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--ew-radius-sm);
  font-size: 0.88rem;
  color: #065f46;
}

/* Workbench & Tools */
.ew-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ew-box h2 {
  font-size: 1.22rem;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ew-line-soft);
}

.ew-field {
  margin-bottom: 15px;
}

.ew-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ew-ink-900);
  margin-bottom: 6px;
}

.ew-field input[type="text"],
.ew-field input[type="search"],
.ew-field select,
.ew-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--ew-radius-sm);
  font-size: 0.91rem;
  color: var(--ew-ink-900);
  background: #fff;
  font-family: inherit;
}

.ew-field-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.ew-meter {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--ew-emerald-dark);
  font-weight: 600;
}

.ew-meter.warn {
  color: #c2410c;
}

.ew-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--ew-radius-sm);
  padding: 10px 12px;
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.ew-alert.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.ew-serp-preview {
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-sm);
  padding: 14px 16px;
  background: #fff;
}

.ew-serp-label {
  font-size: 0.74rem;
  color: var(--ew-ink-500);
  margin-bottom: 8px;
}

.ew-serp-url {
  font-size: 0.8rem;
  color: #202124;
  margin-bottom: 3px;
  word-break: break-all;
}

.ew-serp-title {
  font-size: 1.12rem;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

.ew-serp-desc {
  font-size: 0.85rem;
  color: #4d5156;
  line-height: 1.5;
  word-break: break-word;
}

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

.ew-check-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 0.84rem;
  background: var(--ew-tint);
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--ew-line);
  margin: 0;
  cursor: pointer;
}

.ew-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--ew-ink-600);
}

.ew-copy-btn {
  padding: 6px 12px;
  border: 1px solid var(--ew-blue);
  background: #eff6ff;
  color: var(--ew-blue);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ew-copy-btn:hover {
  background: var(--ew-blue);
  color: #fff;
}

.ew-code-block {
  margin: 0;
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--ew-radius-sm);
  font-family: var(--ew-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.ew-hint {
  font-size: 0.86rem;
  color: var(--ew-ink-600);
  margin: 0 0 14px;
}

/* Checklist Progress */
.ew-progress-card {
  background: #fff;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--ew-shadow-sm);
}

.ew-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ew-progress-track {
  height: 10px;
  background: var(--ew-line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.ew-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ew-blue), var(--ew-emerald));
  transition: width 0.25s ease;
}

.ew-checklist-items {
  display: grid;
  gap: 10px;
}

.ew-chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.89rem;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ew-tint);
}

.ew-chk-row input {
  margin-top: 4px;
  flex-shrink: 0;
}

/* Detail & Prose */
.ew-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.ew-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.ew-kpi-strip > div {
  background: var(--ew-tint);
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-sm);
  padding: 13px 14px;
}

.ew-kpi-strip span {
  display: block;
  font-size: 0.75rem;
  color: var(--ew-ink-500);
  margin-bottom: 4px;
}

.ew-kpi-strip strong {
  font-size: 0.94rem;
  color: var(--ew-ink-900);
}

.ew-prose h2 {
  font-size: 1.26rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.ew-prose h3 {
  font-size: 1.06rem;
  margin-top: 18px;
  margin-bottom: 8px;
}

.ew-prose p {
  margin: 0 0 14px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.ew-prose ul,
.ew-prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.ew-prose li {
  margin-bottom: 8px;
  line-height: 1.72;
}

.ew-summary-callout {
  background: #eff6ff;
  border-left: 4px solid var(--ew-blue);
  padding: 13px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 0.93rem;
  color: var(--ew-ink-900);
}

/* Tables */
.ew-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ew-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
  min-width: 520px;
}

.ew-table th,
.ew-table td {
  padding: 11px 13px;
  border: 1px solid var(--ew-line);
  text-align: left;
  vertical-align: top;
}

.ew-table thead th {
  background: #eff6ff;
  color: var(--ew-ink-900);
  font-weight: 700;
}

.ew-table tbody th {
  background: var(--ew-tint);
  width: 26%;
  color: var(--ew-ink-900);
}

/* Sidebar */
.ew-side-card {
  background: #fff;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--ew-shadow-sm);
}

.ew-side-card h3 {
  font-size: 1.02rem;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ew-line-soft);
}

.ew-side-card p {
  font-size: 0.85rem;
  color: var(--ew-ink-600);
  margin: 0 0 8px;
}

.ew-side-list,
.ew-side-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ew-side-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--ew-line-soft);
}

.ew-side-list strong {
  display: block;
  font-size: 0.89rem;
  color: var(--ew-ink-900);
}

.ew-side-list span {
  display: block;
  font-size: 0.78rem;
  color: var(--ew-ink-500);
}

.ew-side-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--ew-line);
  font-size: 0.87rem;
}

/* FAQ */
.ew-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ew-faq-stack {
  display: grid;
  gap: 14px;
  max-width: 960px;
}

.ew-faq-item {
  background: #fff;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
  padding: 16px 20px;
}

.ew-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ew-ink-900);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.ew-faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--ew-blue);
}

.ew-faq-item[open] summary::after {
  content: "−";
  color: var(--ew-emerald);
}

.ew-faq-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ew-line-soft);
  font-size: 0.9rem;
  color: var(--ew-ink-600);
}

/* Callout, Search, Pagination, 404 */
.ew-callout-bar {
  margin-top: 30px;
  padding: 24px 26px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--ew-radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ew-callout-bar h3 {
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.ew-callout-bar p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ew-ink-600);
}

.ew-search-page-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 620px;
}

.ew-search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--ew-radius-sm);
  font-size: 0.94rem;
  font-family: inherit;
}

.ew-search-meta {
  margin: 0 0 22px;
}

.ew-search-block {
  margin-bottom: 30px;
}

.ew-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.ew-page-num {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-sm);
  font-weight: 600;
  color: var(--ew-ink-700);
}

.ew-page-num.active,
.ew-page-num:hover {
  background: var(--ew-blue);
  border-color: var(--ew-blue);
  color: #fff;
}

.ew-404-card {
  text-align: center;
  max-width: 620px;
  margin: 24px auto;
  padding: 40px 24px;
  background: var(--ew-tint);
  border: 1px solid var(--ew-line);
  border-radius: var(--ew-radius-md);
}

.ew-404-code {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--ew-blue);
  line-height: 1;
  margin-bottom: 12px;
}

/* Footer */
.ew-footer {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.82);
  padding-top: 50px;
}

.ew-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.05fr;
  gap: 30px;
  padding-bottom: 38px;
}

.ew-footer-logo {
  display: inline-block;
  background: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.ew-footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.74);
}

.ew-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ew-footer-tags span {
  font-size: 0.73rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.16);
  color: #7dd3fc;
}

.ew-footer-col h3 {
  color: #fff;
  font-size: 0.96rem;
  margin-bottom: 14px;
}

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

.ew-footer-col li {
  margin-bottom: 9px;
  font-size: 0.86rem;
}

.ew-footer-col a {
  color: rgba(226, 232, 240, 0.78);
}

.ew-footer-col a:hover {
  color: #38bdf8;
}

.ew-footer-note {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ew-radius-sm);
  font-size: 0.8rem;
  line-height: 1.6;
}

.ew-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 0.82rem;
}

.ew-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ew-footer-bar p {
  margin: 0;
}

.ew-beian a {
  color: rgba(226, 232, 240, 0.86);
}

.ew-beian a:hover {
  color: #38bdf8;
}

/* Responsive (Tablet & 375px Mobile Zero Overflow) */
@media (max-width: 1080px) {
  .ew-search-box {
    display: none;
  }
  .ew-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ew-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ew-line);
    box-shadow: var(--ew-shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 16px;
  }
  .ew-nav.open {
    display: flex;
  }
  .ew-menu-btn {
    display: inline-flex;
  }
  .ew-hero-grid,
  .ew-grid-3,
  .ew-grid-2,
  .ew-split-feature,
  .ew-workbench-grid,
  .ew-detail-layout,
  .ew-faq-grid,
  .ew-step-card,
  .ew-kpi-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .ew-announce-divider,
  .ew-announce-note {
    display: none;
  }
}

@media (max-width: 600px) {
  .ew-container {
    padding: 0 14px;
  }
  .ew-header-inner {
    min-height: 62px;
  }
  .ew-logo img {
    height: 40px;
  }
  .ew-announce-link {
    display: none;
  }
  .ew-hero {
    padding: 32px 0 38px;
  }
  .ew-hero-copy h1 {
    font-size: 1.54rem;
  }
  .ew-hero-btns {
    flex-direction: column;
  }
  .ew-hero-btns .ew-btn {
    width: 100%;
  }
  .ew-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ew-section {
    padding: 40px 0;
  }
  .ew-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ew-sec-head h2 {
    font-size: 1.36rem;
  }
  .ew-page-head h1 {
    font-size: 1.44rem;
  }
  .ew-box,
  .ew-card,
  .ew-tool-card,
  .ew-article-card,
  .ew-step-card {
    padding: 16px;
  }
  .ew-field-2,
  .ew-check-grid,
  .ew-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ew-search-page-form {
    flex-direction: column;
  }
}
