/* =========================================================
   Smart Explore | Pellosy 智能仪表盘（升级版）
   苹果玻璃拟态 × 极光动态背景 × Motion 动效
   ========================================================= */

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --text-main: #ffffff;
    --text-muted: #b8b8c0;
    --text-faint: #6e6e76;
    --accent: #00caff;
    --accent-2: #0071e3;
    --accent-3: #9b6dff;
    --success: #00ff66;
    --warn: #ffaa00;
    --danger: #ff4d4d;
    --radius-main: 18px;
    --blur-strength: 18px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: #0a0a0f;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: #000;
    background: var(--accent);
}

/* ---------- 动态背景 ---------- */

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 0%, #141426 0%, #0a0a0f 52%, #050508 100%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(120, 160, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, .08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent);
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
    will-change: transform;
}

.aurora-blob-one {
    top: -12%;
    right: -8%;
    width: 44vw;
    height: 44vw;
    max-width: 620px;
    max-height: 620px;
    background: radial-gradient(circle at 35% 35%, #0071e3, transparent 68%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora-blob-two {
    bottom: -16%;
    left: -10%;
    width: 46vw;
    height: 46vw;
    max-width: 640px;
    max-height: 640px;
    background: radial-gradient(circle at 60% 40%, #9b6dff, transparent 68%);
    animation: auroraDrift 22s ease-in-out infinite alternate-reverse;
}

.aurora-blob-three {
    top: 34%;
    left: 38%;
    width: 30vw;
    height: 30vw;
    max-width: 420px;
    max-height: 420px;
    opacity: .3;
    background: radial-gradient(circle, #00caff, transparent 66%);
    animation: auroraDrift 26s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(5vw, 4vh) scale(1.12);
    }
}

.bg-particles {
    position: absolute;
    inset: 0;
}

.bg-particles i {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particleRise 10s linear infinite;
}

@keyframes particleRise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    12% {
        opacity: .7;
    }

    85% {
        opacity: .18;
    }

    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

.bg-noise {
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 滚动进度条 ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transform-origin: left center;
    transform: scaleX(0);
    pointer-events: none;
}

/* ---------- 侧边导航 ---------- */

.sidebar-nav {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    background: rgba(20, 20, 24, .45);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

.nav-item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s ease;
    color: var(--text-main);
    background: transparent;
    border: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .18);
    transform: scale(1.1) translateY(-2px);
}

.nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: rgba(10, 10, 14, .88);
    color: #fff;
    padding: 6px 12px;
    font-size: .78rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all .2s ease;
    border: 1px solid rgba(255, 255, 255, .12);
}

.nav-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.nav-divider {
    width: 28px;
    height: 1px;
    background: var(--glass-border);
}

/* ---------- 主内容 ---------- */

.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    margin-left: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.search-container {
    margin-top: 9vh;
    width: 90%;
    max-width: 680px;
    text-align: center;
}

.greeting-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: .85rem;
    letter-spacing: .04em;
}

.greeting-clock {
    padding: 5px 12px;
    color: var(--accent);
    background: rgba(0, 202, 255, .1);
    border: 1px solid rgba(0, 202, 255, .28);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.welcome-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -.02em;
    text-shadow: 0 6px 26px rgba(0, 0, 0, .45);
}

.welcome-title em {
    font-style: normal;
}

.title-shimmer {
    background: linear-gradient(
        100deg,
        var(--accent) 20%,
        #fff 45%,
        var(--accent-3) 70%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
    to {
        background-position: -220% 0;
    }
}

/* ---------- 搜索栏 ---------- */

.search-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6px 12px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
    transition: border-color .3s ease, box-shadow .3s ease;
}

.search-bar-wrap:focus-within {
    border-color: rgba(0, 202, 255, .55);
    box-shadow: 0 14px 44px rgba(0, 120, 212, .28);
}

.spotlight-card {
    position: relative;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(
        420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(0, 202, 255, .14),
        transparent 65%
    );
    transition: opacity .35s ease;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card > * {
    position: relative;
    z-index: 1;
}

/* 仅卡片类 Spotlight 需要裁切，搜索栏不裁切（避免裁掉下拉菜单） */
.shortcut-item.spotlight-card,
.news-card.spotlight-card {
    overflow: hidden;
}

.custom-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    user-select: none;
    border-right: 1px solid var(--glass-border);
    padding-right: 5px;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-main);
    height: 100%;
    background: transparent;
    border: 0;
}

.dropdown-arrow {
    font-size: .65rem;
    transition: transform .25s ease;
    opacity: .6;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(18, 18, 24, .97);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    width: 168px;
    padding: 6px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .55);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px) scale(.97);
    pointer-events: none;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

.dropdown-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: .88rem;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
    color: var(--text-muted);
    text-align: left;
    background: transparent;
    border: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding-left: 18px;
}

.dropdown-item.active {
    background: rgba(0, 120, 212, .4);
    color: var(--accent);
    font-weight: 600;
}

.search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 15px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.search-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .25s ease, transform .25s var(--ease);
}

.search-btn:hover {
    background: var(--accent-2);
    transform: scale(1.08);
}

.magnetic-btn {
    will-change: transform;
}

/* ---------- 热门 / 最近 ---------- */

.hot-row,
.recent-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.row-label {
    color: var(--text-faint);
    font-size: .75rem;
    letter-spacing: .08em;
}

.hot-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hot-chip {
    padding: 7px 14px;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: .8rem;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.hot-chip:hover {
    color: #fff;
    background: rgba(0, 202, 255, .16);
    border-color: rgba(0, 202, 255, .5);
    transform: translateY(-2px);
}

.chip-clear {
    padding: 5px 10px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    font-size: .72rem;
    transition: color .2s ease;
}

.chip-clear:hover {
    color: var(--danger);
}

/* ---------- 快捷入口 ---------- */

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 2.6rem;
    width: 100%;
    max-width: 620px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    color: var(--text-main);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-main);
    transition: transform .3s var(--ease), background .3s ease, border-color .3s ease;
    will-change: transform;
}

.shortcut-item:hover {
    transform: translateY(-5px);
    background: var(--glass-bg-strong);
    border-color: rgba(0, 202, 255, .4);
}

.shortcut-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform .4s var(--ease);
}

.shortcut-item:hover .shortcut-icon {
    transform: rotate(-10deg) scale(1.12);
}

.shortcut-name {
    font-size: .82rem;
    color: var(--text-muted);
}

.shortcut-item:hover .shortcut-name {
    color: #fff;
}

/* ---------- 资讯流 ---------- */

.msn-feed-section {
    margin-top: 8vh;
    width: 90%;
    max-width: 1000px;
    padding-bottom: 60px;
}

.feed-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.feed-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-filter {
    padding: 6px 14px;
    color: var(--text-muted);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: .78rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.feed-filter:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.feed-filter.is-active {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.news-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-main);
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
    will-change: transform;
}

.news-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 202, 255, .4);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .4);
}

.news-card.is-hidden {
    display: none;
}

.news-img {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform .5s var(--ease);
}

.news-card:hover .news-img {
    transform: scale(1.06);
}

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    font-size: .72rem;
    background: rgba(255, 255, 255, .14);
    padding: 3px 9px;
    border-radius: 10px;
    margin-bottom: 10px;
    letter-spacing: .04em;
}

.news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 10px;
}

.news-desc {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---------- 页脚 ---------- */

.site-footer {
    margin-top: 5vh;
    width: 100%;
    max-width: 1000px;
    padding: 20px 0 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: var(--text-muted);
}

.footer-left a {
    color: var(--text-muted);
    transition: color .2s ease;
}

.footer-left a:hover {
    color: var(--accent);
}

.footer-right {
    display: flex;
    align-items: center;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .05);
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 9px var(--success);
    transition: all .4s ease;
}

.latency-text {
    font-size: .78rem;
    opacity: .85;
    min-width: 56px;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.ping-chart {
    opacity: .85;
}

/* ---------- 弹窗 ---------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.device-modal {
    background: rgba(22, 22, 28, .86);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    width: 92%;
    max-width: 500px;
    padding: 28px;
    transform: translateY(22px) scale(.94);
    opacity: 0;
    transition: transform .38s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}

.modal-overlay.active .device-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.modal-title {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-modal-btn,
.notice-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform .25s var(--ease), color .2s ease;
}

.close-modal-btn:hover,
.notice-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, .06);
    padding: 12px 16px;
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
}

.info-row:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateX(4px);
}

.info-label {
    color: var(--text-muted);
    font-size: .85rem;
}

.info-value {
    color: var(--accent);
    font-weight: 600;
    font-size: .85rem;
    text-align: right;
    word-break: break-all;
}

/* ---------- AI 助理 ---------- */

.ai-modal {
    max-width: 560px;
}

.ai-modal-title select {
    margin-left: auto;
    padding: 4px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    font-size: .78rem;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
}

.ai-modal-title select option {
    color: #fff;
    background: #19191e;
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    max-height: 300px;
    overflow-y: auto;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}

.ai-bubble {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    animation: bubbleIn .35s var(--ease) both;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

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

.ai-bubble-user {
    align-self: flex-end;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), #3a8cff);
    border-bottom-right-radius: 4px;
}

.ai-bubble-assistant {
    align-self: flex-start;
    color: #e8e8ee;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .08);
    border-bottom-left-radius: 4px;
}

.ai-bubble.is-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.ai-bubble.is-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: typingDot 1.2s ease-in-out infinite;
}

.ai-bubble.is-typing i:nth-child(2) {
    animation-delay: .18s;
}

.ai-bubble.is-typing i:nth-child(3) {
    animation-delay: .36s;
}

@keyframes typingDot {
    0%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.ai-quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ai-quick-chip {
    padding: 6px 12px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(0, 202, 255, .3);
    border-radius: 999px;
    font-size: .76rem;
    transition: color .2s ease, background .2s ease, transform .2s var(--ease);
}

.ai-quick-chip:hover {
    color: #fff;
    background: rgba(0, 202, 255, .14);
    transform: translateY(-2px);
}

.ai-input-row {
    display: flex;
    gap: 10px;
}

.ai-input-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    outline: none;
    font-size: .9rem;
    transition: border-color .2s ease;
}

.ai-input-row input:focus {
    border-color: rgba(0, 202, 255, .5);
}

.ai-send-btn {
    padding: 12px 22px;
    color: #fff;
    background: var(--accent-2);
    border: none;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s ease, transform .2s var(--ease);
}

.ai-send-btn:hover:not(:disabled) {
    background: #3a8cff;
    transform: translateY(-2px);
}

.ai-send-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ---------- 公告 ---------- */

.notice-modal-card {
    background: rgba(22, 22, 28, .9);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    width: 92%;
    max-width: 600px;
    padding: 28px;
    transform: translateY(22px) scale(.94);
    opacity: 0;
    transition: transform .38s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.modal-overlay.active .notice-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.notice-modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-line {
    text-align: center;
    padding: 20px;
    opacity: .6;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 6px;
}

.accordion-container::-webkit-scrollbar {
    width: 5px;
}

.accordion-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
}

.accordion-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    transition: background .25s ease, border-color .25s ease, transform .25s var(--ease);
}

.accordion-item:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    transform: translateX(3px);
}

.accordion-item.active {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(0, 202, 255, .35);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    gap: 14px;
}

.notice-title {
    font-size: .92rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-align: left;
}

.notice-date {
    font-size: .76rem;
    color: #ccc;
    background: rgba(255, 255, 255, .08);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.accordion-arrow {
    font-size: .65rem;
    opacity: .5;
    transition: transform .3s ease, color .3s ease;
    color: #fff;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--accent);
    opacity: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
    background: rgba(0, 0, 0, .15);
}

.accordion-body {
    padding: 16px 18px;
    font-size: .86rem;
    line-height: 1.65;
    color: #dbdbdb;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ---------- 右键菜单 ---------- */

.custom-context-menu {
    position: fixed;
    display: none;
    min-width: 170px;
    background: rgba(18, 18, 24, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, .6);
    z-index: 99999;
    transform-origin: top left;
    animation: menuScaleIn .18s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes menuScaleIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    color: rgba(255, 255, 255, .85);
    font-size: .86rem;
    cursor: pointer;
    border-radius: 9px;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
    background: transparent;
    border: 0;
    text-align: left;
}

.menu-item:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding-left: 16px;
}

.menu-icon {
    font-size: .95rem;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 5px 4px;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    z-index: 99999;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px 18px;
    color: #fff;
    background: rgba(18, 18, 24, .92);
    border: 1px solid rgba(0, 202, 255, .5);
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
    font-size: .85rem;
    letter-spacing: .02em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* ---------- 进场动画 ---------- */

[data-reveal],
[data-reveal-section] {
    opacity: 0;
}

[data-reveal].is-visible,
[data-reveal-section].is-visible {
    animation: revealUp .85s var(--ease) both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

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

body.page-leaving {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
    .shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        position: fixed;
        bottom: 12px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: auto;
        height: 58px;
        padding: 0 18px;
        gap: 8px;
        border-radius: 20px;
    }

    .nav-divider {
        width: 1px;
        height: 26px;
    }

    .nav-item::after {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 90px;
    }

    .site-footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding-bottom: 80px;
    }

    .feed-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-container {
        margin-top: 7vh;
    }
}

@media (max-width: 480px) {
    .greeting-row {
        flex-direction: column;
        gap: 6px;
    }

    .dropdown-menu {
        width: 150px;
    }

    .ping-chart {
        display: none;
    }
}

/* ---------- 减少动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
    .aurora-blob,
    .bg-particles i,
    .title-shimmer,
    .ai-bubble.is-typing i {
        animation: none;
    }

    [data-reveal],
    [data-reveal-section],
    .device-modal,
    .notice-modal-card,
    body.page-leaving {
        transition: none;
    }

    [data-reveal],
    [data-reveal-section] {
        opacity: 1;
        transform: none;
    }

    .shortcut-item,
    .news-card,
    .magnetic-btn {
        will-change: auto;
    }
}

/* =========================================================
   F1 专区（Formula 1 品牌配色：红 #E10600 / 深 #15151e）
   ========================================================= */

.f1-section {
    position: relative;
    width: 90%;
    max-width: 1080px;
    margin-top: 6vh;
    padding: 36px 34px 40px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(225, 6, 0, .14), transparent 42%),
        linear-gradient(180deg, #191922 0%, #15151e 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top: 3px solid #e10600;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.f1-section::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 240px;
    height: 240px;
    border: 2px solid rgba(225, 6, 0, .18);
    border-radius: 50%;
    pointer-events: none;
}

.f1-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.f1-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.f1-logo {
    width: 132px;
    height: 34px;
    display: inline-block;
    filter: drop-shadow(0 6px 16px rgba(225, 6, 0, .42));
}

.f1-logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.f1-kicker {
    color: #949598;
    font-size: 10px;
    letter-spacing: .24em;
}

.f1-title {
    margin-top: 6px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.f1-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: 11px;
    color: #d7d7da;
}

.f1-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 9px #00ff66;
    transition: background .3s ease, box-shadow .3s ease;
}

.f1-status.is-offline i {
    background: #ffaa00;
    box-shadow: 0 0 9px #ffaa00;
}

.f1-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
    margin: 26px 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.f1-tab {
    padding: 10px 16px;
    color: #949598;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    transition: color .2s ease, border-color .2s ease;
}

.f1-tab:hover {
    color: #fff;
}

.f1-tab.is-active {
    color: #fff;
    border-bottom-color: #e10600;
}

.f1-panel {
    display: none;
}

.f1-panel.is-active {
    display: block;
    animation: f1PanelIn .4s var(--ease) both;
}

@keyframes f1PanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- 新闻 --- */

.f1-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 16px;
}

.f1-news-sources {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.f1-news-src {
    padding: 6px 14px;
    color: #949598;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: .76rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.f1-news-src:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.f1-news-src.is-active {
    color: #fff;
    background: #e10600;
    border-color: #e10600;
    font-weight: 600;
}

.f1-news-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s var(--ease), border-color .3s ease;
}

.f1-news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 6, 0, .6);
}

.f1-news-thumb {
    height: 118px;
    display: grid;
    place-items: center;
    font-size: 32px;
    background:
        linear-gradient(135deg, rgba(225, 6, 0, .22), transparent 55%),
        linear-gradient(135deg, #2a2a35, #15151e);
    background-size: cover;
    background-position: center;
}

.f1-news-body {
    padding: 14px;
}

.f1-news-title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}

.f1-news-desc {
    margin-top: 8px;
    color: #949598;
    font-size: .76rem;
    line-height: 1.5;
}

.f1-news-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #6e6e76;
    font-size: .7rem;
}

/* --- 赛历 --- */

.f1-calendar {
    display: flex;
    flex-direction: column;
}

.f1-race {
    display: grid;
    grid-template-columns: 52px 60px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-left: 3px solid transparent;
    transition: background .2s ease, border-color .2s ease;
}

.f1-race:hover {
    background: rgba(255, 255, 255, .04);
}

.f1-race.is-next {
    background: rgba(225, 6, 0, .08);
    border-left-color: #e10600;
}

.f1-race.is-past {
    opacity: .48;
}

.f1-round {
    color: #e10600;
    font-size: .92rem;
    font-weight: 800;
}

.f1-flag {
    font-size: 26px;
    line-height: 1;
}

.f1-race-name {
    font-size: .88rem;
    font-weight: 600;
}

.f1-race-circuit {
    margin-top: 3px;
    color: #949598;
    font-size: .74rem;
}

.f1-race-date {
    color: #d7d7da;
    font-size: .78rem;
    text-align: right;
    line-height: 1.5;
}

.f1-badge {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    color: #fff;
    background: #e10600;
    border-radius: 6px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
}

/* --- 积分榜 --- */

.f1-standings-head {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.f1-st-toggle {
    padding: 7px 15px;
    color: #949598;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-size: .78rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.f1-st-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.f1-st-toggle.is-active {
    color: #fff;
    background: #e10600;
    border-color: #e10600;
    font-weight: 600;
}

.f1-table {
    display: flex;
    flex-direction: column;
}

.f1-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s ease;
}

.f1-row:hover {
    background: rgba(255, 255, 255, .035);
}

.f1-row.is-top {
    background: linear-gradient(90deg, rgba(225, 6, 0, .12), transparent);
}

.f1-pos {
    color: #949598;
    font-size: .92rem;
    font-weight: 800;
}

.f1-row.is-top .f1-pos {
    color: #fff;
}

.f1-row.is-top .f1-pos::after {
    content: "◆";
    margin-left: 6px;
    color: #e10600;
    font-size: .7rem;
}

.f1-driver {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.f1-driver-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.f1-team-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 3px;
}

.f1-team-badge {
    min-width: 34px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0 6px;
    border-radius: 6px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.f1-team-logo {
    width: 40px;
    height: 26px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 3px 5px;
    background: rgba(255, 255, 255, .92);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.f1-team-logo.is-broken {
    display: none;
}

.f1-driver-name {
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-driver-team {
    color: #949598;
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-pts {
    font-size: .92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.f1-row.is-top .f1-pts {
    color: #e10600;
}

/* --- 实时 --- */

.f1-live-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: #d7d7da;
    font-size: .85rem;
}

.f1-live-clock {
    color: #e10600;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 驾驶舱三栏 */

.f1-cockpit {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1.05fr;
    gap: 16px;
    align-items: stretch;
}

.f1-live-weather {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 14px;
}

.f1-wx-chip {
    padding: 4px 11px;
    color: #c9c9d0;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
}

.f1-track-map {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.f1-track-map svg {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
}

/* 红色光点沿赛道流动 */
@keyframes f1TrackFlow {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1000;
    }
}

@media (prefers-reduced-motion: reduce) {
    #f1TrackGlow {
        animation: none !important;
    }
}

/* 实时位置标记 */
.f1-map-marker text {
    fill: #fff;
    font-size: 8px;
    font-weight: 700;
    text-anchor: middle;
    paint-order: stroke;
}

.f1-map-marker circle {
    stroke: rgba(0, 0, 0, .5);
    stroke-width: 1;
}

.f1-map-label {
    position: absolute;
    top: 10px;
    left: 12px;
    padding: 4px 10px;
    color: #d7d7da;
    background: rgba(10, 10, 14, .7);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .06em;
}

/* 中栏：下一站 + 倒计时 + 周末安排 */

.f1-cockpit-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.f1-next-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(225, 6, 0, .16), transparent 55%),
        rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
}

.f1-next-flag {
    font-size: 34px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4));
}

.f1-next-meta {
    min-width: 0;
}

.f1-next-round {
    display: inline-block;
    margin-bottom: 5px;
    padding: 2px 9px;
    color: #fff;
    background: #e10600;
    border-radius: 6px;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.f1-next-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-next-circuit {
    margin-top: 3px;
    color: #949598;
    font-size: .7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-countdown {
    padding: 16px 14px 14px;
    background: linear-gradient(180deg, rgba(225, 6, 0, .1), rgba(225, 6, 0, .02));
    border: 1px solid rgba(225, 6, 0, .25);
    border-radius: 14px;
}

.f1-count-label {
    color: #d7d7da;
    font-size: .72rem;
    text-align: center;
    letter-spacing: .14em;
}

.f1-count-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.f1-count-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 56px;
    padding: 9px 6px 7px;
    background: rgba(10, 10, 14, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
}

.f1-count-cell b {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(225, 6, 0, .55);
}

.f1-count-cell span {
    color: #949598;
    font-size: .64rem;
}

.f1-count-sep {
    color: #e10600;
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: -14px;
}

.f1-session-head {
    color: #d7d7da;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
}

.f1-session-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.f1-session-row {
    display: grid;
    grid-template-columns: 24px 68px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    transition: opacity .25s ease;
}

.f1-session-row.is-past {
    opacity: .45;
}

.f1-session-icon {
    font-size: .95rem;
    text-align: center;
}

.f1-session-name {
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
}

.f1-session-date {
    color: #a9a9b2;
    font-size: .68rem;
    font-variant-numeric: tabular-nums;
}

.f1-session-state {
    padding: 2px 8px;
    color: #949598;
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    font-size: .62rem;
    white-space: nowrap;
}

.f1-session-row:not(.is-past) .f1-session-state {
    color: #ffd7d3;
    background: rgba(225, 6, 0, .22);
}

/* 右栏 */

.f1-cockpit-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.f1-side-head {
    margin-bottom: 10px;
    color: #d7d7da;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.f1-map-marker circle {
    stroke: #fff;
    stroke-width: 1.5;
}

.f1-map-marker text {
    font-size: 7.5px;
    font-weight: 800;
    fill: #fff;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(10, 10, 14, .85);
    stroke-width: 2px;
}

.f1-live-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
}

.f1-live-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-left: 4px solid #555;
    border-radius: 11px;
    transition: transform .25s var(--ease), border-color .25s ease;
}

.f1-live-card:hover {
    transform: translateY(-2px);
}

.f1-live-card.is-live {
    background: rgba(225, 6, 0, .06);
}

.f1-live-pos {
    min-width: 22px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.f1-live-card.is-top3 .f1-live-pos {
    color: #e10600;
}

.f1-live-logo {
    width: 30px;
    height: 22px;
    flex-shrink: 0;
}

.f1-live-main {
    min-width: 0;
}

.f1-live-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-live-lap {
    padding: 1px 6px;
    color: #ffd7d3;
    background: rgba(225, 6, 0, .25);
    border-radius: 5px;
    font-size: .58rem;
    font-style: normal;
    font-weight: 700;
}

.f1-live-team {
    margin-top: 2px;
    color: #949598;
    font-size: .66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f1-live-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.f1-live-time {
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.f1-live-tire {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #111;
    background: #fff;
    border-radius: 50%;
    font-size: .6rem;
    font-weight: 800;
}

.f1-live-note {
    margin-top: 14px;
    color: #6e6e76;
    font-size: .7rem;
}

.f1-live-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.f1-tr-panel,
.f1-rc-panel {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    padding: 14px;
}

.f1-extra-head {
    margin-bottom: 10px;
    color: #d7d7da;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
}

.f1-tr-list,
.f1-rc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.f1-tr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-left: 3px solid #555;
    border-radius: 9px;
}

.f1-tr-play {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    background: #e10600;
    border: 0;
    border-radius: 50%;
    font-size: .7rem;
    transition: transform .2s var(--ease), background .2s ease;
}

.f1-tr-play:hover {
    background: #ff2d1c;
    transform: scale(1.1);
}

.f1-tr-driver {
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    white-space: nowrap;
}

.f1-tr-snippet {
    min-width: 0;
    color: #a9a9b2;
    font-size: .7rem;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.f1-rc-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
}

.f1-rc-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.f1-rc-message {
    min-width: 0;
    color: #c9c9d0;
    font-size: .72rem;
    line-height: 1.45;
}

.f1-rc-time {
    margin-left: auto;
    flex-shrink: 0;
    color: #6e6e76;
    font-size: .64rem;
    white-space: nowrap;
}

.f1-empty {
    padding: 14px;
    color: #6e6e76;
    font-size: .72rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 9px;
}

/* --- F1 响应式 --- */

@media (max-width: 980px) {
    .f1-cockpit {
        grid-template-columns: 1fr 1fr;
    }

    .f1-cockpit-side {
        grid-column: 1 / -1;
    }

    .f1-live-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .f1-count-cell {
        min-width: 44px;
    }

    .f1-count-cell b {
        font-size: 1.25rem;
    }
}

@media (max-width: 720px) {
    .f1-section {
        width: 94%;
        padding: 26px 18px 30px;
        border-radius: 16px;
    }

    .f1-race {
        grid-template-columns: 42px 46px 1fr;
        gap: 10px;
    }

    .f1-race-date {
        grid-column: 3;
        text-align: left;
    }

    .f1-news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .f1-tab {
        padding: 9px 10px;
        font-size: 12px;
    }

    .f1-cockpit,
    .f1-live-extra {
        grid-template-columns: 1fr;
    }

    .f1-track-map {
        min-height: 190px;
    }

    .f1-logo {
        width: 112px;
        height: 29px;
    }
}

@media (max-width: 480px) {
    .f1-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .f1-panel.is-active {
        animation: none;
    }
}
