/* themes/default/css/user.css - V70.0 最终修复版 */

/* === 1. 基础设置 === */
:root {
    --c-primary: #2B6E75;
    --c-secondary: #589A9E;
    --c-bg: #F0F7F7;
    --radius: 12px;
    --top-height: 46px;
}

body {
    background-color: var(--c-bg);
    font-family: "LXGW WenKai Screen", "Noto Serif SC", serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; 
    padding-bottom: 40px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* === 2. 认证页 (Login/Register) === */
.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; background: #fff; padding: 40px 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(43, 110, 117, 0.08); text-align: center; }
.auth-title { font-family: 'Ma Shan Zheng', cursive; font-size: 2rem; color: var(--c-primary); margin-bottom: 5px; }
.auth-subtitle { color: #7A8C8F; font-size: 0.9rem; margin-bottom: 30px; letter-spacing: 1px; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid #eee; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s; background: #FAFAFA; font-family: inherit; box-sizing: border-box; }
.form-input:focus { border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(43, 110, 117, 0.1); }
.btn-submit { width: 100%; padding: 12px; background: linear-gradient(135deg, #2B6E75 0%, #1F2D30 100%); color: #fff; border: none; border-radius: 8px; font-size: 1.1rem; cursor: pointer; font-family: inherit; transition: 0.3s; margin-top: 10px; }
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }
.auth-footer { margin-top: 25px; font-size: 0.9rem; color: #999; }
.auth-footer a { color: var(--c-primary); font-weight: bold; border-bottom: 1px dashed transparent; }
.auth-footer a:hover { border-bottom-color: var(--c-primary); }

/* === 3. 个人中心 (User Center) === */

/* 顶部导航条 (统一风格) */
.uc-nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--top-height); padding: 0 15px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(43, 110, 117, 0.15);
    position: sticky; top: 0; z-index: 100; font-size: 0.9rem;
}
.nav-back { font-size: 0.9rem; color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.2s; }
.nav-back:hover { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.nav-back i { font-size: 1.2rem; }
.nav-title { font-weight: bold; font-size: 1rem; color: #fff; letter-spacing: 1px; }
.nav-logout { color: rgba(255,255,255,0.8); font-size: 0.9rem; cursor: pointer; transition: 0.2s; }
.nav-logout:hover { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

/* 个人信息卡片 */
.uc-profile-card {
    margin: 20px; 
    background: linear-gradient(135deg, #2B6E75 0%, #1F2D30 100%);
    border-radius: 16px; padding: 25px; color: #fff;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 10px 25px rgba(43, 110, 117, 0.2);
}
.uc-avatar-lg { width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); object-fit: cover; background: #fff; flex-shrink: 0; }
.uc-meta h2 { margin: 0 0 5px 0; font-size: 1.4rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.uc-role-badge { display: inline-block; background: rgba(255,215,0, 0.2); color: #ffd700; border: 1px solid rgba(255,215,0, 0.4); padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; vertical-align: middle; font-weight: normal; }
.uc-info { font-size: 0.9rem; opacity: 0.8; margin-top: 5px; }

/* 选项卡 */
.uc-tabs { display: flex; margin: 0 20px; border-bottom: 1px solid #eee; background: #fff; border-radius: 12px 12px 0 0; padding: 5px 5px 0 5px; }
.uc-tab { flex: 1; text-align: center; padding: 12px 0; cursor: pointer; color: #999; font-weight: bold; position: relative; transition: 0.3s; }
.uc-tab.active { color: var(--c-primary); }
.uc-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; background: var(--c-primary); border-radius: 3px; }

/* 内容区 */
.uc-content { margin: 0 20px; background: #fff; border-radius: 0 0 12px 12px; padding: 20px; min-height: 300px; }
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* 模块样式 */
.fav-item { display: block; background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 12px; text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid #f0f0f0; border-left: 3px solid transparent; transition: all 0.2s; }
.fav-item:hover { border-left-color: #D4AF37; transform: translateX(2px); }
.fav-title { font-weight: bold; color: #333; margin-bottom: 4px; font-size: 1.05rem; }
.fav-meta { font-size: 0.85rem; color: #999; }
.empty-tip { text-align: center; padding: 40px; color: #ccc; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.my-card-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid #eee; transition: 0.2s; }
.my-card-item:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.my-card-img { width: 100%; display: block; aspect-ratio: 3/5; object-fit: cover; cursor: zoom-in; }
.my-card-actions { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); color: #fff; padding: 8px; display: flex; justify-content: space-around; align-items: center; opacity: 0; transition: 0.2s; }
.my-card-item:hover .my-card-actions { opacity: 1; }
.card-btn { cursor: pointer; font-size: 1.2rem; opacity: 0.8; transition: 0.2s; }
.card-btn:hover { opacity: 1; color: #4dd0e1; transform: scale(1.1); }

/* 设置表单 */
.setting-group { margin-bottom: 20px; }
.setting-label { display: block; color: #666; margin-bottom: 8px; font-size: 0.9rem; font-weight: bold; }
.setting-input { width: 100%; padding: 10px 12px; border: 1px solid #eee; border-radius: 8px; font-size: 1rem; background: #f9f9f9; outline: none; box-sizing: border-box; font-family: inherit; }
.setting-input:focus { background: #fff; border-color: var(--c-primary); }
.btn-save-profile { width: 100%; padding: 12px; background: var(--c-primary); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; margin-top: 10px; font-weight: bold; box-shadow: 0 4px 10px rgba(43, 110, 117, 0.2); transition: 0.2s; }
.btn-save-profile:active { transform: scale(0.98); }
.avatar-uploader { display: flex; align-items: center; gap: 15px; }
.avatar-preview { width: 60px; height: 60px; border-radius: 50%; background: #eee; object-fit: cover; border: 1px solid #eee; }
.btn-upload { padding: 6px 15px; background: #eef5f5; color: var(--c-primary); border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid rgba(43,110,117,0.1); transition: 0.2s; }
.btn-upload:hover { background: #fff; border-color: var(--c-primary); }

@media (max-width: 480px) {
    .uc-profile-card { padding: 20px; margin: 15px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .my-card-actions { opacity: 1; background: rgba(0,0,0,0.4); }
}