/* 全局样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #fff;
    overflow-x: hidden;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
h1 {
    color: #ff6b6b;
    font-size: 2.5em;
}
.back-link {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}
.back-link:hover {
    background: rgba(255,255,255,0.2);
}
/* 首页样式 */
.homepage-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: url('/play.png') center/cover no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.homepage-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,15,35,0.9) 0%, rgba(26,26,46,0.85) 50%, rgba(22,33,62,0.9) 100%);
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.6; }
}
.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}
.banner-content h1 {
    font-size: 4.5em;
    color: #fff;
    margin: 0 0 20px 0;
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInScale 0.8s ease-out;
}
.banner-content p {
    font-size: 1.4em;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.main-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 420px;
}
.main-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.main-card:hover::before {
    opacity: 1;
}
.main-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}
.main-card h2 {
    margin: 20px 0 25px 0;
    font-size: 1.6em;
}
.main-card h2 a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    position: relative;
}
.main-card h2 a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    transition: width 0.3s;
}
.main-card:hover h2 a::after {
    width: 100%;
}
.icon-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.main-card .icon {
    font-size: 4.5em;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    transition: transform 0.4s;
}
.main-card:hover .icon {
    transform: scale(1.1);
}
.sub-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.sub-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 0.85em;
    padding: 8px 18px;
    background: rgba(255,255,255,0.08);
    border-radius: 25px;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.sub-links a:hover {
    background: linear-gradient(135deg, rgba(78,205,196,0.3), rgba(68,160,141,0.3));
    color: #fff;
    border-color: rgba(78,205,196,0.5);
    transform: translateY(-2px);
}
.quick-links {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
}
.quick-links h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.quick-grid a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95em;
}
.quick-grid a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9em;
    margin: 0;
    letter-spacing: 1px;
}
/* 百科页面样式 */
.wiki-content {
    max-width: 900px;
    margin: 0 auto;
}
.wiki-content h1 {
    font-size: 2.5em;
    color: #ffd93d;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffd93d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.wiki-content h2 {
    font-size: 1.6em;
    color: #4ecdc4;
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    position: relative;
}
.wiki-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #4ecdc4;
}
.wiki-content h3 {
    font-size: 1.3em;
    color: #6bcb77;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #6bcb77;
}
.wiki-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    font-size: 1.05em;
    margin: 15px 0;
}
.wiki-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
}
.wiki-content li {
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.wiki-content li:hover {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.15), rgba(68, 160, 141, 0.1));
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateX(5px);
}
.wiki-content li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wiki-content li a:hover {
    color: #4ecdc4;
}
.wiki-content li span {
    color: rgba(255, 193, 7, 0.9);
    font-size: 0.85em;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 15px;
}
.wiki-content .desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-left: 12px;
    font-style: italic;
}
.wiki-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 40px 0;
}
.wiki-content strong {
    color: #ffd93d;
}
.wiki-content em {
    color: rgba(255, 255, 255, 0.7);
}
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}
.category-card h3 {
    color: #ffd93d;
    margin-top: 0;
    font-size: 1.3em;
}
.category-card ul {
    list-style: none;
    padding: 0;
}
.category-card li {
    margin: 10px 0;
}
.category-card a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.category-card a:hover {
    color: #ff6b6b;
}
/* 百科文章样式 */
.content {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
.content h2 { color: #ffd93d; }
.content h3 { color: #6bcb77; }
.content p { line-height: 1.8; }
.content ul, .content ol { padding-left: 20px; }
.content li { margin: 10px 0; }
.content a { color: #4dabf7; }
.content code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; }
.content pre { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; overflow-x: auto; }
/* 工具页面样式 */
.tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.tool-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}
.tool-card:hover {
    transform: translateY(-5px);
}
.tool-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}
.tool-card h3 {
    color: #ffd93d;
    margin: 0 0 10px 0;
}
.tool-card p {
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px 0;
}
.tool-card a {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    transition: background 0.3s;
}
.tool-card a:hover {
    background: #ff8787;
}
/* 排名页面样式 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
}
.tab:hover {
    background: rgba(255,255,255,0.2);
}
.tab.active {
    background: #ff6b6b;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
}
.ranking-table th, .ranking-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ranking-table th {
    background: rgba(255,107,107,0.2);
    color: #ffd93d;
}
.ranking-table tr:hover {
    background: rgba(255,255,255,0.05);
}
.rank-1 { background: rgba(255,215,0,0.2); }
.rank-2 { background: rgba(192,192,192,0.2); }
.rank-3 { background: rgba(205,127,50,0.2); }
.flag-img { 
    width: 24px; 
    height: 16px; 
    margin-right: 8px; 
    border-radius: 2px;
    vertical-align: middle;
}
.flag-fallback { 
    font-size: 0.8em; 
    margin-right: 8px;
    padding: 2px 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.update-info {
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
}
.update-label {
    color: #ffd93d;
}
.rank-up {
    color: #6bcb77;
    font-weight: bold;
}
.rank-down {
    color: #ff6b6b;
    font-weight: bold;
}
.rank-same {
    color: rgba(255,255,255,0.5);
}
