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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #0a0e27;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 流星背景动画 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.meteor {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff);
    animation: meteor-fall linear infinite;
    opacity: 0;
}

@keyframes meteor-fall {
    0% {
        opacity: 0;
        transform: translateY(-100px) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(300px);
    }
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
}

/* 头部 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    color: #fff;
}

/* 顶部公告 */
.header-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 0;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    position: relative;
    z-index: 10;
}

.header-notice p {
    margin: 5px 0;
}

.header-notice a {
    color: #ffc107;
    text-decoration: underline;
}

.header-notice a:hover {
    color: #ffeb3b;
}

/* 网站副标题 */
.site-subtitle {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

/* 顶部区域 */
.top-section {
    margin-bottom: 30px;
}

/* 搜索栏和排行榜行 */
.search-ranking-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* 下载排行榜 - 横向排列版本 */
.download-ranking-horizontal {
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.download-ranking-horizontal .ranking-header {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.4) 0%, rgba(255, 152, 0, 0.4) 100%);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

.download-ranking-horizontal .ranking-header i {
    font-size: 18px;
    color: #ffa726;
    animation: pulse 2s ease-in-out infinite;
}

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

.ranking-list-horizontal {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
}

.ranking-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

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

.ranking-item-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ranking-item-horizontal:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
    z-index: 1;
}

.ranking-item-horizontal:hover::before {
    opacity: 1;
}

.ranking-item-horizontal .ranking-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.ranking-item-horizontal:hover .ranking-number {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ranking-item-horizontal .ranking-number.top-three {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.8); }
}

.ranking-item-horizontal .ranking-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.ranking-item-horizontal .ranking-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: all 0.3s;
    line-height: 1.4;
}

.ranking-item-horizontal:hover .ranking-name {
    color: #ffa726;
    font-weight: 600;
}

.ranking-item-horizontal .ranking-downloads {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.3s;
}

.ranking-item-horizontal:hover .ranking-downloads {
    background: rgba(255, 255, 255, 0.1);
    color: #ffa726;
}

.ranking-item-horizontal .ranking-downloads i {
    font-size: 11px;
}

/* 搜索栏 */
.search-bar {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(74, 158, 255, 0.8);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within .search-icon {
    color: #4a9eff;
    transform: translateY(-50%) scale(1.1);
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 55px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:hover {
    border-color: rgba(74, 158, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-input:focus {
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2), 0 8px 25px rgba(74, 158, 255, 0.3);
    transform: translateY(-2px);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

/* 后台管理浮动按钮 - 右下角 */
.admin-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(74, 158, 255, 0.6);
    background: linear-gradient(135deg, rgba(74, 158, 255, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.admin-float-btn i {
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-float-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .admin-float-btn i {
        font-size: 16px;
    }
}

/* 分类导航 - 水平布局 */
.category-nav-horizontal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin-top: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.category-header i {
    color: #4a9eff;
    font-size: 18px;
}

.category-list-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-item-horizontal {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.category-item-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-item-horizontal:hover::before {
    opacity: 1;
}

.category-item-horizontal i {
    font-size: 18px;
    color: #4a9eff;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.category-item-horizontal span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.category-item-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
}

.category-item-horizontal:hover i {
    transform: scale(1.15);
    color: #fff;
}

.category-item-horizontal.active {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

.category-item-horizontal.active i {
    color: #fff;
    transform: scale(1.1);
}

.category-item-horizontal.active span {
    color: #fff;
    font-weight: 600;
}

/* 软件列表容器 */
.content-wrapper {
    margin-top: 30px;
}

/* 下载排行榜 - 顶部版本 */
.download-ranking-top {
    width: 300px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ranking-header {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3) 0%, rgba(255, 152, 0, 0.3) 100%);
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-header i {
    font-size: 18px;
    color: #ff9800;
}

.ranking-list {
    padding: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 4px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.ranking-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.ranking-number.top-three {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.ranking-downloads {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ranking-downloads i {
    font-size: 11px;
}


/* 软件列表 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.software-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.software-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.software-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin-bottom: 12px;
    padding: 0 10px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 最多显示3行 */
    -webkit-box-orient: vertical;
    max-height: 62px; /* 大约3行的高度 */
    word-break: break-word;
}

.software-size {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.software-rating {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 15px;
}

.star-icon {
    color: #ffd700;
    font-size: 14px;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: #357abd;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #357abd;
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* 后台管理页面 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.admin-header h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
}

/* 标签页导航 */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .tabs-nav {
        flex-direction: column;
    }
}

.tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(74, 158, 255, 0.4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.tab-btn i {
    font-size: 18px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* 卡片样式 */
.admin-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-card-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card-icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #4a9eff;
}

.stat-card-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-card-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 表格 */
.table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

th, td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

th:first-child, td:first-child {
    width: 50px;
}

th:nth-child(2), td:nth-child(2) {
    width: 70px;
}

th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    white-space: nowrap;
}

td {
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 表格中的图标列 */
table td:nth-child(2) {
    text-align: center;
}

/* 表格中的软件名称列 */
table td:nth-child(3) {
    text-align: left;
    font-weight: 500;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1f3a;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group select option {
    background: #1a1f3a;
    color: #fff;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
}

.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #4a9eff;
}

.upload-text {
    color: #aaa;
    font-size: 14px;
}

.file-info {
    margin-top: 10px;
    color: #4a9eff;
    font-size: 14px;
}

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

.actions button {
    padding: 5px 10px;
    font-size: 12px;
}

/* 响应式 */
/* 移动端响应式布局 */
@media (max-width: 992px) {
    .search-ranking-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-ranking-top {
        width: 100%;
    }
    
    /* 横向排行榜响应式 */
    .download-ranking-horizontal {
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .ranking-list-horizontal {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ranking-item-horizontal {
        padding: 16px 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .ranking-item-horizontal:nth-child(3n) {
        border-right: none;
    }
    
    .ranking-item-horizontal .ranking-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .ranking-item-horizontal .ranking-name {
        font-size: 13px;
    }
    
    .ranking-item-horizontal .ranking-downloads {
        font-size: 11px;
    }
    
    .category-nav-horizontal {
        padding: 15px;
    }
    
    .category-header {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .category-list-horizontal {
        gap: 10px;
    }
    
    .category-item-horizontal {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .category-item-horizontal i {
        font-size: 16px;
    }
    
    .search-input {
        padding: 12px 45px 12px 45px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* 小屏幕下的横向排行榜优化 */
    .ranking-list-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-item-horizontal {
        padding: 14px 10px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .ranking-item-horizontal:nth-child(2n) {
        border-right: none;
    }
    
    .ranking-item-horizontal:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .ranking-item-horizontal .ranking-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .ranking-item-horizontal .ranking-name {
        font-size: 12px;
    }
    
    .ranking-item-horizontal .ranking-downloads {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .category-nav-horizontal {
        padding: 12px;
    }
    
    .category-list-horizontal {
        gap: 8px;
    }
    
    .category-item-horizontal {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .category-item-horizontal i {
        font-size: 14px;
    }
    
    .ranking-item {
        padding: 10px;
    }
    
    .ranking-name {
        font-size: 13px;
    }
    
    .ranking-downloads {
        font-size: 11px;
    }
    
    .download-ranking-top {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ranking-list-horizontal {
        grid-template-columns: 1fr;
    }
    
    .ranking-item-horizontal {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .ranking-item-horizontal:last-child {
        border-bottom: none;
    }
}

/* 底部内容 */
.site-footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.footer-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-content a {
    color: #4a9eff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    padding: 5px 15px;
    border-radius: 5px;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(74, 158, 255, 0.2);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-content {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* 网站设置表单样式 */
.settings-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-section h3 {
    margin: 0 0 20px 0;
}

#settingsForm .form-group {
    margin-bottom: 25px;
}

#settingsForm .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

#settingsForm .form-group label i {
    color: #4a9eff;
    font-size: 16px;
}

#settingsForm .form-group input[type="text"],
#settingsForm .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

#settingsForm .form-group input[type="text"]:focus,
#settingsForm .form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
}

#settingsForm .form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

#settingsForm small {
    font-size: 12px;
}


