:root {
  --bg: #eaf1ff;
  --panel: rgba(255, 255, 255, .62);
  --panel-soft: rgba(255, 255, 255, .46);
  --primary: #2f7bff;
  --primary-strong: #1f6bff;
  --accent: #62b7ff;
  --text: #0f1e3a;
  --muted: #3d5a80;
  --shadow: 0 12px 28px rgba(37, 79, 152, .14);
  --shadow-strong: 0 20px 46px rgba(29, 67, 132, .2);
  --hover-shadow: 0 14px 30px rgba(47, 123, 255, .28);
  --hover-border: rgba(47, 123, 255, .44);
  --rating: #ffb800;
  --cta-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --warm-accent: rgba(255,140,90,.45);
  --warm-shadow: rgba(255,140,90,.15);
  --bg-gradient-1: rgba(56, 189, 248, .25);
  --bg-gradient-2: rgba(139, 92, 246, .22);
  --bg-gradient-3: rgba(37, 99, 235, .24);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #e8eeff; }
html, body { min-height: 100%; }
body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(800px 500px at -15% -10%, var(--bg-gradient-1), transparent 55%),
    radial-gradient(900px 520px at 115% 10%, var(--bg-gradient-2), transparent 58%),
    radial-gradient(700px 450px at 50% 90%, var(--bg-gradient-3), transparent 52%),
    linear-gradient(160deg, #eef4ff 0%, #e8effd 48%, #edf3ff 100%);
  pointer-events: none;
  animation: bgBreathe 12s ease-in-out infinite;
}
@keyframes bgBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.02); }
}
img { -webkit-user-drag: none; user-select: none; }
canvas#bg-particles { position: fixed; inset: 0; z-index: -2; opacity: .75; filter: blur(.2px); }
.wm {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: repeating-linear-gradient(45deg, transparent 0 50px, rgba(99, 102, 241, .18) 50px 51px), repeating-linear-gradient(-45deg, transparent 0 50px, rgba(139, 92, 246, .15) 50px 51px);
}
.fixed-area { position: relative; z-index: 10; background: transparent !important; }
.cards-scroll { position: relative; z-index: 1; overflow: visible; background: transparent !important; }
header {
  position: relative; z-index: 20; overflow: visible; max-width: 1240px; margin: 10px auto 6px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(232, 242, 255, .74), rgba(214, 230, 252, .66));
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 16px 38px rgba(26,69,138,.16);
}
header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(31, 111, 235, .12), transparent 60%), repeating-linear-gradient(90deg, rgba(15, 40, 90, .08) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, rgba(15, 40, 90, .06) 0 1px, transparent 1px 18px);
  opacity: .95; pointer-events: none; border-radius: inherit;
}
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(31,111,235,.6), transparent); opacity: .5; pointer-events: none; }
.nav { max-width: 1200px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .6px; }
.brand-logo { height: 44px; background: transparent; filter: drop-shadow(0 10px 20px rgba(31,111,235,.18)); max-width: 180px; object-fit: contain; }
.brand-text { font-size: 18px; font-weight: 900; color: #0f2250; }
.carousel { max-width: 1200px; margin: 4px auto; padding: 0 20px; }
.carousel-wrap {
  position: relative; overflow: hidden; border-radius: 26px; border: 1px solid rgba(255,255,255,.62);
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.26));
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 26px 46px rgba(30,78,158,.22);
}
.slides { display: flex; transition: transform .6s ease; position: relative; z-index: 1; }
.slide { min-width: 100%; height: 38vw; min-height: 250px; max-height: 400px; background: #eaf1ff; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.66); background: rgba(255,255,255,.5); color: #0b1b33; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .42s cubic-bezier(.22,1,.36,1), background .34s cubic-bezier(.22,1,.36,1), box-shadow .42s cubic-bezier(.22,1,.36,1);
}
.car-btn:hover { background: rgba(31,111,235,.12); box-shadow: var(--hover-shadow); transform: translateY(-50%) scale(1.06); }
.car-prev { left: 12px; } .car-next { right: 12px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 1; display: flex; gap: 8px; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,40,90,.15); border: 1px solid rgba(15,40,90,.2); cursor: pointer; transition: .3s ease; }
.dot.active { background: var(--primary); box-shadow: 0 0 12px rgba(31,111,235,.35); transform: scale(1.18); }
.section { max-width: 1200px; margin: 10px auto; padding: 0 20px; }
#apps.section { margin-top: 6px; margin-bottom: 2px; }
.marquee-wrap {
  width: 100%; overflow: hidden; min-height: 34px; border-radius: 14px; padding: 6px 14px; cursor: pointer;
  background: linear-gradient(120deg, rgba(44,115,255,.92), rgba(89,178,255,.88), rgba(44,115,255,.92));
  background-size: 200% 100%;
  animation: marqueeGlow 4s ease infinite;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(42,105,214,.28), 0 0 0 0 rgba(44,115,255,0);
  display: flex; align-items: center; gap: 8px; transition: transform .3s ease, box-shadow .3s ease;
}
@keyframes marqueeGlow {
  0%, 100% { background-position: 0% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(42,105,214,.28), 0 0 0 0 rgba(44,115,255,0); }
  50% { background-position: 100% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(42,105,214,.28), 0 0 20px 2px rgba(44,115,255,.2); }
}
.marquee-wrap:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 32px rgba(42,105,214,.35), 0 0 24px 4px rgba(44,115,255,.18); }
.marquee { display: inline-flex; align-items: center; white-space: nowrap; animation: marqueeMove 18s linear infinite; padding-left: 6px; z-index: 2; gap: 8px; }
.marquee-text { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .8px; text-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.12); }
.marquee-icon { display: inline-flex; align-items: center; justify-content: center; color: #fff; animation: bellRing 2.5s ease-in-out infinite; flex-shrink: 0; }
.marquee-icon svg { width: 20px; height: 20px; }
@keyframes bellRing {
  0%, 80%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-12deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-8deg); }
  25% { transform: rotate(4deg); }
  30% { transform: rotate(0deg); }
}
.marquee-label { display: inline-block; padding: 2px 10px; border-radius: 6px; background: rgba(255,255,255,.22); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; border: 1px solid rgba(255,255,255,.3); flex-shrink: 0; }
@keyframes marqueeMove { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
#cardsScroll .section { margin-top: 0; padding-top: 0; }
#cardsScroll .section .pk16-category-title {
  display: flex; justify-content: center; align-items: center; margin: 22px 0 14px; padding: 6px 0; font-size: 22px; font-weight: 800;
  color: #0f2250; letter-spacing: .5px; position: relative; text-align: center;
}
#cardsScroll .section .pk16-category-title:first-child { margin-top: 4px; }
#cardsScroll .section .pk16-category-title::before,
#cardsScroll .section .pk16-category-title::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 96px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-strong), var(--accent), transparent); box-shadow: 0 4px 12px rgba(31,111,235,.2);
}
#cardsScroll .section .pk16-category-title::before { top: 0; }
#cardsScroll .section .pk16-category-title::after { bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.card {
  border-radius: 22px; padding: 12px; gap: 9px; align-items: flex-start; display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "avatar meta" "cta cta";
  border: 1px solid rgba(255,255,255,.66); background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(245,250,255,.56));
  backdrop-filter: blur(12px) saturate(1.08); -webkit-backdrop-filter: blur(12px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 30px rgba(26,68,138,.13);
  opacity: 0; transform: translateY(12px) scale(.985); animation: iosCardIn .62s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--stagger, 0ms);
}
.card:hover { transform: translateY(-3px) scale(1.01); border-color: var(--warm-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 16px 36px var(--warm-shadow); }
.avatar { width: 54px; height: 54px; grid-area: avatar; border-radius: 50%; border: 2px solid rgba(31,111,235,.18); box-shadow: 0 8px 18px rgba(31,111,235,.18); flex: none; background: #eef4ff; object-fit: cover; }
.meta { grid-area: meta; display: flex; flex-direction: column; min-width: 0; }
.title { font-weight: 700; color: #0b1b33; font-size: 18px; line-height: 1.15; white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.desc { font-size: 14px; color: var(--muted); min-height: 0; max-height: none; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: nowrap; }
.stars { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.stars svg { width: 15px; height: 15px; fill: var(--rating); filter: drop-shadow(0 2px 6px rgba(255,184,0,.35)); }
.score { font-size: 13px; color: #3b5275; white-space: nowrap; flex: 0 0 auto; }
.card .go {
  grid-area: cta; width: 100%; margin: 4px 0 0; padding: 6px 10px; border-radius: 14px; text-decoration: none; text-align: center;
  color: #fff; font-weight: 800; font-size: 12px; background: var(--cta-gradient);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 8px 18px rgba(102,126,234,.34); border: 1px solid rgba(255,255,255,.48); position: relative; overflow: hidden;
  transition: transform .42s cubic-bezier(.22,1,.36,1), box-shadow .42s cubic-bezier(.22,1,.36,1), filter .34s cubic-bezier(.22,1,.36,1);
}
.card .go:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px) scale(1.02); }
.card .go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.6), transparent 70%); transform: translateX(-120%); transition: .8s ease; }
.card .go:hover::after { transform: translateX(120%); }
@keyframes iosCardIn { 0% { opacity: 0; transform: translateY(12px) scale(.985); } 68% { opacity: 1; transform: translateY(-1px) scale(1.003); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.site-footer { max-width: 1200px; margin: 8px auto 18px; padding: 0 20px; background: transparent !important; }
.brand-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; color: #6b7a92; font-size: 12px; text-align: center; background: transparent !important; }
.brand-footer .desc { font-size: 11px; color: #7b8aa3; display: block; -webkit-line-clamp: initial; }
.brand-footer .copy { font-size: 11px; color: #7b8aa3; white-space: nowrap; }
.notice-modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(14,43,102,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.notice-modal.open { display: flex; }
.notice-box { background: rgba(255,255,255,.96); border: 1px solid rgba(47,123,255,.18); border-radius: 20px; padding: 30px 26px 24px; max-width: 440px; width: 92%; position: relative; box-shadow: 0 24px 64px rgba(37,79,152,.22), 0 0 0 1px rgba(255,255,255,.85) inset; }
.notice-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: #8aa0c0; font-size: 24px; cursor: pointer; line-height: 1; }
.notice-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.notice-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#2f7bff,#62b7ff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.notice-title h3 { margin: 0; color: #0f1e3a; font-size: 18px; font-weight: 700; }
.notice-content { margin: 0; color: #2d4a7a; font-size: 15px; line-height: 1.85; white-space: pre-line; padding: 14px 16px; background: rgba(47,123,255,.06); border-radius: 12px; border: 1px solid rgba(47,123,255,.1); }
.notice-ok { display: block; width: 100%; margin-top: 18px; padding: 10px; background: linear-gradient(90deg,#2f7bff,#62b7ff); border: none; border-radius: 12px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* 在线客服 */
.service-fab { position: fixed; right: 20px; bottom: 24px; z-index: 998; }
.service-btn { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: linear-gradient(135deg,#2f7bff,#62b7ff); border: none; border-radius: 50px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(47,123,255,.35); transition: transform .2s, box-shadow .2s; }
.service-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(47,123,255,.45); }
.service-btn:active { transform: scale(.96); }
.service-label { line-height: 1; }
.service-modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(14,43,102,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.service-modal.open { display: flex; }
.service-modal-box { background: rgba(255,255,255,.96); border: 1px solid rgba(47,123,255,.18); border-radius: 20px; padding: 30px 26px 24px; max-width: 360px; width: 90%; position: relative; box-shadow: 0 24px 64px rgba(37,79,152,.22); text-align: center; }
.service-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #8aa0c0; font-size: 24px; cursor: pointer; line-height: 1; }
.service-modal-title { font-size: 18px; font-weight: 700; color: #0f1e3a; margin-bottom: 6px; }
.service-modal-desc { font-size: 13px; color: #6b8ab5; margin-bottom: 16px; }
.service-modal-img { max-width: 220px; width: 100%; border-radius: 12px; border: 1px solid rgba(47,123,255,.1); }

/* Telegram 客服聊天窗口 */
.chat-fab { position: fixed; right: 20px; bottom: 24px; z-index: 998; }
.chat-btn { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: linear-gradient(135deg,#0088cc,#29b6f6); border: none; border-radius: 50px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,136,204,.4); transition: all .2s; }
.chat-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,136,204,.5); }
.chat-btn:active { transform: scale(.96); }
.chat-btn.hidden { display: none; }
.chat-icon { flex-shrink: 0; }
.chat-label { line-height: 1; }

.chat-window { position: fixed; right: 20px; bottom: 24px; width: 360px; max-width: calc(100vw - 40px); height: 500px; max-height: calc(100vh - 100px); background: rgba(255,255,255,.97); border: 1px solid rgba(0,136,204,.15); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,136,204,.2); display: flex; flex-direction: column; z-index: 999; transform: scale(.8) translateY(20px); opacity: 0; pointer-events: none; transition: all .25s ease; }
.chat-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header { padding: 14px 16px; background: linear-gradient(135deg,#0088cc,#29b6f6); border-radius: 16px 16px 0 0; display: flex; align-items: center; justify-content: space-between; color: #fff; flex-shrink: 0; }
.chat-header-info { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.chat-close { background: none; border: none; color: rgba(255,255,255,.8); font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-close:hover { color: #fff; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f5f8fa; }

.chat-msg { max-width: 80%; display: flex; flex-direction: column; gap: 4px; }
.chat-msg-user { align-self: flex-end; }
.chat-msg-bot, .chat-msg-admin { align-self: flex-start; }
.chat-msg-content { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.chat-msg-user .chat-msg-content { background: linear-gradient(135deg,#0088cc,#29b6f6); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-bot .chat-msg-content, .chat-msg-admin .chat-msg-content { background: #fff; color: #1e293b; border: 1px solid rgba(0,136,204,.1); border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 11px; color: #94a3b8; padding: 0 4px; }
.chat-msg-user .chat-msg-time { text-align: right; }

.chat-input-area { padding: 12px; border-top: 1px solid rgba(0,136,204,.08); display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; background: #fff; border-radius: 0 0 16px 16px; }
.chat-input { flex: 1; border: 1px solid rgba(0,136,204,.15); border-radius: 20px; padding: 10px 14px; font-size: 14px; resize: none; outline: none; font-family: inherit; line-height: 1.4; max-height: 80px; transition: border-color .2s; }
.chat-input:focus { border-color: #0088cc; }
.chat-send { background: linear-gradient(135deg,#0088cc,#29b6f6); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; flex-shrink: 0; transition: transform .15s; }
.chat-send:hover { transform: scale(1.1); }
.chat-send:active { transform: scale(.95); }

/* 文件上传按钮 */
.chat-upload-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #94a3b8; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.chat-upload-btn:hover { color: #0088cc; background: rgba(0,136,204,.08); }
.chat-upload-btn:active { transform: scale(.95); }
.chat-upload-btn svg { width: 18px; height: 18px; }

/* 文件预览 */
.chat-preview { padding: 6px 12px; display: flex; align-items: center; gap: 8px; background: #f1f5f9; border-top: 1px solid rgba(0,136,204,.06); font-size: 12px; color: #64748b; }
.chat-preview-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview-remove { background: none; border: none; color: #94a3b8; font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; }
.chat-preview-remove:hover { color: #ef4444; }

/* 媒体消息 */
.chat-msg-media { margin-bottom: 4px; }
.chat-msg-img { max-width: 220px; max-height: 200px; border-radius: 10px; cursor: pointer; display: block; transition: transform .15s; }
.chat-msg-img:hover { transform: scale(1.02); }
.chat-msg-video { max-width: 220px; max-height: 200px; border-radius: 10px; display: block; background: #000; }

@media (max-width:480px) {
  .service-fab { right: 12px; bottom: 16px; }
  .service-btn { padding: 8px 14px; font-size: 13px; }
  .service-label { display: none; }
  .service-modal-box { padding: 24px 18px 20px; }
  .chat-fab { right: 12px; bottom: 16px; }
  .chat-btn { padding: 10px 14px; font-size: 13px; }
  .chat-label { display: none; }
  .chat-window { right: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .chat-header { border-radius: 0; }
  .chat-input-area { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; opacity: 1; transform: none; } }
@media (max-width:1024px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .title { font-size: 17px; } .desc { font-size: 14px; } .card { grid-template-columns: 50px minmax(0,1fr); } .avatar { width: 50px; height: 50px; } }
@media (max-width:768px) {
  header { margin: 0 auto 4px; border-radius: 0 0 18px 18px; }
  .nav { padding: 8px 12px; } .brand-logo { height: 30px; max-width: 130px; } .brand-text { font-size: 15px; }
  .carousel { padding: 0 10px; margin: 2px auto; } .carousel-wrap { border-radius: 18px; }
  .slide { min-height: 168px; max-height: 235px; height: 46vw; } .car-btn { width: 40px; height: 40px; }
  #apps.section, #cardsScroll .section { padding: 0 10px; margin-top: 2px; }
  .marquee-wrap { min-height: 30px; border-radius: 12px; padding: 4px 10px; } .marquee-text { font-size: 13px; white-space: nowrap; } .marquee-icon svg { width: 16px; height: 16px; } .marquee-label { font-size: 11px; padding: 2px 8px; }
  #cardsScroll .section .pk16-category-title { font-size: 20px; margin-bottom: 10px; padding: 5px 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .card { padding: 8px; gap: 6px; border-radius: 14px; grid-template-columns: 42px minmax(0,1fr); }
  .avatar { width: 42px; height: 42px; } .title { font-size: 17px; line-height: 1.2; } .desc { font-size: 13px; line-height: 1.25; margin-top: 2px; }
  .rating { margin-top: 4px; gap: 4px; } .stars svg { width: 13px; height: 13px; } .score { font-size: 10px; }
  .card .go { min-width: 100%; font-size: 11px; padding: 6px 8px; border-radius: 10px; margin: 3px 0 0; }
}
@media (max-width:420px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .card { padding: 7px; } .title { font-size: 16px; } .desc { font-size: 12px; } .card .go { font-size: 10px; padding: 5px 7px; } }

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --panel: rgba(30, 41, 59, .72);
    --panel-soft: rgba(30, 41, 59, .58);
    --primary: #60a5fa;
    --primary-strong: #3b82f6;
    --accent: #818cf8;
    --text: #e8eaf6;
    --muted: #9ca3af;
    --shadow: 0 12px 28px rgba(0, 0, 0, .4);
    --shadow-strong: 0 20px 46px rgba(0, 0, 0, .5);
    --hover-shadow: 0 14px 30px rgba(96, 165, 250, .35);
    --hover-border: rgba(96, 165, 250, .5);
    --rating: #fbbf24;
    --warm-accent: rgba(251,146,60,.55);
    --warm-shadow: rgba(251,146,60,.25);
    --bg-gradient-1: rgba(99, 102, 241, .18);
    --bg-gradient-2: rgba(139, 92, 246, .15);
    --bg-gradient-3: rgba(59, 130, 246, .12);
  }
  
  html { background: #0f172a; }
  
  body::before {
    background:
      radial-gradient(900px 500px at -15% -10%, rgba(99, 102, 241, .2), transparent 55%),
      radial-gradient(800px 480px at 115% 15%, rgba(139, 92, 246, .18), transparent 58%),
      radial-gradient(700px 450px at 50% 85%, rgba(59, 130, 246, .15), transparent 52%),
      radial-gradient(600px 400px at 30% 50%, rgba(168, 85, 247, .1), transparent 50%),
      linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
    animation: auroraFlow 20s ease-in-out infinite;
  }
  @keyframes auroraFlow {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); filter: hue-rotate(0deg); }
    33% { opacity: .88; transform: scale(1.03) rotate(.5deg); filter: hue-rotate(15deg); }
    66% { opacity: .92; transform: scale(.98) rotate(-.3deg); filter: hue-rotate(-10deg); }
  }
  
  .wm { opacity: .025; }
  
  header {
    background: linear-gradient(180deg, rgba(30, 41, 59, .85), rgba(30, 41, 59, .75));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 16px 38px rgba(0,0,0,.4);
  }
  
  header::before {
    background: linear-gradient(120deg, rgba(99, 102, 241, .1), transparent 60%);
  }
  
  .brand-text { color: #e2e8f0; }
  .brand-logo { filter: drop-shadow(0 10px 20px rgba(96,165,250,.25)) brightness(1.1); }
  
  .carousel-wrap {
    background: linear-gradient(180deg, rgba(30, 41, 59, .6), rgba(30, 41, 59, .4));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 26px 46px rgba(0,0,0,.5);
  }
  
  .slide { background: #1e293b; }
  
  .car-btn {
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(30, 41, 59, .7);
    color: #e2e8f0;
  }
  
  .car-btn:hover { background: rgba(96,165,250,.15); }
  
  .dot { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.25); }
  .dot.active { background: var(--primary); }
  
  .marquee-wrap {
    background: linear-gradient(120deg, rgba(99,102,241,.92), rgba(139,92,246,.88), rgba(99,102,241,.92));
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 24px rgba(99,102,241,.35);
  }
  
  #cardsScroll .section .pk16-category-title { color: #e2e8f0; }
  
  .card {
    background: linear-gradient(180deg, rgba(30, 41, 59, .75), rgba(30, 41, 59, .65));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.3);
  }
  
  .card:hover { border-color: var(--warm-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 36px var(--warm-shadow); }
  
  .avatar { border: 2px solid rgba(96,165,250,.25); box-shadow: 0 8px 18px rgba(96,165,250,.2); background: #1e293b; }
  
  .title { color: #f1f5f9; }
  .desc { color: var(--muted); }
  .score { color: #cbd5e1; }
  
  .stars svg { fill: var(--rating); filter: drop-shadow(0 2px 6px rgba(251,191,36,.4)); }
  
  .card .go {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 18px rgba(99,102,241,.4);
  }
  
  .notice-modal { background: rgba(0,0,0,.6); }
  .notice-box { background: rgba(30,41,59,.96); border: 1px solid rgba(96,165,250,.25); }
  .notice-close { color: #94a3b8; }
  .notice-title h3 { color: #f1f5f9; }
  .notice-content { color: #cbd5e1; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.15); }
  .notice-icon { background: linear-gradient(135deg,#60a5fa,#818cf8); }
  .notice-ok { background: linear-gradient(90deg,#60a5fa,#818cf8); }
  
  .site-footer, .brand-footer { color: #94a3b8; background: transparent !important; }
  .brand-footer .desc, .brand-footer .copy { color: #64748b; }
  
  .service-modal { background: rgba(0,0,0,.6); }
  .service-modal-box { background: rgba(30,41,59,.96); border: 1px solid rgba(96,165,250,.25); }
  .service-modal-close { color: #94a3b8; }
  .service-modal-title { color: #f1f5f9; }
  .service-modal-desc { color: #94a3b8; }
  .service-modal-img { border-color: rgba(96,165,250,.15); }
  
  .chat-window { background: rgba(30,41,59,.97); border-color: rgba(96,165,250,.15); }
  .chat-body { background: rgba(15,23,42,.6); }
  .chat-msg-bot .chat-msg-content, .chat-msg-admin .chat-msg-content { background: rgba(51,65,85,.8); color: #e2e8f0; border-color: rgba(96,165,250,.1); }
  .chat-input-area { background: rgba(30,41,59,.9); border-top-color: rgba(96,165,250,.1); }
  .chat-input { background: rgba(51,65,85,.6); border-color: rgba(96,165,250,.15); color: #e2e8f0; }
  .chat-input::placeholder { color: #64748b; }
  .chat-input:focus { border-color: #29b6f6; }
  .chat-upload-btn { color: #94a3b8; }
  .chat-upload-btn:hover { color: #60a5fa; background: rgba(96,165,250,.1); }
  .chat-preview { background: rgba(51,65,85,.4); border-top-color: rgba(96,165,250,.06); color: #94a3b8; }
  .chat-preview-remove:hover { color: #f87171; }
  .chat-msg-video { background: #1e293b; }
}