/* ============================================
   PayGuard - 博彩支付方式站 全局样式
   配色: 银行蓝 #004D40 | 钞票绿 #4CAF50 | 信任橙 #FF9100
   字体: Inter
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #004D40;
  --primary-dark: #00332B;
  --primary-light: #006D5B;
  --secondary: #4CAF50;
  --secondary-dark: #388E3C;
  --secondary-light: #66BB6A;
  --accent: #FF9100;
  --accent-dark: #E67C00;
  --accent-light: #FFB74D;
  --bg-main: #F5F7FA;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #757575;
  --text-light: #9E9E9E;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  z-index: 100;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 45px;
  width: auto;
}

.site-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary);
  color: var(--bg-white);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-light);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary-dark) 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,145,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 25px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255,145,0,0.4);
}

.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,145,0,0.5);
  color: white;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.card-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
}

.card-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover {
  color: var(--accent-dark);
}

/* ============================================
   Payment Filter
   ============================================ */
.filter-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tag {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-white);
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.9rem;
}

.comparison-table thead {
  background: var(--primary);
  color: white;
}

.comparison-table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-main);
}

.comparison-table tbody tr:hover {
  background: rgba(0, 77, 64, 0.05);
}

.rating-stars {
  color: var(--accent);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-high { background: #E8F5E9; color: #2E7D32; }
.badge-medium { background: #FFF3E0; color: #E65100; }
.badge-low { background: #FFEBEE; color: #C62828; }
.badge-fast { background: #E3F2FD; color: #1565C0; }

/* ============================================
   Security Alert
   ============================================ */
.security-alert {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 25px 30px;
  margin: 30px 0;
}

.security-alert h3 {
  color: var(--accent-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.alert-item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,145,0,0.3);
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

.alert-icon {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* ============================================
   Payment Guide Icons
   ============================================ */
.payment-icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.payment-icon-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 25px 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.payment-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.payment-icon-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
}

.payment-icon-card h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.payment-icon-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   FinTech Frontier
   ============================================ */
.fintech-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fintech-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.fintech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.fintech-item .number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.fintech-item .content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.fintech-item .content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   KYC Section
   ============================================ */
.kyc-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.kyc-step {
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 180px;
}

.kyc-step .step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 10px;
}

.kyc-step h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.kyc-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   Regional Solutions
   ============================================ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.region-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.region-card-header {
  padding: 18px 20px;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
}

.region-card-body {
  padding: 20px;
}

.region-card-body ul {
  list-style: none;
}

.region-card-body li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-card-body li:last-child {
  border-bottom: none;
}

.region-card-body li::before {
  content: '\2713';
  color: var(--secondary);
  font-weight: 700;
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 50px 0 40px;
  text-align: center;
}

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

.page-header p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Content Area
   ============================================ */
.content-area {
  padding: 40px 0;
}

.content-main {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  line-height: 1.9;
}

.content-main h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}

.content-main h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 25px 0 12px;
}

.content-main h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.content-main p {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.content-main ul,
.content-main ol {
  margin: 15px 0;
  padding-left: 25px;
}

.content-main ul {
  list-style: disc;
}

.content-main ol {
  list-style: decimal;
}

.content-main li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.content-main img {
  border-radius: var(--radius-md);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.content-main blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-main);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.content-main table th {
  background: var(--primary);
  color: white;
  padding: 12px 15px;
  text-align: left;
}

.content-main table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.content-main table tr:nth-child(even) {
  background: var(--bg-main);
}

/* HowTo Steps */
.howto-steps {
  counter-reset: step;
  margin: 20px 0;
}

.howto-step {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  align-items: flex-start;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.howto-step-content h4 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.howto-step-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Pros and Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.pros, .cons {
  padding: 20px;
  border-radius: var(--radius-md);
}

.pros {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
}

.cons {
  background: #FFEBEE;
  border: 1px solid #EF9A9A;
}

.pros h4 { color: #2E7D32; }
.cons h4 { color: #C62828; }

.pros li::before { content: '\2713 '; color: #2E7D32; font-weight: 700; }
.cons li::before { content: '\2717 '; color: #C62828; font-weight: 700; }

.pros ul, .cons ul {
  list-style: none;
  padding-left: 0;
}

/* ============================================
   APP Download Page
   ============================================ */
.app-download-section {
  text-align: center;
  padding: 60px 0;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  color: white;
  transition: var(--transition);
}

.download-btn.ios {
  background: var(--text-primary);
}

.download-btn.android {
  background: var(--secondary);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.app-feature {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.app-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.app-feature .icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 12px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Responsive Design (Mobile First)
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 15px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

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

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

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .content-main {
    padding: 20px;
  }

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

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

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

  .kyc-steps {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .section {
    padding: 35px 0;
  }

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

  .filter-tags {
    gap: 8px;
  }

  .filter-tag {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-secondary-color { color: var(--secondary); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* Lazy load placeholder */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .menu-toggle {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
