/* ========================================
   银联商务流量卡POS - 岩灰稳终风样式
   ======================================== */

/* CSS变量 */
:root {
  --ums-gray: #475569;
  --ums-gray-dark: #334155;
  --ums-gray-light: #64748B;
  --ums-gray-lighter: #94A3B8;
  --stable-red: #DC2626;
  --stable-red-dark: #B91C1C;
  --service-green: #059669;
  --service-green-dark: #047857;
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #334155;
  --text-body: #475569;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(71, 85, 105, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(71, 85, 105, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(71, 85, 105, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(71, 85, 105, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 数字英文字体 */
.font-dm {
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-white);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ums-gray);
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-logo span {
  font-size: 18px;
  font-weight: 600;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--stable-red);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--stable-red);
  border-radius: 1px;
}

/* 汉堡菜单 */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ums-gray);
  transition: var(--transition);
}

.navbar-cta {
  background: linear-gradient(135deg, var(--stable-red), var(--stable-red-dark));
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.navbar-cta:hover {
  background: linear-gradient(135deg, var(--stable-red-dark), #991B1B);
  transform: translateY(-1px);
}

.navbar-cta::after {
  display: none !important;
}

/* 移动端导航 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text-body);
  font-size: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav-cta {
  display: block;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--stable-red), var(--stable-red-dark));
  color: white !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--ums-gray) 0%, var(--ums-gray-light) 100%);
  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='%23ffffff' fill-opacity='0.03'%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-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight-red {
  color: #FCA5A5;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--stable-red), var(--stable-red-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--ums-gray);
}

.btn-green {
  background: linear-gradient(135deg, var(--service-green), var(--service-green-dark));
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

/* 页面Hero */
.page-hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero.stable {
  background: linear-gradient(135deg, var(--stable-red), var(--stable-red-dark));
}

.page-hero.service {
  background: linear-gradient(135deg, var(--service-green), var(--service-green-dark));
}

.page-hero.compare {
  background: linear-gradient(135deg, var(--ums-gray), var(--ums-gray-light));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.page-hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   通用区块
   ======================================== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--bg-page);
}

.section-white {
  background: var(--bg-white);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-title-left {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* ========================================
   稳终板块（左图右文）
   ======================================== */
.stable-life {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stable-life-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.stable-life-image img {
  width: 100%;
  height: auto;
  display: block;
}

.stable-life-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.stable-life-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.stable-life-content .highlight {
  color: var(--stable-red);
  font-weight: 700;
}

/* ========================================
   功能卡片（错落布局）
   ======================================== */
.feature-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-card.wide {
  flex: 1.3;
  min-width: 320px;
}

.feature-card.narrow {
  flex: 1;
  min-width: 280px;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ums-gray), var(--ums-gray-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-card-number {
  font-size: 48px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--stable-red);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-card-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   售后板块
   ======================================== */
.service-promises {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-promise {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.service-promise-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--service-green), var(--service-green-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: white;
}

.service-promise-content h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.service-promise-content p {
  font-size: 16px;
  color: var(--text-body);
}

.service-promise-content .highlight-green {
  color: var(--service-green);
  font-weight: 600;
}

/* ========================================
   对比表格
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th {
  background: var(--ums-gray);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
}

.compare-table th:first-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 var(--radius-lg) 0 0;
}

.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  color: var(--text-body);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table .check {
  color: var(--service-green);
  font-weight: 600;
}

.compare-table .cross {
  color: var(--ums-gray-lighter);
}

.compare-table .highlight-col {
  background: rgba(220, 38, 38, 0.05);
  color: var(--stable-red);
  font-weight: 600;
}

/* ========================================
   FAQ手风琴
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--stable-red);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.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: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
}

/* ========================================
   底部申请区
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--ums-gray) 0%, var(--ums-gray-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .highlight {
  color: #FCA5A5;
  font-weight: 600;
}

.cta-section .btn {
  padding: 16px 40px;
  font-size: 18px;
}

/* ========================================
   售后说明框
   ======================================== */
.promise-box {
  background: var(--bg-white);
  border: 2px solid var(--service-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 40px;
}

.promise-box h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--service-green);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.promise-box ul {
  list-style: none;
}

.promise-box li {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.promise-box li:last-child {
  border-bottom: none;
}

.promise-box li svg {
  flex-shrink: 0;
  color: var(--service-green);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--ums-gray) 0%, var(--ums-gray-light) 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  padding: 8px 0;
  font-size: 15px;
  opacity: 0.8;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
  .stable-life {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-cards {
    flex-direction: column;
  }

  .feature-card {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .page-hero-title {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .compare-table {
    font-size: 14px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }

  .cta-section h3 {
    font-size: 24px;
  }
}

/* ========================================
   辅助类
   ======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mt-8 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 32px;
}
