/* ============================================================
   NO钱包官网 - 全局样式
   针对2026年百度SEO优化：独立CSS文件，压缩友好，移动优先
   ============================================================ */

/* ---------- CSS变量 ---------- */
:root {
  --red: #C8102E;
  --red-dark: #8B0A1F;
  --red-light: #F5E6E9;
  --gold: #D4A017;
  --gold-light: #FDF6E0;
  --ink: #1A1A2E;
  --ink-light: #3D3D5C;
  --gray: #6B6B80;
  --gray-light: #F4F4F6;
  --border: #E8E4DC;
  --bg: #FAFAF7;
  --white: #FFFFFF;
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26,26,46,0.06);
  --shadow-md: 0 8px 32px rgba(26,26,46,0.10);
  --shadow-lg: 0 24px 64px rgba(26,26,46,0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--ink); line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(17px, 2.5vw, 20px); }
p { color: var(--gray); line-height: 1.85; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 14px;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--ink);
}
.logo-text span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-light);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: var(--red-dark); color: white; }
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- 面包屑（SEO重要） ---------- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}
.breadcrumb-list a { color: var(--red); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px; font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--red); }
.hero-desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-primary {
  background: var(--red);
  color: white;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  transition: background var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); color: white; }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  color: var(--ink);
}
.stat-label { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ---------- 手机模型 ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 256px;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #0F0F1A;
  border-radius: 24px;
  overflow: hidden;
}
.phone-topbar {
  background: #161628;
  padding: 12px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-topbar-title { color: #9090B0; font-size: 10px; letter-spacing: 1px; }
.phone-dot { color: var(--red); font-size: 9px; }
.phone-balance {
  background: var(--red);
  padding: 22px 16px 18px;
  text-align: center;
}
.phone-bal-label { color: rgba(255,255,255,0.7); font-size: 10px; }
.phone-bal-num {
  color: white;
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700;
  margin: 4px 0;
}
.phone-bal-change { color: rgba(255,255,255,0.75); font-size: 11px; }
.phone-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #1A1A2E;
  padding: 14px 10px;
}
.phone-action { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.phone-action-icon {
  width: 34px; height: 34px;
  background: #232338;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.phone-action-icon svg {
  width: 15px; height: 15px;
  stroke: #9090B0; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
.phone-action-label { color: #505078; font-size: 9px; }
.phone-txlist { background: #0F0F1A; padding: 12px; }
.tx-header { color: #505078; font-size: 9px; letter-spacing: 1px; margin-bottom: 8px; }
.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #1A1A2E;
}
.tx-item:last-child { border: none; }
.tx-left { display: flex; align-items: center; gap: 8px; }
.tx-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.tx-dot.in { background: #0E3D2E; color: #4ADE80; }
.tx-dot.out { background: #3D1220; color: #F87171; }
.tx-name { color: #B0B0D0; font-size: 10px; font-weight: 500; }
.tx-date { color: #404060; font-size: 8px; }
.tx-amt { font-size: 10px; font-weight: 500; }
.tx-amt.in { color: #4ADE80; }
.tx-amt.out { color: #F87171; }

/* ---------- 通用Section ---------- */
.section { padding: 72px 0; }
.section-bg { background: var(--white); }
.section-tag {
  font-size: 12px; font-weight: 500;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title { margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--gray); max-width: 500px; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ---------- 功能卡片 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feat-card:hover {
  box-shadow: 0 8px 32px rgba(200,16,46,0.08);
  transform: translateY(-3px);
}
.feat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon.red { background: var(--red-light); }
.feat-icon.gold { background: var(--gold-light); }
.feat-icon.ink { background: #EEEEF5; }
.feat-icon svg {
  width: 22px; height: 22px;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  fill: none;
}
.feat-icon.red svg { stroke: var(--red); }
.feat-icon.gold svg { stroke: var(--gold); }
.feat-icon.ink svg { stroke: var(--ink); }
.feat-name { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--gray); line-height: 1.75; margin-bottom: 0; }

/* ---------- 步骤 ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 1px;
  background: var(--border);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--gray);
  position: relative; z-index: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.step.active .step-num,
.step:hover .step-num {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.step-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--gray); padding: 0 12px; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 16px;
  user-select: none;
}
.faq-icon {
  color: var(--red);
  font-size: 22px;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
  padding-bottom: 20px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ---------- 文章内容（SEO核心） ---------- */
.article-body h2 { margin: 36px 0 14px; font-size: 22px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 500; color: var(--ink); margin: 24px 0 10px; }
.article-body p { font-size: 15px; color: var(--gray); line-height: 1.9; margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 15px; color: var(--gray); line-height: 1.85; margin-bottom: 8px; }
.article-body li::marker { color: var(--red); }
.kw { color: var(--red); font-weight: 500; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.article-tag {
  background: var(--red-light);
  color: var(--red);
  font-size: 11px; font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}
.article-meta { font-size: 12px; color: var(--gray); margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-img {
  height: 160px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
}
.news-card-img span { font-size: 40px; }
.news-card-body { padding: 20px; }
.news-card-cat {
  font-size: 11px; font-weight: 500;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.news-card-title { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.news-card-date { font-size: 12px; color: var(--gray); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--red);
  padding: 72px 0;
  text-align: center;
}
.cta-title { color: white; margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 32px; }
.cta-btn {
  background: white;
  color: var(--red);
  padding: 14px 38px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 700;
  display: inline-block;
  transition: opacity var(--transition);
}
.cta-btn:hover { opacity: 0.92; color: var(--red); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #9090B0;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.footer-brand span { color: var(--red); }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 0; color: #9090B0; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #9090B0; font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #2D2D4A;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy, .footer-beian { font-size: 12px; color: #606080; }

/* ---------- 内页 Hero ---------- */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero-desc { font-size: 16px; color: var(--gray); margin-bottom: 0; max-width: 560px; }

/* ---------- 侧边栏布局 ---------- */
.content-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: sticky;
  top: 84px;
}
.sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 13px; color: var(--gray); transition: color var(--transition); }
.sidebar-links a:hover { color: var(--red); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--gray-light); color: var(--ink); font-weight: 500; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--gray); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-light); }

/* ---------- 消息提示 ---------- */
.notice {
  background: var(--red-light);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink-light);
}

/* ---------- 相关阅读 ---------- */
.related-links { display: flex; flex-direction: column; gap: 8px; }
.related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
}
.related-link:hover { background: var(--red-light); color: var(--red); }
.related-link::before { content: '→'; color: var(--red); flex-shrink: 0; }

/* ---------- 移动端响应 ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
    z-index: 99;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .news-grid { grid-template-columns: 1fr; }
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
