/* ================= 核心全局变量 ================= */
:root {
    --primary: #0d9488;        /* 极光青 */
    --primary-hover: #0f766e;
    --primary-light: #f0fdfa;  /* 极浅青色底 */
    --accent: #f97316;         /* 珊瑚橘 */
    --bg-body: #f4f7f9;        /* 清新浅灰蓝 */
    --bg-sidebar: rgba(255, 255, 255, 0.9); 
    --text-main: #334155;
    --text-dark: #0f172a;
    --text-sub: #64748b;
    --radius-main: 24px;       
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(13, 148, 136, 0.15);

    /* 红金传奇专色体系 */
    --legend-crimson: #be123c;
    --legend-gold: #b45309;
    --legend-bg: #fff1f2;

    /* 蓝紫精品推荐专色体系 */
    --popular-blue: #1d4ed8;
    --popular-purple: #7e22ce;
    --popular-bg: #f0f9ff;
}

/* ================= 基础重置与无偏移渲染 ================= */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    font-family: 'Inter', "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px; line-height: 1.6; letter-spacing: 0.02em;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px; position: relative; overflow-x: hidden;
}

body::before, body::after {
    content: ''; position: fixed; filter: blur(140px); z-index: -1; 
    opacity: 0.6; border-radius: 50%; pointer-events: none;
}
body::before { top: -10%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, #ccfbf1, transparent 70%); }
body::after { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, #e0e7ff, transparent 70%); }

ul, li { list-style: none; }
a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;}
img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 页面入场流畅非阻塞动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } 
.delay-2 { animation-delay: 0.2s; } 
.delay-3 { animation-delay: 0.3s; } 
.delay-4 { animation-delay: 0.4s; }

/* ================= 侧边栏常驻导航 ================= */
.g-sidenav {
    position: fixed; left: 24px; top: 24px; bottom: 24px; width: 270px; 
    background: var(--bg-sidebar); border-radius: var(--radius-main); z-index: 1000; display: flex; flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.04); border: 1px solid rgba(255,255,255,1); 
    backdrop-filter: blur(24px); overflow: hidden;
}
.brand-area { 
    height: 96px; display: flex; align-items: center; padding: 0 24px; 
    border-bottom: 1px dashed rgba(0,0,0,0.06); margin-bottom: 12px; position: relative;
}
.logo-icon {
    width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin-right: 14px; color: #fff; font-size: 20px; box-shadow: 0 8px 16px rgba(13, 148, 136, 0.25); flex-shrink: 0;
}
.logo-cn { font-size: 22px; font-weight: 900; letter-spacing: 2px; background: linear-gradient(to right, #0f172a, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-list { padding: 0 16px 20px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-title { font-size: 12px; font-weight: 800; color: #94a3b8; padding: 0 12px; margin: 24px 0 12px 0; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; }
.nav-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0,0,0,0.05), transparent); margin-left: 12px; }
.nav-list li { margin-bottom: 8px; }
.nav-list li a { display: flex; align-items: center; padding: 12px 14px; color: #475569; border-radius: 16px; font-weight: 600; font-size: 15px; letter-spacing: 0.05em; transition: all 0.3s; position: relative; }
.nav-list li a i { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; margin-right: 14px; font-size: 16px; border-radius: 12px; background: rgba(0,0,0,0.03); color: #64748b; transition: all 0.3s; }
.nav-list li.active a { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); color: #fff; box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.5); }
.nav-list li.active a i { background: rgba(255,255,255,0.25); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.nav-list li:not(.active) a:hover { background: rgba(13, 148, 136, 0.06); color: var(--primary-hover); transform: translateX(6px); }
.nav-list li:not(.active) a:hover i { background: #fff; color: var(--primary); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12); transform: scale(1.08) rotate(3deg); }

/* 常驻侧边栏二级浮出菜单样式 */
.nav-submenu {
    position: fixed; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 40px -5px rgba(13, 148, 136, 0.12); backdrop-filter: blur(24px); border-radius: 20px;
    padding: 24px; z-index: 1001; width: 440px; opacity: 0; visibility: hidden; transform: translateX(-15px);
    transition: all 0.3s; pointer-events: none;
}
.nav-submenu.show { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
#submenu-mobile { width: 620px; }
.submenu-title { font-size: 16px; font-weight: 800; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed rgba(0,0,0,0.06); display: flex; align-items: center; gap: 10px; }
.submenu-title i { color: var(--primary); font-size: 18px; }
.submenu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
#submenu-mobile .submenu-grid { grid-template-columns: repeat(3, 1fr); }
.submenu-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--text-main); font-size: 13px; font-weight: 700; background: rgba(0,0,0,0.02); border: 1px solid transparent; transition: 0.3s;}
.submenu-grid a i { color: var(--text-sub); width: 18px; text-align: center; transition: 0.3s; }
.submenu-grid a:hover { background: var(--primary-light); color: var(--primary-hover); transform: translateX(4px); border-color: rgba(13, 148, 136, 0.1);}
.submenu-grid a:hover i { color: var(--primary); transform: scale(1.1); }

/* 主展示区域偏移容器 */
.main-container { margin-left: 320px; padding: 30px 40px 60px 10px; max-width: 1700px; margin-right: auto; overflow-x: hidden; }

/* ================= 顶部智能检索区 ================= */
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; position: relative; z-index: 1000; }
.search-wrapper { position: relative; flex: 1; max-width: 580px; display: flex; align-items: center; }

.search-input {
    width: 100%; height: 56px; padding: 0 100px 0 28px; border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px); box-shadow: var(--shadow-soft);
    color: var(--text-dark); font-size: 15px; font-weight: 600; transition: all 0.4s ease;
}
.search-input::placeholder { color: #94a3b8; font-weight: 500; }
.search-input:focus {
    background: #ffffff; border-color: var(--primary);
    box-shadow: 0 15px 35px -10px rgba(13, 148, 136, 0.25), 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.search-btn {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff; border-radius: 22px; padding: 0 28px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; cursor: pointer; transition: all 0.3s ease; letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.search-btn:hover { background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%); transform: translateY(-1px); box-shadow: 0 6px 15px rgba(13, 148, 136, 0.4); }

.search-dropdown {
    position: absolute; top: calc(100% + 14px); left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98); border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px -10px rgba(13, 148, 136, 0.15); backdrop-filter: blur(24px);
    border-radius: 20px; padding: 24px; z-index: 1001; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.3s; pointer-events: none;
}
.search-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.sd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px dashed rgba(0,0,0,0.06); }
.sd-title { font-size: 16px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.sd-title i { color: #ef4444; font-size: 18px; } 
.sd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.sd-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--text-main); cursor: pointer; padding: 8px 12px; border-radius: 12px; transition: 0.2s; border: 1px solid transparent;}
.sd-item:hover { background: var(--primary-light); color: var(--primary-hover); transform: translateX(4px); border-color: rgba(13,148,136,0.1);}
.sd-idx { font-size: 15px; font-weight: 900; font-style: italic; color: #94a3b8; width: 22px; text-align: center; }
.sd-item:nth-child(1) .sd-idx { color: #ef4444; } .sd-item:nth-child(2) .sd-idx { color: #f97316; } .sd-item:nth-child(3) .sd-idx { color: #f59e0b; }
.sd-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 900; line-height: 1; }
.sd-tag.hot { background: #fee2e2; color: #ef4444; } .sd-tag.new { background: #e0f2fe; color: #0284c7; } .sd-tag.up { background: #dcfce7; color: #059669; }

/* ================= 手风琴无抖动主轮播 ================= */
.hero-carousel-wrapper {
    position: relative; margin-bottom: 40px; width: 100%; height: 380px; border-radius: var(--radius-main);
}
.hc-track {
    display: flex; gap: 16px; height: 100%; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 15px; 
}
.hc-track::-webkit-scrollbar { display: none; }

.hc-item {
    display: block; flex: 0 0 140px; height: 100%; border-radius: var(--radius-main); background-color: #e2e8f0;
    background-size: cover; background-position: center; position: relative; overflow: hidden; cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); border: 2px solid transparent;
}
.hc-item::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.15); transition: 0.6s; }
.hc-item.active::after { background: transparent; }
.hc-item.active {
    flex: 0 0 760px; box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.5); border-color: #ffffff;
}

.hc-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
    color: var(--text-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 22px; cursor: pointer; z-index: 10; border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.hc-btn:hover { background: #ffffff; color: var(--primary); transform: translateY(-50%) scale(1.1); box-shadow: 0 12px 30px rgba(13, 148, 136, 0.2); border-color: rgba(13,148,136,0.1);}
.hc-prev { left: -26px; } .hc-next { right: -26px; }

/* ================= 关键词推荐导航网格 ================= */
.hot-recommend-nav {
    background: rgba(255, 255, 255, 0.6); border: 1px solid #ffffff; box-shadow: var(--shadow-soft);
    border-radius: var(--radius-main); padding: 24px; margin-bottom: 50px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; backdrop-filter: blur(24px); position: relative; z-index: 10;
}
.hr-col {
    background: rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 24px; border: 1px solid rgba(255,255,255,1); transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.hr-col:hover { background: #ffffff; box-shadow: 0 15px 35px -5px rgba(13,148,136,0.1); transform: translateY(-4px); border-color: rgba(13,148,136,0.15); }
.hr-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 16px; font-weight: 900; color: var(--text-dark); letter-spacing: 0.5px; }
.hr-col-head i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.hr-col:nth-child(1) .hr-col-head i { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3); }
.hr-col:nth-child(2) .hr-col-head i { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3); }
.hr-col:nth-child(3) .hr-col-head i { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3); }

.hr-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hr-links a { 
    font-size: 13px; font-weight: 700; color: var(--text-main); transition: all 0.3s; position: relative; 
    padding: 6px 14px; border-radius: 12px; background: rgba(241, 245, 249, 0.8); border: 1px solid transparent; display: inline-flex; align-items: center;
}
.hr-links a:hover { color: var(--primary); background: var(--primary-light); transform: translateY(-2px) scale(1.03); border-color: rgba(13,148,136,0.2); box-shadow: 0 4px 10px rgba(13,148,136,0.1); }
.hr-links a.highlight { color: #ef4444; background: #fef2f2; border-color: #fecaca; padding-right: 10px; }
.hr-links a.highlight::after {
    content: '热门'; font-size: 10px; font-weight: 900; background: linear-gradient(135deg, #ef4444, #b91c1c); 
    color: #fff; padding: 2px 5px; border-radius: 6px; margin-left: 6px; line-height: 1.1; box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}
.hr-links a.highlight:hover { background: #ef4444; color: #fff; border-color: #ef4444; box-shadow: 0 6px 15px rgba(239, 68, 68, 0.35); }
.hr-links a.highlight:hover::after { background: #fff; color: #ef4444; }

/* ================= 排列板块间距与核心卡片 ================= */
.mb-sec { margin-bottom: 80px; }
.sec-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; padding-left: 20px; position: relative; }
.sec-header::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 28px; width: 6px; border-radius: 4px; background: linear-gradient(to bottom, var(--primary), #2dd4bf); box-shadow: 0 0 12px rgba(13, 148, 136, 0.3); }
.sec-title-wrap { display: flex; flex-direction: column; gap: 6px;}
.sec-title { font-size: 28px; font-weight: 900; color: var(--text-dark); display: flex; align-items: center; gap: 12px; line-height: 1.1; letter-spacing: 0.05em;}
.sec-subtitle { font-size: 13px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 3px; }

/* 固化宽高容器，防御 CLS 偏移面破损 */
.legend-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.legend-main {
    position: relative; border-radius: var(--radius-main); overflow: hidden;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,1);
    background: var(--legend-bg); transition: all 0.4s ease; aspect-ratio: 16/9;
}
.legend-main:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: rgba(190, 18, 60, 0.3); }
.legend-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; aspect-ratio: 16/9;}
.legend-main:hover .legend-main-img { transform: scale(1.05); }
.legend-main-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; display: flex; flex-direction: column; gap: 10px;
}
.legend-main-title { font-size: 24px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.legend-main-desc { font-size: 14px; font-weight: 500; opacity: 0.9; margin-bottom: 10px; }
.legend-main-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: linear-gradient(135deg, var(--legend-crimson), var(--legend-gold));
    color: #fff; border-radius: 12px; font-size: 14px; font-weight: 800; transition: all 0.3s; border: none; cursor: pointer; align-self: flex-start; box-shadow: 0 4px 12px rgba(190, 18, 60, 0.3);
}
.legend-main-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(190, 18, 60, 0.5); }

.legend-list { display: flex; flex-direction: column; gap: 16px; }
.legend-item {
    display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255,255,255,1); box-shadow: var(--shadow-soft); transition: all 0.3s; text-decoration: none; position: relative; overflow: hidden;
}
.legend-item:hover { transform: translateX(6px); background: #fff; border-color: rgba(190, 18, 60, 0.2); box-shadow: 0 8px 20px rgba(190, 18, 60, 0.1); }
.legend-item-img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; aspect-ratio: 1/1;}
.legend-item-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.legend-item-title { font-size: 16px; font-weight: 800; color: var(--text-dark); transition: 0.3s; }
.legend-item:hover .legend-item-title { color: var(--legend-crimson); }
.legend-item-tags { display: flex; gap: 8px; }
.legend-item-tag { font-size: 11px; font-weight: 700; color: var(--text-sub); background: rgba(0,0,0,0.04); padding: 4px 8px; border-radius: 6px; }
.legend-item-hot {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: linear-gradient(135deg, var(--legend-crimson), var(--legend-gold)); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; transition: all 0.3s;
}
.legend-item:hover .legend-item-hot { opacity: 1; transform: translateY(-50%) scale(1.1); box-shadow: 0 4px 12px rgba(190, 18, 60, 0.3); }

/* 四栏聚合网格 */
.four-col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.four-col-wrap {
    background: rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 24px; border: 1px solid rgba(255,255,255,1); transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 20px;
}
.four-col-wrap:hover { background: #ffffff; box-shadow: 0 15px 35px -5px rgba(29, 78, 216, 0.1); transform: translateY(-4px); border-color: rgba(29, 78, 216, 0.15); }
.fc-head { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 900; color: var(--text-dark); letter-spacing: 0.5px; }
.fc-head i { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.fc-col-1 .fc-head i { background: linear-gradient(135deg, #1d4ed8, #3b82f6); box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3); }
.fc-col-2 .fc-head i { background: linear-gradient(135deg, #7e22ce, #a855f7); box-shadow: 0 4px 10px rgba(126, 34, 206, 0.3); }
.fc-col-3 .fc-head i { background: linear-gradient(135deg, #be123c, #fb7185); box-shadow: 0 4px 10px rgba(190, 18, 60, 0.3); }
.fc-col-4 .fc-head i { background: linear-gradient(135deg, #0f766e, #14b8a6); box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3); }

.fc-list { display: flex; flex-direction: column; gap: 16px; }
.fc-card { display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); transition: all 0.3s; border: 1px solid transparent; }
.fc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); border-color: rgba(29, 78, 216, 0.2); }
.fc-card-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.fc-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; aspect-ratio: 16/9;}
.fc-card:hover .fc-card-img { transform: scale(1.05); }
.fc-card-info { padding: 12px 16px; }
.fc-card-title { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; transition: 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.fc-card:hover .fc-card-title { color: var(--popular-blue); }
.fc-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-sub); font-weight: 600; }
.fc-card-hot { color: #ef4444; display: flex; align-items: center; gap: 4px; }

/* 网页游戏开服表细分单元 */
.server-list { display: flex; flex-direction: column; gap: 10px; }
.server-item {
    display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255, 255, 255, 0.8); border-radius: 12px; transition: 0.3s; border: 1px solid transparent; font-weight: 700; font-size: 14px; color: var(--text-main); text-decoration: none;
}
.server-item:hover { background: #fff; transform: translateX(4px); border-color: rgba(15, 118, 110, 0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.server-time { color: var(--primary); font-weight: 800; }
.server-name { flex: 1; margin: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); transition: 0.3s;}
.server-item:hover .server-name { color: var(--primary); }
.server-badge { padding: 4px 10px; background: var(--primary-light); color: var(--primary); border-radius: 8px; font-size: 12px; font-weight: 800; }
.server-more-btn { display:block; text-align:center; padding:12px; font-size:13px; color:var(--primary); font-weight:800; background:var(--primary-light); border-radius:12px; margin-top:8px; text-decoration:none; transition:0.3s; border:1px solid rgba(13,148,136,0.1); }

/* 四列橱窗展示 */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 50px; }
.rec-card { 
    background: rgba(255, 255, 255, 0.7); border-radius: 16px; border: 1px solid rgba(255,255,255,1); box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; padding: 12px; backdrop-filter: blur(20px); text-decoration: none;
}
.rec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(13,148,136,0.2); background: #ffffff;}
.rec-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #f1f5f9; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);}
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; aspect-ratio: 16/9; }
.rec-card:hover .rec-thumb img { transform: scale(1.05); }
.rec-info { display: flex; flex-direction: column; padding: 0 4px 4px; }
.rec-name { font-size: 16px; font-weight: 900; color: var(--text-dark); margin-bottom: 12px; transition: 0.3s; letter-spacing: 0.5px;}
.rec-card:hover .rec-name { color: var(--primary); }
.rec-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rec-tags span { font-size: 11px; font-weight: 700; color: var(--text-sub); background: rgba(0,0,0,0.04); padding: 4px 8px; border-radius: 6px; transition: 0.3s; }
.rec-card:hover .rec-tags span { background: var(--primary-light); color: var(--primary); }

/* 复合大图网格陈列 */
.gallery-wrap { display: flex; gap: 24px; margin-bottom: 50px; }
.gallery-main { flex: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-side { flex: 1; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,1); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-soft);}
.gs-title { font-size: 18px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; letter-spacing: 0.5px;}

.g-card { background: rgba(255, 255, 255, 0.9); border-radius: 14px; border: 1px solid rgba(255,255,255,1); overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.03);}
.g-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(13,148,136,0.2); }
.g-img-wrap { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.04); background: #f1f5f9; }
.g-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; aspect-ratio: 16/10;}
.g-card:hover .g-img { transform: scale(1.05); }

.g-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-between; }
.g-title { font-size: 18px; font-weight: 900; color: var(--text-dark); transition: 0.3s;}
.g-card:hover .g-title { color: var(--primary); }
.g-desc { font-size: 13px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.g-hot { font-size: 14px; font-weight: 900; color: #ef4444; display: flex; align-items: center; gap: 6px; margin-top: 4px;}

.gs-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; transition: 0.3s; border: 1px solid transparent; text-decoration: none; }
.gs-item:hover { background: #ffffff; transform: translateX(4px); border-color: rgba(13,148,136,0.15); box-shadow: 0 8px 20px rgba(0,0,0,0.06);}
.gs-img { width: 72px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(0,0,0,0.03); background: #f1f5f9; flex-shrink: 0; aspect-ratio: 3/2;}
.gs-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 4px;}
.gs-name { font-size: 15px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.3s;}
.gs-item:hover .gs-name { color: var(--primary); }
.gs-hot { font-size: 13px; font-weight: 800; color: #ef4444; display: flex; align-items: center; gap: 4px;}

/* ================= 三维轻奢级游戏排行榜 ================= */
.rank-cat-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.r-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: rgba(255,255,255,0.8); border: 1px solid #e2e8f0; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-sub); transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.02); backdrop-filter: blur(10px);
}
.r-tag i { font-size: 14px; opacity: 0.7; transition: 0.3s;}
.r-tag:hover, .r-tag.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(13,148,136,0.25);
}
.r-tag:hover i, .r-tag.active i { opacity: 1; color: #fff; }

.rank-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.rank-col { 
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); border-radius: var(--radius-main); box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,1); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: 0.4s;
} 
.rank-col:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }

.rank-head-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 240px; background-size: cover; background-position: center top; -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, transparent 100%); mask-image: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, transparent 100%); z-index: 0; opacity: 0.15; transition: opacity 0.5s;
}
.rank-col:hover .rank-head-bg { opacity: 0.25; }

.rank-head { 
    padding: 28px 24px 20px; font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; letter-spacing: 0.5px;
}
.rank-head-left { display: flex; align-items: center; gap: 10px; color: var(--text-dark); }
.rank-head-left i { font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));}
.rank-head-more { 
    font-size: 13px; color: var(--text-sub); font-weight: 700; font-family: 'Inter', sans-serif; background: rgba(0,0,0,0.03); padding: 6px 14px; border-radius: 12px; transition: 0.3s; border: 1px solid transparent;
}
.rank-head-more:hover { background: #fff; color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-color: rgba(13, 148, 136, 0.2);}

.rank-list-content { padding: 0 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.rank-item { 
    padding: 0; height: 96px; border-radius: 16px; position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; background: transparent; display: flex; align-items: center; 
}
.rank-item:hover { 
    background: #ffffff; transform: translateX(6px) scale(1.02); box-shadow: 0 12px 25px rgba(0,0,0,0.06); border-color: rgba(13, 148, 136, 0.2); z-index: 20; 
}
.rank-item::before {
    content: ''; position: absolute; left: -1px; top: 20%; height: 60%; width: 4px; border-radius: 4px; background: var(--primary); opacity: 0; transform: scaleY(0); transition: 0.3s;
}
.rank-item:hover::before { opacity: 1; transform: scaleY(1); }

a.rank-inner { display: flex; align-items: center; height: 100%; width: 100%; padding: 10px 10px 10px 16px; gap: 16px; position: relative; z-index: 1; }
.rank-img { width: 120px; height: 72px; border-radius: 12px; object-fit: cover; transition: all 0.4s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.08); flex-shrink: 0; border: 1px solid rgba(0,0,0,0.03); aspect-ratio: 7/4;}
.rank-item:hover .rank-img { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.12);}

.rank-info { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px;}
.rank-title-row { display: flex; align-items: center; gap: 12px; }

.rank-idx { 
    width: auto; min-width: 26px; height: 26px; border-radius: 8px; padding: 0 6px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; font-size: 14px; font-weight: 900; text-align: center; line-height: 24px; flex-shrink: 0; font-style: normal; font-family: 'Inter', sans-serif;
}
.rank-item:nth-child(1) .rank-idx { background: linear-gradient(135deg, #fef08a, #f59e0b); color: #fff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); border:none;}
.rank-item:nth-child(2) .rank-idx { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #fff; box-shadow: 0 4px 10px rgba(148, 163, 184, 0.3); border:none;}
.rank-item:nth-child(3) .rank-idx { background: linear-gradient(135deg, #fed7aa, #ea580c); color: #fff; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3); border:none;}

.rank-name { font-size: 16px; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.3s; }
.rank-item:hover .rank-name { color: var(--primary); }
.rank-sub { font-size: 13px; color: var(--text-sub); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.rank-score { color: var(--accent); font-weight: 800; margin-right: 8px; font-family: 'Inter', sans-serif;}

.rank-footer { padding: 8px 20px 20px; position: relative; z-index: 1;}
.btn-rank-more { display: block; width: 100%; padding: 14px; background: #f8fafc; border-radius: 12px; color: var(--text-sub); font-size: 14px; font-weight: 800; text-align: center; transition: 0.3s; border: 1px solid rgba(0,0,0,0.03); letter-spacing: 1px;}
.btn-rank-more:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(13,148,136,0.15); box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1); }

/* ================= 全部藏品网格流布局 ================= */
.coll-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; } 
.coll-tab { padding: 10px 24px; background: rgba(255,255,255,0.7); border: 1px solid #e2e8f0; backdrop-filter: blur(10px); border-radius: 30px; font-size: 14px; font-weight: 800; color: var(--text-sub); cursor: pointer; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.02); letter-spacing: 0.05em; }
.coll-tab:hover { border-color: var(--primary); color: var(--primary); background: #ffffff;}
.coll-tab.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2);}

.coll-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
a.coll-card { 
    background: rgba(255,255,255,0.9); border-radius: 16px; overflow: visible; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,1); backdrop-filter: blur(10px); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); display: block; position: relative; transform-origin: center center;
}
a.coll-card:hover { 
    transform: translateY(-8px); box-shadow: 0 25px 50px -10px rgba(13, 148, 136, 0.15); border-color: rgba(13,148,136,0.1); z-index: 50; 
}
.coll-thumb { width: 100%; aspect-ratio: 16/10; position: relative; overflow: hidden; border-radius: 16px 16px 0 0; }
.coll-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10;}

.coll-info { padding: 18px; text-align: center; transition: all 0.4s ease; background: transparent; position: relative; z-index: 2;}
.coll-name { font-size: 16px; font-weight: 900; color: var(--text-dark); margin-bottom: 8px; letter-spacing: 0.05em; display: inline-block; }
.coll-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-sub); background: rgba(0,0,0,0.04); padding: 6px 12px; border-radius: 6px; letter-spacing: 0.05em; transition: 0.3s; }
a.coll-card:hover .coll-name { color: var(--primary); }
a.coll-card:hover .coll-tag { background: var(--primary-light); color: var(--primary); }

/* 卡片内部深度悬浮信息窗 */
.coll-overlay-page {
    position: absolute; width: 322px; left: 50%; top: 50%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,1); border-radius: 20px; box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.2); z-index: 20; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; 
}
a.coll-card:hover .coll-overlay-page { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

.overlay-icon {
    width: 290px; height: 190px; border-radius: 12px; object-fit: cover; margin-bottom: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.04); transform: scale(0.95) translateY(10px); opacity: 0; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s; 
}
a.coll-card:hover .overlay-icon { transform: scale(1) translateY(0); opacity: 1; }
.overlay-title-row {
    display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 10px; transform: translateY(10px); opacity: 0; transition: all 0.4s ease 0.1s;
}
a.coll-card:hover .overlay-title-row { transform: translateY(0); opacity: 1; }
.overlay-name { font-size: 20px; font-weight: 900; color: var(--text-dark); letter-spacing: 0.05em; margin: 0; }
.overlay-rating {
    display: inline-flex; align-items: center; gap: 4px; background: #fffbeb; color: #d97706; padding: 4px 10px; border-radius: 10px; font-size: 14px; font-weight: 800; border: 1px solid #fef3c7;
}
.overlay-rating i { font-size: 12px; color: #f59e0b; }
.overlay-desc {
    font-size: 13px; color: var(--text-sub); line-height: 1.6; font-weight: 600; text-align: justify; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; width: 100%; transform: translateY(10px); opacity: 0; transition: all 0.4s ease 0.15s;
}
a.coll-card:hover .overlay-desc { transform: translateY(0); opacity: 1; }

.hidden-item { display: none; }
.loading-spinner { text-align: center; padding: 40px; color: var(--text-sub); font-size: 15px; font-weight: 600; letter-spacing: 0.05em; display: none; }

/* ================= 全局异步悬浮卡片 (Popover) ================= */
.global-rank-popover {
    position: absolute; width: 340px; background: rgba(255, 255, 255, 0.98); border: 1px solid rgba(255,255,255,1); backdrop-filter: blur(20px); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2); pointer-events: none; opacity: 0; visibility: hidden; transform: translateX(15px) translateY(5px) scale(0.98); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 9999;
}
.global-rank-popover.show { opacity: 1; visibility: visible; transform: translateX(0) translateY(0) scale(1); }
.global-rank-popover.left-side { transform: translateX(-15px) translateY(5px) scale(0.98); }
.global-rank-popover.left-side.show { transform: translateX(0) translateY(0) scale(1); }

.grp-cover { width: 100%; height: 180px; border-radius: 12px; object-fit: cover; margin-bottom: 16px; background: #f1f5f9; box-shadow: 0 6px 15px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.03); aspect-ratio: 5/3;}
.grp-title { color: var(--text-dark); font-size: 22px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; }
.grp-tag-bar { background: var(--primary-light); border-radius: 10px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; border: 1px solid rgba(13,148,136,0.1);}
.grp-tag-icon { color: var(--primary); font-size: 14px; } .grp-tag-text { color: var(--primary-hover); font-size: 14px; font-weight: 800; } 
.grp-desc { color: var(--text-sub); font-size: 13px; line-height: 1.7; text-align: justify; font-weight: 500;}

/* ================= 规范页脚与外围控件 ================= */
.site-footer {
    background-color: #0f172a; color: #94a3b8; padding: 60px 40px 25px; border-radius: var(--radius-main); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden;
}
.site-footer::before { content: ''; position: absolute; top:0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), #3b82f6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin: 0 auto 40px; max-width: 900px; }
.footer-col h4 { color: #f8fafc; font-size: 16px; font-weight: 900; margin-bottom: 25px; position: relative; letter-spacing: 1px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 30px; height: 3px; background: var(--primary); border-radius: 2px; }
.footer-logo { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 20px; }
.footer-logo i { color: var(--primary); font-size: 30px; text-shadow: 0 0 15px rgba(13, 148, 136, 0.5);}
.footer-desc { line-height: 1.8; font-size: 14px; margin-bottom: 25px; color: #94a3b8; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: #94a3b8; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 18px; font-weight: bold; opacity: 0; transform: translateX(-5px); transition: 0.3s; }
.footer-links a:hover { color: #fff; } .footer-links a:hover::before { opacity: 1; transform: translateX(0); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; font-weight: 500; color: #64748b; }
.footer-bottom span { color: rgba(255,255,255,0.1); margin: 0 10px; }

.back-to-top {
    position: fixed; bottom: 40px; right: 40px; width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4); cursor: pointer; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(13, 148, 136, 0.6); }

/* ================= 媒体查询响应式平滑自适应 ================= */
@media (max-width: 1500px) { 
    .hot-recommend-nav { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .rank-grid-3 { grid-template-columns: repeat(2, 1fr); } 
    .rec-grid { grid-template-columns: repeat(2, 1fr); }
    .four-col-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1400px) { .coll-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { 
    .rank-grid-3 { grid-template-columns: 1fr; } 
    .coll-grid, .rec-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 800px) {
    .legend-grid { grid-template-columns: 1fr; }
    .four-col-grid { grid-template-columns: 1fr; }
}