: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: #4b6288;
  --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);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #edf3ff; }
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(1000px 540px at -20% -10%, rgba(56, 189, 248, .25), transparent 60%),
    radial-gradient(860px 480px at 120% 6%, rgba(37, 99, 235, .24), transparent 62%),
    linear-gradient(160deg, #eef4ff 0%, #e8effd 48%, #edf3ff 100%);
  pointer-events: none;
}
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: .06;
  background-image: repeating-linear-gradient(45deg, transparent 0 40px, rgba(31, 111, 235, .25) 40px 41px), repeating-linear-gradient(-45deg, transparent 0 40px, rgba(42, 168, 255, .22) 40px 41px);
}
.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: 12px; padding: 4px 10px; cursor: pointer;
  background: linear-gradient(120deg, rgba(44,115,255,.88), rgba(89,178,255,.82));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px rgba(42,105,214,.24);
  display: flex; align-items: center; gap: 8px; transition: opacity .2s;
}
.marquee-wrap:hover { opacity: .9; }
.marquee { display: inline-flex; align-items: center; white-space: nowrap; animation: marqueeMove 5s linear infinite; padding-left: 6px; z-index: 2; }
.marquee-text { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .5px; text-shadow: 0 1px 0 rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.18); }
@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: rgba(84,151,255,.48); box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 16px 36px rgba(37,92,184,.2); }
.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: #1f6feb; filter: drop-shadow(0 2px 6px rgba(31,111,235,.25)); }
.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: linear-gradient(110deg, #2f7bff 0%, #50a8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 8px 18px rgba(47,123,255,.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; }
@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: 10px; } .marquee-text { font-size: 12px; white-space: nowrap; }
  #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; } }