:root {
    --up-primary: #4f46e5;
    --up-primary-dark: #4338ca;
    --up-soft: #eef2ff;
    --up-text: #1e293b;
    --up-sub: #64748b;
    --up-muted: #94a3b8;
    --up-card: #fff;
    --up-border: #e2e8f0;
    --up-ease: cubic-bezier(.22,1,.36,1);
    --up-shadow: 0 1px 2px rgba(15,23,42,.05),0 4px 16px -8px rgba(15,23,42,.08);
    --up-shadow-hover: 0 12px 28px -12px rgba(79,70,229,.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f8fafc radial-gradient(circle at 20% 20%,rgba(99,102,241,.05),transparent 40%),radial-gradient(circle at 80% 80%,rgba(168,85,247,.05),transparent 40%);
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;
    color: var(--up-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--up-primary);
    outline-offset: 2px;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.up-hero {
    position: relative;
    overflow: hidden;
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 16px;
    box-shadow: var(--up-shadow);
    padding: clamp(1.5rem,3.5vw,2.5rem) clamp(1.25rem,3vw,2rem);
    text-align: center;
    margin-bottom: 1.25rem;
}

.up-hero:before {
    content: "";
    position: absolute;
    top: -120px;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(99,102,241,.08),transparent 68%);
    pointer-events: none;
}

.up-hero:after {
    content: "";
    position: absolute;
    bottom: -140px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(124,58,237,.07),transparent 68%);
    pointer-events: none;
}

.up-hero-badge {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3125rem .8125rem;
    margin-bottom: 1rem;
    background: var(--up-soft);
    border: 1px solid #c7d2fe;
    color: var(--up-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.up-hero-badge, .up-hero-dot {
    position: relative;
    border-radius: 999px;
}

.up-hero-dot {
    width: .5rem;
    height: .5rem;
    background: var(--up-primary);
}

.up-hero-dot:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(99,102,241,.45);
    animation: upPing 1.4s cubic-bezier(0,0,.2,1) infinite;
}

@keyframes upPing {
    75%, to {
        transform: scale(2.4);
        opacity: 0;
    }
}

.up-hero-title {
    position: relative;
    z-index: 1;
    margin: 0 auto .75rem;
    font-size: clamp(1.625rem,3.5vw,2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--up-text);
}

.up-hero-sub {
    margin: 0 auto;
    max-width: 40rem;
    font-size: .9063rem;
    line-height: 1.8;
    color: var(--up-sub);
}

.up-hero-sub, .up-search {
    position: relative;
    z-index: 1;
}

.up-search {
    max-width: 480px;
    margin: 1.25rem auto 0;
    display: flex;
    align-items: center;
}

.up-search>i {
    position: absolute;
    left: 16px;
    font-size: 1.125rem;
    color: var(--up-muted);
    pointer-events: none;
}

.up-search input {
    width: 100%;
    padding: 12px 18px 12px 44px;
    border: 1px solid var(--up-border);
    border-radius: 12px;
    background: var(--up-card);
    font-size: .9688rem;
    color: var(--up-text);
    box-shadow: var(--up-shadow);
    font-family: inherit;
    transition: border-color .2s ease,box-shadow .2s ease;
}

.up-search input:focus {
    outline: none;
    border-color: var(--up-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.up-search input::placeholder {
    color: var(--up-muted);
}

.up-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 1.25rem;
}

.up-stat {
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--up-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    transition: transform .3s var(--up-ease),box-shadow .3s var(--up-ease),border-color .3s var(--up-ease);
}

.up-stat:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
    box-shadow: var(--up-shadow-hover);
}

.up-stat-head {
    gap: 9px;
    min-width: 0;
}

.up-stat-head, .up-stat-icon {
    display: flex;
    align-items: center;
}

.up-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.up-stat-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.up-stat-icon.violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.up-stat-icon.sky {
    background: #f0f9ff;
    color: #0284c7;
}

.up-stat-icon.amber {
    background: #fffbeb;
    color: #d97706;
}

.up-stat-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--up-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-stat-value {
    font-size: clamp(1.375rem,2vw,1.75rem);
    font-weight: 800;
    color: var(--up-text);
    line-height: 1.2;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.up-stat-value.indigo {
    color: var(--up-primary);
}

.up-stat-hint {
    font-size: .75rem;
    color: var(--up-muted);
    line-height: 1.5;
}

.date-group {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
    margin-bottom: 2rem;
}

.date-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: var(--up-card);
    border-radius: 20px;
    font-weight: 700;
    color: var(--up-primary);
    box-shadow: 0 4px 10px rgba(79,70,229,.15);
    margin-bottom: 15px;
    border: 1px solid rgba(99,102,241,.1);
    font-size: .9063rem;
}

.date-header i {
    font-size: .9375rem;
}

.card {
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 1.25rem;
    box-shadow: var(--up-shadow);
    padding: 1.5rem;
    transition: transform .3s,box-shadow .3s,border-color .3s;
    transform: translateZ(0);
    contain: layout paint style;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -16px rgba(79,70,229,.18),0 8px 16px -10px rgba(15,23,42,.1);
    border-color: rgba(99,102,241,.3);
}

.update-list {
    list-style: none;
}

.update-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226,232,240,.6);
}

.update-item:last-child {
    border-bottom: none;
}

.update-icon {
    margin: 3px 10px 0 0;
    color: #cbd5e1;
    font-size: 1.0625rem;
    transition: color .3s;
    flex-shrink: 0;
}

.card:hover .update-icon {
    color: var(--up-primary);
}

.update-content {
    flex: 1;
    min-width: 0;
}

.update-name {
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .9688rem;
}

.update-time {
    font-size: .75rem;
    font-weight: 400;
    margin-left: auto;
    color: var(--up-sub);
}

.update-desc {
    font-size: .875rem;
    line-height: 1.6;
    word-break: break-word;
    color: var(--up-sub);
}

.tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex-shrink: 0;
    transition: all .2s ease;
}

.tag, .tag i {
    font-size: .75rem;
}

.tag-doc {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    text-decoration: none;
}

.tag-doc:hover {
    background: #16a34a;
    color: #fff;
}

.tag-fix {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.tag-new {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.tag-optimize {
    background: #faf5ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
}

.tag-offline {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.no-result {
    padding: 40px 20px;
    border-radius: 1.25rem;
    color: var(--up-sub);
    font-size: .9375rem;
}

.error, .no-result {
    text-align: center;
    background: var(--up-card);
    border: 1px solid var(--up-border);
}

.error {
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.error>i {
    font-size: 2.75rem;
    color: #f87171;
    display: block;
    margin-bottom: .25rem;
}

.error.empty>i {
    color: var(--up-muted);
}

.error strong {
    font-size: 1.0625rem;
    color: var(--up-text);
}

.error span {
    font-size: .875rem;
    color: var(--up-sub);
    opacity: .85;
    line-height: 1.7;
}

.retry-btn {
    margin-top: 10px;
    background: var(--up-primary);
    color: #fff;
}

.retry-btn:hover {
    background: var(--up-primary-dark);
}

.runtime {
    background: var(--up-card);
    border: 1px solid var(--up-border);
    border-radius: 16px;
    box-shadow: var(--up-shadow);
    text-align: center;
    padding: clamp(1.5rem,3vw,2rem);
    margin-bottom: 2rem;
}

.runtime-title {
    font-size: .9688rem;
    color: var(--up-sub);
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.runtime-title i {
    color: var(--up-primary);
    font-size: 1.125rem;
}

.runtime-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.time-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 6px;
    border: 1px solid var(--up-border);
    transition: transform .3s,border-color .3s;
    transform: translateZ(0);
}

.time-card:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
}

.time-val {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--up-primary);
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-size: .75rem;
    color: var(--up-muted);
    margin-top: 4px;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--up-primary);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79,70,229,.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease,transform .2s ease,box-shadow .2s ease;
    z-index: 100;
    font-family: inherit;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(79,70,229,.4);
}

@keyframes upFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: upFadeIn .6s ease-out forwards;
    opacity: 0;
}

@media (min-width:768px) {
    .up-stats {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}

@media (min-width:1024px) {
    .container {
        width: auto;
        max-width: none;
        margin: 0 -24px;
        padding: 0;
        min-height: calc(100vh - 104px);
    }
}

@media (max-width:768px) {
    .runtime-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .card {
        padding: 1.25rem;
    }

    .update-time {
        width: 100%;
        margin-left: 0;
        margin-top: 2px;
    }
}

@media (max-width:640px) {
    .up-hero {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .up-hero-badge {
        font-size: .78125rem;
        margin-bottom: .75rem;
    }

    .up-hero-title {
        font-size: 1.0625rem;
        margin-bottom: .5rem;
    }

    .up-hero-sub {
        font-size: .84375rem;
    }

    .up-search {
        margin-top: 1rem;
    }

    .up-search>i {
        left: 13px;
        font-size: 1rem;
    }

    .up-search input {
        padding: 9px 13px 9px 40px;
        font-size: .90625rem;
    }

    .up-stats {
        display: none;
    }

    .date-group {
        margin-bottom: 1.25rem;
    }

    .date-header {
        font-size: .84375rem;
        padding: 4px 12px;
    }

    .card {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .update-item {
        padding: 10px 0;
    }

    .update-icon {
        margin: 2px 8px 0 0;
        font-size: 1rem;
    }

    .update-name {
        font-size: .90625rem;
        margin-bottom: 3px;
        gap: 6px;
    }

    .update-desc {
        font-size: .8125rem;
    }

    .tag, .tag i, .update-time {
        font-size: .78125rem;
    }

    .tag {
        height: 19px;
        padding: 1px 7px;
    }

    .error {
        padding: 24px 18px 20px;
    }

    .error>i {
        font-size: 2.25rem;
    }

    .error strong {
        font-size: .9375rem;
    }

    .error span {
        font-size: .8125rem;
    }

    .no-result {
        font-size: .8125rem;
        padding: 32px 16px;
    }

    .runtime {
        padding: 16px 18px;
    }

    .runtime-title {
        font-size: .84375rem;
        margin-bottom: 1rem;
    }

    .runtime-grid {
        gap: 8px;
        max-width: 100%;
    }

    .time-card {
        padding: 10px 4px;
    }

    .time-val {
        font-size: 1.125rem;
    }

    .time-label {
        font-size: .71875rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none!important;
        animation: none!important;
        scroll-behavior: auto!important;
    }

    .fade-in {
        opacity: 1;
    }
}

html.dark body {
    background-color: #0a101f;
    color: #dbe4f3;
}

html.dark .up-hero {
    background: #101a2e;
    border-color: #24314e;
}

html.dark .up-hero-badge {
    background: rgba(99,102,241,.16);
    border-color: rgba(129,140,248,.35);
    color: #a5b4fc;
}

html.dark .up-hero-title {
    color: #e6edf9;
}

html.dark .up-hero-sub {
    color: #a8b6cc;
}

html.dark .up-search input {
    background: #101a2e;
    border-color: #24314e;
    color: #e6edf9;
}

html.dark .up-search input:focus {
    border-color: #818cf8;
    background: #162136;
}

html.dark .up-search>i {
    color: #71839d;
}

html.dark .up-search input::placeholder {
    color: #54678a;
}

html.dark .up-stat {
    background: #101a2e;
    border-color: #24314e;
}

html.dark .up-stat:hover {
    border-color: rgba(129,140,248,.5);
    box-shadow: 0 12px 28px -12px rgba(0,0,0,.5);
}

html.dark .up-stat-label {
    color: #a8b6cc;
}

html.dark .up-stat-value {
    color: #e6edf9;
}

html.dark .up-stat-value.indigo {
    color: #a5b4fc;
}

html.dark .up-stat-hint {
    color: #71839d;
}

html.dark .up-stat-icon.indigo {
    background: rgba(99,102,241,.16);
    color: #a5b4fc;
}

html.dark .up-stat-icon.violet {
    background: rgba(139,92,246,.16);
    color: #c084fc;
}

html.dark .up-stat-icon.sky {
    background: rgba(14,165,233,.16);
    color: #38bdf8;
}

html.dark .up-stat-icon.amber {
    background: rgba(245,158,11,.16);
    color: #fbbf24;
}

html.dark .date-header {
    background: #101a2e;
    color: #a5b4fc;
    border-color: rgba(99,102,241,.3);
    box-shadow: none;
}

html.dark .card {
    background: #101a2e;
    border-color: #24314e;
}

html.dark .card:hover {
    border-color: rgba(129,140,248,.5);
}

html.dark .update-name {
    color: #e6edf9;
}

html.dark .update-desc, html.dark .update-time {
    color: #a8b6cc;
}

html.dark .update-icon {
    color: #3b4e74;
}

html.dark .card:hover .update-icon {
    color: #a5b4fc;
}

html.dark .no-result {
    color: #8b9bb4;
}

html.dark .error, html.dark .no-result {
    background: #101a2e;
    border-color: #24314e;
}

html.dark .error strong {
    color: #e6edf9;
}

html.dark .error span, html.dark .error.empty {
    color: #8b9bb4;
}

html.dark .runtime {
    background: #101a2e;
    border-color: #24314e;
}

html.dark .runtime-title {
    color: #a8b6cc;
}

html.dark .runtime-title i {
    color: #a5b4fc;
}

html.dark .time-card {
    background: #162136;
    border-color: #24314e;
}

html.dark .time-card:hover {
    border-color: rgba(129,140,248,.5);
}

html.dark .time-val {
    color: #a5b4fc;
}

html.dark .time-label {
    color: #71839d;
}
