/* layout.css - 完整修改版 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #fff;
    line-height: 1.6;
    background: linear-gradient(135deg, 
        #0c0c0c 0%, 
        #1a1a2e 30%, 
        #16213e 60%, 
        #0f3460 90%
    ) !important;
    background-size: 100% 100% !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #e5561f;
}

/* Header 样式 */
.header {
    background: rgba(10, 15, 25, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* 导航区域 - 左侧主要导航 */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ddd;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    min-width: 90px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #ff6b35 0%, #e5561f 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.6);
}

/* 右侧群聊按钮 */
.group-nav {
    display: flex;
    align-items: center;
}

.group-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    border: 1px solid rgba(255, 204, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.group-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
    background: linear-gradient(135deg, #ff9900 0%, #ffcc00 100%);
}

/* Main Container 样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px 40px;
    min-height: calc(100vh - 160px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.home-hero {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* 按钮样式 */
.btn-main {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #ff6b35 0%, #e5561f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
    margin: 15px;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn-main:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.6);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-download {
    background: linear-gradient(135deg, #3a8aff 0%, #2b6cb0 100%);
    box-shadow: 0 10px 30px rgba(58, 138, 255, 0.4);
}

.btn-download:hover {
    box-shadow: 0 20px 40px rgba(58, 138, 255, 0.6);
}

.btn-intro {
    background: linear-gradient(135deg, #48bb78 0%, #2f855a 100%);
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.4);
}

.btn-intro:hover {
    box-shadow: 0 20px 40px rgba(72, 187, 120, 0.6);
}

.btn-recharge {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    box-shadow: 0 10px 30px rgba(159, 122, 234, 0.4);
}

.btn-recharge:hover {
    box-shadow: 0 20px 40px rgba(159, 122, 234, 0.6);
}

/* Content Container 样式 */
.content-container {
    max-width: 900px;
    margin: 90px auto 40px;
    padding: 40px;
    background: rgba(20, 25, 35, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    overflow: hidden;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #ff6b35;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 15px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3a8aff, #ff6b35);
    border-radius: 2px;
}

.page-notice {
    font-size: 18px;
    color: #ff9999;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    background: rgba(255, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 35, 45, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.data-table td {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(229, 86, 31, 0.9) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.table-cell {
    background: rgba(40, 45, 55, 0.8);
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.table-cell:hover {
    background: rgba(50, 55, 65, 0.9);
}

.table-link {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 107, 53, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.table-link:hover {
    color: white;
    background: linear-gradient(135deg, #ff6b35 0%, #e5561f 100%);
    border-color: rgba(255, 107, 53, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.download-link {
    color: #66ccff;
    border-color: rgba(58, 138, 255, 0.3);
    background: rgba(58, 138, 255, 0.1);
}

.download-link:hover {
    background: linear-gradient(135deg, #3a8aff 0%, #2b6cb0 100%);
    border-color: rgba(58, 138, 255, 0.8);
    box-shadow: 0 5px 15px rgba(58, 138, 255, 0.4);
}

.recharge-link {
    color: #cc66ff;
    border-color: rgba(159, 122, 234, 0.3);
    background: rgba(159, 122, 234, 0.1);
}

.recharge-link:hover {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    border-color: rgba(159, 122, 234, 0.8);
    box-shadow: 0 5px 15px rgba(159, 122, 234, 0.4);
}

/* Footer 样式 */
.footer {
    background: rgba(10, 15, 25, 0.95);
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    margin-top: 50px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* Back to Top 样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #e5561f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.6);
}

/* 滚动优化样式 */
body.is-scrolling * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    transform: translateZ(0) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }
    
    .nav-list {
        gap: 5px;
        padding: 3px;
    }
    
    .nav-link {
        padding: 6px 10px;
        min-width: 70px;
        font-size: 14px;
    }
    
    .group-link {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-container {
        padding: 120px 15px 40px;
    }
    
    .btn-main {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .content-container {
        padding: 25px;
        margin: 100px 15px 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .data-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .table-link {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .page-notice {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .main-nav {
        margin-bottom: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 5px 8px;
        min-width: 60px;
    }
    
    .group-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .btn-main {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .header-container {
        padding: 8px;
    }
    
    .nav-link {
        padding: 4px 6px;
        min-width: 50px;
        font-size: 12px;
    }
    
    .group-link {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .btn-main {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 150px;
    }
}