/* style.css 文件内容 */

    /* 排行榜样式 */
.ranking-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ranking-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ranking-refresh {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.ranking-item:hover {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-rank {
    width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.rank-1 {
    color: #ff9800;
    font-size: 20px;
}

.rank-2 {
    color: #9e9e9e;
    font-size: 18px;
}

.rank-3 {
    color: #795548;
    font-size: 16px;
}

.rank-4-10 {
    color: #666;
}

.ranking-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.avatar-diamond {
    background: linear-gradient(45deg, #00BCD4, #4CAF50);
}

.avatar-platinum {
    background: linear-gradient(45deg, #9E9E9E, #607D8B);
}

.avatar-gold {
    background: linear-gradient(45deg, #FFC107, #FF9800);
}

.avatar-silver {
    background: linear-gradient(45deg, #BDBDBD, #757575);
}

.avatar-bronze {
    background: linear-gradient(45deg, #8D6E63, #795548);
}

.avatar-new {
    background: linear-gradient(45deg, #78909C, #546E7A);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.user-level {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    padding: 1px 6px;
    background: #f0f0f0;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.level-diamond {
    background: linear-gradient(45deg, #00BCD4, #4CAF50);
    color: white;
}

.level-platinum {
    background: linear-gradient(45deg, #9E9E9E, #607D8B);
    color: white;
}

.level-gold {
    background: linear-gradient(45deg, #FFC107, #FF9800);
    color: white;
}

.level-silver {
    background: linear-gradient(45deg, #BDBDBD, #757575);
    color: white;
}

.level-bronze {
    background: linear-gradient(45deg, #8D6E63, #795548);
    color: white;
}

.level-new {
    background: linear-gradient(45deg, #78909C, #546E7A);
    color: white;
}

.ranking-stats {
    display: flex;
    gap: 15px;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 60px;
}

.stat-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stat-count {
    color: #2196F3;
}

.stat-profit {
    color: #4CAF50;
}

/* 排行榜提示信息 */
.ranking-tips {
    background: #f0f4ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.ranking-tips strong {
    color: #2196F3;
}

/* 滚动条样式 */
.ranking-list::-webkit-scrollbar {
    width: 4px;
}

.ranking-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.ranking-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.ranking-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ranking-stats {
        gap: 10px;
    }
    
    .stat-item {
        min-width: 50px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ranking-section {
        padding: 15px;
    }
    
    .ranking-item {
        padding: 10px 0;
    }
    
    .ranking-stats {
        gap: 8px;
    }
    
    .stat-item {
        min-width: 45px;
    }
    
    .stat-value {
        font-size: 13px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .user-name {
        font-size: 13px;
    }
}
    
    
    /* 在小屏幕手机上调整常见问题页面 */
@media (max-width: 768px) {
    .faq-category {
        padding: 15px !important;
    }
    
    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .faq-card {
        padding: 15px !important;
        margin-bottom: 10px;
    }
    
    .faq-card h4 {
        font-size: 15px !important;
    }
    
    .faq-card p, 
    .faq-card li {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .faq-section h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
}

/* 在更小的手机上进一步优化 */
@media (max-width: 480px) {
    .faq-category {
        padding: 12px !important;
    }
    
    .faq-grid {
        gap: 12px !important;
    }
    
    .faq-card {
        padding: 12px !important;
    }
    
    /* 确保文字不溢出 */
    .faq-card p, 
    .faq-card li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(90deg, #FFEB3B, #FFEB3B);
    color: #000; /* 文字颜色改为纯黑色 */
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 99;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 38s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-item {
    display: inline-block;
    margin-right: 40px;
    position: relative;
    padding-left: 20px;
}

.announcement-item:before {
    content: '🔥';
    position: absolute;
    left: 0;
    top: 0;
}

/* 悬停时暂停滚动 */
.announcement-bar:hover .announcement-content {
    animation-play-state: paused;
}

        *{box-sizing:border-box;margin:0;padding:0;}
        body{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',Arial;background:#f5f7fb;color:#333;}
        a{text-decoration:none;}
        .wrap{max-width:1200px;margin:auto;padding:16px;}

        header{
            background:linear-gradient(90deg,#1f3c88,#2b6cff);
            color:#fff;
            position:sticky;top:0;z-index:100;
        }
        header .wrap{
            display:flex;
            align-items:center;
            justify-content:space-between;
            padding:12px 16px;
        }
        .logo{font-size:18px;font-weight:600;}
        nav a{
            margin-left:16px;
            color:rgba(255,255,255,.85);
            font-size:14px;
        }
        nav a.active{
            color:#fff;
            font-weight:600;
            border-bottom:2px solid #fff;
            padding-bottom:3px;
        }

        .hero{
            background:#fff;
            border-radius:12px;
            padding:30px 16px;
            box-shadow:0 6px 20px rgba(0,0,0,.05);
            margin-top:20px;
        }
        .hero h1{
            font-size:26px;
            margin-bottom:8px;
            line-height:1.4;
        }
        .hero p{
            color:#666;
            font-size:14px;
            line-height:1.6;
        }

        h2{
            font-size:18px;
            margin-bottom:12px;
        }
        .card{
            background:#fff;
            border-radius:12px;
            padding:20px;
            margin-top:20px;
            box-shadow:0 6px 20px rgba(0,0,0,.05);
        }
        ul{padding-left:18px;}
        li{margin-bottom:8px;}
        .btn{
            display:inline-block;
            margin-top:16px;
            padding:10px 18px;
            background:#2b6cff;
            color:#fff;
            border-radius:24px;
            font-size:14px;
        }
        .muted{color:#888;font-size:12px;margin-top:8px;}
        .notice{
            background:#f0f4ff;
            border-left:4px solid #2b6cff;
            padding:12px 16px;
            margin:20px 0;
            border-radius:6px;
            font-size:14px;
        }
        footer{
            margin-top:40px;
            text-align:center;
            font-size:12px;
            color:#777;
        }
        
        /* 三人拼团样式 */
        .content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 20px;
        }
        
        @media (max-width: 768px) {
            .content-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .group-section {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 6px 20px rgba(0,0,0,.05);
        }
        
        .group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .group-round {
            font-size: 14px;
            color: #666;
        }
        
        .group-status {
            background: #4CAF50;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .group-status.finished {
            background: #f44336;
        }
        
        .progress-bar {
            width: 100%;
            height: 10px;
            background: #e0e0e0;
            border-radius: 5px;
            overflow: hidden;
            margin: 10px 0;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #FF9800, #FF5722);
            width: 0%;
            transition: width 0.3s;
        }
        
        .group-info {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #555;
            margin: 8px 0;
        }
        
        .countdown {
            text-align: center;
            color: #f44336;
            font-weight: bold;
            font-size: 13px;
            margin: 8px 0;
        }
        
        .group-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: linear-gradient(90deg, #FF9800, #FF5722);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            margin-top: 10px;
            text-align: center;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .overlay.show {
            opacity: 1;
            pointer-events: all;
        }
        
        .out-modal {
            background: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            max-width: 300px;
            transform: scale(0.8);
            transition: transform 0.3s;
        }
        
        .overlay.show .out-modal {
            transform: scale(1);
        }
        
        .contact-modal {
            background: white;
            padding: 25px;
            border-radius: 12px;
            text-align: center;
            max-width: 320px;
            width: 90%;
            transform: scale(0.8);
            transition: transform 0.3s;
        }
        
        .overlay.show .contact-modal {
            transform: scale(1);
        }
        
        .contact-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }
        
        .contact-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
        }
        
        .contact-message {
            font-size: 16px;
            color: #666;
            margin-bottom: 15px;
            line-height: 1.4;
        }
        
        .contact-qrcode {
            width: 200px;
            height: 200px;
            margin: 0 auto 20px;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid #f0f0f0;
            padding: 10px;
            background: white;
        }
        
        .contact-qrcode img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .contact-qrcode-text {
            font-size: 12px;
            color: #888;
            margin-top: 5px;
        }
        
        .contact-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: linear-gradient(90deg, #FF9800, #FF5722);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-top: 10px;
        }
        
        .time-bar {
            width: 100%;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            margin: 8px 0;
            overflow: hidden;
        }
        
        .time-progress {
            height: 100%;
            background: linear-gradient(90deg, #2196F3, #03A9F4);
            width: 0%;
        }
        
        .time-info {
            font-size: 12px;
            color: #888;
            text-align: center;
        }
        
        .btn-login {
    background: linear-gradient(90deg, #2b6cff, #1f3c88);
}
.btn-calculator {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
}
.btn-download {
    background: linear-gradient(90deg, #9C27B0, #7B1FA2);
}
  