.platform-page {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse 650px 340px at 50% 0%, #e7efff, transparent), #f6f8fc;
    color: #162541;
    font: 16px/1.5 Inter, "Microsoft YaHei", sans-serif;
}

.platform-page [hidden], .platform-page [v-cloak] { display: none; }

.platform-nav {
    min-height: 60px;
    box-sizing: border-box;
    padding: 10px clamp(16px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fcfdff;
    border-bottom: 1px solid #e2e8f3;
}

.platform-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #162541;
    text-decoration: none;
    font: 700 clamp(13px, 3.4vw, 17px)/1.4 Inter, "Microsoft YaHei", sans-serif;
}

.platform-brand::before {
    content: "";
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 8px;
    background:
        linear-gradient(#fff, #fff) 6px 14px / 3px 6px no-repeat,
        linear-gradient(#fff, #fff) 11px 10px / 3px 10px no-repeat,
        linear-gradient(#fff, #fff) 16px 6px / 3px 14px no-repeat,
        linear-gradient(145deg, #4c72e8, #2b50b9);
}

.platform-avatar {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #dce8ff;
    color: #194aab;
    text-decoration: none;
    font: 700 15px/1 Inter, "Microsoft YaHei", sans-serif;
}

.platform-signin {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid #c9d8f1;
    border-radius: 8px;
    background: #f4f8ff;
    color: #194aab;
    text-decoration: none;
    font: 600 14px/1.5 Inter, "Microsoft YaHei", sans-serif;
    cursor: pointer;
}

.platform-signin:hover, .platform-avatar:hover { background: #e4eeff; }

.platform-entry:focus-visible,
.platform-brand:focus-visible,
.platform-signin:focus-visible,
.platform-avatar:focus-visible,
.platform-history summary:focus-visible {
    outline: 2px solid #315ecb;
    outline-offset: 4px;
}

.platform-main {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(32px, 7vw, 90px) 20px;
}

.platform-home-main { padding-top: clamp(48px, 8vw, 110px); }
.platform-main h1 { margin: 0 0 22px; font-size: clamp(28px, 5vw, 44px); line-height: 1.2; }
.platform-home-main h1 { margin-bottom: 30px; font-size: clamp(36px, 6vw, 58px); letter-spacing: -.045em; }
.platform-main h2 { margin: 0 0 6px; font-size: 21px; }
.platform-main p { margin: 0; color: #4b5b73; }

.platform-entries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.platform-entry, .platform-profile, .platform-history details {
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e0e7f2;
    border-radius: 16px;
    box-shadow: 0 6px 20px -14px #31598c4d;
}

.platform-entry-body, .platform-profile, .platform-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.platform-entry {
    --entry-ink: #315bc5;
    --entry-tint: #eaf0ff;
    --entry-glow: #dce7ff;
    --entry-fill: #6e92ed;
    color: inherit;
    text-decoration: none;
    padding: clamp(14px, 2vw, 20px);
}

.platform-entry--analysis {
    --entry-ink: #266b64;
    --entry-tint: #e7f5f2;
    --entry-glow: #d5efea;
    --entry-fill: #58a99e;
}

.platform-entry:hover, .platform-entry:focus-visible {
    border-color: var(--entry-fill);
    box-shadow: 0 15px 32px -18px #31598c72;
}

.platform-entry-graphic {
    min-height: clamp(96px, 13vw, 136px);
    display: grid;
    place-items: center;
    border-radius: 11px;
    background:
        radial-gradient(ellipse at 50% 105%, var(--entry-glow), transparent 72%),
        linear-gradient(90deg, #fff8 1px, transparent 1px) center / 22px 22px,
        linear-gradient(#fff8 1px, transparent 1px) center / 22px 22px,
        var(--entry-tint);
}

.platform-bars, .platform-distribution {
    height: clamp(55px, 9vw, 86px);
    width: min(47%, 200px);
    padding-inline: 7%;
    box-sizing: content-box;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 1px solid var(--entry-fill);
}

.platform-entry-graphic i {
    display: block;
    flex: 1 1 0;
    height: 38%;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(var(--entry-fill), var(--entry-glow));
    transform-origin: bottom;
}

.platform-bars i:nth-child(2), .platform-bars i:nth-child(4) { height: 55%; }
.platform-bars i:nth-child(3) { height: 72%; }
.platform-bars i:nth-child(5) { height: 91%; }
.platform-distribution i:first-child, .platform-distribution i:last-child { height: 14%; }
.platform-distribution i:nth-child(3), .platform-distribution i:nth-child(5) { height: 70%; }
.platform-distribution i:nth-child(4) { height: 92%; }

.platform-entry-body { flex-wrap: nowrap; padding: 16px 3px 5px; }
.platform-entry-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--entry-tint);
    color: var(--entry-ink);
    font-size: 20px;
}

.platform-profile { margin-bottom: 30px; }
.platform-history { display: grid; gap: 12px; }
.platform-history summary { cursor: pointer; }
.platform-history summary time, .platform-history summary span { color: #4b5b73; font-size: 14px; }
.platform-history summary::after { content: "+"; font-weight: 700; }
.platform-history details[open] summary::after { content: "−"; }
.platform-history details[open] { border-color: #c5d6f3; }
.platform-history-result { min-width: 0; margin-top: 20px; }
.platform-history-result h3 { margin: 0 0 14px; }
.platform-history-result p { margin: 8px 0 18px; }
.platform-table-scroll { overflow-x: auto; margin-bottom: 12px; }
.platform-table-scroll table { width: 100%; border-collapse: collapse; font-size: 14px; }
.platform-table-scroll caption { padding: 6px 0; text-align: left; font-weight: 600; }
.platform-table-scroll th, .platform-table-scroll td { border: 1px solid #dce3ee; padding: 6px 10px; text-align: left; }
.platform-table-scroll th { background: #f1f5fc; }
#history-more { margin-top: 14px; }
#analysis-platform-nav + .app { min-height: calc(100vh - 60px); }
.platform-page .modal-mask { background: #1327475c; backdrop-filter: blur(3px); }
.platform-page .modal-box { box-shadow: 0 24px 72px -24px #14284a97; }

@media (prefers-reduced-motion: no-preference) {
    .platform-home-main h1, .platform-entry {
        animation: platform-enter 420ms ease both;
    }

    .platform-entry {
        animation-delay: 70ms;
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .platform-entry--analysis { animation-delay: 135ms; }
    .platform-entry-arrow { transition: transform 180ms ease; }
    .platform-entry:hover, .platform-entry:focus-visible { transform: translateY(-3px); }
    .platform-entry:hover .platform-entry-arrow, .platform-entry:focus-visible .platform-entry-arrow {
        transform: translateX(3px);
    }

    .platform-entry-graphic i { animation: platform-grow 450ms 170ms ease both; }
    .platform-entry--analysis .platform-entry-graphic i { animation-delay: 235ms; }
    .platform-page .modal-box, .platform-history details[open] .platform-history-result {
        animation: platform-enter 200ms ease both;
    }
}

@keyframes platform-enter {
    from { opacity: 0; translate: 0 8px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes platform-grow {
    from { transform: scaleY(.22); opacity: .5; }
    to { transform: scaleY(1); opacity: 1; }
}
