/* ========================================
   瑞银信手刷MPOS - 暖中灰安售风
   ======================================== */

/* CSS Variables */
:root {
  --rs-warmgray: #57534E;
  --rs-warmgray-light: #78716C;
  --rs-warmgray-dark: #44403C;
  --sec-blue: #3B82F6;
  --sec-blue-light: #60A5FA;
  --sec-blue-dark: #2563EB;
  --svc-purple: #8B5CF6;
  --svc-purple-light: #A78BFA;
  --svc-purple-dark: #7C3AED;
  --bg-page: #FAFAF9;
  --bg-white: #FFFFFF;
  --text-dark: #1C1917;
  --text-body: #334155;
  --text-muted: #78716C;
  --border-light: #E7E5E4;
  --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);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(87, 83, 78, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--rs-warmgray);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--rs-warmgray), var(--rs-warmgray-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rs-warmgray);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sec-blue);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--sec-blue);
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--sec-blue-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--rs-warmgray);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--sec-blue), var(--sec-blue-dark));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn-outline {
  background: transparent;
  color: var(--rs-warmgray);
  border: 2px solid var(--rs-warmgray);
}

.btn-outline:hover {
  background: var(--rs-warmgray);
  color: white;
}

.btn-purple {
  background: linear-gradient(135deg, var(--svc-purple), var(--svc-purple-dark));
  color: white;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--rs-warmgray) 0%, var(--rs-warmgray-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2378716C' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-blue {
  background: linear-gradient(135deg, var(--sec-blue) 0%, var(--sec-blue-dark) 100%);
}

.hero-purple {
  background: linear-gradient(135deg, var(--svc-purple) 0%, var(--svc-purple-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  color: white;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-badge-icon {
  width: 20px;
  height: 20px;
  background: var(--sec-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 48px;
  color: white;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-smaller {
  padding: 120px 0 60px;
}

.hero-smaller h1 {
  font-size: 36px;
}

/* Page Hero (lower height) */
.page-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--rs-warmgray) 0%, var(--rs-warmgray-light) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 36px;
  color: white;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}

.page-hero-blue {
  background: linear-gradient(135deg, var(--sec-blue) 0%, var(--sec-blue-dark) 100%);
}

.page-hero-purple {
  background: linear-gradient(135deg, var(--svc-purple) 0%, var(--svc-purple-dark) 100%);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-title-accent {
  color: var(--sec-blue);
}

.section-title-purple {
  color: var(--svc-purple);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card-hover {
  transition: all var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--sec-blue);
}

.card-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--svc-purple);
}

.card-icon-gray {
  background: rgba(87, 83, 78, 0.1);
  color: var(--rs-warmgray);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Feature Layouts
   ======================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  background: linear-gradient(135deg, var(--sec-blue) 0%, var(--svc-purple) 100%);
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.feature-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-highlight {
  color: var(--sec-blue);
  font-weight: 700;
}

/* Asymmetric Cards */
.cards-staggered {
  display: grid;
  grid-template-columns: 55% 43%;
  gap: 24px;
}

.cards-staggered .card:nth-child(2) {
  margin-top: 40px;
}

.stats-card {
  text-align: center;
  padding: 40px 32px;
}

.stats-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stats-number-blue {
  color: var(--sec-blue);
}

.stats-number-purple {
  color: var(--svc-purple);
}

.stats-label {
  font-size: 16px;
  color: var(--text-muted);
}

/* ========================================
   Lifetime Section (left-aligned)
   ======================================== */
.lifetime-section {
  text-align: left;
  padding-left: 0;
}

.lifetime-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.promise-item {
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.promise-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--svc-purple);
  margin-bottom: 8px;
}

.promise-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.promise-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.purple-accent {
  color: var(--svc-purple);
  font-weight: 700;
}

.blue-accent {
  color: var(--sec-blue);
  font-weight: 700;
}

/* ========================================
   Tables
   ======================================== */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--rs-warmgray);
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.comparison-table th:first-child {
  width: 200px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(87, 83, 78, 0.03);
}

.table-highlight {
  background: rgba(59, 130, 246, 0.08);
}

.table-check {
  color: #10B981;
  font-weight: 700;
}

.table-cross {
  color: #EF4444;
  font-weight: 700;
}

.table-text-rs {
  color: var(--rs-warmgray);
  font-weight: 600;
}

/* Compact Table */
.table-compact th,
.table-compact td {
  padding: 14px 16px;
}

.table-compact th:first-child {
  width: 180px;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background: rgba(87, 83, 78, 0.03);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--rs-warmgray) 0%, var(--rs-warmgray-light) 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.cta-section .btn-primary {
  font-size: 18px;
  padding: 16px 36px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--rs-warmgray) 0%, var(--rs-warmgray-light) 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cards-staggered {
    grid-template-columns: 1fr;
  }
  
  .cards-staggered .card:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .lifetime-promises {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .comparison-table {
    font-size: 14px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
  }
  
  .comparison-table th:first-child {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .card {
    padding: 24px;
  }
  
  .stats-number {
    font-size: 36px;
  }
}

/* ========================================
   Service Flow Box
   ======================================== */
.service-flow {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
}

.service-flow h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 32px;
  color: var(--svc-purple);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 20px;
  color: var(--svc-purple);
  font-size: 20px;
}

.flow-step:last-child::after {
  display: none;
}

.flow-icon {
  width: 48px;
  height: 48px;
  background: var(--svc-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Security Cards - Staggered Layout
   ======================================== */
.security-cards {
  display: grid;
  gap: 24px;
}

.security-card-row {
  display: grid;
  gap: 24px;
}

.security-card-row.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.security-card-full {
  grid-template-columns: 1fr;
}

.security-card-colored {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.mb-8 {
  margin-bottom: 32px;
}
