/* 风格参考 satant.com：红白主色、企业官网版式 */
:root {
  --primary: #c8111b;
  --primary-dark: #a00e16;
  --primary-light: #e11b25;
  --text: #333333;
  --text-muted: #666666;
  --border: #ededed;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --header-h: 72px;
  --max-w: 1200px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.wrap {
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-header.scrolled .nav a {
  color: var(--text);
}

.site-header.scrolled .logo-white {
  display: none;
}

.site-header.scrolled .logo-red {
  display: block;
}

.site-header .logo-red {
  display: none;
}

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

.brand img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: background 0.3s;
}

.site-header.scrolled .menu-toggle span {
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0b0b0c url("../assets/hero-bg.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 11, 12, 0.88) 0%, rgba(200, 17, 27, 0.45) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.25;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin: 0 0 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 17, 27, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-app {
  text-align: center;
}

.hero-app img {
  width: min(280px, 70vw);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.hero-app p {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Section common */
.section {
  padding: 88px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

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

/* Company */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.company-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.company-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--primary);
}

.company-card .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.company-text p {
  margin: 0 0 16px;
  text-align: justify;
  color: #404040;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px 12px;
  background: #fff;
  border: 1px solid var(--border);
}

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

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(200, 17, 27, 0.35);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 17, 27, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Product flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.flow-step::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 28px;
  color: #ccc;
  font-size: 20px;
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  width: 56px;
  height: 56px;
  line-height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.flow-step h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Payment */
.payment-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.payment-info {
  background: #fff;
  padding: 36px;
  border: 1px solid var(--border);
}

.payment-info h3 {
  margin-top: 0;
  color: var(--primary);
}

.payment-info ul {
  padding-left: 20px;
  color: #404040;
}

.payment-info li {
  margin-bottom: 10px;
}

.payment-methods {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.pay-badge {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pay-badge.wechat {
  border-color: #07c160;
  color: #07c160;
}

.pay-badge.alipay {
  border-color: #1677ff;
  color: #1677ff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

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

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

.contact-item {
  background: #fff;
  padding: 32px 28px;
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow);
}

.contact-item h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-item p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.contact-item a {
  color: var(--text);
}

.contact-item a:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: #221715;
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0 80px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .company-grid,
  .payment-box {
    grid-template-columns: 1fr;
  }

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

  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .flow-step::after {
    display: none;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 32px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav.open a {
    color: var(--text);
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, var(--max-w));
  }

  .section {
    padding: 64px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

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

  .footer-top {
    flex-direction: column;
  }
}
