:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-light: #fff7ed;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

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

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

/* 子站仍可用文字标（CF / SMT 等） */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #fb923c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--brand-dark);
}

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

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

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--brand-light) 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fed7aa;
  color: var(--brand-dark);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
}

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

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

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

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 14px;
}

.metric-item strong {
  color: var(--brand-dark);
}

.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 28px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* 首页四大产品：默认 2 列，极窄屏才单列 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.product-card:hover {
  border-color: #fdba74;
  box-shadow: var(--shadow);
}

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

.product-actions .btn {
  flex: 1;
  min-width: 128px;
}

.btn-disabled,
a.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #e5e7eb;
  color: #6b7280;
  border-color: #e5e7eb;
}

.nav-admin {
  color: var(--brand-dark);
  font-weight: 600;
}

.nav-admin:hover {
  color: var(--brand);
}

.product-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 14px;
  flex: 1;
  margin-bottom: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.feature-item h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

.pain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pain-table th,
.pain-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pain-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

.pain-table tr:last-child td {
  border-bottom: none;
}

.cta-band {
  background: linear-gradient(160deg, #111827 0%, #1f2937 48%, #374151 100%);
  color: #fff;
  padding: 40px 0 44px;
}

.cta-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.cta-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.cta-panel-left h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.cta-lead {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.cta-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-perk p {
  margin: 0;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
}

.cta-contact-card {
  text-align: left;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.cta-contact-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.cta-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fb923c;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cta-email {
  display: block;
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 14px;
  word-break: break-all;
}

.cta-phone:hover {
  color: #fdba74;
}

.cta-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.cta-perk-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.cta-contact-title {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.cta-email:hover {
  color: #fff;
}

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

.cta-band .btn-outline,
.cta-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-outline:hover,
.cta-btn-outline:hover {
  border-color: #fb923c;
  color: #fff;
  background: rgba(249, 115, 22, 0.12);
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--brand);
}

.soft-section {
  background: var(--bg-soft);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .cta-panel {
    padding: 20px 18px;
  }

  .cta-panel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-phone {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
