/* ========================================
   联动优势移动POS - 深玫瑰墨额优风
   ======================================== */

/* CSS变量 */
:root {
  --ump-rose: #281A22;
  --ump-rose-light: #382A32;
  --limit-purple: #8B5CF6;
  --limit-purple-light: #A78BFA;
  --offer-gold: #F59E0B;
  --offer-gold-light: #FBBF24;
  --bg-page: #EBE5E8;
  --bg-white: #FFFFFF;
  --text-dark: #0D080A;
  --text-body: #334155;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(40, 26, 34, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(40, 26, 34, 0.1), 0 2px 4px -1px rgba(40, 26, 34, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(40, 26, 34, 0.1), 0 4px 6px -2px rgba(40, 26, 34, 0.05);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--limit-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--limit-purple-light);
}

/* ========================================
   导航栏
   ======================================== */
.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 20px rgba(40, 26, 34, 0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ump-rose);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  color: var(--text-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ump-rose);
  background: rgba(40, 26, 34, 0.05);
}

.nav-cta {
  background: var(--ump-rose) !important;
  color: white !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--ump-rose-light) !important;
}

/* 汉堡菜单 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ump-rose);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(-5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--limit-purple-light);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  color: white;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--offer-gold) 0%, var(--offer-gold-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--ump-rose);
  border: 2px solid var(--ump-rose);
}

.btn-outline:hover {
  background: var(--ump-rose);
  color: white;
}

/* ========================================
   区块通用样式
   ======================================== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--ump-rose);
  color: white;
}

.section-light {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
}

/* 强调色 */
.text-purple {
  color: var(--limit-purple);
}

.text-gold {
  color: var(--offer-gold);
}

.text-rose {
  color: var(--ump-rose);
}

/* ========================================
   卡片
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-purple {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
}

.card-gold {
  background: linear-gradient(135deg, var(--offer-gold) 0%, var(--offer-gold-light) 100%);
  color: white;
}

.card-rose {
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  color: white;
}

.card-number {
  font-family: var(--font-num);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.card-number span {
  font-size: 1.5rem;
}

.card-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ========================================
   特色展示
   ======================================== */
.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 错落布局 */
.stagger-grid {
  display: grid;
  gap: 24px;
}

.stagger-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.stagger-item:nth-child(1) {
  grid-column: span 1;
  width: 55%;
}

.stagger-item:nth-child(2) {
  grid-column: span 1;
  width: 43%;
  margin-left: auto;
}

/* ========================================
   对比表格
   ======================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: var(--ump-rose);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.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 tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--text-body);
}

.compare-table .highlight {
  background: rgba(139, 92, 246, 0.05);
}

.compare-table .highlight strong {
  color: var(--limit-purple);
}

.check {
  color: #10B981;
  font-weight: bold;
}

.cross {
  color: #EF4444;
  font-weight: bold;
}

/* ========================================
   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;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(40, 26, 34, 0.02);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  color: var(--limit-purple);
}

.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-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   底部申请区
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  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.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================
   表单
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--limit-purple);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .feature-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .stagger-item:nth-child(1),
  .stagger-item:nth-child(2) {
    width: 100%;
  }

  .feature-grid-2,
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .compare-table {
    font-size: 0.875rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px;
  }

  .card-number {
    font-size: 2.5rem;
  }
}

/* ========================================
   页面标题区
   ======================================== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.page-hero-purple {
  background: linear-gradient(135deg, var(--limit-purple) 0%, var(--limit-purple-light) 100%);
  color: white;
}

.page-hero-purple h1,
.page-hero-purple p {
  color: white;
}

.page-hero-gold {
  background: linear-gradient(135deg, var(--offer-gold) 0%, var(--offer-gold-light) 100%);
  color: white;
}

.page-hero-gold h1,
.page-hero-gold p {
  color: white;
}

.page-hero-rose {
  background: linear-gradient(135deg, var(--ump-rose) 0%, var(--ump-rose-light) 100%);
  color: white;
}

.page-hero-rose h1,
.page-hero-rose p {
  color: white;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   文字布局
   ======================================== */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

/* 左右布局 */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
}

.split-content h2 {
  margin-bottom: 16px;
}

.split-content p {
  color: var(--text-light);
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 列表样式 */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-body);
}

.feature-list .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--limit-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 通知框 */
.notice-box {
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid var(--limit-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.notice-box h4 {
  color: var(--limit-purple);
  margin-bottom: 8px;
}

.notice-box ul {
  list-style: none;
  color: var(--text-body);
}

.notice-box li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.notice-box li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--limit-purple);
}

/* 高亮数字 */
.highlight-number {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--limit-purple);
  font-size: 1.25em;
}

/* 金色高亮 */
.highlight-gold {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--offer-gold);
}
