/* admin/style.css */
:root {
    --primary: #004e92;
    --bg-color: #f0f2f5;
    --white: #ffffff;
    --text-main: #333;
    --text-light: #666;
    --danger: #dc3545;
    --success: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* 登录页 */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #004e92 0%, #000428 100%);
}
.login-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
}
.login-header h2 { margin: 10px 0 30px; color: var(--primary); }
.login-logo { height: 60px; }
.input-group { margin-bottom: 20px; position: relative; }
.input-group i { position: absolute; left: 15px; top: 12px; color: #aaa; }
.input-group input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}
.captcha-group { display: flex; gap: 10px; }
.captcha-group input { padding-left: 10px; }
.captcha-group img { cursor: pointer; border-radius: 5px; }
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.error-msg { color: var(--danger); font-size: 14px; margin-bottom: 15px; }

/* 仪表盘 */
.admin-header {
    background: var(--white);
    padding: 0 40px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.admin-header a { text-decoration: none; color: var(--primary); }
.dashboard-content { max-width: 1000px; margin: 50px auto; padding: 0 20px; }
.cards-container { display: flex; gap: 40px; justify-content: center; }
.dashboard-card {
    background: var(--white);
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}
.dashboard-card:hover { transform: translateY(-5px); }
.card-icon { font-size: 50px; color: var(--primary); margin-bottom: 15px; }
.card-title { font-size: 20px; font-weight: bold; }
.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--danger);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid var(--bg-color);
}

/* 管理列表页 */
.manage-content { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.tabs { display: flex; gap: 20px; margin-bottom: 30px; }
.tab-btn {
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: bold; }
.tab-count { background: #eee; padding: 2px 8px; border-radius: 10px; font-size: 12px; margin-left: 5px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.empty-state { text-align: center; margin-top: 100px; color: #aaa; }
.empty-state i { font-size: 60px; margin-bottom: 20px; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.post-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-card:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.post-status-dot {
    width: 10px; height: 10px; background: var(--danger); border-radius: 50%;
    position: absolute; top: 20px; right: 20px;
}
.post-card.done .post-status-dot { display: none; }
.post-card.done { opacity: 0.7; }
.post-card h3 { margin: 0 0 10px; font-size: 18px; }
.post-time { color: #888; font-size: 14px; margin-bottom: 10px; }
.click-hint { color: var(--primary); font-size: 12px; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center; justify-content: center;
}
.modal-content {
    background: var(--white);
    width: 600px;
    max-width: 90%;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer;
}
.modal-body p { margin-bottom: 10px; line-height: 1.6; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal-body strong { color: #555; width: 120px; display: inline-block; }
.modal-actions { margin-top: 30px; display: flex; justify-content: flex-end; gap: 15px; }
.btn-action { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.btn-action.delete { background: #ffebeb; color: var(--danger); }
.btn-action.process { background: var(--primary); color: white; }