﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --warn: #ffb020;
    --danger: #ff5c7a;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg1);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

/* 固定背景，避免长页面出现拼接感 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(900px 520px at 18% -10%, rgba(124,92,255,.35), transparent 60%), radial-gradient(900px 520px at 88% 8%, rgba(48,213,200,.20), transparent 60%), radial-gradient(900px 640px at 50% 120%, rgba(55,214,122,.12), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
    background-repeat: no-repeat;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 14px 22px;
}

/* 顶部 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--brand),var(--brand2));
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.brand .t {
    font-weight: 950;
    letter-spacing: .2px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghost {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ghost svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

/* 主卡片 */
.card {
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.card:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(240px 160px at 15% 25%, rgba(255,255,255,.10), transparent 60%), radial-gradient(300px 200px at 85% 10%, rgba(255,255,255,.08), transparent 62%);
    pointer-events: none;
}

.inner {
    position: relative;
    padding: 16px 16px 14px;
}

.title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .25px;
}

.ver {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.10);
    color: rgba(234,240,255,.78);
    font-size: 12px;
    white-space: nowrap;
}

.lead {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.banner {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,176,32,.22);
    background: rgba(255,176,32,.08);
    padding: 12px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.banner .bicon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(255,176,32,.25);
    background: rgba(0,0,0,.10);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.banner .bicon svg {
    width: 18px;
    height: 18px;
}

.banner .btxt {
    min-width: 0;
    color: rgba(255,240,215,.95);
    font-size: 13px;
    line-height: 1.65;
}

/* 条目 */
.sections {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

details {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.10);
    overflow: hidden;
}

summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

summary::-webkit-details-marker {
    display: none;
}

.sum-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 950;
    letter-spacing: .2px;
    font-size: 14px;
}

.icon {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.icon svg {
    width: 18px;
    height: 18px;
    opacity: .95;
}

.chev {
    width: 18px;
    height: 18px;
    opacity: .85;
    transition: transform .18s ease;
    flex: 0 0 auto;
}

details[open] .chev {
    transform: rotate(180deg);
}

.content {
    padding: 0 12px 12px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(234,240,255,.76);
    font-size: 13px;
    line-height: 1.75;
}

.content ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.content li {
    margin: 6px 0;
}

.note {
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    padding: 10px 10px;
    color: rgba(234,240,255,.70);
    font-size: 12.5px;
    line-height: 1.7;
}

/* 底部按钮 */
.actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 140px;
    border-radius: 14px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.92);
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.btn.primary {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.12));
    border-color: rgba(255,255,255,.18);
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: .92;
}

/* Footer */
.site-footer {
    margin-top: 18px;
    padding: 18px 12px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12px;
    color: rgba(234,240,255,.55);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: rgba(234,240,255,.70);
    text-decoration: none;
    padding: 2px 4px;
}

.footer-links .sep {
    opacity: .35;
}

.footer-meta {
    margin-top: 10px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
}
