:root {
  --sinopay-rose: #9F1239;
  --sinopay-rose-light: #BE123C;
  --sinopay-rose-bg: #FFF1F2;
  --safe-blue: #3B82F6;
  --safe-blue-light: #DBEAFE;
  --free-green: #10B981;
  --free-green-light: #D1FAE5;
  --text-dark: #4C0519;
  --text-body: #334155;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
}

.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(159, 18, 57, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--sinopay-rose);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--sinopay-rose), var(--sinopay-rose-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-body);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sinopay-rose);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sinopay-rose);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--safe-blue) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #2563EB !important;
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--sinopay-rose);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--sinopay-rose) 0%, var(--sinopay-rose-light) 100%);
  padding: 160px 0 100px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.03);
  transform: rotate(-15deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 22px;
  opacity: 0.9;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--safe-blue), #2563EB);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--sinopay-rose);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-rose {
  background: var(--sinopay-rose-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-muted);
}

/* Anmian Block */
.anmian-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.anmian-block .text {
  padding-right: 40px;
}

.anmian-block h3 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}

.anmian-block h3 .blue {
  color: var(--safe-blue);
  font-weight: 700;
}

.anmian-block p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.8;
}

.anmian-block .image {
  background: linear-gradient(135deg, var(--sinopay-rose-bg), #FEE2E2);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.anmian-block .image-placeholder {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  box-shadow: var(--shadow-md);
}

.anmian-block .success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--free-green), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
}

.anmian-block .amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--free-green);
  font-family: 'DM Sans', sans-serif;
}

.anmian-block .desc {
  color: var(--text-muted);
  margin-top: 8px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F1F5F9;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--safe-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h4 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
}

.card .number {
  font-size: 48px;
  font-weight: 700;
  color: var(--safe-blue);
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

/* Unequal Cards */
.unequal-cards {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}

.unequal-cards .card {
  position: relative;
  overflow: hidden;
}

.unequal-cards .card:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.unequal-cards .card:nth-child(2) .card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.unequal-cards .card:nth-child(2) .mini-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F1F5F9;
}

.unequal-cards .card:nth-child(2) .mini-card h5 {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.unequal-cards .card:nth-child(2) .mini-card .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--safe-blue);
  font-family: 'DM Sans', sans-serif;
}

/* Free Section */
.free-section {
  text-align: left;
}

.free-section .highlight {
  color: var(--free-green);
  font-weight: 700;
}

.free-section .promise {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.free-section .promise span {
  background: var(--free-green-light);
  color: var(--free-green);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

.btn-free {
  display: inline-block;
  background: linear-gradient(135deg, var(--free-green), #059669);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  transition: var(--transition);
}

.btn-free:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid #F1F5F9;
}

.compare-table th {
  background: var(--sinopay-rose);
  color: var(--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: #FAFAFA;
}

.compare-table .check {
  color: var(--free-green);
  font-size: 20px;
}

.compare-table .cross {
  color: #DC2626;
  font-size: 20px;
}

.compare-table .highlight-col {
  background: #FEF2F2;
}

.compare-table .brand-col {
  color: var(--sinopay-rose);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--sinopay-rose) 0%, var(--sinopay-rose-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-section h2 .blue {
  color: var(--safe-blue);
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* Page Hero */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-hero.blue {
  background: linear-gradient(135deg, var(--safe-blue), #2563EB);
}

.page-hero.green {
  background: linear-gradient(135deg, var(--free-green), #059669);
}

.page-hero.rose {
  background: linear-gradient(135deg, var(--sinopay-rose), var(--sinopay-rose-light));
}

.page-hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* Safety Cards Layout */
.safety-cards {
  display: grid;
  gap: 30px;
}

.safety-card-row {
  display: grid;
  gap: 24px;
}

.safety-card-row:first-child {
  grid-template-columns: 1.5fr 1fr;
}

.safety-card-row:nth-child(2) {
  grid-template-columns: repeat(3, 1fr);
}

.safety-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F1F5F9;
}

.safety-card.accent {
  background: linear-gradient(135deg, var(--safe-blue-light), #EFF6FF);
  border-color: var(--safe-blue);
}

.safety-card h4 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.safety-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.safety-card .big-num {
  font-size: 56px;
  font-weight: 700;
  color: var(--safe-blue);
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

/* Free Scenarios */
.free-scenarios {
  display: grid;
  gap: 40px;
}

.free-scenario {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.free-scenario:nth-child(even) {
  direction: rtl;
}

.free-scenario:nth-child(even) > * {
  direction: ltr;
}

.free-scenario .num-box {
  background: linear-gradient(135deg, var(--free-green-light), #ECFDF5);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
}

.free-scenario .big-num {
  font-size: 72px;
  font-weight: 700;
  color: var(--free-green);
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.free-scenario .big-num span {
  font-size: 32px;
}

.free-scenario .text h4 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.free-scenario .text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Rules Box */
.rules-box {
  background: var(--white);
  border: 2px dashed var(--free-green);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.rules-box h3 {
  font-size: 24px;
  color: var(--free-green);
  margin-bottom: 32px;
  text-align: center;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--free-green-light);
  border-radius: var(--radius-md);
}

.rule-item .icon {
  width: 40px;
  height: 40px;
  background: var(--free-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.rule-item .text h5 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.rule-item .text p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 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);
  border: 1px solid #F1F5F9;
  overflow: hidden;
}

.faq-question {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.faq-question:hover {
  background: #FAFAFA;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--sinopay-rose), var(--sinopay-rose-light));
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .unequal-cards {
    grid-template-columns: 1fr;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .safety-card-row:first-child {
    grid-template-columns: 1fr;
  }
  
  .safety-card-row:nth-child(2) {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .anmian-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .anmian-block .text {
    padding-right: 0;
    order: 1;
  }
  
  .anmian-block .image {
    order: 2;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero h1 {
    font-size: 32px;
  }
  
  .free-scenario {
    grid-template-columns: 1fr;
  }
  
  .free-scenario:nth-child(even) {
    direction: ltr;
  }
  
  .rules-list {
    grid-template-columns: 1fr;
  }
  
  .compare-table {
    font-size: 14px;
  }
  
  .compare-table th,
  .compare-table td {
    padding: 12px 16px;
  }
}

/* Mobile menu toggle animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
