/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

html, body {
    background-color: #1c1d26;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    overflow-x: hidden;
}

body {
    background-color: #24283b;
    background-image: linear-gradient(to bottom, rgba(28, 29, 38, 0.9), rgba(28, 29, 38, 0.9)), 
                      url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj48cGF0aCBmaWxsPSIjMWMxZDI2IiBkPSJNMjUgMTVMMzUgMjVMMjUgMzVMMTUgMjVaIi8+PC9zdmc+');
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: #b7efff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7fd9f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: inline-block;
}

.logo span {
    color: #b7efff;
    font-weight: 400;
    font-size: 1.2rem;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.admin-area {
    position: absolute;
    top: 20px;
    right: 20px;
}

.admin-btn {
    background: rgba(40, 42, 58, 0.7);
    color: #b7efff;
    border: 1px solid rgba(183, 239, 255, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: rgba(183, 239, 255, 0.1);
}

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

.modal-content {
    background: #24283b;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(183, 239, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal h3 {
    color: #b7efff;
    margin-bottom: 20px;
    text-align: center;
}

.modal input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(28, 29, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    margin-bottom: 15px;
}

.modal input:focus {
    outline: none;
    border-color: #b7efff;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: #b7efff;
    color: #1c1d26;
}

.modal-btn.primary:hover {
    background: #7fd9f0;
}

.modal-btn.secondary {
    background: rgba(40, 42, 58, 0.7);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn.secondary:hover {
    background: rgba(40, 42, 58, 0.9);
}

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    background: rgba(40, 42, 58, 0.7);
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
    background: rgba(40, 42, 58, 0.7);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(28, 29, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #b7efff;
    box-shadow: 0 0 0 2px rgba(183, 239, 255, 0.2);
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 10px 20px;
    background: rgba(28, 29, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.sort-btn:hover {
    background: rgba(40, 42, 58, 0.9);
    border-color: rgba(183, 239, 255, 0.3);
}

.sort-btn.active {
    background: #b7efff;
    color: #1c1d26;
    border-color: #b7efff;
}

.add-sponsor {
    background: rgba(40, 42, 58, 0.7);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: none;
}

.add-sponsor h3 {
    color: #b7efff;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(28, 29, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
}

.form-group input:focus {
    outline: none;
    border-color: #b7efff;
}

.add-btn {
    padding: 10px 20px;
    background: #b7efff;
    color: #1c1d26;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #7fd9f0;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.sponsor-card {
    background: rgba(40, 42, 58, 0.7);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(183, 239, 255, 0.3);
}

.sponsor-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(40, 42, 58, 0.9) 0%, rgba(28, 29, 38, 0.9) 100%);
    color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #b7efff;
}

.sponsor-amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.amount-high {
    color: #ff7b7b;
}

.amount-medium {
    color: #ffb86c;
}

.amount-low {
    color: #50fa7b;
}

.sponsor-body {
    padding: 15px;
    text-align: center;
    background: rgba(28, 29, 38, 0.5);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 123, 123, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.sponsor-card:hover .delete-btn {
    display: flex;
}

.delete-btn:hover {
    background: rgba(255, 123, 123, 1);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright li {
    display: inline-block;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .admin-area {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .sponsor-name {
        font-size: 1.2rem;
    }
    
    .sponsor-amount {
        font-size: 1.5rem;
    }
}