/* -------------------------------------------------------------------------
 * 零秒科技主题补充样式
 * 说明：基础设计来自浅色 iOS 风资源站；这里补齐无封面渐变、图标封面、
 * 个人中心与详情页的小细节。
 * ---------------------------------------------------------------------- */

/* 无封面时的渐变封面 */
.sy-card-cover.is-azure { background: linear-gradient(165deg, #c7e9ff 0%, #5ab4f5 55%, #007aff 100%); }
.sy-card-cover.is-lagoon { background: linear-gradient(165deg, #c8f6ef 0%, #5bd4c4 55%, #0f9d8e 100%); }
.sy-card-cover.is-indigo { background: linear-gradient(165deg, #d7dcff 0%, #8b93ff 55%, #4f46e5 100%); }
.sy-card-cover.is-orchid { background: linear-gradient(165deg, #f0d6ff 0%, #c084fc 55%, #9333ea 100%); }
.sy-card-cover.is-amber { background: linear-gradient(165deg, #ffe4c4 0%, #ffb020 55%, #f59e0b 100%); }
.sy-card-cover.is-mint { background: linear-gradient(165deg, #d8f8c8 0%, #86e07a 55%, #22c55e 100%); }

.sy-card-cover .sy-cover-initial { font-size: clamp(48px, 16vw, 72px); }

/* 详情页 64px 图标封面 */
.sy-apphead-icon.is-azure { background: linear-gradient(165deg, #7dd3fc, #007aff); }
.sy-apphead-icon.is-lagoon { background: linear-gradient(165deg, #5bd4c4, #0f9d8e); }
.sy-apphead-icon.is-indigo { background: linear-gradient(165deg, #8b93ff, #4f46e5); }
.sy-apphead-icon.is-orchid { background: linear-gradient(165deg, #c084fc, #9333ea); }
.sy-apphead-icon.is-amber { background: linear-gradient(165deg, #ffb020, #f59e0b); }
.sy-apphead-icon.is-mint { background: linear-gradient(165deg, #86e07a, #22c55e); }
.sy-apphead-icon img { width: 100%; height: 100%; object-fit: cover; }
.sy-apphead-icon .sy-cover-initial {
  position: static;
  transform: none;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* 导航与账号 */
.sy-nav-user .is-danger { color: var(--sy-red); }
.sy-nav-user .sy-text-btn.is-danger:hover { color: var(--sy-red); opacity: 0.8; }

/* 空状态卡片化 */
.sy-empty {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--sy-radius);
  box-shadow: var(--sy-shadow);
  margin: 0.5rem 0;
}

/* 个人中心 */
.sy-account-card .sy-btn,
.sy-account-card .js-checkin { width: 100%; }
.sy-account-card .sy-btn { margin-top: 0.85rem; }
.sy-account-card .js-checkin { margin-top: 0.85rem; }
.sy-account-card .js-checkin .sy-btn { width: 100%; margin-top: 0; }
.sy-account-card .sy-specs { margin-top: 0.35rem; }
.sy-unlocks .sy-row > span:last-child { min-width: 0; display: block; }
.sy-unlocks .sy-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-list li > span:first-child { min-width: 0; }
.sy-list li strong { display: block; font-size: 14px; font-weight: 750; }
.sy-list li em { flex: none; font-style: normal; font-size: 14px; }

/* 详情页下载区 */
.sy-lock .sy-btn { width: 100%; }
.sy-lock .sy-lock-price { margin-bottom: 0.1rem; }
.sy-download .sy-dl-block + .sy-dl-block { margin-top: 0.65rem; }
.sy-getbox .sy-btn { margin-top: 0.85rem; }

/* 充值页 */
.sy-qr-grid figure { margin: 0; }
.sy-qr-grid img { width: 100%; max-width: 180px; margin: 0 auto; }
.sy-balance-card .sy-btn { margin-top: 0.35rem; }

/* 内容内嵌元素 */
.sy-content iframe,
.sy-content video { max-width: 100%; border-radius: 14px; }
.sy-content img { height: auto; }

/* 小屏下的详情页与账号页 */
@media (max-width: 860px) {
  div.sy-layout[style] { grid-template-columns: 1fr !important; }
  .sy-account-card .sy-balance-actions { flex-direction: column; }
  .sy-account-card .sy-balance-actions .sy-btn { width: 100%; }
}

/* 打印时隐藏导航 */
@media print {
  .sy-nav, .sy-tabbar, .sy-footer, .sy-detail-aside { display: none !important; }
}

/* -------------------------------------------------------------------------
 * 交互增强：滚动进度、卡片悬浮、登录分栏、入场动画
 * ---------------------------------------------------------------------- */

/* 右下角滚动进度 / 回到顶部 */
.sy-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 98px;
  z-index: 36;
  width: 56px;
  height: 56px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(#007aff var(--sy-progress, 0%), rgba(255, 255, 255, 0.55) 0);
  box-shadow: 0 12px 28px rgba(28, 49, 82, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.sy-scroll-top:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 34px rgba(28, 49, 82, 0.24); }
.sy-scroll-top-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sy-blue);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.sy-scroll-top.is-active .sy-scroll-top-inner { color: #0b63d6; }

/* 卡片封面轻微缩放 */
.sy-card-cover img,
.sy-mini-cover img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sy-card:hover .sy-card-cover img,
.sy-mini-card:hover .sy-mini-cover img { transform: scale(1.045); }

/* 按钮与筛选的过渡 */
.sy-btn { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.sy-btn:hover { transform: translateY(-1px); }
.sy-btn:active { transform: translateY(0); }
.sy-chips a { transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease; }
.sy-nav-links a { transition: background 0.18s ease, color 0.18s ease; }

/* 登录 / 注册分栏 */
body.sy-auth-split-body .sy-main.sy-auth-split {
  width: min(1120px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  justify-content: initial;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 2rem 0;
}
.sy-auth-art { position: relative; padding: 1rem 0; }
.sy-auth-art .sy-kicker { margin-bottom: 0.6rem; }
.sy-auth-art h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 780;
  color: var(--sy-ink);
  margin: 0.2rem 0 0.9rem;
}
.sy-auth-art > p:last-of-type {
  max-width: 24em;
  color: var(--sy-muted);
  font-size: 15px;
  line-height: 1.75;
}
.sy-auth-art-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(390px, 82%);
  aspect-ratio: 1;
  margin-top: 1.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9), transparent 45%),
    radial-gradient(circle at 62% 62%, rgba(125, 211, 252, 0.55), transparent 62%),
    linear-gradient(160deg, rgba(224, 242, 254, 0.9), rgba(186, 230, 253, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 30px 60px rgba(28, 49, 82, 0.08);
}
.sy-auth-art-visual svg {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 122, 255, 0.28));
}
body.sy-auth-split-body .sy-auth {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  margin: 0;
  padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--sy-shadow-lg);
}
.sy-auth-error {
  width: auto;
  margin: 0 0 1rem;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}

/* 入场动画 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes sy-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .sy-hero,
  .sy-banner,
  .sy-card,
  .sy-cat,
  .sy-panel,
  .sy-auth { animation: sy-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .sy-grid > .sy-card:nth-child(2) { animation-delay: 0.05s; }
  .sy-grid > .sy-card:nth-child(3) { animation-delay: 0.1s; }
  .sy-grid > .sy-card:nth-child(4) { animation-delay: 0.14s; }
}

@media (max-width: 900px) {
  body.sy-auth-split-body .sy-main.sy-auth-split {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(440px, calc(100% - 2rem));
    padding: 1.5rem 0;
  }
  .sy-auth-art { display: none; }
  body.sy-auth-split-body .sy-auth { justify-self: center; }
}

@media (max-width: 800px) {
  .sy-scroll-top { right: 14px; bottom: 88px; width: 48px; height: 48px; }
  .sy-scroll-top-inner { font-size: 9px; }
}

/* 个人中心：子比风格侧栏 */
.sy-uc-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.sy-uc-side {
  position: sticky;
  top: 82px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--sy-shadow);
}
.sy-uc-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 16px;
  border-bottom: 1px solid var(--sy-line);
}
.sy-uc-profile > div:nth-child(2) { min-width: 0; flex: 1; }
.sy-uc-profile strong {
  display: block;
  overflow: hidden;
  color: var(--sy-ink);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sy-uc-profile small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--sy-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sy-uc-profile .sy-me-avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
.sy-uc-badge {
  flex: none;
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3d6;
  color: #a96600;
  font-size: 9px;
  font-weight: 800;
}
.sy-uc-nav {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sy-line);
}
.sy-uc-nav button {
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sy-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.sy-uc-nav button:hover { background: #f4f7fb; color: var(--sy-ink); }
.sy-uc-nav button.is-active { background: var(--sy-blue-soft); color: var(--sy-blue); font-weight: 750; }
.sy-uc-side-actions { display: grid; gap: 7px; padding-top: 12px; }
.sy-uc-side-actions .sy-btn { width: 100%; margin: 0; padding: 9px 12px; font-size: 11px; }
.sy-uc-main { min-width: 0; }
.sy-uc-panel { display: none; }
.sy-uc-panel.is-active { display: block; animation: sy-fade-up 0.2s ease both; }
.sy-uc-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.sy-uc-heading h1, .sy-uc-heading h2 {
  margin: 2px 0 0;
  color: var(--sy-ink);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -0.04em;
}
.sy-uc-heading .sy-hero-sub { margin: 4px 0 0; }
.sy-uc-heading .sy-pill { margin-top: 6px; flex: none; }
.sy-uc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.sy-uc-stat {
  padding: 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(28, 49, 82, 0.05);
}
.sy-uc-stat span { display: block; color: var(--sy-muted); font-size: 10px; font-weight: 650; }
.sy-uc-stat strong { display: block; margin: 5px 0 2px; color: var(--sy-ink); font-size: 24px; font-weight: 780; letter-spacing: -0.04em; }
.sy-uc-stat small { display: block; color: var(--sy-muted); font-size: 9px; }
.sy-uc-stat.is-blue { background: linear-gradient(150deg, #eef6ff, #dbeafe); }
.sy-uc-stat.is-green { background: linear-gradient(150deg, #eefbf2, #d9f7e3); }
.sy-uc-stat.is-amber { background: linear-gradient(150deg, #fff9eb, #ffedc2); }
.sy-uc-stat.is-indigo { background: linear-gradient(150deg, #f1f0ff, #e0e7ff); }
.sy-uc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.sy-uc-card { margin: 0 !important; }
.sy-uc-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sy-uc-quick .sy-btn { margin: 0; }
.sy-uc-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--sy-line);
  box-shadow: 0 5px 16px rgba(28, 49, 82, 0.04);
}
.sy-uc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 11px; }
.sy-uc-table th { padding: 11px 12px; background: #f7f9fc; color: var(--sy-muted); font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; }
.sy-uc-table td { padding: 11px 12px; border-top: 1px solid #f1f4f8; color: var(--sy-ink); vertical-align: middle; }
.sy-uc-table code { color: var(--sy-muted); font-size: 9px; }
.sy-uc-table .sy-pill { font-size: 9px; }
.sy-uc-list { margin-top: 0 !important; }
.sy-uc-empty {
  padding: 30px !important;
  text-align: center;
  color: var(--sy-muted);
}
.sy-uc-empty strong { display: block; margin-bottom: 4px; color: var(--sy-ink); font-size: 14px; }
.sy-uc-empty span { display: block; margin-bottom: 12px; font-size: 11px; }
.sy-uc-copybox { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #f7f9fc; border: 1px solid var(--sy-line); }
.sy-uc-copybox code { flex: 1; min-width: 0; overflow: hidden; color: var(--sy-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sy-uc-copybox .sy-btn { flex: none; margin: 0; }

/* 首页增强 */
.sy-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sy-hero-tags span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); color: #506078; font-size: 9px; font-weight: 650; }
.sy-home-vip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 18px 0; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #0f2b57, #1769e0 58%, #18a6b4); color: #fff; box-shadow: 0 18px 46px rgba(18,73,160,.2); }
.sy-home-vip-copy { max-width: 500px; }
.sy-home-vip-copy .sy-kicker { color: #a9e4ff; }
.sy-home-vip-copy h2 { margin: 7px 0 8px; color: #fff; font-size: 24px; letter-spacing: -.04em; }
.sy-home-vip-copy p { margin: 0 0 14px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.sy-home-vip-copy .sy-btn { background: #fff; color: #1558c8; }
.sy-home-vip-plans { display: flex; gap: 8px; flex-wrap: wrap; }
.sy-home-vip-plan { display: flex; flex-direction: column; min-width: 110px; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.sy-home-vip-plan strong { font-size: 12px; }
.sy-home-vip-plan span { margin-top: 3px; color: rgba(255,255,255,.65); font-size: 9px; }
.sy-home-vip-plan em { margin-top: 12px; color: #a9e4ff; font-size: 18px; font-style: normal; font-weight: 800; }
.sy-home-vip-plan em small { font-size: 9px; }
.sy-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.sy-referral-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0; padding: 20px 24px; border-radius: 18px; background: linear-gradient(135deg, #f4f9ff, #eaf3ff); border: 1px solid #dceafb; }
.sy-referral-banner h2 { margin: 5px 0 6px; font-size: 18px; letter-spacing: -.03em; }
.sy-referral-banner p { margin: 0; color: var(--sy-muted); font-size: 10px; line-height: 1.6; }
.sy-referral-banner .sy-btn { flex: none; }
.sy-why-item { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--sy-shadow); }
.sy-why-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eef5ff; color: var(--sy-blue); font-size: 10px; font-weight: 800; }
.sy-why-item strong { display: block; margin: 10px 0 5px; font-size: 13px; }
.sy-why-item p { margin: 0; color: var(--sy-muted); font-size: 10px; line-height: 1.6; }
@media (max-width: 800px) {
  .sy-home-vip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sy-referral-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sy-home-vip-plans { width: 100%; }
  .sy-home-vip-plan { flex: 1; min-width: 0; }
  .sy-why { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .sy-main, .sy-nav-inner, .sy-footer-inner, .sy-tabbar { min-width: 0; max-width: 100%; }
  .sy-main { width: 100%; padding-left: 12px; padding-right: 12px; }
  .sy-nav { padding-left: 10px; padding-right: 10px; }
  .sy-nav-inner { width: 100%; gap: 8px; }
  .sy-nav-user { flex: none; gap: 7px; }
  .sy-hero { width: 100%; padding: 20px 16px 18px; border-radius: 22px; }
  .sy-hero h1 { font-size: 34px; }
  .sy-hero-visual { display: none; }
  .sy-hero-tags { gap: 5px; }
  .sy-home-vip { padding: 18px 16px; border-radius: 18px; }
  .sy-home-vip-copy h2 { font-size: 22px; }
  .sy-home-vip-plan { padding: 10px; }
  .sy-referral-banner { padding: 16px; border-radius: 16px; }
  .sy-why { gap: 8px; }
  .sy-why-item { padding: 14px; }
}
@media (max-width: 390px) {
  .sy-nav-inner { min-height: 52px; padding-left: 8px; padding-right: 8px; }
  .sy-logo { font-size: 13px; gap: 6px; }
  .sy-logo-mark { width: 28px; height: 28px; }
  .sy-points-chip, .sy-text-btn, .sy-nav-cta { font-size: 11px; }
  .sy-hero h1 { font-size: 31px; }
  .sy-hero-sub { font-size: 13px; }
  .sy-search input { font-size: 14px; }
  .sy-search button { padding: 9px 12px; }
}

.sy-pay-notice strong { display: block; margin-bottom: 6px; font-size: 14px; }
.sy-pay-notice p { margin: 0 0 10px; color: var(--sy-muted); font-size: 11px; line-height: 1.7; }
.sy-auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: #9aa5b5; font-size: 10px; }
.sy-auth-divider::before, .sy-auth-divider::after { content: ""; flex: 1; height: 1px; background: #e7edf5; }
.sy-wechat-card { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 14px; border: 1px solid #d9f0e2; background: linear-gradient(135deg, #f4fff9, #ecfdf4); color: #116b3b; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.sy-wechat-card:hover { border-color: #9ee0b9; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7, 193, 96, .12); }
.sy-wechat-card-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: #07c160; color: #fff; box-shadow: 0 7px 16px rgba(7, 193, 96, .24); }
.sy-wechat-card-copy { flex: 1; min-width: 0; }
.sy-wechat-card-copy strong { display: block; color: #145c36; font-size: 13px; }
.sy-wechat-card-copy small { display: block; margin-top: 2px; color: #63907a; font-size: 9px; }
.sy-wechat-card-arrow { color: #27a968; font-size: 16px; }
.sy-wechat-login { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 12px; background: #07c160; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }.sy-wechat-login:hover { background: #06ad56; }

.sy-related-section { margin: 22px 0 0; padding-bottom: 24px; }
.sy-related-section .sy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .sy-related-section .sy-grid { grid-template-columns: 1fr; } }

/* 网页支付 */.sy-webpay { margin: 0 0 14px; background: radial-gradient(220px 120px at 100% 0%, #e9f3ff, transparent 70%), #fff; }
.sy-webpay-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sy-webpay-form label { color: var(--sy-muted); font-size: 11px; }
.sy-webpay-form select { flex: 1; min-width: 180px; border: 1px solid var(--sy-line); border-radius: 9px; background: #f8fafc; padding: 9px 11px; font-size: 12px; }
.sy-webpay-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sy-webpay-order h3 { margin: 4px 0 6px; }
.sy-webpay-qr { margin: 12px 0; text-align: center; }
.sy-webpay-qr img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--sy-line); }
.sy-webpay-qr figcaption { margin-top: 6px; color: var(--sy-muted); font-size: 11px; }
.sy-webpay-paid { margin: 10px 0; padding: 12px; border-radius: 10px; background: #eafaf1; color: #16834f; font-size: 12px; font-weight: 600; }

/* 会员 VIP */.sy-vip-card { margin: 0 0 14px; background: radial-gradient(220px 120px at 100% 0%, #e7f1ff, transparent 70%), #fff; border-color: #e5eefc; }
.sy-vip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sy-vip-head .sy-panel-title { margin: 2px 0 4px; }
.sy-vip-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sy-vip-plan { display: flex; flex-direction: column; gap: 7px; padding: 11px; border-radius: 12px; background: #f8faff; border: 1px solid #e9eff9; }
.sy-vip-plan strong { display: block; color: var(--sy-ink); font-size: 12px; }
.sy-vip-plan small { display: block; margin-top: 2px; color: var(--sy-muted); font-size: 9px; }
.sy-vip-price { color: var(--sy-blue); font-size: 16px; font-weight: 800; }
.sy-vip-price small { display: inline; font-size: 9px; font-weight: 600; }
.sy-vip-plan .sy-btn { margin: 0; min-height: 28px; padding: 0 9px; font-size: 10px; }
@media (max-width: 700px) { .sy-vip-plans { grid-template-columns: 1fr; } .sy-vip-plan { flex-direction: row; align-items: center; justify-content: space-between; } }
.sy-pill.is-ok { background: rgba(52, 199, 89, 0.16); color: #248a3d; }
.sy-pill.is-wait { background: rgba(255, 159, 10, 0.16); color: #b86a00; }

@media (max-width: 900px) {
  .sy-uc-shell { grid-template-columns: 1fr; }
  .sy-uc-side { position: static; }
  .sy-uc-nav { display: flex; flex-wrap: wrap; }
  .sy-uc-nav button { flex: 1 1 auto; text-align: center; }
  .sy-uc-side-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sy-uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-uc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .sy-uc-heading h1, .sy-uc-heading h2 { font-size: 22px; }
  .sy-uc-stat strong { font-size: 20px; }
  .sy-uc-side-actions { grid-template-columns: 1fr; }
}

.sy-page-bar { padding: 0.35rem 0 0; }
.sy-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sy-shadow);
  color: var(--sy-muted);
  font-size: 12px;
  font-weight: 700;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.sy-back:hover { color: var(--sy-ink); background: #fff; transform: translateX(-2px); }
.sy-back span { font-size: 15px; line-height: 1; }

/* 个人中心：游客态、权益、广告信息、兑换弹层 */
.sy-guest-hero .sy-account { align-items: center; display: flex; gap: 14px; }
.sy-guest-hero .sy-avatar {
  align-items: center;
  background: linear-gradient(165deg, #7dd3fc, #007aff);
  border-radius: 20px;
  color: #fff;
  display: flex;
  flex: none;
  font-size: 26px;
  font-weight: 780;
  height: 64px;
  justify-content: center;
  width: 64px;
}
.sy-guest-hero .sy-account-copy { flex: 1; min-width: 0; }
.sy-guest-hero .sy-name { display: block; font-size: 20px; font-weight: 750; }
.sy-guest-hero .sy-mail { color: var(--sy-muted); display: block; font-size: 12px; margin-top: 4px; }
.sy-guest-hero .sy-btn { margin-top: 18px; width: 100%; }

.sy-perks { display: grid; gap: 4px; }
.sy-perk {
  align-items: center;
  border-radius: 14px;
  color: inherit;
  display: flex;
  gap: 12px;
  padding: 10px;
  transition: background 0.16s ease;
}
.sy-perk:hover { background: #f6f8fb; color: inherit; }
.sy-perk-icon {
  align-items: center;
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex: none;
  font-size: 14px;
  font-weight: 780;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.sy-perk-icon.is-azure { background: linear-gradient(165deg, #7dd3fc, #007aff); }
.sy-perk-icon.is-lagoon { background: linear-gradient(165deg, #5bd4c4, #0f9d8e); }
.sy-perk-icon.is-amber { background: linear-gradient(165deg, #ffb020, #f59e0b); }
.sy-perk-icon.is-indigo { background: linear-gradient(165deg, #8b93ff, #4f46e5); }
.sy-perk-icon.is-mint { background: linear-gradient(165deg, #86e07a, #22c55e); }
.sy-perk strong { display: block; font-size: 13px; font-weight: 750; }
.sy-perk small { color: var(--sy-muted); display: block; font-size: 11px; line-height: 1.5; margin-top: 2px; }

.sy-wallet-actions { display: flex; gap: 8px; margin-top: 12px; }
.sy-wallet-actions .sy-btn { flex: 1; margin-top: 0; }
.sy-ad-card { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.sy-ad-card .sy-note { margin-top: 4px; }
.sy-ad-meta { align-items: flex-end; display: flex; flex-direction: column; flex: none; gap: 4px; }
.sy-ad-meta strong { color: #b86a00; font-size: 16px; }
.sy-ad-meta small { color: var(--sy-muted); font-size: 11px; }

.sy-modal[hidden] { display: none; }
.sy-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 80;
}
.sy-modal-mask { background: rgba(17, 24, 39, 0.42); inset: 0; position: absolute; }
.sy-modal-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
  max-height: min(86vh, 720px);
  max-width: 420px;
  overflow-y: auto;
  padding: 22px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.sy-modal-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.sy-modal-head h3 { font-size: 20px; font-weight: 780; letter-spacing: -0.03em; margin: 0; }
.sy-modal-close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  color: var(--sy-muted);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}
.sy-modal-close:hover { background: #e8eef6; color: var(--sy-ink); }
body.sy-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .sy-ad-card { align-items: flex-start; flex-direction: column; }
  .sy-ad-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .sy-wallet-actions { flex-direction: column; }
}

/* H5：防止横向溢出、压缩导航和卡片 */
@media (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .sy-main { width: calc(100% - 1.4rem); padding-bottom: 100px; }
  .sy-nav-inner { padding: 0 0.65rem; gap: 0.55rem; }
  .sy-nav-search { display: none; }
  .sy-nav-links { display: none; }
  .sy-logo { min-width: 0; }
  .sy-logo span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sy-nav-user { margin-left: auto; gap: 0.35rem; }
  .sy-points-chip { padding: 0.28rem 0.55rem; font-size: 11px; }
  .sy-text-btn, .sy-nav-cta { font-size: 11px; }
  .sy-tabbar {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sy-hero { padding: 1.5rem 1rem 1.35rem; }
  .sy-hero h1 { font-size: 2rem; }
  .sy-search { max-width: 100%; width: 100%; box-sizing: border-box; }
  .sy-search input { min-width: 0; width: 100%; }
  .sy-search button { flex: none; padding-left: 0.75rem; padding-right: 0.75rem; }
  .sy-layout, .sy-detail-layout, .sy-uc-shell { min-width: 0; }
  .sy-layout > *, .sy-detail-main, .sy-detail-aside, .sy-uc-main { min-width: 0; max-width: 100%; }
  .sy-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-qr-grid figure, .sy-qr-grid img { min-width: 0; max-width: 100%; }
  .sy-qr-grid img { height: auto; }
}

@media (max-width: 640px) {
  .sy-layout .sy-grid,
  .sy-grid { grid-template-columns: 1fr !important; }
  .sy-card, .sy-panel, .sy-post-card { min-width: 0; }
  .sy-detail-main, .sy-detail-main .sy-panel, .sy-post-content, .sy-content, .sy-comment-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .sy-detail-aside { order: 0; }
  .sy-detail-main { order: 1; }
  .sy-section-head h2 { font-size: 1.2rem; }
  .sy-uc-nav button { white-space: nowrap; }
  .sy-uc-side-actions { display: none; }
  .sy-uc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-uc-heading .sy-btn { padding: 8px 10px; font-size: 10px; }
}

@media (max-width: 390px) {
  .sy-main { width: calc(100% - 1rem); }
  .sy-nav-inner { gap: 0.35rem; }
  .sy-points-chip { display: none; }
  .sy-uc-stats { gap: 7px; }
  .sy-uc-stat { padding: 12px; }
  .sy-uc-stat strong { font-size: 18px; }
}

.sy-mobile-buy { display: none; }

/* 资源下载页 */.sy-download-page { max-width: 860px; margin: 0 auto; }
.sy-download-page .sy-resource-head { margin-bottom: 18px; }
.sy-download-box { padding: 14px; border-radius: 16px; background: #f7f9fc; border: 1px solid var(--sy-line); }
.sy-download-box h2 { margin: 0 0 10px; font-size: 15px; font-weight: 760; }
.sy-download-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sy-download-actions .sy-btn { margin: 0; }

/* 登录/注册页返回首页 */
.sy-auth-back {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(28, 49, 82, 0.10);
  color: var(--sy-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(16px);
}
.sy-auth-back span { font-size: 15px; line-height: 1; }
.sy-auth-back:hover { background: #fff; color: var(--sy-blue); }



@media (max-width: 800px) {
  .sy-mobile-buy {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 28;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(28, 49, 82, 0.16);
    backdrop-filter: blur(20px);
  }
  .sy-mobile-buy-copy { min-width: 0; }
  .sy-mobile-buy-copy strong { display: block; color: var(--sy-ink); font-size: 13px; font-weight: 760; }
  .sy-mobile-buy-copy small { display: block; margin-top: 2px; color: var(--sy-muted); font-size: 10px; }
  .sy-mobile-buy form { margin: 0; flex: none; }
  .sy-mobile-buy .sy-btn { margin: 0; padding: 9px 14px; white-space: nowrap; font-size: 11px; }
  .sy-main { padding-bottom: 150px; }
  .sy-scroll-top { bottom: calc(132px + env(safe-area-inset-bottom)); }
}

@media (max-width: 800px) {
  html, body { width: 100%; overflow-x: hidden; }
  .sy-main, .sy-nav-inner, .sy-hero, .sy-panel, .sy-layout,
  .sy-detail-layout, .sy-detail-main, .sy-detail-aside,
  .sy-uc-shell, .sy-uc-side, .sy-uc-main {
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .sy-main { margin-left: auto; margin-right: auto; }
  .sy-points-chip { display: none; }
  .sy-search { display: flex; }
  .sy-search input { flex: 1 1 0; width: 0; min-width: 0; }
  .sy-search button { flex: 0 0 auto; }
  .sy-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside"; }
  .sy-detail-aside { position: static; }
  .sy-uc-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .sy-uc-nav button { padding: 8px 2px; font-size: 10px; text-align: center; }
  .sy-uc-heading { flex-wrap: wrap; }
  .sy-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-qr-grid img { width: 100%; max-width: 100%; }
}

/* 子比风格细节：区块标题、卡片悬浮、侧栏购买卡、分类搜索 */
.sy-section-head h2 {
  align-items: center;
  display: flex;
  gap: 8px;
}
.sy-section-head h2::before {
  background: linear-gradient(180deg, #38bdf8, #007aff);
  border-radius: 999px;
  content: "";
  height: 18px;
  width: 4px;
}
.sy-card-cover img { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.sy-card:hover .sy-card-cover img { transform: scale(1.035); }
.sy-card-cover::after {
  content: "查看资源";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--sy-ink);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}
.sy-card:hover .sy-card-cover::after { opacity: 1; transform: translateY(0); }
.sy-aside-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(180px 100px at 90% 0%, rgba(125, 211, 252, .28), transparent 70%),
    linear-gradient(145deg, #f6fbff, #eef6ff);
  border-color: rgba(0, 122, 255, .10);
}
.sy-aside-cta-copy { min-width: 0; }
.sy-aside-cta-copy span { display: block; color: var(--sy-muted); font-size: 10px; font-weight: 650; }
.sy-aside-cta-copy strong { display: block; margin-top: 3px; color: var(--sy-ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.sy-aside-cta-copy small { display: block; margin-top: 2px; color: var(--sy-muted); font-size: 9px; }
.sy-aside-cta .sy-btn { flex: none; margin: 0; }
.sy-aside-cta form { margin: 0; flex: none; }
.sy-category-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 7px 8px 7px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(255, 255, 255, .94);
  box-shadow: var(--sy-shadow);
}
.sy-category-search svg { color: var(--sy-muted); flex: none; }
.sy-category-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--sy-ink); font-size: 13px; outline: none; padding: 7px 0; }
.sy-category-search button { flex: none; border: 0; border-radius: 10px; background: var(--sy-blue); color: #fff; font-size: 11px; font-weight: 700; padding: 8px 13px; cursor: pointer; }
@media (max-width: 800px) {
  .sy-aside-cta { display: none; }
  .sy-category-search { margin-top: 10px; }
}





