:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #eef3fb; color: #0f172a; font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
.phone { width: min(430px, 100%); min-height: 100vh; margin: 0 auto; background: #f7f9fc; display: flex; flex-direction: column; }
.head { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 12px 0 12px 0 !important; }
.logo, .mark { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; }
.logo { background: #1e3a8a; color: #fde68a; }
.mark img, .logo img { width: 100%; height: 100%; object-fit: cover; }
.title { font-weight: 700; color: #1e3a8a; }
.banner { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 1500 / 632; background: #e0f2fe; }
.banner-track { display: flex; height: 100%; transition: transform .5s linear; }
.banner a { position: relative; flex: 0 0 100%; height: 100%; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(0,0,0,.35); display: block; }
.dots i.on { width: 16px; background: #fff; }
.wrap { padding: 12px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.horn { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 999px; padding: 8px 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.horn b { color: #2563eb; flex: 0 0 auto; white-space: nowrap; }
.horn .viewport { flex: 1; min-width: 0; overflow: hidden; }
.horn-track { display: flex; width: max-content; white-space: nowrap; animation: slide 10s linear infinite; }
.horn-track span { white-space: nowrap; padding-right: 48px; color: #b45309; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.text-grad { position: relative; color: #128a4e; font-weight: 700; font-size: 18px; }
.text-grad::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background-image: linear-gradient(115deg, #e11d48 0%, #ea580c 20%, #ca8a04 40%, #0284c7 60%, #7c3aed 80%, #e11d48 100%);
  background-size: 240% 240%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-shine 9s linear infinite;
}
@keyframes text-shine { from { background-position: 130% -30%; } to { background-position: -30% 130%; } }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { background: #f4f7ff; border-radius: 16px; padding: 10px 6px; text-align: center; min-width: 0; }
.card .name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.card .desc { color: #94a3b8; font-size: 11px; line-height: 1.35; height: 2.7em; overflow: hidden; }
.btn { display: inline-block; margin-top: 8px; background: #3b82f6; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e5e7eb; position: sticky; bottom: 0; }
.tabs a { text-align: center; padding: 8px 0 6px; color: #c5d0e2; font-size: 12px; }
.tabs a img { width: 32px; height: 32px; display: block; margin: 0 auto 2px; }
.tabs a.on { color: #3b82f6; font-weight: 700; }
.friends { background: #fff; border-radius: 16px; padding: 12px; }
.chip { display: inline-block; background: #f8fafc; color: #0f172a; border-radius: 8px; padding: 6px 10px; margin: 4px 4px 0 0; }
.dark .chip { background: #1a2033; color: #e2e8f0; }
.dark .chip.on { background: linear-gradient(90deg, #0ea5e9, #6366f1); color: #fff; }
.guide-title { font-size: 26px; background: linear-gradient(90deg, #38bdf8, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page { width: min(430px, 100%); margin: 0 auto; min-height: 100vh; padding: 16px; }
.play { background: #070b18; color: #fff; padding: 0 0 24px; }
.play-top { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.play-title { font-size: 18px; font-weight: 700; background: linear-gradient(90deg, #e879f9, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.play-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; background: #071525; border-top: 1px solid rgba(34,211,238,.25); border-bottom: 1px solid rgba(34,211,238,.25); font-size: 12px; color: #cbd5e1; }
.play-vpn { flex-shrink: 0; border-radius: 999px; padding: 4px 12px; color: #fff; background: linear-gradient(90deg, #0ea5e9, #8b5cf6); }
.play-search { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #12182b; color: #94a3b8; }
.play-search input { flex: 1; border: 0; background: transparent; color: #fff; outline: none; }
.play-badge { display: inline-flex; margin: 12px 16px 0; border-radius: 12px; padding: 8px 14px; background: linear-gradient(90deg, #0ea5e9, #8b5cf6); font-size: 14px; }
.play-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.play-item { display: block; width: 100%; margin: 0; background: none; border: 0; color: inherit; padding: 0; text-align: center; }
.play-item img, .play-item .cover { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; object-fit: cover; font-size: 18px; font-weight: 700; }
.play-item .nm { display: block; margin-top: 4px; font-size: 12px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 24px; }
.mask[hidden] { display: none; }
.sheet { width: min(360px, 100%); background: #12182b; border-radius: 16px; padding: 20px; text-align: center; }
.sheet img, .sheet .cover { width: 96px; margin: 0 auto; }
.sheet button { margin-top: 12px; border: 0; border-radius: 999px; background: #0ea5e9; color: #fff; padding: 8px 16px; }
.back { display: inline-block; background: #2563eb; color: #fff; border-radius: 999px; padding: 8px 14px; }
.dark { background: #070b16; color: #fff; }
.dark .page { background: #070b16; }
.tool { display: flex; gap: 12px; align-items: center; color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.desk { display: flex; min-height: 100vh; background: #f5f7fb; }
.stats b { display: block; font-size: 28px; margin-top: 6px; }
.muted { color: #64748b; font-size: 13px; }
.legend { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #64748b; }
.legend i { width: 22px; height: 8px; border-radius: 99px; display: inline-block; }
.legend .c1 { background: #5eead4; }
.legend .c2 { background: #3b82f6; margin-left: 10px; }
.chart { width: 100%; height: auto; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.side { width: 220px; flex-shrink: 0; background: #1e293b; color: #cbd5e1; }
.side .brand { color: #fff; font-weight: 700; padding: 16px; }
.side .g { color: #64748b; font-size: 12px; padding: 14px 16px 4px; }
.side a { display: block; color: #cbd5e1; padding: 10px 16px; }
.side a.on { background: #334155; color: #fff; }
.main { flex: 1; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 16px; }
.content { padding: 16px; }
.block { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; margin-top: 10px; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; }
.ops button { background: #e2e8f0; color: #0f172a; }
@media (max-width: 800px) {
  .desk { display: block; }
  .side { width: 100%; }
}
.box { background: #fff; border-radius: 12px; padding: 12px; margin: 12px 0; }
label { display: block; font-size: 13px; color: #64748b; margin-top: 8px; }
input, textarea, select { width: 100%; padding: 8px; border: 1px solid #e5e7eb; border-radius: 8px; }
button, .save { background: #2563eb; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.warn { background: #fee2e2; color: #991b1b; padding: 12px; border-radius: 8px; }

/* 首页推荐游戏：手机 App 图标 */
.grid3 .card .mark {
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 24px;
    font-weight: 700;
}

.grid3 .card .mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 游戏分类页：手机 App 卡片 */
.games-app-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    background: #eef4ff;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
}

.games-app-icon {
    width: 84px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    margin: 4px auto 10px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    font-size: 25px;
    font-weight: 700;
    color: #fff;
}

.games-app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.games-app-icon.no-image {
    background: linear-gradient(145deg, #60a5fa, #4338ca) !important;
}

.games-app-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.games-app-desc {
    width: 100%;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    min-height: 34px;
    margin: 8px 0 10px;
    overflow: hidden;
}

.games-official {
    position: absolute;
    right: 0;
    top: 0;
    padding: 4px 8px;
    background: #3b82f6;
    color: #fff;
    border-radius: 0 0 0 10px;
    font-size: 10px;
}
