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

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景 */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    animation: bgAnimation 20s ease infinite;
}

@keyframes bgAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 网站标题 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.title {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleBounce 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 打榜入口 */
.vote-entry {
    text-align: center;
    margin-bottom: 40px;
}

.vote-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 排行榜部分 */
.ranking-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 30px;
}

/* 排行榜列表 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 第一名样式 */
.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* 排行项 */
.ranking-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 排行项内容 */
.ranking-item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 主要信息区域 */
.ranking-main-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 排名数字 */
.rank-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    min-width: 30px;
    text-align: center;
}

/* 作者名字（作为标题） */
.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    margin: 0;
}

.author-name a {
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.author-name a:hover {
    color: #ff6b6b;
    text-decoration: underline;
    transform: translateY(-1px);
}

.author-name:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* 统计信息（右侧） */
.item-stats {
    display: flex;
    align-items: center;
}

.likes {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.like-btn {
    cursor: pointer;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.like-btn:hover {
    transform: scale(1.2);
}

.like-count {
    color: #ff6b6b;
    font-weight: 600;
}

/* 收藏按钮 */
.collect-btn-container {
    margin-top: 8px;
}

.collect-btn {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.collect-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.collect-btn:active {
    transform: translateY(0);
}

/* 标签样式（下方） */
.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #e9ecef;
}

/* 查看原网站链接 */
.view-original {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.view-original a {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-original a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}



/* 第一名 */
.rank-first {
    font-size: 3rem;
    color: rgba(255, 107, 107, 0.2);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* 第二名 */
.rank-second {
    font-size: 2.5rem;
    color: rgba(78, 205, 196, 0.2);
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.3);
}

/* 第三名 */
.rank-third {
    font-size: 2.2rem;
    color: rgba(255, 193, 7, 0.2);
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.3);
}

/* 4-6名 */
.rank-top {
    font-size: 1.8rem;
    color: rgba(108, 117, 125, 0.2);
}

/* 其他排名 */
.rank-normal {
    font-size: 1.5rem;
    color: rgba(108, 117, 125, 0.1);
}

/* 悬停效果 */
.ranking-item:hover .rank-number {
    transform: scale(1.1);
    opacity: 0.8;
}

.item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
}

.item-author {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.likes {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-weight: bold;
}

.views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4ecdc4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .vote-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .ranking-list {
        grid-template-columns: 1fr;
    }
    
    .header,
    .ranking-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* 登录悬浮窗样式 */
.login-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.float-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.login-panel {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    animation: slideUp 0.3s ease;
}

.login-panel.show {
    display: block;
}

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

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

.panel-header h3 {
    color: #ff6b6b;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.panel-content {
    padding: 20px;
}

#loginForm .form-group,
#registerForm .form-group {
    margin-bottom: 15px;
}

#loginForm label,
#registerForm label {
    display: block;
    margin-bottom: 5px;
    color: #6c757d;
    font-weight: bold;
}

#loginForm input,
#registerForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#loginForm input:focus,
#registerForm input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-code {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
    color: #4ecdc4;
    min-width: 100px;
    text-align: center;
}

.refresh-captcha {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    background: #495057;
}

.login-submit,
.register-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.quick-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.quick-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.login-submit:hover,
.register-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.form-group.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.form-group.remember-me label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.register-link,
.login-link {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.register-link:hover,
.login-link:hover {
    text-decoration: underline;
}

/* 登录状态样式 */
.user-info {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    animation: slideUp 0.3s ease;
}

.user-info .username {
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
}

.user-info .logout-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-info .logout-btn:hover {
    background: #dc3545;
}

/* 收藏和积分样式 */
.item-stats .collect {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.item-stats .collect-btn {
    margin-right: 5px;
    transition: all 0.3s ease;
}

.item-stats .collect-btn:hover {
    transform: scale(1.2);
    color: #ffc107;
}

/* 用户统计信息 */
.user-stats {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.stat-label {
    color: #6c757d;
}

.stat-value {
    font-weight: bold;
    color: #343a40;
}

/* 用户菜单 */
.user-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.menu-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* 收藏列表 */
.collection-list h4,
.points-list h4 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 15px;
}

.collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.collection-item:hover {
    background: #e9ecef;
}

.collection-info {
    flex: 1;
}

.collection-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.collection-author,
.collection-time {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 2px 0;
}

.remove-collection {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-collection:hover {
    background: #dc3545;
}

/* 积分记录 */
.points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.points-item:hover {
    background: #e9ecef;
}

.points-info {
    flex: 1;
}

.points-reason {
    font-weight: bold;
    margin-bottom: 5px;
}

.points-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.points-amount {
    background: #4ecdc4;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* 空状态 */
.empty-text {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* 返回按钮 */
.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.back-btn:hover {
    background: #495057;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-float {
        bottom: 20px;
        left: 20px;
    }
    
    .login-panel {
        width: 300px;
        left: -20px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        width: 280px;
        left: -10px;
    }
    
    .float-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* 内容切换标签样式 */
.content-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: #f8f9fa;
    color: #495057;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* 收藏列表样式 */
.collection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collection-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.collection-card h3 {
    margin-top: 0;
    color: #343a40;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.collection-meta {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.collection-meta p {
    margin: 5px 0;
}

.collection-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    color: white;
}

.remove-btn {
    background: #6c757d;
    color: white;
}

.remove-btn:hover {
    background: #dc3545;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* 空收藏状态 */
.empty-collections {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    margin-top: 30px;
}

.empty-collections h3 {
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-collections p {
    color: #999;
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .collection-list {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
}