/* ========================================
   中付支付移动POS - 深蓝青匹减风格
   ======================================== */

/* CSS Variables */
:root {
  --zf-teal: #155E75;
  --zf-teal-light: #0E7490;
  --match-orange: #F59E0B;
  --new-green: #10B981;
  --bg-page: #F0FDFA;
  --text-dark: #042F2E;
  --text-body: #334155;
  --text-light: #64748B;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(5, 30, 45, 0.05);
  --shadow-md: 0 4px 6px rgba(5, 30, 45, 0.07);
  --shadow-lg: 0 10px 25px rgba(5, 30, 45, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'DM Sans', sans-serif;
  --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(21, 94, 117, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--zf-teal);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--zf-teal), var(--zf-teal-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--zf-teal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--match-orange);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-cta {
  background: linear-gradient(135deg, var(--match-orange), #D97706);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--zf-teal);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--zf-teal) 0%, var(--zf-teal-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--match-orange);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--match-orange), #D97706);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  color: var(--zf-teal);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   匹减板块
   ======================================== */
.match-discount {
  background: var(--white);
}

.match-discount .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.match-discount-img {
  background: linear-gradient(135deg, var(--zf-teal), var(--zf-teal-light));
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.match-discount-img::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--match-orange);
  border-radius: 50%;
  opacity: 0.2;
  top: -50px;
  right: -50px;
}

.match-discount-img::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--new-green);
  border-radius: 50%;
  opacity: 0.2;
  bottom: -30px;
  left: -30px;
}

.img-placeholder {
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 1;
}

.img-placeholder .big-text {
  font-size: 48px;
  font-family: var(--font-en);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.match-discount-content h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.match-discount-content p {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 16px;
}

.highlight-orange {
  color: var(--match-orange);
  font-weight: 700;
}

.highlight-green {
  color: var(--new-green);
  font-weight: 700;
}

@media (max-width: 768px) {
  .match-discount .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .match-discount-img {
    height: 280px;
  }
}

/* ========================================
   智能匹配商户板块
   ======================================== */
.smart-match-section {
  background: var(--bg-page);
}

.cards-asymmetric {
  display: grid;
  grid-template-columns: 55% 43%;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--match-orange), #D97706);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.card-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card-stat .number {
  font-size: 42px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--zf-teal);
  line-height: 1;
}

.card-stat .unit {
  font-size: 16px;
  color: var(--text-light);
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.cards-row .card {
  text-align: center;
  padding: 28px 20px;
}

.cards-row .card .card-stat {
  justify-content: center;
}

@media (max-width: 768px) {
  .cards-asymmetric {
    grid-template-columns: 1fr;
  }

  .cards-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   新户立减板块
   ======================================== */
.new-discount-section {
  background: var(--white);
}

.new-discount-content {
  text-align: left;
  max-width: 700px;
}

.new-discount-content h2 {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.new-discount-content h2 span {
  color: var(--new-green);
}

.new-discount-content .subtitle {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 24px;
}

.new-discount-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-tag {
  background: var(--bg-page);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--zf-teal);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-tag .icon {
  color: var(--new-green);
}

.btn-green {
  background: linear-gradient(135deg, var(--new-green), #059669);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
}

/* ========================================
   对比表格
   ======================================== */
.compare-section {
  background: var(--bg-page);
}

.compare-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}

.compare-table th {
  background: var(--zf-teal);
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.compare-table th:first-child {
  font-size: 16px;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(240, 253, 250, 0.5);
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.check-icon {
  color: var(--new-green);
  font-size: 20px;
}

.cross-icon {
  color: #CBD5E1;
  font-size: 20px;
}

@media (max-width: 768px) {
  .compare-table {
    overflow-x: auto;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ========================================
   底部申请区
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--zf-teal) 0%, var(--zf-teal-light) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: white;
  margin-bottom: 16px;
}

.cta-section h2 span {
  color: var(--new-green);
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--zf-teal) 0%, var(--zf-teal-light) 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--zf-teal);
}

.faq-question .icon {
  font-size: 20px;
  transition: var(--transition);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ========================================
   页面标题区
   ======================================== */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero.orange-bg {
  background: linear-gradient(135deg, var(--match-orange) 0%, #D97706 100%);
}

.page-hero.green-bg {
  background: linear-gradient(135deg, var(--new-green) 0%, #059669 100%);
}

.page-hero.teal-bg {
  background: linear-gradient(135deg, var(--zf-teal) 0%, var(--zf-teal-light) 100%);
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  color: white;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   优势卡片（错落布局）
   ======================================== */
.feature-cards {
  display: grid;
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.feature-card.wide {
  grid-column: span 1;
}

.feature-card.colored {
  background: linear-gradient(135deg, var(--zf-teal), var(--zf-teal-light));
  color: white;
}

.feature-card.colored h3,
.feature-card.colored p {
  color: white;
}

.feature-card.colored .card-stat .number {
  color: white;
}

.feature-card.colored .card-stat .unit {
  color: rgba(255, 255, 255, 0.8);
}

.feature-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .feature-three-col {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   优惠说明框
   ======================================== */
.discount-info-box {
  background: rgba(16, 185, 129, 0.08);
  border: 2px dashed var(--new-green);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.discount-info-box h3 {
  font-size: 24px;
  color: var(--new-green);
  margin-bottom: 24px;
}

.discount-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.discount-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-dark);
}

.discount-rule .num {
  width: 32px;
  height: 32px;
  background: var(--new-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* ========================================
   对比表（精简版）
   ======================================== */
.compare-simple {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-simple table {
  width: 100%;
  border-collapse: collapse;
}

.compare-simple th,
.compare-simple td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #E2E8F0;
}

.compare-simple th {
  background: var(--bg-page);
  font-weight: 600;
  font-size: 14px;
}

.compare-simple th:first-child,
.compare-simple td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-simple .highlight-col {
  background: rgba(16, 185, 129, 0.08);
}

.compare-simple tr:last-child td {
  border-bottom: none;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary, .btn-green {
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    padding: 120px 0 60px;
  }
}
