:root {
  --bg: #f3efe7;
  --bg-strong: #16232f;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-strong: #fffaf2;
  --line: rgba(22, 35, 47, 0.08);
  --line-strong: rgba(22, 35, 47, 0.16);
  --text: #1d242b;
  --muted: #64707b;
  --blue: #1f78ff;
  --blue-soft: rgba(31, 120, 255, 0.12);
  --amber: #e48521;
  --amber-soft: rgba(228, 133, 33, 0.12);
  --green: #23795f;
  --shadow: 0 18px 60px rgba(33, 41, 53, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(228, 133, 33, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.18), transparent 20%),
    linear-gradient(180deg, #f5f0e7 0%, #eee7dd 42%, #e6dfd6 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 14px;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.sidebar,
.main-panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), #5aa4ff);
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow,
.sidebar-label,
.small-label,
.card-tag,
.pill {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.sidebar-label,
.small-label,
.card-tag {
  color: var(--muted);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.1rem;
}

.nav-list {
  display: grid;
  gap: 10px;
}

.nav-item {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-item:hover,
.nav-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(31, 120, 255, 0.24);
  background: rgba(31, 120, 255, 0.11);
}

.nav-item-title {
  font-weight: 700;
}

.nav-item-desc,
.sidebar-text,
.panel-note,
.product-meta,
.stack-item p,
.lead-item p,
td,
th {
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.sidebar-card.accent {
  background: linear-gradient(135deg, rgba(228, 133, 33, 0.14), rgba(31, 120, 255, 0.08));
}

.status-card {
  border-color: rgba(35, 121, 95, 0.14);
  background: linear-gradient(135deg, rgba(35, 121, 95, 0.12), rgba(31, 120, 255, 0.06));
}

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.main-panel {
  padding: 24px;
}

.topbar,
.panel-head,
.button-row,
.legend-row,
.identity-card,
.quick-actions,
.mini-stats,
.pricing-row,
.search-box {
  display: flex;
  align-items: center;
}

.topbar,
.panel-head {
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar-actions,
.button-row,
.legend-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.view {
  display: none;
  gap: 20px;
}

.view.is-active {
  display: grid;
}

.hero-card,
.panel,
.kpi-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  padding: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-copy h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-metrics {
  display: grid;
  gap: 14px;
}

.metric-card,
.kpi-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-strong);
}

.metric-card strong,
.kpi-card strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.content-grid,
.dual-grid,
.dashboard-grid,
.category-grid,
.merchant-list,
.stack-list,
.lead-list,
.form-grid,
.region-list {
  display: grid;
  gap: 20px;
}

.content-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.lower-grid {
  align-items: start;
}

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

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

.panel {
  padding: 24px;
}

.search-panel,
.merchant-panel,
.wide-panel {
  min-width: 0;
}

.search-box {
  gap: 12px;
  margin: 22px 0 16px;
}

.search-box input {
  flex: 1;
}

.chip {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.chip.is-selected {
  border-color: rgba(31, 120, 255, 0.24);
  color: var(--blue);
  background: rgba(31, 120, 255, 0.12);
}

.category-grid,
.merchant-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.info-card,
.merchant-card,
.stack-item,
.lead-item,
.identity-card,
.chart-card,
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.info-card,
.stack-item,
.lead-item,
.pricing-card {
  padding: 18px;
}

.card-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(228, 133, 33, 0.12);
  color: var(--amber);
}

.merchant-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.merchant-card-head,
.merchant-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.merchant-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 120, 255, 0.1);
  color: var(--blue);
  font-size: 0.82rem;
}

.badge.warm {
  background: rgba(228, 133, 33, 0.14);
  color: var(--amber);
}

.product-card-large {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
}

.product-media {
  position: relative;
  min-height: 240px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(31, 120, 255, 0.2), transparent 42%),
    linear-gradient(135deg, #242d39, #4b5a68);
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 60% 34%, rgba(255, 255, 255, 0.85), transparent 17%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.9);
  color: var(--bg-strong);
  font-weight: 700;
}

.product-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}

.spec-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(243, 239, 231, 0.75);
}

.spec-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-grid dd {
  margin: 0;
  font-weight: 700;
}

.stack-list {
  margin-top: 18px;
}

.compact-stack {
  gap: 14px;
}

.stack-item strong {
  display: block;
  margin-bottom: 8px;
}

.status-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill.active {
  color: var(--green);
  background: rgba(35, 121, 95, 0.12);
}

.identity-card {
  gap: 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 18px;
}

.quick-actions,
.mini-stats {
  gap: 12px;
}

.mini-stats {
  margin-top: 18px;
  flex-wrap: wrap;
}

.mini-stats article {
  min-width: 120px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(243, 239, 231, 0.78);
}

.mini-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.mini-stats strong {
  font-size: 1.5rem;
}

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

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.lead-list {
  margin-top: 18px;
}

.pricing-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.pricing-row {
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(243, 239, 231, 0.82);
}

.full-button {
  width: 100%;
}

.accent-card {
  background: linear-gradient(135deg, rgba(31, 120, 255, 0.9), rgba(22, 35, 47, 0.96));
  color: white;
}

.accent-card p,
.accent-card span {
  color: rgba(255, 255, 255, 0.82);
}

.chart-card {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 260px;
  margin-top: 18px;
  padding: 22px 18px 16px;
}

.bar-group {
  flex: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.bar-pair {
  display: flex;
  align-items: end;
  gap: 8px;
  width: 100%;
  min-height: 180px;
}

.bar {
  flex: 1;
  border-radius: 16px 16px 6px 6px;
  min-height: 12px;
}

.bar.blue {
  background: linear-gradient(180deg, #7eb3ff, var(--blue));
}

.bar.amber {
  background: linear-gradient(180deg, #ffc375, var(--amber));
}

.bar-label {
  color: var(--muted);
  font-size: 0.84rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-dot.blue {
  background: var(--blue);
}

.legend-dot.amber {
  background: var(--amber);
}

.region-list {
  margin-top: 18px;
}

.region-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
}

.progress-rail {
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 120, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6aa7ff, var(--blue));
}

.table-wrap {
  margin-top: 18px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:hover {
  background: rgba(31, 120, 255, 0.05);
}

.primary-button,
.ghost-button,
.text-button {
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--blue), #5aa4ff);
  box-shadow: 0 12px 24px rgba(31, 120, 255, 0.25);
}

.ghost-button {
  border: 1px solid rgba(22, 35, 47, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
}

.text-button {
  padding: 0;
  color: var(--blue);
}

.site-footer {
  padding: 0 24px 28px;
}

.site-footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 22px;
  border-radius: 20px;
  border: 1px solid rgba(22, 35, 47, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--blue);
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .content-grid,
  .dual-grid,
  .hero-card,
  .category-grid,
  .merchant-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell,
  .main-panel,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .panel-head,
  .search-box,
  .pricing-row,
  .site-footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-grid,
  .form-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
