/* =========================================================
   EnovelCMS 用户中心统一 CSS
   =========================================================
   目录：
   一、基础与公共样式
   二、按钮与表单
   三、反馈与状态
   四、用户中心布局（侧边栏 + 内容区）
   五、页面专属样式
   六、响应式（PC / 移动端）
   ========================================================= */


/* =========================================================
   一、基础与公共样式
   ========================================================= */

/* ---------- 表单页容器（登录/注册/找回密码） ---------- */
#main .container {
    width: calc(100% - 1rem);
    margin: .5rem auto;
    overflow: hidden;
    border: .05rem solid rgba(20,70,50,.5);
    background: rgba(20,70,50,.01);
}
#main .container > h2 {
    height: 2rem;
    line-height: 2rem;
    background-color: rgba(20,70,50,.1);
    font-weight: 700;
    font-size: .875rem;
    padding: 0 .5rem;
    color: #333;
}


/* =========================================================
   二、按钮与表单
   ========================================================= */

/* ---------- 基础按钮 ---------- */
.btn-primary,
.btn-small,
.btn-outline {
    border: none;
    border-radius: .15rem;
    cursor: pointer;
    color: #fff;
    background: rgba(20,70,50,.5);
    transition: background .2s;
    font-family: inherit;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
.btn-primary:hover,
.btn-small:hover { background: #f60; }

.btn-primary {
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    font-size: .75rem;
}
.btn-small {
    padding: 0 .8rem;
    height: 1.8rem;
    line-height: 1.8rem;
    font-size: .625rem;
    white-space: nowrap;
}
.btn-outline {
    background: transparent;
    color: rgba(20,70,50,.9);
    border: 1px solid rgba(20,70,50,.3);
    padding: .25rem .6rem;
    font-size: .625rem;
    line-height: 1.2;
}
.btn-outline:hover {
    border-color: #f60;
    color: #f60;
    background: transparent;
}

/* ---------- 主按钮（橙色实心） ---------- */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 9rem;
    padding: .5rem 2rem;
    border: none;
    border-radius: .15rem;
    background: #f60;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(246,102,0,.25);
    box-sizing: border-box;
}
.btn-submit i { font-size: .75rem; }
.btn-submit:hover {
    background: #d94e00;
    box-shadow: 0 4px 12px rgba(246,102,0,.4);
    transform: translateY(-1px);
}
.btn-submit:active {
    background: #b84200;
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(246,102,0,.3);
}
/* 全宽版本 */
.btn-submit.btn-block {
    width: 100%;
    min-width: 0;
    margin-top: .3rem;
}
/* 内联版本（用于顶部操作栏） */
.btn-submit.btn-inline {
    width: auto;
    min-width: 0;
    padding: .4rem 1.2rem;
    margin: 0;
    font-size: .6875rem;
}
.btn-submit.btn-inline i { font-size: .6875rem; }

/* ---------- 次要按钮（灰边） ---------- */
.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 9rem;
    padding: .5rem 2rem;
    border: 1px solid rgba(20,70,50,.3);
    border-radius: .15rem;
    background: #fff;
    color: #666;
    font-size: .75rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .05rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    box-sizing: border-box;
}
.btn-cancel i { font-size: .75rem; }
.btn-cancel:hover {
    border-color: #f60;
    color: #f60;
}
.btn-cancel:active { transform: translateY(1px); }
/* 内联版本 */
.btn-cancel.btn-inline {
    width: auto;
    min-width: 0;
    padding: .4rem 1.2rem;
    margin: 0;
    font-size: .6875rem;
}
.btn-cancel.btn-inline i { font-size: .6875rem; }

/* ---------- 大按钮（签到入口） ---------- */
.btn-large {
    display: inline-block;
    padding: .4rem 1.5rem;
    border-radius: .15rem;
    background: #f60;
    color: #fff;
    font-size: .75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    flex: 0 0 auto;
}
.btn-large:hover { background: #d94e00; color: #fff; }

/* ---------- 按钮组容器 ---------- */
.form-actions {
    display: flex;
    justify-content: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .8rem;
    margin-bottom: .4rem;
}

/* ---------- 表单基础 ---------- */
.form-wrap {
    padding: 1rem .5rem;
    font-size: .75rem;
}
.form-group { margin-bottom: .8rem; }
.form-group label {
    display: block;
    margin-bottom: .3rem;
    color: #333;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    border: .05rem solid rgba(20,70,50,.2);
    border-radius: .15rem;
    text-indent: .5rem;
    font-size: .75rem;
    box-sizing: border-box;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.form-group input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.input-group {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.input-group input { flex: 1; min-width: 0; }

.captcha-img {
    height: 1.8rem;
    cursor: pointer;
    border: .05rem solid rgba(20,70,50,.2);
    border-radius: .15rem;
    box-sizing: border-box;
}

.form-divider {
    border: none;
    border-top: 1px dashed #d7d7d7;
    margin: 1rem 0;
}
.form-subtitle {
    font-size: .8125rem;
    font-weight: 700;
    color: #333;
    margin: .5rem 0;
}
.required { color: #f60; margin-left: .2rem; }

.form-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: .75rem;
}
.form-footer a { color: rgba(20,70,50,.9); }
.form-footer a:hover { color: #f60; }
.form-footer .divider {
    margin: 0 .5rem;
    color: #cbd5e1;
}

/* ---------- 下拉框（统一） ---------- */
.vip-select {
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    border: .05rem solid rgba(20,70,50,.2);
    border-radius: .15rem;
    padding: 0 .5rem;
    font-size: .75rem;
    box-sizing: border-box;
    background: #fff;
    outline: none;
    color: #333;
    font-family: inherit;
    transition: border-color .2s;
}
.vip-select:focus { border-color: rgba(20,70,50,.5); }

/* ---------- 文本域 ---------- */
.form-textarea {
    width: 100%;
    min-height: 5rem;
    padding: .5rem;
    border: .05rem solid rgba(20,70,50,.2);
    border-radius: .15rem;
    font-size: .75rem;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color .2s;
}
.form-textarea:focus { border-color: rgba(20,70,50,.5); }

/* ---------- 表单提示小字 ---------- */
.form-hint {
    font-size: .625rem;
    color: #999;
    margin-top: .3rem;
    line-height: 1.4;
}

/* ---------- 横向表单（label 左 / input 右） ---------- */
.form-horizontal .form-group {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}
.form-horizontal .form-group > label {
    flex: 0 0 6rem;
    width: 6rem;
    margin: 0;
    font-size: .75rem;
    color: #333;
    text-align: left;
    line-height: 1.4;
}
.form-horizontal .form-group > input:not([type="hidden"]),
.form-horizontal .form-group > select {
    flex: 1;
    min-width: 0;
    height: 1.8rem;
    line-height: 1.8rem;
    border: .05rem solid rgba(20,70,50,.2);
    border-radius: .15rem;
    padding: 0 .5rem;
    font-size: .75rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
    outline: none;
    color: #333;
    transition: border-color .2s;
}
.form-horizontal .form-group > input:focus,
.form-horizontal .form-group > select:focus {
    border-color: rgba(20,70,50,.5);
}
.form-horizontal .form-group > textarea.form-textarea {
    flex: 1;
    min-width: 0;
}
.form-horizontal .form-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.form-horizontal .form-input-wrap input[type="file"] { width: 100%; }
.form-horizontal .form-group.form-group-top { align-items: flex-start; }
.form-horizontal .form-group.form-group-top > label { line-height: 1.8rem; }
.form-horizontal .form-actions {
    justify-content: flex-start;
    padding-left: 6.8rem; /* 6rem label + 0.8rem gap */
    margin-top: .8rem;
}

/* ---------- 文件输入 ---------- */
.user-info-card input[type="file"] {
    width: 100%;
    font-size: .6875rem;
    color: #666;
    padding: .3rem 0;
    box-sizing: border-box;
}
.user-info-card input[type="file"]::file-selector-button {
    padding: .35rem .8rem;
    margin-right: .5rem;
    border: 1px solid rgba(20,70,50,.3);
    border-radius: .15rem;
    background: #fff;
    color: rgba(20,70,50,.9);
    font-size: .6875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}
.user-info-card input[type="file"]::file-selector-button:hover {
    border-color: #f60;
    color: #f60;
}


/* =========================================================
   三、反馈与状态
   ========================================================= */

/* ---------- 提示信息 ---------- */
.error,
.success,
.alert {
    padding: .5rem;
    margin: 0 .5rem .8rem;
    border-radius: .15rem;
    font-size: .75rem;
}
.error {
    border: 1px solid #f60;
    background: rgba(246,102,0,.05);
    color: #f60;
}
.success,
.alert {
    border: 1px solid rgba(20,70,50,.5);
    background: rgba(20,70,50,.05);
    color: rgba(20,70,50,.9);
}

/* ---------- JS 动态提示框 ---------- */
.alert-box {
    display: none;
    padding: .5rem .8rem;
    border-radius: .15rem;
    font-size: .75rem;
    margin-bottom: .8rem;
}
.alert-box.success {
    display: block;
    border: 1px solid rgba(20,70,50,.5);
    background: rgba(20,70,50,.05);
    color: rgba(20,70,50,.9);
}
.alert-box.error {
    display: block;
    border: 1px solid #f60;
    background: rgba(246,102,0,.05);
    color: #f60;
}

/* ---------- 空状态 ---------- */
.empty-state {
    text-align: center;
    padding: 2rem 0;
    font-size: .75rem;
    color: #999;
}
.empty-state i {
    font-size: 2rem;
    color: rgba(20,70,50,.3);
    display: block;
    margin-bottom: .5rem;
}
.empty-state p { margin-bottom: 1rem; }
.empty-state .btn-submit {
    display: inline-flex;
    width: auto;
    min-width: 8rem;
    margin-top: .3rem;
}

/* ---------- 图片预览 ---------- */
.file-preview {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.file-preview-item {
    position: relative;
    width: 5rem;
    height: 5rem;
    border: .05rem dashed rgba(20,70,50,.3);
    border-radius: .15rem;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.file-preview-item .remove-preview {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    background: rgba(246,102,0,.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: .625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-preview-item .remove-preview:hover { background: #f60; }
.file-preview-item .file-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: .5rem;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
}

/* ---------- 上传进度 ---------- */
#uploadProgress {
    display: none;
    margin: .8rem 0;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(20,70,50,.1);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar .progress-fill {
    height: 100%;
    width: 0;
    background: #f60;
    transition: width .3s;
}
.progress-tip {
    text-align: center;
    margin-top: .3rem;
    font-size: .6875rem;
    color: #888;
}
.submit-loading {
    opacity: .6;
    pointer-events: none;
}

/* ---------- 数据表格 ---------- */
.table-wrap {
    overflow-x: auto;
    background: rgba(255,255,255,.5);
    border: .05rem solid rgba(20,70,50,.25);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .7rem;
    color: #666;
}
.data-table thead th {
    background: rgba(20,70,50,.1);
    font-weight: 700;
    color: #333;
    text-align: left;
    padding: .5rem .4rem;
    border-bottom: .05rem solid rgba(20,70,50,.2);
    white-space: nowrap;
}
.data-table tbody td {
    padding: .5rem .4rem;
    border-bottom: 1px dashed #d7d7d7;
    white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table a { color: rgba(20,70,50,.9); }
.data-table a:hover { color: #f60; }

.text-success { color: rgba(20,70,50,.9); font-weight: 700; }
.text-danger { color: #f60; font-weight: 700; }

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .6rem;
    background: #fff;
    border: 1px solid rgba(20,70,50,.25);
    border-radius: .15rem;
    color: rgba(20,70,50,.9);
    font-size: .6875rem;
    text-decoration: none;
    transition: all .2s;
    box-sizing: border-box;
}
.page-link i { font-size: .625rem; }
.page-link:hover {
    border-color: #f60;
    color: #f60;
}
.page-link.active {
    background: #f60;
    color: #fff;
    border-color: #f60;
    font-weight: 700;
}

/* ---------- 标签徽章 ---------- */
.vip-badge {
    display: inline-block;
    padding: .1rem .5rem;
    font-size: .625rem;
    font-weight: 600;
    border-radius: .15rem;
    line-height: 1.4;
}
.vip-badge.approved { background: rgba(20,70,50,.1); color: rgba(20,70,50,.9); }
.vip-badge.pending  { background: rgba(246,102,0,.1); color: #f60; }
.vip-badge.rejected { background: rgba(220,38,38,.08); color: #dc2626; }
.vip-badge.free     { background: #f5f5f5; color: #999; }

.vip-tag {
    display: inline-block;
    border: 1px solid #f60;
    padding: 0 .3rem;
    color: #f60;
    font-size: .625rem;
    font-style: normal;
    line-height: 1.2rem;
    margin-right: .3rem;
}
.normal-tag { color: #999; font-weight: 400; }

.status-tag {
    display: inline-block;
    padding: .1rem .5rem;
    font-size: .625rem;
    border-radius: .15rem;
    line-height: 1.4;
}
.status-tag.ongoing { background: rgba(20,70,50,.1); color: rgba(20,70,50,.9); }
.status-tag.finished { background: rgba(246,102,0,.1); color: #f60; }


/* =========================================================
   四、用户中心布局（侧边栏 + 内容区）
   ========================================================= */

.user-center-layout {
    margin-top: .5rem;
    width: 100%;
    overflow: hidden;
}

/* ---------- 侧边栏 ---------- */
.user-sidebar {
    float: left;
    width: 8rem;
    border: .05rem solid rgba(20,70,50,.5);
    background: rgba(20,70,50,.01);
}
.user-sidebar-header {
    text-align: center;
    padding: .8rem .5rem;
    border-bottom: 1px dashed #d7d7d7;
}
.user-avatar {
    width: 3rem;
    height: 3rem;
    margin: 0 auto .4rem;
    border-radius: 50%;
    background: rgba(20,70,50,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(20,70,50,.7);
    font-size: 1.2rem;
}
.user-sidebar-header h3 {
    font-size: .8125rem;
    font-weight: 700;
    color: #333;
    line-height: 1.5rem;
}
.user-sidebar-header p {
    font-size: .625rem;
    margin-top: .2rem;
    color: #999;
}
.user-sidebar-header .vip-badge {
    border: 1px solid #f60;
    padding: 0 .3rem;
    color: #f60;
    font-size: .5rem;
    font-style: normal;
    border-radius: 0;
    background: transparent;
}

/* ---------- 侧边栏导航 ---------- */
.user-nav { padding: .3rem 0; }

.user-nav-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 .8rem;
    height: 2rem;
    font-size: .75rem;
    line-height: 1;
    border-left: .15rem solid transparent;
    color: #666;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.user-nav-item:hover {
    background: rgba(20,70,50,.1);
    color: #f60;
}
.user-nav-item.active {
    border-left-color: #f60;
    background: rgba(20,70,50,.05);
    color: #f60;
    font-weight: 700;
}
.user-nav-item i {
    flex: 0 0 1rem;
    width: 1rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1;
}
.user-nav-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-nav-divider {
    height: 1px;
    background: #d7d7d7;
    margin: .4rem .5rem;
}

/* ---------- 内容区 ---------- */
.user-content { margin-left: 9rem; }
.user-content > h2 {
    height: 2rem;
    line-height: 2rem;
    background: rgba(20,70,50,.1);
    font-weight: 700;
    font-size: .875rem;
    padding: 0 .5rem;
    margin-bottom: .5rem;
    color: #333;
}

/* ---------- 通用卡片容器 ---------- */
.user-info-card {
    background: rgba(255,255,255,.5);
    border: .05rem solid rgba(20,70,50,.25);
    padding: .5rem .8rem;
    margin-bottom: .8rem;
    font-size: .75rem;
}
.user-info-card .card-title {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    color: #333;
    padding-bottom: .4rem;
    margin-bottom: .6rem;
    border-bottom: 1px dashed #d7d7d7;
}
.user-info-card .card-title i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
}
.user-info-card .card-tip {
    font-size: .625rem;
    font-weight: 400;
    color: #999;
    margin-left: auto;
}
.user-info-card .card-desc {
    font-size: .6875rem;
    color: #888;
    line-height: 1.5;
    margin: 0 0 .6rem;
}
.user-info-card .form-group { margin-bottom: .6rem; }
.user-info-card .form-group:last-child { margin-bottom: 0; }
.user-info-card .form-group label {
    font-size: .6875rem;
    color: #666;
}

/* ---------- 顶部操作栏 ---------- */
.page-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}


/* =========================================================
   五、页面专属样式
   ========================================================= */

/* ---------- 用户中心首页：信息卡 ---------- */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 2rem;
    border-bottom: 1px dashed #d7d7d7;
    gap: .5rem;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    color: #666;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.info-label i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
}
.info-value {
    color: #333;
    font-weight: 700;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.info-row .expire {
    color: #999;
    font-size: .625rem;
    font-weight: 400;
}
.upgrade-link {
    color: #f60;
    font-size: .625rem;
    font-weight: 400;
    margin-left: .3rem;
    text-decoration: none;
    white-space: nowrap;
}
.upgrade-link:hover { text-decoration: underline; }

/* ---------- 用户中心首页：统计卡 ---------- */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-bottom: .8rem;
}
.stat-card {
    display: block;
    background: rgba(255,255,255,.5);
    border: .05rem solid rgba(20,70,50,.25);
    padding: .8rem .3rem;
    text-align: center;
    font-size: .625rem;
    color: #666;
    text-decoration: none;
    transition: all .2s;
    box-sizing: border-box;
}
.stat-card:hover {
    border-color: #f60;
    background: rgba(246,102,0,.05);
    transform: translateY(-2px);
}
.stat-card i {
    font-size: 1.2rem;
    color: rgba(20,70,50,.7);
    display: block;
    margin-bottom: .4rem;
    transition: color .2s;
}
.stat-card:hover i { color: #f60; }
.stat-value {
    font-size: .9375rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4rem;
}
.stat-label {
    color: #888;
    margin-top: .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 用户中心首页：签到入口横幅 ---------- */
.sign-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    background: rgba(246,102,0,.05);
    border: .05rem solid #f60;
    padding: .8rem 1rem;
    font-size: .75rem;
    color: #333;
}
.sign-cta-text {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    min-width: 0;
}
.sign-cta-text i {
    color: #f60;
    font-size: 1rem;
    flex: 0 0 auto;
}
.sign-cta-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sign-cta.signed {
    background: rgba(20,70,50,.05);
    border-color: rgba(20,70,50,.3);
}
.sign-cta.signed .sign-cta-text i { color: rgba(20,70,50,.7); }

/* ---------- 余额卡片（金币明细 / 充值 / 提现） ---------- */
.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}
.balance-info {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    min-width: 0;
}
.balance-label {
    color: #666;
    font-size: .6875rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.balance-label i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
}
.balance-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f60;
    line-height: 1.2;
}
.balance-value small {
    font-size: .6875rem;
    font-weight: 400;
    color: #999;
    margin-left: .2rem;
}
.btn-recharge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .9rem;
    background: #f60;
    color: #fff;
    font-size: .6875rem;
    border-radius: .15rem;
    text-decoration: none;
    transition: all .2s;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(246,102,0,.2);
}
.btn-recharge:hover {
    background: #d94e00;
    color: #fff;
    box-shadow: 0 4px 10px rgba(246,102,0,.35);
    transform: translateY(-1px);
}
.btn-recharge i { font-size: .6875rem; }

/* ---------- 汇率标签（充值 / 提现） ---------- */
.recharge-rate {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .8rem;
    background: rgba(246,102,0,.08);
    border: 1px solid rgba(246,102,0,.3);
    border-radius: 1rem;
    font-size: .6875rem;
    color: #f60;
    flex: 0 0 auto;
}
.recharge-rate i { color: #f60; font-size: .6875rem; }

/* ---------- VIP 中心页 ---------- */
.vip-status-card {
    background: rgba(255,255,255,.5);
    border: .05rem solid rgba(20,70,50,.25);
    padding: .9rem .8rem;
    margin-bottom: .8rem;
    text-align: center;
    transition: all .2s;
}
.vip-status-card i {
    font-size: 1.8rem;
    color: rgba(20,70,50,.7);
    margin-bottom: .4rem;
    display: block;
    line-height: 1;
}
.vip-status-card .status-text {
    font-size: .8125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: .2rem;
}
.vip-status-card .expire-info,
.vip-status-card .upgrade-tip {
    font-size: .6875rem;
    color: #888;
    line-height: 1.5;
}
.vip-status-card.active {
    border-color: #f60;
    background: rgba(246,102,0,.05);
}
.vip-status-card.active i,
.vip-status-card.active .status-text { color: #f60; }
.vip-status-card.active .expire-info { color: #666; }

.vip-cards-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    margin-bottom: .5rem;
}

/* ---------- 签到页 ---------- */
.sign-main-card { text-align: center; }
.sign-main-card .card-title { text-align: left; }

.sign-reward-preview {
    padding: .8rem 0 .6rem;
    margin-bottom: .6rem;
    border-bottom: 1px dashed #d7d7d7;
}
.reward-label {
    font-size: .6875rem;
    color: #888;
    margin-bottom: .4rem;
}
.reward-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f60;
    line-height: 1.2;
}
.reward-number small {
    font-size: .6875rem;
    font-weight: 400;
    color: #999;
    margin-left: .2rem;
}
.reward-detail {
    font-size: .6875rem;
    color: #666;
    margin-top: .4rem;
}
.reward-bonus {
    color: #f60;
    font-weight: 600;
    margin-left: .3rem;
}

.signed-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem 1.2rem;
    border-radius: .15rem;
    background: rgba(20,70,50,.1);
    color: rgba(20,70,50,.9);
    font-size: .75rem;
    font-weight: 600;
}
.signed-badge i { font-size: .75rem; }

.sign-stats { grid-template-columns: repeat(2, 1fr); }

.rule-card { margin-bottom: 0; }
.rule-card .rule-tip {
    margin: 0;
    padding: 0;
    font-size: .6875rem;
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

/* ---------- 书架页 ---------- */
.bookshelf-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.bookshelf-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .8rem;
    align-items: center;
    background: rgba(255,255,255,.5);
    border: .05rem solid rgba(20,70,50,.25);
    padding: .6rem .8rem;
    transition: border-color .2s, box-shadow .2s;
}
.bookshelf-item:hover {
    border-color: rgba(20,70,50,.45);
    box-shadow: 0 2px 8px rgba(20,70,50,.08);
}
.bookshelf-cover { flex: 0 0 auto; }
.bookshelf-cover img {
    display: block;
    width: 3rem;
    height: 4rem;
    object-fit: cover;
    padding: .15rem;
    border: .05rem solid rgba(20,70,50,.2);
    background: #fff;
    box-sizing: border-box;
}
.bookshelf-info { min-width: 0; overflow: hidden; }
.bookshelf-info h3 {
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.3rem;
    margin-bottom: .2rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bookshelf-info h3 a { color: #333; text-decoration: none; }
.bookshelf-info h3 a:hover { color: #f60; }
.bookshelf-info .author {
    font-size: .675rem;
    color: #888;
    margin-bottom: .3rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.bookshelf-info .author i {
    color: rgba(20,70,50,.7);
    width: .75rem;
    text-align: center;
}
.bookshelf-info .last-read {
    font-size: .625rem;
    color: #666;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: .3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bookshelf-info .last-read i {
    color: rgba(20,70,50,.7);
    width: .75rem;
    text-align: center;
    flex: 0 0 auto;
}
.bookshelf-info .last-read a {
    color: rgba(20,70,50,.9);
    text-decoration: none;
}
.bookshelf-info .last-read a:hover { color: #f60; }
.bookshelf-actions {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 0 0 auto;
    width: 6rem;
}
.btn-read,
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    width: 100%;
    padding: .35rem 0;
    border-radius: .15rem;
    font-size: .6875rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    box-sizing: border-box;
}
.btn-read {
    background: #f60;
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(246,102,0,.2);
}
.btn-read:hover {
    background: #d94e00;
    color: #fff;
    box-shadow: 0 4px 10px rgba(246,102,0,.35);
    transform: translateY(-1px);
}
.btn-remove {
    background: transparent;
    color: #999;
    border: 1px solid rgba(20,70,50,.25);
}
.btn-remove:hover {
    color: #f60;
    border-color: #f60;
}

/* ---------- 阅读历史页 ---------- */
.history-table thead th { white-space: nowrap; }
.history-table .link-novel {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.history-table .link-novel i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
    flex: 0 0 auto;
}
.history-table .link-novel:hover { color: #f60; }
.history-table .link-novel:hover i { color: #f60; }
.history-table .link-chapter {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: rgba(20,70,50,.9);
    text-decoration: none;
    transition: color .2s;
}
.history-table .link-chapter i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
    flex: 0 0 auto;
}
.history-table .link-chapter:hover { color: #f60; }
.history-table .link-chapter:hover i { color: #f60; }
.history-table .cell-time {
    color: #999;
    font-size: .6875rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.history-table .cell-time i {
    color: rgba(20,70,50,.7);
    width: .875rem;
    text-align: center;
    flex: 0 0 auto;
}

/* ---------- 我的作品页 / 章节管理 / 分卷管理 ---------- */
.works-table thead th,
.chapter-table thead th,
.volume-table thead th { white-space: nowrap; }

.works-table .cell-id,
.chapter-table .cell-id,
.volume-table .cell-id { color: #999; font-size: .6875rem; }

.works-table .cell-words,
.chapter-table .cell-words { color: #666; }

.chapter-table .cell-sort,
.volume-table .cell-sort { color: #999; font-size: .6875rem; }

/* 封面缩略图 */
.cover-thumb {
    display: block;
    width: 2.5rem;
    height: 3.4rem;
    object-fit: cover;
    border: .05rem solid rgba(20,70,50,.2);
    background: #fff;
    padding: 1px;
    box-sizing: border-box;
}

/* 标题链接 */
.link-title {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}
.link-title:hover { color: #f60; }

/* 分卷名称（带图标） */
.volume-table .link-title {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.volume-table .link-title i {
    color: rgba(20,70,50,.7);
    font-size: .8125rem;
}

/* 操作链接 */
.action-cell { vertical-align: middle; }
.action-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .8rem;
}
.action-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .6875rem;
    color: rgba(20,70,50,.9);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}
.action-link i {
    font-size: .6875rem;
    color: rgba(20,70,50,.7);
    transition: color .2s;
}
.action-link:hover,
.action-link:hover i { color: #f60; }
.action-link.danger,
.action-link.danger i { color: #999; }
.action-link.danger:hover,
.action-link.danger:hover i { color: #dc2626; }

/* ---------- 编辑作品页：当前封面预览 ---------- */
.cover-wrapper { margin-bottom: .5rem; }
.cover-preview {
    display: block;
    max-height: 6rem;
    max-width: 4.5rem;
    border: .05rem solid rgba(20,70,50,.2);
    background: #fff;
    padding: 1px;
    box-sizing: border-box;
}

/* ---------- 收益统计页 ---------- */
.income-stats { grid-template-columns: repeat(5, 1fr); }
.income-stats .stat-card { padding: .8rem .4rem; }
.income-stats .stat-value { font-size: .875rem; }
.income-stats .stat-label {
    font-size: .5625rem;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: flex-end;
}
.filter-item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 0 0 auto;
    min-width: 8rem;
}
.filter-item label { font-size: .6875rem; color: #666; }
.filter-item-wide { min-width: 12rem; flex: 1 1 12rem; }
.filter-actions {
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    margin-left: auto;
}
.filter-actions .btn-submit.btn-inline,
.filter-actions .btn-cancel.btn-inline {
    padding: .4rem 1rem;
    font-size: .6875rem;
}
.filter-actions .btn-submit.btn-inline i,
.filter-actions .btn-cancel.btn-inline i {
    font-size: .6875rem;
}

.income-table thead th { white-space: nowrap; }
.income-table .cell-time { color: #999; font-size: .6875rem; }
.income-table .text-right { text-align: right; }

/* ---------- 提现页 ---------- */
/* 卡片标题里的编辑按钮 */
.card-tip.btn-edit-tip {
    background: transparent;
    border: none;
    color: #f60;
    font-size: .6875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    transition: opacity .2s;
}
.card-tip.btn-edit-tip:hover { opacity: .75; }
.card-tip.btn-edit-tip i { font-size: .6875rem; color: #f60; }

/* 查看二维码按钮 */
.view-qrcode-btn {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem .6rem;
    border: 1px solid rgba(20,70,50,.3);
    border-radius: .15rem;
    background: #fff;
    color: rgba(20,70,50,.9);
    font-size: .6875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
}
.view-qrcode-btn:hover {
    border-color: #f60;
    color: #f60;
}

/* 二维码预览 */
.qrcode-preview-box { margin-top: .5rem; }
.qrcode-preview {
    display: block;
    max-width: 6rem;
    max-height: 6rem;
    border: .05rem solid rgba(20,70,50,.2);
    background: #fff;
    padding: 2px;
    box-sizing: border-box;
}

/* 提现表格 */
.withdraw-table thead th { white-space: nowrap; }
.withdraw-table .cell-time { color: #999; font-size: .6875rem; }
.withdraw-table .cell-fee { color: #999; }
.withdraw-table .cell-actual { color: rgba(20,70,50,.9); font-weight: 600; }
.withdraw-table .account-info {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
}
.withdraw-table .account-real-name {
    color: #999;
    font-size: .625rem;
}

/* 二维码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.qrcode-modal .modal-wrap {
    position: relative;
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
    max-width: 24rem;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.qrcode-modal .modal-close {
    position: absolute;
    top: .3rem;
    right: .6rem;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color .2s;
}
.qrcode-modal .modal-close:hover { color: #f60; }
.qrcode-modal #modalQrcodeImg {
    display: block;
    width: 100%;
    border-radius: .3rem;
}


/* =========================================================
   六、响应式
   ========================================================= */

/* ---------- PC 端（≥768px） ---------- */
@media (min-width:768px) {
    /* 表单页容器加宽 */
    #main .container { width: 30rem; margin: 1rem auto; }
    .form-wrap { padding: 1.5rem 3rem; }

    /* VIP 页双栏并排 */
    .vip-cards-wrap { grid-template-columns: 1fr 1fr; }
}

/* ---------- 移动端（≤768px） ---------- */
@media (max-width:768px) {
    /* ---------- 侧边栏变成顶部横向导航 ---------- */
    .user-sidebar { width: 100%; float: none; margin-bottom: .5rem; }
    .user-sidebar-header { text-align: left; overflow: hidden; padding: .5rem; }
    .user-avatar { float: left; margin: 0 .5rem 0 0; }
    .user-sidebar-header h3,
    .user-sidebar-header p { margin-left: 3.5rem; }

    .user-nav { overflow: hidden; }
    .user-nav-item {
        float: left;
        width: 50%;
        box-sizing: border-box;
        justify-content: center;
        border-left: none;
        border-bottom: .15rem solid transparent;
        text-align: center;
        padding: 0 .4rem;
    }
    .user-nav-item.active {
        border-left: none;
        border-bottom-color: #f60;
    }
    .user-nav-item i { flex: 0 0 auto; width: auto; }
    .user-nav-item span { flex: 0 1 auto; }

    .user-content { margin-left: 0; }

    /* ---------- 按钮铺满 ---------- */
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
    }
    .form-actions .btn-submit,
    .form-actions .btn-cancel {
        width: 100%;
        min-width: 0;
    }
    .btn-submit { width: 100%; min-width: 0; }
    .btn-large { width: 100%; text-align: center; }

    /* ---------- 横向表单：恢复纵向堆叠 ---------- */
    .form-horizontal .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: .3rem;
    }
    .form-horizontal .form-group > label {
        flex: none;
        width: auto;
    }
    .form-horizontal .form-actions {
        padding-left: 0;
        justify-content: stretch;
    }

    /* ---------- 顶部操作栏：按钮平分 ---------- */
    .page-actions { justify-content: stretch; }
    .page-actions .btn-submit.btn-inline,
    .page-actions .btn-cancel.btn-inline {
        flex: 1;
        width: auto;
        min-width: 0;
    }
    .btn-submit.btn-inline { width: 100%; }

    /* ---------- 用户中心首页 ---------- */
    .user-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sign-cta {
        flex-direction: column;
        text-align: center;
        gap: .6rem;
    }
    .sign-cta-text { justify-content: center; }

    /* ---------- 收益统计页 ---------- */
    .income-stats { grid-template-columns: repeat(2, 1fr); }
    .income-stats .stat-label { -webkit-line-clamp: 1; }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item,
    .filter-item-wide {
        flex: none;
        min-width: 0;
        width: 100%;
    }
    .filter-actions {
        margin-left: 0;
        flex-direction: column;
    }
    .filter-actions .btn-submit.btn-inline,
    .filter-actions .btn-cancel.btn-inline { width: 100%; }

    /* ---------- 书架页 ---------- */
    .bookshelf-item {
        grid-template-columns: auto 1fr;
        gap: .6rem;
    }
    .bookshelf-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        width: 100%;
        margin-top: .3rem;
        padding-top: .5rem;
        border-top: 1px dashed #d7d7d7;
    }
    .btn-read,
    .btn-remove { flex: 1; }

    /* ---------- 阅读历史页：表格改卡片 ---------- */
    .history-table thead { display: none; }
    .history-table,
    .history-table tbody,
    .history-table tr,
    .history-table td {
        display: block;
        width: 100%;
    }
    .history-table tr {
        padding: .6rem .8rem;
        border-bottom: 1px dashed #d7d7d7;
        position: relative;
    }
    .history-table tr:last-child { border-bottom: none; }
    .history-table td {
        padding: .2rem 0;
        white-space: normal;
    }
    .history-table td:first-child { margin-bottom: .2rem; }
    .history-table .cell-time {
        font-size: .625rem;
        margin-top: .3rem;
    }

    /* ---------- 我的作品 / 章节管理 / 分卷管理：紧凑表格 ---------- */
    .works-table thead th:first-child,
    .works-table .cell-id,
    .chapter-table thead th:first-child,
    .chapter-table .cell-id,
    .volume-table thead th:first-child,
    .volume-table .cell-id { display: none; }

    .works-table thead th,
    .works-table td,
    .chapter-table thead th,
    .chapter-table td,
    .volume-table thead th,
    .volume-table td {
        padding: .4rem .5rem;
        font-size: .6875rem;
    }
    .works-table .cell-words,
    .chapter-table .cell-words,
    .chapter-table .cell-sort,
    .volume-table .cell-sort { font-size: .625rem; }

    .action-wrap { gap: .2rem .5rem; }
    .action-link { font-size: .625rem; }

    /* ---------- 收益统计 / 提现表格 ---------- */
    .income-table thead th,
    .income-table td,
    .withdraw-table thead th,
    .withdraw-table td {
        padding: .4rem .5rem;
        font-size: .6875rem;
    }
    .withdraw-table thead th:nth-child(3),
    .withdraw-table td:nth-child(3) { display: none; }

    .card-tip.btn-edit-tip { font-size: .625rem; }

    /* ---------- 分页缩小 ---------- */
    .page-link {
        min-width: 1.8rem;
        height: 1.8rem;
        padding: 0 .4rem;
        font-size: .625rem;
    }
}