:root {
    --ue-black: #0e1114;
    --ue-dark: #1a1a1a;
    --ue-blue: #0070e0;
    --ue-blue-hover: #0056b3;
    --text-main: #f5f5f5;
    --text-muted: #a1a1a1;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏默认滚动条但允许滚动 */
html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    font-family: "Microsoft YaHei", "Heiti SC", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
    background-color: var(--ue-black);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 侧边圆点导航 */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--ue-blue);
    border-color: var(--ue-black);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--ue-blue);
}

/* 功能区块布局 */
.section-block {
    scroll-margin-top: 80px;
    width: 100%;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(14, 17, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: var(--ue-blue);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* ================= Hero 区域 (全屏优化) ================= */
.hero {
    height: 100vh;
    /* 占满全屏 */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 80px;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(14, 17, 20, 0.9) 0%, rgba(14, 17, 20, 0.7) 40%, rgba(14, 17, 20, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-tag {
    color: var(--ue-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

p.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    margin-top: 20px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 1px;
    max-width: 800px;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 40px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--ue-blue);
    color: white;
    border: 1px solid var(--ue-blue);
}

.btn-primary:hover {
    background-color: var(--ue-blue-hover);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ================= 状态条 (绝对定位到底部) ================= */
.status-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 1px solid #333;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    overflow: hidden;
    z-index: 20;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.refresh-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.refresh-bar {
    height: 100%;
    width: 0%;
    background-color: var(--ue-blue);
    box-shadow: 0 0 10px var(--ue-blue);
}

/* 内容布局 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
}

.section-title span {
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* 通用卡片 */
.card {
    background: var(--ue-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.card-img {
    height: 220px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ue-blue);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-link {
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--ue-blue);
}

/* 社区中心 */
.community-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-left: 4px solid var(--ue-blue);
    height: 500px;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.chat-section {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    overflow: hidden;
    min-height: 0;
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-window {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;
}

.chat-window::-webkit-scrollbar {
    width: 8px;
}

.chat-window::-webkit-scrollbar-track {
    background: #111;
}

.chat-window::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.chat-window::-webkit-scrollbar-thumb:hover {
    background: var(--ue-blue);
}

.chat-line {
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.msg-time {
    color: #666;
    font-size: 0.8rem;
    margin-right: 10px;
}

.msg-user {
    color: var(--ue-blue);
    font-weight: 700;
    margin-right: 5px;
}

.msg-content {
    color: #ddd;
}

.system-msg .msg-user {
    color: #ffcc00;
}

.system-msg .msg-content {
    color: #ffcc00;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-list-panel {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 0;
}

.player-list-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid #333;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-list-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.player-list-content::-webkit-scrollbar {
    width: 6px;
}

.player-list-content::-webkit-scrollbar-thumb {
    background: #333;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    transition: background 0.2s;
    cursor: default;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 10px;
    background: #333;
}

.player-name {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.player-status-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 5px #00ff88;
}

.empty-tip {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* 排行榜 */
.ranking-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-top: 4px solid var(--ue-blue);
    backdrop-filter: blur(5px);
    padding: 20px;
    margin-top: 40px;
}

.ranking-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ranking-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-note {
    font-size: 0.75rem;
    color: #666;
    margin-left: 15px;
    font-weight: 400;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 3px;
}

.rank-tab {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #aaa;
    transition: all 0.3s;
    border-radius: 3px;
    font-weight: 500;
}

.rank-tab:hover {
    color: #fff;
}

.rank-tab.active {
    background: var(--ue-blue);
    color: #fff;
    font-weight: 700;
}

.ranking-search {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    margin-left: auto;
}

.ranking-search input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
}

.ranking-search button {
    background: #222;
    border: none;
    color: #aaa;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 1px solid #444;
}

.ranking-search button:hover {
    background: var(--ue-blue);
    color: #fff;
}

.ue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ue-table th {
    text-align: left;
    padding: 12px;
    color: #666;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-bottom: 1px solid #333;
}

.ue-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.ue-table tr:last-child td {
    border-bottom: none;
}

.ue-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rank-num {
    font-weight: 900;
    font-size: 1.1rem;
    color: #555;
    width: 40px;
    text-align: center;
    display: inline-block;
}

.rank-1 .rank-num {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rank-2 .rank-num {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.rank-3 .rank-num {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-cell img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #222;
}

.player-cell span {
    font-weight: 600;
    color: #fff;
}

.highlight-stat {
    color: var(--ue-blue);
    font-weight: 700;
}

.rank-empty {
    height: 53px;
}

.rank-empty:hover {
    background: transparent !important;
    cursor: default;
}

.rank-empty td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* 更新日志 */
.changelog-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.changelog-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.changelog-item:last-child {
    margin-bottom: 0;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--ue-black);
    border: 2px solid var(--ue-blue);
    border-radius: 50%;
    z-index: 2;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    line-height: 1;
}

.log-ver {
    font-family: 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 112, 224, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 112, 224, 0.5);
}

.log-date {
    color: #666;
    font-size: 0.85rem;
}

.log-tag {
    font-size: 0.75rem;
    background: #333;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.log-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.log-content li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.log-content li::before {
    content: '•';
    color: var(--ue-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.changelog-item:hover .log-ver {
    background: var(--ue-blue);
    color: #fff;
    border-color: var(--ue-blue);
}

.changelog-item:hover::before {
    background: var(--ue-blue);
    box-shadow: 0 0 10px var(--ue-blue);
}

.btn-changelog-more {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-changelog-more:hover {
    border-color: var(--ue-blue);
    color: #fff;
    background: rgba(0, 112, 224, 0.1);
}

/* 视频卡片 */
.video-card {
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--ue-blue);
}

.video-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-img-wrapper {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #222;
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-overlay i {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-card:hover .video-overlay i {
    transform: scale(1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.watch-btn {
    color: var(--ue-blue);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.bili-more-btn {
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid #444;
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.bili-more-btn:hover {
    background: var(--ue-blue);
    border-color: var(--ue-blue);
    color: white;
    transform: translateX(3px);
}

footer {
    background: #000;
    padding: 60px 40px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

/* ================= 社交按钮样式 ================= */

/* 基础按钮结构 */
.nav-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

/* Discord 品牌色 */
.btn-discord {
    background-color: #5865F2;
    border: 1px solid #5865F2;
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* QQ 品牌色 */
.btn-qq {
    background-color: #12B7F5;
    border: 1px solid #12B7F5;
}

.btn-qq:hover {
    background-color: #0aa3db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

/* 语言切换按钮样式 */
.lang-toggle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   移动端响应式 (核心部分)
   =================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    /* 隐藏顶部导航链接 */
    .nav-links {
        display: none;
    }

    /* 【关键修改】隐藏 Logo 中的文字，只保留图标，解决拥挤问题 */
    .nav-logo {
        font-size: 0;
        gap: 0;
    }

    .nav-logo i {
        font-size: 1.5rem;
        display: block;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .community-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .player-list-panel {
        height: 200px;
        border-left: none;
        border-top: 1px solid #333;
    }

    .ranking-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-search {
        margin-left: 0;
        width: 100%;
    }

    .ranking-search input {
        width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .ue-table {
        min-width: 600px;
    }

    #video-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .bili-more-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .changelog-container {
        padding: 20px;
    }

    .log-meta {
        gap: 10px;
    }

    .log-ver {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {

    /* 平板/手机端，社交按钮只显示图标 */
    .social-text {
        display: none;
    }

    .nav-social-btn {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
    }

    .nav-social-btn i {
        font-size: 1.1rem;
    }
}