/* ============================================
   易支付 - 彩虹易支付技术服务平台
   主样式表 - 响应式设计
   目标引擎: 百度 / 搜狗 / 360
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f5f7fa;
  line-height: 1.7;
  min-width: 320px;
}

a { color: #1a73e8; text-decoration: none; transition: color .2s; }
a:hover { color: #1557b0; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header & Nav === */
.header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a73e8;
  white-space: nowrap;
}
.logo span { color: #333; font-weight: 400; font-size: .85rem; margin-left: 6px; }

.nav { display: flex; gap: 8px; }
.nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .95rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover,
.nav a.active { background: #e8f0fe; color: #1a73e8; }

/* 移动端汉堡菜单 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #333;
  padding: 4px 8px;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(160deg, #0d47a1 0%, #1557b0 30%, #1a73e8 60%, #3b82f6 100%);
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 60%);
  animation: float 10s ease-in-out infinite reverse;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  opacity: .92;
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-align: center;
}

.btn-primary {
  background: #fff;
  color: #1a73e8;
}
.btn-primary:hover { background: #e8f0fe; color: #1557b0; }

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

/* === Section Common === */
.section {
  padding: 70px 0;
}

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

.section-title h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 12px;
}

.section-title p {
  color: #888;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Payment Methods === */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.payment-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}

.payment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.payment-card:nth-child(1) { border-top: 3px solid #1677ff; }
.payment-card:nth-child(2) { border-top: 3px solid #07c160; }
.payment-card:nth-child(3) { border-top: 3px solid #12b7f5; }
.payment-card:nth-child(4) { border-top: 3px solid #e8442e; }

.payment-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.payment-icon.alipay  { background: #e6f0ff; color: #1677ff; }
.payment-icon.wechat  { background: #e6ffe6; color: #07c160; }
.payment-icon.qq      { background: #e6edff; color: #12b7f5; }
.payment-icon.union   { background: #fff0e6; color: #e8442e; }

.payment-card h3 { font-size: 1.1rem; color: #333; margin-bottom: 8px; }
.payment-card p  { color: #999; font-size: .9rem; line-height: 1.6; }

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

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 { font-size: 1.05rem; color: #333; margin-bottom: 8px; }
.feature-card p  { color: #999; font-size: .9rem; line-height: 1.6; }

/* === Stats === */
.stats { background: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a73e8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-item .stat-label { color: #999; font-size: .95rem; }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-section p {
  opacity: .9;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-section .btn-primary { display: inline-block; }

/* === Page Header (子页面通用) === */
.page-header {
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #fff;
  text-align: center;
  padding: 50px 0;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: .85;
  font-size: 1rem;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: .9rem;
  color: #999;
}

.breadcrumb a { color: #1a73e8; }

/* === Content Pages === */
.content-section {
  padding: 30px 0 70px;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.content-card h2 {
  font-size: 1.5rem;
  color: #222;
  margin: 28px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
}

.content-card h2:first-child { margin-top: 0; }

.content-card h3 {
  font-size: 1.15rem;
  color: #444;
  margin: 20px 0 8px;
}

.content-card p {
  color: #666;
  margin-bottom: 14px;
  line-height: 1.8;
}

.content-card ul,
.content-card ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.content-card li {
  list-style: disc;
  color: #666;
  line-height: 2;
}

.content-card code {
  background: #f0f4f8;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: .9rem;
  color: #d63384;
}

.content-card pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: .9rem;
  line-height: 1.6;
}

/* === FAQ === */
.faq-list { margin-top: 10px; }

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-q::before {
  content: 'Q';
  color: #1a73e8;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-a {
  color: #666;
  padding-left: 28px;
  line-height: 1.8;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.about-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
}

.about-item h4 {
  color: #1a73e8;
  margin-bottom: 6px;
}

.about-item p { margin-bottom: 0; color: #666; font-size: .95rem; }


/* === SDK下载卡片 === */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.sdk-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  transition: all .2s;
}
.sdk-card:hover { border-color: #1a73e8; box-shadow: 0 2px 12px rgba(26,115,232,.1); }
.sdk-card h3 { font-size: 1rem; margin-bottom: 8px; color: #1a1a2e; }
.sdk-card p { font-size: .82rem; color: #94a3b8; margin-bottom: 14px; }
.sdk-card .btn { padding: 8px 20px; font-size: .85rem; background: #1a73e8; color: #fff; border-radius: 6px; display: inline-block; }
.sdk-card .btn:hover { background: #1557b0; }
@media (max-width: 768px) { .sdk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sdk-grid { grid-template-columns: 1fr; } }

/* === Footer === */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 0 30px;
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer p { line-height: 1.8; }

.footer a { color: #94a3b8; }
.footer a:hover { color: #fff; }

.footer-links li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  line-height: 2;
}

.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* === 站内搜索 (sitemap.html 风格) === */
.search-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.search-list a {
  font-size: 1rem;
  font-weight: 500;
}

.search-list .search-meta {
  display: block;
  font-size: .85rem;
  color: #999;
  margin-top: 2px;
}

/* === 面包屑导航Schema === */
.breadcrumb ol {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #ccc; }

/* ============================================
   响应式 - 平板 (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .header .container { height: 56px; }

  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    gap: 2px;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 12px 16px;
    border-radius: 6px;
  }

  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p  { font-size: 1rem; }

  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.5rem; }

  .payment-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .stat-item .stat-num { font-size: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .content-card { padding: 24px 20px; }
  .content-card h2 { font-size: 1.3rem; }
}

/* ============================================
   响应式 - 手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p  { font-size: .9rem; padding: 0 10px; }

  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }

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

  .payment-card { padding: 28px 20px; }

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

  .stat-item .stat-num { font-size: 1.6rem; }
  .stat-item .stat-label { font-size: .8rem; }

  .page-header { padding: 36px 0; }
  .page-header h1 { font-size: 1.5rem; }
}


/* === 资讯页卡片样式 === */
.news-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 34px 24px;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 5px solid #1a73e8;
  transition: all .25s;
  position: relative;
}
.news-card:hover {
  box-shadow: 0 8px 30px rgba(26,115,232,.12);
  transform: translateX(3px);
}
.news-card .news-num {
  display: inline-block;
  background: linear-gradient(135deg,#1a73e8,#1557b0);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-right: 10px;
  vertical-align: middle;
  letter-spacing: 1px;
}
.news-card h2 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  line-height: 1.5;
}
.news-card h2 a { color: #111; transition: color .2s; }
.news-card h2 a:hover { color: #1a73e8; }
.news-card .news-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.news-card .news-date {
  color: #94a3b8;
  font-size: .82rem;
}
.news-card .news-tag {
  font-size: .72rem;
  background: linear-gradient(135deg,#eff6ff,#dbeafe);
  color: #1a73e8;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}
.news-card .news-stats {
  margin-left: auto;
  font-size: .78rem;
  color: #c0c8d4;
}
.news-card .news-illustration {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px 0 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.news-card .news-body {
  color: #444;
  line-height: 2.1;
  font-size: .96rem;
}
.news-card .news-body p { margin-bottom: 12px; }
.news-card .news-body strong { color: #1a1a2e; }
.news-card .news-body a { color: #1a73e8; text-decoration: underline; }

@media (max-width: 768px) {
  .news-card { padding: 22px 18px 16px; border-left-width: 4px; margin-bottom: 24px; }
  .news-card h2 { font-size: 1.15rem; }
  .news-card .news-stats { margin-left: 0; }
}
}

/* === 接入流程 === */
.steps { max-width: 700px; margin: 0 auto; }
.step-item { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.step-item:last-child { padding-bottom: 0; }
.step-icon-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 60px; }
.step-num { width: 52px; height: 52px; background: linear-gradient(135deg,#1a73e8,#1557b0); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; box-shadow: 0 4px 14px rgba(26,115,232,.25); flex-shrink: 0; }
.step-line { width: 2px; flex: 1; min-height: 30px; background: linear-gradient(to bottom,#1a73e8,#e5e7eb); margin: 8px 0; }
.step-content h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 6px; margin-top: 8px; }
.step-content p { color: #888; font-size: .92rem; line-height: 1.7; }
.step-content a { color: #1a73e8; text-decoration: underline; }
@media (max-width: 768px) { .step-item { gap: 14px; } .step-num { width: 42px; height: 42px; font-size: .95rem; } }

/* === 最新资讯列表 === */
.news-preview { max-width: 700px; margin: 0 auto; }
.news-list { list-style: none; padding: 0; }
.news-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.news-list li:last-child { border-bottom: none; }
.news-list a { color: #333; font-size: 1rem; display: block; padding: 4px 0; transition: color .2s; }
.news-list a:hover { color: #1a73e8; }
.news-list a::before { content: "📄 "; font-size: .85rem; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.05); }
}

.step-icon-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.step-emoji { font-size: 1.5rem; line-height: 1; }
.step-content h3 { margin: 0; }

.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.step-tags span { font-size: .78rem; background: #f0f4f8; color: #555; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.step-tags .btn { font-size: .85rem; padding: 10px 24px; }

.steps-wrapper { display: flex; gap: 40px; align-items: flex-start; max-width: 1000px; margin: 0 auto; }
.steps-wrapper .steps { flex: 1; max-width: 600px; }
.steps-visual { flex-shrink: 0; display: flex; align-items: center; padding-top: 10px; }
.steps-visual svg { max-width: 260px; }
@media (max-width: 900px) { .steps-wrapper { flex-direction: column; align-items: center; } .steps-visual { padding-top: 20px; } }

/* === 核心数据 === */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.hero-stat-card { text-align: center; padding: 32px 20px 28px; background: #f8fafc; border-radius: 14px; transition: all .3s; }
.hero-stat-card:hover { background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.hero-stat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.hero-stat-num { font-size: 2.2rem; font-weight: 800; color: #1a73e8; line-height: 1.2; }
.hero-stat-num span { font-size: 1rem; font-weight: 500; color: #94a3b8; margin-left: 2px; }
.hero-stat-title { font-size: .95rem; color: #1a1a2e; font-weight: 600; margin: 6px 0 4px; }
.hero-stat-desc { font-size: .8rem; color: #94a3b8; line-height: 1.5; }
@media (max-width: 768px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; } .hero-stat-num { font-size: 1.7rem; } }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr; } }
