* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* 快速导航菜单样式 */
.nav-menu {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-height: 60vh;
    overflow: hidden;
}

.nav-toggle {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
}

.nav-items {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.nav-menu.active .nav-items {
    max-height: 50vh;
}

.nav-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.nav-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 25px;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin: 50px 0;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hotlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 25px;
    max-width: 100%;
}

.hotlist-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: calc(100vh - 200px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hotlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-time {
    font-size: 0.85rem;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 4px 12px;
    border-radius: 15px;
}

.hotlist-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.hotlist-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    background: rgba(248, 249, 250, 0.5);
    min-height: 0;
    flex-shrink: 0;
}

.hotlist-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

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

.item-index {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
    margin-right: 15px;
    padding: 4px 8px;
    border-radius: 50%;
    color: white;
}

.item-index.top3 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.item-index.top10 {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.item-index.others {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #2c3e50;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-hot {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 500;
}

/* 成功消息样式 */
.success-message {
    text-align: center;
    color: white;
    background: rgba(46, 204, 113, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(46, 204, 113, 0.3);
    animation: slideIn 0.3s ease;
}

/* 错误提示增强样式 */
.error-message {
    text-align: center;
    color: white;
    background: rgba(231, 76, 60, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.error-tips {
    margin-top: 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.error-tips h4 {
    margin-bottom: 10px;
    color: #f39c12;
}

.error-tips ul {
    margin-left: 20px;
}

.error-tips li {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

/* 状态检查样式 */
.status-check, .status-success, .status-error {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.status-check {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: white;
}

.status-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: white;
}

.status-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: white;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-tips {
        text-align: center;
    }
    
    .error-tips ul {
        text-align: left;
        margin-left: 0;
        padding-left: 20px;
    }
}

.refresh-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.refresh-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #3498db);
}

/* 平板端适配 */
@media (max-width: 1024px) and (min-width: 769px) {
    .hotlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    .hotlist-card {
        padding: 20px;
        height: calc(100vh - 180px);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hotlist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .hotlist-card {
        padding: 15px;
        height: auto;
        min-height: 500px;
        overflow-y: auto;
    }
    
    .nav-menu {
        right: 10px;
        max-width: 200px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .hotlist-card {
        padding: 12px;
        border-radius: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .item-title {
        font-size: 0.9rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}