/* user.css - 前台用户页样式 */

/* 登录/注册页 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 56px;
    background: #f7f7f7;
}
.auth-box {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    width: 420px;
    max-width: 94vw;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
}
.auth-logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e50914;
    margin-bottom: 0.4rem;
}
.auth-title {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.auth-form .form-group {
    margin-bottom: 1.1rem;
}
.auth-form .form-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.auth-form .form-group input,
.auth-form .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.auth-form .form-group input:focus,
.auth-form .form-group textarea:focus {
    border-color: #e50914;
}
.form-hint {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.3rem;
}
.req { color: #e50914; }
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.98rem;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: background 0.2s;
    font-family: inherit;
    text-align: center;
    box-sizing: border-box;
}
.auth-btn:hover { background: #c00810; }
.auth-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #aaa;
}
.auth-footer a { color: #e50914; text-decoration: none; }
.auth-msg {
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.auth-msg.error { background: #fef0ef; color: #e50914; border: 1px solid #f5c6cb; }
.auth-msg.success { background: #eaf8f0; color: #1e7e34; border: 1px solid #c3e6cb; }

/* 用户中心页 */
.user-page {
    padding-top: 56px;
    min-height: 100vh;
    background: #f5f5f5;
}
.user-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* 个人信息卡 */
.user-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-info { flex: 1; min-width: 150px; }
.user-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.user-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.member-badge {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.member-normal { background: #e9ecef; color: #495057; }
.member-member { background: #d4edda; color: #155724; }
.member-vip { background: linear-gradient(90deg,#ffe066,#ffa500); color: #7a4a00; }
.user-points { font-size: 0.88rem; color: #666; }
.user-points strong { color: #e50914; font-size: 1rem; }
.user-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-user-action {
    padding: 0.45rem 1.1rem;
    background: #e50914;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-user-action:hover { background: #c00810; }
.btn-user-action.secondary { background: #6c757d; }
.btn-user-action.secondary:hover { background: #5a6268; }

/* 面板网格 */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}
@media (max-width: 700px) {
    .user-grid { grid-template-columns: 1fr; }
}

.user-panel {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e50914;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-link { font-size: 0.82rem; color: #e50914; text-decoration: none; font-weight: 400; }

/* 用户表格 */
.user-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.user-table th { color: #999; font-weight: 500; padding: 0.4rem 0.5rem; border-bottom: 1px solid #f0f0f0; text-align: left; }
.user-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid #f8f8f8; }
.pts-add { color: #28a745; font-weight: 600; }
.pts-sub { color: #e50914; font-weight: 600; }

/* 求资源状态 */
.req-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.req-pending { background: #fff3cd; color: #856404; }
.req-done { background: #d4edda; color: #155724; }
.req-rejected { background: #f8d7da; color: #721c24; }

/* 签到提示 */
.checkin-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeout 3s forwards;
}
@keyframes fadeout {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.empty-tip { color: #bbb; font-size: 0.88rem; padding: 1.5rem 0; text-align: center; }
.empty-tip a { color: #e50914; }
