/* ============================================================
 * auth-theme.css —— 登录 / 个人中心等页面「与原站一致」主题
 * 设计令牌提取自原站 1:1 克隆首页 (computed-style 实测)：
 *   页面背景   #EFF1F7 (rgb 239,241,247)
 *   主色/激活  #1098FF (rgb 16,152,255)
 *   按钮文字   #3C76FF (rgb 60,118,255)
 *   按钮弧度   26px(胶囊) / 输入框 8px
 *   卡片       白底 圆角 阴影
 * ============================================================ */

:root {
    --primary: #1098ff;
    --primary-deep: #3c76ff;
    --primary-soft: #e4f3ff;
    --page-bg: #eff1f7;
    --card-bg: #ffffff;
    --text: rgba(0, 0, 0, 0.9);
    --text-sub: #909399;
    --line: #ededed;
    --radius-card: 12px;
    --radius-input: 8px;
    --radius-pill: 26px;
}

body {
    background: var(--page-bg) !important;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部导航栏（仿原站 uni-nav-bar） ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 600;
    color: #222;
}
.topbar .back {
    position: absolute;
    left: 12px;
    font-size: 15px;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
}
.topbar .title { font-weight: 600; }

/* ===== 通用页面容器（让内容收在手机列内） ===== */
.auth-page, .me-page, .publish-page, .page-empty {
    max-width: 480px;
    margin: 0 auto;
    min-height: calc(100vh - 65px);
    box-sizing: border-box;
}

/* ===== 登录 / 注册卡片 ===== */
.auth-page { padding: 48px 20px 80px; }
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 28px 20px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    max-width: 360px;
    margin: 0 auto;
}
.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}
.auth-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-sub);
    margin: 0 0 22px;
}
.auth-error {
    background: #fff1f0;
    color: #e23134;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.auth-card .form-row { margin-bottom: 16px; }
.auth-card .form-row label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}
.auth-card .form-row input {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-input);
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: border-color .2s;
}
.auth-card .form-row input:focus { border-color: var(--primary); }

/* ===== 主按钮（胶囊，原站主色） ===== */
.btn-primary {
    display: block;
    width: 100%;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(16, 152, 255, 0.28) !important;
}
.btn-primary:active { opacity: .9; }
.btn-link {
    display: block;
    text-align: center;
    background: var(--primary-soft) !important;
    color: var(--primary-deep) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 0;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-sub); }
.auth-foot a { color: var(--primary); text-decoration: none; }

/* ===== 个人中心 ===== */
.me-page { padding: 0 12px 90px; }
.me-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1098ff, #3c76ff);
    color: #fff;
    border-radius: 14px;
    padding: 22px 18px;
    margin: 12px 0;
    box-shadow: 0 8px 20px rgba(16, 152, 255, 0.25);
}
.me-header .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.me-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-header .name { font-size: 18px; font-weight: 700; }
.me-header .sub { font-size: 12px; opacity: .9; margin-top: 4px; }
.me-header.notlogin { background: linear-gradient(135deg, #8a8f99, #6b7280); }

.me-stats {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 16px 0;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.me-stats .stat { flex: 1; text-align: center; position: relative; }
.me-stats .stat::after {
    content: '';
    position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: #f0f0f0;
}
.me-stats .stat:last-child::after { display: none; }
.me-stats .num { font-size: 17px; font-weight: 700; color: #333; }
.me-stats .lbl { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

.menu-list {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}
.menu-list .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}
.menu-list .menu-item:last-child { border-bottom: none; }
.menu-list .menu-item:active { background: #fafafa; }
.menu-list .menu-item::after { content: '›'; color: #c8c9cc; font-size: 18px; margin-left: 8px; }

.me-section {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 10px 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.me-section .section-title { font-size: 14px; font-weight: 600; color: #333; padding: 6px 4px 10px; }
.mg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-top: 1px solid #f5f5f5;
}
.mg-item .thumb {
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary-deep);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.mg-item .t { flex: 1; font-size: 14px; color: #333; }
.mg-item .bnt {
    font-size: 13px; color: var(--primary);
    border: 1px solid var(--primary); border-radius: 14px;
    padding: 4px 12px; text-decoration: none;
}

.me-logout, .me-action, .me-login-actions { margin: 14px 0; }
.me-login-actions { display: flex; gap: 12px; }
.me-login-actions .btn-primary, .me-login-actions .btn-link { flex: 1; }
.me-logout .btn-primary {
    background: #fff !important; color: #e23134 !important; border: 1px solid #ffccc7 !important; box-shadow: none !important;
}
.vip-tag {
    display: inline-block;
    background: linear-gradient(90deg, #ffd66b, #ff9b3d);
    color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px;
    margin-left: 6px; vertical-align: middle;
}

/* ===== 发布页表单 ===== */
.publish-page { padding: 14px 12px 90px; }
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.form-card .form-row { margin-bottom: 14px; }
.form-card .form-row label { display: block; font-size: 14px; color: #333; margin-bottom: 6px; }
.form-card .form-row input {
    width: 100%; height: 46px; border: 1px solid #e5e5e5; border-radius: var(--radius-input);
    padding: 0 14px; font-size: 15px; outline: none; box-sizing: border-box; background: #fff;
}
.form-card .form-row input:focus { border-color: var(--primary); }
.upload-box {
    border: 1px dashed #c8c9cc; border-radius: 8px; padding: 22px; text-align: center;
    color: var(--text-sub); font-size: 13px; background: #fafafa;
}

/* ===== 空状态 ===== */
.page-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 120px; }
.page-empty .icon-big { font-size: 56px; margin-bottom: 16px; }
.page-empty p { color: var(--text-sub); font-size: 14px; margin: 0 0 18px; }
.page-empty .btn-primary, .page-empty .btn-link { width: 200px; }
