* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light-dark: #636e72;
    --light: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
}

body {
    background-color: #1a1a2e;
    color: var(--light);
    line-height: 1.6;
    padding: 20px;
}

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

/* 用户信息栏 */
.user-info {
    text-align: right;
    margin-bottom: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.user-info span {
    margin-right: 15px;
}

.login-btn,
.logout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.login-btn:hover,
.logout-btn:hover {
    background: #5b4fd4;
}

/* 标题样式 */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.section-title i {
    color: var(--primary);
}

/* 活动网格 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.activity-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.activity-content {
    padding: 20px;
}

.activity-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.activity-description {
    color: var(--light-dark);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.activity-characName {
    color: var(--light-dark);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.activity-ts {
    color: #3da8cf;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.activity-date {
    color: var(--light-dark);
}

.activity-status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-ongoing {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.status-upcoming {
    background: rgba(253, 203, 110, 0.2);
    color: var(--warning);
}

.status-ended {
    background: rgba(225, 112, 85, 0.2);
    color: var(--danger);
}

.activity-actions {
    display: flex;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5b4fd4;
}

.btn-success {
    background: var(--success);
    color: white;
    cursor: default;
}

.btn-disabled {
    background: var(--light-dark);
    color: var(--light);
    cursor: not-allowed;
}

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

.modal-content {
    background: #2d3436;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.modal-title {
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.login-btn-modal {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn-modal:hover {
    background: #5b4fd4;
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.message.success {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
    display: block;
}

.message.error {
    background: rgba(225, 112, 85, 0.2);
    color: var(--danger);
    display: block;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}


/* 角色选择模态框 */
#characterList {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

#characterList::-webkit-scrollbar {
    width: 8px;
}

#characterList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#characterList::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

#characterList::-webkit-scrollbar-thumb:hover {
    background: #5b4fd4;
}

.character-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.character-item:hover {
    background: rgba(108, 92, 231, 0.2);
}

.character-info h4 {
    color: white;
    margin-bottom: 5px;
}

.character-info p {
    color: var(--light-dark);
    margin: 0;
    font-size: 0.9rem;
}

.rewards-details {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.rewards-details h4 {
    margin-top: 0;
    color: #333;
}

.rewards-details ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.rewards-details li {
    margin-bottom: 5px;
}

.rewards-details {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.rewards-details h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.claim-info p {
    margin: 5px 0;
    padding: 3px 0;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* 公告栏样式 */
.announcement-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.announcement-header i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.announcement-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    max-height: 190px;
    overflow-y: auto;
}

.announcement-item {
    padding: 5px 0;
    color: #2d3436;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.announcement-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 4px;
    padding-left: 8px;
    transition: all 0.3s ease;
}

/* 滚动条样式 */
.announcement-content::-webkit-scrollbar {
    width: 6px;
}

.announcement-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.announcement-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.announcement-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}