/* ========================================
   银联商务传统大机 - 深海军蓝实免风
   ======================================== */

:root {
  /* 主色调 */
  --ums-navy: #1E3A5F;
  --ums-navy-light: #1E40AF;
  --instant-orange: #F97316;
  --free-green: #10B981;
  
  /* 辅助色 */
  --white: #FFFFFF;
  --bg-page: #EFF6FF;
  --text-dark: #172554;
  --text-body: #334155;
  --text-light: #64748B;
  --border-color: #CBD5E1;
  
  /* 渐变 */
  --gradient-navy: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 100%);
  --gradient-orange: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  --gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
  
  /* 阴影 */
  --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.15);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

/* ========================================
   基础重置
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* 数字英文字体 */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--white);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.15);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ums-navy);
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-nav a {
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--instant-orange);
  transition: width 0.2s;
}

.navbar-nav a:hover {
  color: var(--ums-navy);
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-nav a.active {
  color: var(--ums-navy);
}

.navbar-nav a.active::after {
  width: 100%;
}

.navbar-cta {
  background: var(--gradient-orange);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 汉堡菜单 */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--space-sm);
}

.navbar-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ums-navy);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: var(--space-md) 0;
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .mobile-cta {
  display: block;
  background: var(--gradient-orange);
  color: var(--white);
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  min-height: 100vh;
  background: var(--gradient-navy);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.2) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: var(--instant-orange);
  padding: var(--space-xs) var(--space-md);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-orange);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--ums-navy);
}

/* Hero 实橙风格变体 */
.hero-orange {
  background: var(--gradient-orange);
}

.hero-orange::before {
  background: 
    radial-gradient(circle at 30% 70%, rgba(30, 58, 95, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(234, 88, 12, 0.2) 0%, transparent 50%);
}

.hero-orange h1 {
  color: var(--white);
}

.hero-orange .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero 免绿风格变体 */
.hero-green {
  background: var(--gradient-green);
}

.hero-green::before {
  background: 
    radial-gradient(circle at 30% 70%, rgba(5, 150, 105, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
}

/* ========================================
   通用容器
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   实免板块
   ======================================== */
.featured-block {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.featured-image {
  flex: 0 0 45%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.featured-image img {
  width: 100%;
  height: auto;
}

.featured-content {
  flex: 1;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.featured-content p {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.8;
}

.highlight-orange {
  color: var(--instant-orange);
  font-weight: 700;
}

.highlight-green {
  color: var(--free-green);
  font-weight: 700;
}

/* ========================================
   卡片
   ======================================== */
.cards-container {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.card-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--instant-orange);
}

.card-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--free-green);
}

.card-icon.navy {
  background: rgba(30, 58, 95, 0.1);
  color: var(--ums-navy);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.card-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--instant-orange);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
}

.card-number.green {
  color: var(--free-green);
}

/* 错落卡片布局 */
.staggered-cards {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.staggered-cards .card:nth-child(1) {
  flex: 0 0 55%;
}

.staggered-cards .card:nth-child(2) {
  flex: 0 0 43%;
  margin-top: var(--space-3xl);
}

.staggered-cards .card:nth-child(3) {
  flex: 0 0 38%;
  margin-top: var(--space-xl);
}

/* 色块背景卡片 */
.card-block {
  background: var(--ums-navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.card-block h3 {
  color: var(--white);
}

.card-block p {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   免费办理区域
   ======================================== */
.free-section {
  text-align: left;
  max-width: 700px;
}

.free-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.free-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--free-green);
  margin-bottom: var(--space-lg);
  font-family: 'DM Sans', sans-serif;
}

.free-promises {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.free-promise {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-body);
  font-weight: 500;
}

.free-promise svg {
  width: 20px;
  height: 20px;
  color: var(--free-green);
}

.btn-free {
  background: var(--gradient-green);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-free:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   对比表格
   ======================================== */
.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: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.compare-table th {
  background: var(--ums-navy);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.compare-table td {
  color: var(--text-body);
  font-size: 0.9375rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .highlight {
  color: var(--instant-orange);
  font-weight: 700;
}

.compare-table .highlight-green {
  color: var(--free-green);
  font-weight: 700;
}

.compare-table .check {
  color: var(--free-green);
}

.compare-table .cross {
  color: var(--text-light);
}

/* 宽松行间距表格 */
.table-spacious th,
.table-spacious td {
  padding: var(--space-lg) var(--space-xl);
}

.table-spacious th {
  font-size: 1.125rem;
}

/* ========================================
   FAQ 手风琴
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  background: var(--white);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(30, 58, 95, 0.03);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--ums-navy);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-body);
  line-height: 1.7;
}

/* ========================================
   底部申请区
   ======================================== */
.cta-section {
  background: var(--gradient-navy);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.cta-section .highlight {
  color: var(--instant-orange);
}

.cta-section .btn-primary {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.25rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--gradient-navy);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.9);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .featured-block {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .featured-image {
    flex: none;
    width: 100%;
  }
  
  .staggered-cards {
    flex-direction: column;
  }
  
  .staggered-cards .card:nth-child(1),
  .staggered-cards .card:nth-child(2),
  .staggered-cards .card:nth-child(3) {
    flex: none;
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .navbar-nav,
  .navbar-cta {
    display: none;
  }
  
  .navbar-hamburger {
    display: flex;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .compare-table {
    font-size: 0.875rem;
  }
  
  .compare-table th,
  .compare-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-inner {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .featured-block {
    padding: var(--space-xl);
  }
  
  .card-number {
    font-size: 2.25rem;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
}

/* ========================================
   实用工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.hidden { display: none; }
.visible { display: block; }
