/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 统一按钮样式 */
.btn-primary {
    padding: 0.625rem 1.25rem;
    background-color: #ff6b00;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #e55e00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    background-color: white;
    color: #666;
}

.filter-btn.active {
    background-color: #ff6b00;
    color: white;
    border-color: #ff6b00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.filter-btn:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

/* 已激活按钮悬停样式 */
.filter-btn.active:hover {
    background-color: #e55e00;
    color: white;
    border-color: #e55e00;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

/* 任务卡片悬停效果 */
.task-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* 按钮禁用样式 */
.recharge-amount-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 消息未读样式 */
.message-unread {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #6b7280;
}

/* 响应式表格 */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 标签页导航 */
.nav-tab-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: medium;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.nav-tab-btn.active {
    background-color: #ff6b00;
    color: white;
    border-color: #ff6b00;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.nav-tab-btn:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

/* 已激活标签页按钮悬停样式 */
.nav-tab-btn.active:hover {
    background-color: #e55e00;
    color: white;
    border-color: #e55e00;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.admin-nav-btn {
    transition: all 0.2s ease;
}

/* 模态框动画 */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 200ms, transform 200ms;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 200ms, transform 200ms;
}

/* 统一按钮点击效果 */
button:active,
.btn-primary:active,
.btn-secondary:active,
.filter-btn:active,
.admin-nav-btn:active,
.amount-btn:active,
.nav-tab-btn:active,
.recharge-amount-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
