/* 名录页样式 - 亲和风格 */
.directory-main {
    margin-top: var(--top-nav-height);
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - var(--top-nav-height));
    background: linear-gradient(180deg, #EFF6FF 0%, #F0FDF4 50%, #F8FAFC 100%);
    background-attachment: fixed;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.directory-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.directory-tabs .tab-btn {
    padding: 14px 28px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.directory-tabs .tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.directory-tabs .tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.directory-tabs .tab-btn i {
    margin-right: 8px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.time-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.sort-filter select {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.sort-filter select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 榜单表格 */
.ranking-table {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 150px;
    padding: 18px 25px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.table-row:hover {
    background: linear-gradient(90deg, #DBEAFE 0%, transparent 100%);
    transform: translateX(5px);
}

.table-row:last-child {
    border-bottom: none;
}

.rank {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}

.rank.top-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank.top-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank.top-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project {
    display: flex;
    gap: 15px;
    align-items: center;
}

.project img {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project div {
    display: flex;
    flex-direction: column;
}

.project strong {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.project span {
    font-size: 13px;
    color: var(--text-secondary);
}

.amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-small {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar-small .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress .percent {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 赞助榜网格 */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.sponsor-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sponsor-card.top-1 {
    background: linear-gradient(135deg, #FEF9C3 0%, #FEF3C7 100%);
    border: 2px solid #FCD34D;
}

.sponsor-card.top-2 {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border: 2px solid #D1D5DB;
}

.sponsor-card.top-3 {
    background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
    border: 2px solid #FDBA74;
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sponsor-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

.sponsor-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.sponsor-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsor-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sponsor-stats span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.sponsor-stats i {
    margin-right: 4px;
}

/* 加载和空状态 */
.loading, .empty, .error {
    text-align: center;
    padding: 80px;
    color: var(--text-secondary);
}

.loading i, .empty i, .error i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--primary-color);
}
