:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;
  --border: rgba(0, 0, 0, .06);
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; overflow-x: hidden; }
body {
  width: 100%; min-height: 100vh; overflow-x: hidden;
  color: var(--text-primary); background: var(--bg);
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-shell { width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }
.hero { padding: 24px 24px 22px; text-align: center; }
.avatar {
  display: block; width: 80px; height: 80px; margin: 0 auto 14px;
  object-fit: cover; border-radius: 50%; box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}
.hero h1 { margin-bottom: 5px; font-size: 27px; font-weight: 700; }
.tagline { margin-bottom: 8px; color: var(--text-secondary); font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px;
  border-radius: 20px; background: #e8f5e9; color: var(--text-primary);
  font-size: 13px; font-weight: 500;
}

.cta-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.cta-btn {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  min-height: 62px; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px; color: #fff;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: scale(1.03); }
.cta-btn:active { transform: scale(.97); }
.cta-btn:focus-visible, .section-header:focus-visible, .modal-close:focus-visible {
  outline: 3px solid rgba(0, 122, 255, .35); outline-offset: 3px;
}
.cta-wechat { border-color: rgba(7, 193, 96, .14); background: #e9f8ef; color: #168847; box-shadow: 0 3px 12px rgba(7, 193, 96, .1); }
.cta-shop { background: #8b5cf6; box-shadow: 0 3px 12px rgba(139, 92, 246, .25); }
.cta-payment { border-color: rgba(232, 137, 0, .14); background: #fff8eb; color: #a85f00; box-shadow: 0 3px 12px rgba(232, 137, 0, .1); }
.cta-icon { width: 28px; height: 28px; flex: 0 0 auto; }
.cta-text { min-width: 0; text-align: left; line-height: 1.3; }
.cta-title, .cta-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-title { font-size: 15px; font-weight: 700; }
.cta-sub { font-size: 12px; opacity: .88; }

.section { width: 100%; margin: 16px 0; }
.section-header {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 0; border-radius: var(--radius); background: var(--card);
  color: inherit; box-shadow: var(--shadow); cursor: pointer; user-select: none;
  transition: border-radius .2s, box-shadow .2s;
}
.section-header:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.section-header.active { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; }
.section-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.section-icon, .card-icon {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 8px;
}
.section-icon { width: 32px; height: 32px; }
.section-icon svg, .card-icon svg { width: 18px; height: 18px; }
.section-title { overflow: hidden; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.section-chevron { margin-left: 12px; color: var(--text-tertiary); font-size: 13px; transition: transform .3s; }
.section-header.active .section-chevron { transform: rotate(180deg); }

.section-icon-products { background: #ede5ff; }
.section-icon-latest { background: #5ac8fa; }
.section-icon-tutorial { background: #66bb6a; }
.section-icon-buying { background: #ffa726; }
.section-icon-tech { background: #8b5cf6; }
.section-icon-default { background: #ff6b9d; }

.card-list {
  max-height: 0; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  transition: max-height .4s cubic-bezier(.25, .1, .25, 1);
}
.card-list.open { max-height: 5000px; }
.product-panel { background: #fff; }
.product-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px;
}
.product-tile {
  display: flex; min-height: 96px; flex-direction: column; justify-content: space-between;
  padding: 12px; border: 1px solid rgba(0, 0, 0, .035); border-radius: 12px;
  color: inherit; text-decoration: none; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-tile:hover { transform: translateY(-2px); border-color: rgba(0, 0, 0, .07); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
.product-tile:active { transform: scale(.98); }
.product-tile:focus-visible { outline: 3px solid rgba(0, 122, 255, .3); outline-offset: 2px; }
.product-tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.product-tile-icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255, 255, 255, .78); box-shadow: 0 1px 4px rgba(0, 0, 0, .035); }
.product-tile-icon svg { width: 18px; height: 18px; }
.product-tile-arrow { color: currentColor; font-size: 13px; opacity: .42; }
.product-tile-copy { display: block; min-width: 0; }
.product-tile-copy strong, .product-tile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-tile-copy strong { color: var(--text-primary); font-size: 13px; font-weight: 650; }
.product-tile-copy small { margin-top: 1px; color: var(--text-secondary); font-size: 12px; }
.product-tile-ds { color: #af52de; background: linear-gradient(145deg, #fbf5ff, #f5eafb); }
.product-tile-plus { color: #20a94f; background: linear-gradient(145deg, #f3fbf5, #eaf7ed); }
.product-tile-sms { color: #007aff; background: linear-gradient(145deg, #f3f9ff, #e9f4ff); }
.product-tile-token { color: #e88900; background: linear-gradient(145deg, #fff9ef, #fff2dd); }
.product-tile-gzh { color: #e54873; background: linear-gradient(145deg, #fff5f8, #ffeaf0); }
.product-tile-ip { color: #00968f; background: linear-gradient(145deg, #f0fbfa, #e3f7f5); }
.card {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 13px 16px;
  border-bottom: 1px solid var(--border); color: inherit; text-decoration: none;
  transition: background .15s;
}
.card:last-child { border-bottom: 0; }
.card:hover { background: #f9f9fb; }
.card:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(0, 122, 255, .25); outline-offset: -3px; }
.card-icon { width: 34px; height: 34px; }
.product-ds, .post-icon-default { background: #f3e5f5; }
.product-plus, .post-icon-tutorial { background: #e8f5e9; }
.product-sms, .post-icon-latest { background: #e3f2fd; }
.product-token, .post-icon-buying { background: #fff3e0; }
.post-icon-tech { background: #ede5ff; }
.card-content { flex: 1; min-width: 0; }
.card-title {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 14px; font-weight: 600;
}
.card-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-desc { display: block; margin-top: 1px; overflow: hidden; color: var(--text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { flex: 0 0 auto; color: var(--text-tertiary); font-size: 16px; }

.section-more {
  display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 6px;
  color: #6d43d9; font-size: 12px; font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s;
}
.section-more:hover { color: #5630c5; background: #faf8ff; }
.section-more:focus-visible { outline: 3px solid rgba(139, 92, 246, .25); outline-offset: -3px; }

.tag { display: inline-flex; flex: 0 0 auto; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 600; }
.tag-hot { color: #ff3b30; background: rgba(255, 59, 48, .1); }
.tag-new { color: #007aff; background: rgba(0, 122, 255, .1); }
.tag-popular { color: #ff9500; background: rgba(255, 149, 0, .1); }
.tag-tip { color: #34c759; background: rgba(52, 199, 89, .1); }
.tag-recommend { color: #af52de; background: rgba(175, 82, 222, .1); }

.footer { padding: 32px 20px 48px; color: var(--text-secondary); font-size: 12px; text-align: center; }
.footer p + p { margin-top: 4px; }
.footer a { color: var(--text-secondary); text-decoration: none; }

.wechat-overlay {
  position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.wechat-overlay[hidden] { display: none; }
.wechat-modal {
  position: relative; width: 280px; padding: 28px 24px 20px; border-radius: 20px;
  background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); text-align: center;
  animation: modal-in .3s cubic-bezier(.25, .1, .25, 1);
}
.wechat-modal h2 { margin-bottom: 4px; font-size: 18px; font-weight: 700; }
.wechat-hint { margin-bottom: 16px; color: var(--text-secondary); font-size: 12px; }
.wechat-modal img { width: 200px; height: 200px; margin-bottom: 14px; border-radius: 10px; object-fit: cover; }
.wechat-id { display: inline-flex; gap: 6px; padding: 6px 14px; border-radius: 8px; background: #f5f5f7; font-size: 13px; font-weight: 500; user-select: all; }
.payment-modal img {
  width: 220px; height: auto; padding: 5px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; object-fit: contain;
}
.payment-note { color: var(--text-secondary); font-size: 12px; }
.modal-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); font-size: 24px; cursor: pointer; }

@keyframes modal-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: fade-in-up .5s cubic-bezier(.25, .1, .25, 1) forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

@media (max-width: 640px) {
  .site-shell { max-width: none; padding: 0; }
  .hero { padding: 44px 24px 26px; }
  .avatar { width: 88px; height: 88px; margin-bottom: 16px; }
  .hero h1 { font-size: 28px; }
  .cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px; margin: 0 auto; padding: 16px 20px 0;
  }
  .cta-shop { grid-column: 1 / -1; }
  .cta-payment { grid-column: auto; }
  .section { max-width: 520px; margin: 16px auto; padding: 0 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .hero { padding-inline: 18px; }
  .cta-row, .section { padding-inline: 14px; }
  .cta-btn { gap: 8px; padding-inline: 11px; }
  .cta-icon { width: 24px; height: 24px; }
  .cta-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
