@charset "utf-8";
/* ==========================================================================
   shipsay（船说）· 会员功能样式（登录/注册/会员中心/书架/阅读记录/消息诉求）
   作用域：.ss-mem-wrap / .ss-mem 内（共享视图中性 class）+ 主题 header 的 .ss-mem-nav。
   设计对齐 style.css：容器 960px、页面底 #f4f4f4、白色 .section 面板、主色 #ed4259
   （深红 #bf2c24）、正文 #666、标题 #33373d、弱化 #969ba3、1~3px 小圆角、微软雅黑。
   ========================================================================== */

/* ---------------------------------------------------------------- header 入口 */
.header_right .ss-mem-nav {
    font-size: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}
.header_right .ss-mem-nav:hover { color: #ed4259; }
@media screen and (max-width: 639px) {
    .header_right .ss-mem-nav { font-size: 11px; }
}

/* ---------------------------------------------------------------- 骨架/标题 */
.ss-mem-wrap { width: 100%; }

.ss-mem {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 10px 34px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    font-family: "微软雅黑", "Microsoft Yahei", Arial, Tahoma, Verdana, sans-serif;
}
.ss-mem *, .ss-mem *:before, .ss-mem *:after { box-sizing: border-box; }
.ss-mem a { color: #1a1a1a; text-decoration: none; }
.ss-mem a:hover { color: #ed4259; }
.ss-mem img { max-width: 100%; }

.ss-mem-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e6e6e6;
}
.ss-mem-title { margin: 0; font-size: 22px; font-weight: 700; color: #33373d; line-height: 1.3; }
.ss-mem-sub { font-size: 13px; color: #969ba3; }
.ss-mem-sub b { color: #ed4259; }

/* ---------------------------------------------------------------- 页内导航 */
.ss-mem-nav { display: inline-block; font-size: 13px; color: #666; }
.ss-mem-nav:hover { color: #ed4259; }

.ss-mem-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    overflow: hidden;
}
.ss-mem-subnav a {
    display: inline-block;
    padding: 9px 20px;
    font-size: 14px;
    color: #666;
    border-right: 1px solid #f0f0f0;
}
.ss-mem-subnav a:last-child { border-right: 0; }
.ss-mem-subnav a:hover { color: #ed4259; background: #fcfcfc; }
.ss-mem-subnav a.on { color: #fff; background: #ed4259; }

/* ---------------------------------------------------------------- 网格/卡片 */
.ss-mem-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.ss-mem-card {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}
.ss-mem-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 700;
    color: #33373d;
}
.ss-mem-card-hd .ss-mem-nav { font-weight: 400; font-size: 12px; }

/* ---------------------------------------------------------------- 资料/统计 */
.ss-mem-kv { display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.ss-mem-kv dt { flex: 0 0 84px; width: 84px; padding: 5px 0; font-size: 13px; color: #969ba3; }
.ss-mem-kv dd {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 5px 0;
    font-size: 13px;
    color: #4a4a4a;
    word-break: break-all;
}
.ss-mem-uid {
    font-family: Consolas, "Courier New", monospace;
    color: #ed4259;
    letter-spacing: .3px;
}

.ss-mem-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-mem-stat {
    padding: 10px 8px;
    text-align: center;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 2px;
}
.ss-mem-stat b { display: block; font-size: 20px; line-height: 1.2; color: #ed4259; }
.ss-mem-stat span { display: block; margin-top: 2px; font-size: 12px; color: #969ba3; }
.ss-mem-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------------------------------------------------------------- 列表（书架/历史） */
.ss-mem-list { margin: 0; padding: 0; list-style: none; }
.ss-mem-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ss-mem-row:first-child { padding-top: 0; }
.ss-mem-row:last-child { border-bottom: 0; padding-bottom: 0; }

.ss-mem-thumb { flex: 0 0 72px; width: 72px; display: block; }
.ss-mem-thumb img,
.ss-mem-cover {
    display: block;
    width: 72px;
    height: 96px;
    object-fit: cover;
    background: #f4f4f4;
    border: 1px solid #eee;
    border-radius: 2px;
}
.ss-mem-cover { flex: 0 0 72px; }

.ss-mem-meta { flex: 1 1 0; min-width: 0; font-size: 13px; line-height: 1.8; color: #666; }
.ss-mem-meta a { color: #33373d; }
.ss-mem-meta strong, .ss-mem-meta b { color: #33373d; }
.ss-mem-meta p { margin: 0; }
.ss-mem-meta .ss-mem-time,
.ss-mem-time { display: block; margin-top: 2px; color: #969ba3; font-size: 12px; }
.ss-mem-row .ss-mem-actions { margin-top: 6px; }

/* ---------------------------------------------------------------- 空态/分页 */
.ss-mem-empty {
    padding: 40px 16px;
    text-align: center;
    color: #969ba3;
    font-size: 14px;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 2px;
}
.ss-mem-empty p { margin: 6px 0 14px; }
.ss-mem-empty .ss-mem-btn { margin: 0 auto; }

.ss-mem-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0 0; }
.ss-mem-pager a,
.ss-mem-pager span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    padding: 0 9px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}
.ss-mem-pager a:hover { color: #ed4259; border-color: #ed4259; }
.ss-mem-pager .on,
.ss-mem-pager a.on { color: #fff; background: #ed4259; border-color: #ed4259; }

/* ---------------------------------------------------------------- 表单 */
.ss-mem-field { margin: 0 0 14px; }
.ss-mem-label { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 700; color: #33373d; }
.ss-mem-input,
.ss-mem-textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    outline: none;
    transition: border-color .15s;
}
.ss-mem-input:focus, .ss-mem-textarea:focus { border-color: #ed4259; }
.ss-mem-textarea { min-height: 130px; resize: vertical; }
.ss-mem-help { margin: 5px 0 0; font-size: 12px; color: #969ba3; }
.ss-mem-error { margin: 5px 0 0; font-size: 12px; color: #bf2c24; }
.ss-mem-counter { margin: 4px 0 0; text-align: right; font-size: 12px; color: #969ba3; }
.ss-mem-counter.is-over { color: #bf2c24; }
.ss-mem-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ss-mem-captcha-row { display: flex; align-items: center; gap: 8px; }
.ss-mem-captcha-row .ss-mem-input { flex: 1 1 auto; min-width: 0; }
.ss-mem-captcha {
    flex: 0 0 auto;
    display: block;
    height: 38px;
    max-width: 124px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    cursor: pointer;
}

.ss-mem-alert {
    margin: 0 0 14px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #8a5a00;
    background: #fff8e6;
    border: 1px solid #f3e2b8;
    border-left: 3px solid #e6a23c;
    border-radius: 2px;
}
.ss-mem-alert.is-danger { color: #a8201a; background: #fdf1f0; border-color: #f3c9c6; border-left-color: #bf2c24; }
.ss-mem-alert.is-success { color: #1f7a3d; background: #f0faf3; border-color: #c4e6d0; border-left-color: #2f9e44; }
.ss-mem-alert.is-warn { color: #8a5a00; background: #fff8e6; border-color: #f3e2b8; border-left-color: #e6a23c; }

/* ---------------------------------------------------------------- 按钮/状态 */
.ss-mem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.ss-mem-btn:hover { color: #ed4259; border-color: #ed4259; }
.ss-mem-btn.is-primary { color: #fff; background: #ed4259; border-color: #ed4259; }
.ss-mem-btn.is-primary:hover { background: #bf2c24; border-color: #bf2c24; }
.ss-mem-btn.is-ghost { background: transparent; }
.ss-mem-btn.is-danger { color: #bf2c24; border-color: #f0b9b6; }
.ss-mem-btn.is-sm { min-height: 28px; padding: 0 10px; font-size: 12px; }
.ss-mem-btn.is-block { display: flex; width: 100%; }
.ss-mem-btn[disabled],
.ss-mem-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.ss-mem-pill {
    display: inline-block;
    padding: 1px 7px;
    font-size: 12px;
    line-height: 18px;
    color: #666;
    background: #f7f7f7;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    vertical-align: middle;
}
.ss-mem-pill.is-warn { color: #8a5a00; background: #fff8e6; border-color: #f3e2b8; }
.ss-mem-pill.is-success { color: #1f7a3d; background: #f0faf3; border-color: #c4e6d0; }
.ss-mem-pill.is-muted { color: #969ba3; }

/* ---------------------------------------------------------------- 消息诉求 */
.ss-mem-message {
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
}
.ss-mem-message-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 12px;
    color: #969ba3;
}
.ss-mem-message-hd b { color: #33373d; }
.ss-mem-message-body { font-size: 14px; line-height: 1.8; color: #4a4a4a; word-break: break-word; }
.ss-mem-reply {
    margin: 8px 0 0;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    background: #fafafa;
    border-left: 3px solid #2f9e44;
    border-radius: 0 2px 2px 0;
}
.ss-mem-reply b { color: #1f7a3d; }
.ss-mem-message-actions { display: flex; justify-content: flex-end; gap: 6px; margin: 8px 0 0; }

/* ---------------------------------------------------------------- 响应式 */
@media screen and (max-width: 767px) {
    .ss-mem { padding: 12px 8px 28px; }
    .ss-mem-title { font-size: 20px; }
    .ss-mem-grid { grid-template-columns: minmax(0, 1fr); }
    .ss-mem-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ss-mem-kv dt { flex-basis: 74px; width: 74px; }
    .ss-mem-btn { min-height: 42px; }
    .ss-mem-subnav a { padding: 8px 14px; }
    .ss-mem-thumb, .ss-mem-cover { flex-basis: 64px; width: 64px; }
    .ss-mem-thumb img { width: 64px; height: 86px; }
}
@media screen and (max-width: 420px) {
    .ss-mem-stats { grid-template-columns: minmax(0, 1fr); }
    .ss-mem-subnav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ss-mem-subnav a { flex: 0 0 auto; }
}

/* ==========================================================================
   补充：对齐 A 共享视图实际结构（member_views/*.php）
   ========================================================================== */
.ss-mem-head .ss-mem-title { font-size: 22px; }
.ss-mem-card-hd .ss-mem-title { margin: 0; font-size: 16px; font-weight: 700; color: #33373d; }
.ss-mem-card-hd .ss-mem-sub { font-size: 12px; }

.ss-mem-row { flex-wrap: wrap; }
.ss-mem-meta { flex: 1 1 200px; }
.ss-mem-meta > span { display: block; }
.ss-mem-row-title { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: #33373d; }
.ss-mem-row > .ss-mem-actions { flex: 0 0 auto; align-self: center; margin-top: 0; }
.ss-mem-actions form,
.ss-mem-message-actions form { display: inline-flex; margin: 0; }
.ss-mem-actions .ss-mem-btn { white-space: nowrap; }

.ss-mem-subnav .ss-mem-nav { border: 0; background: none; border-right: 1px solid #f0f0f0; }
.ss-mem-subnav .ss-mem-nav:last-child { border-right: 0; }
.ss-mem-subnav .ss-mem-nav.is-active,
.ss-mem-subnav a.is-active { color: #fff; background: #ed4259; border-right-color: #ed4259; }
.ss-mem-nav-count {
    display: inline-block;
    min-width: 16px;
    margin-left: 4px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 16px;
    color: #969ba3;
    background: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}
.ss-mem-nav.is-active .ss-mem-nav-count { color: #fff; background: rgba(255, 255, 255, .25); }
.ss-mem-filters { margin-bottom: 12px; }

.ss-mem-auth { max-width: 460px; margin: 24px auto 0; }
.ss-mem-center { text-align: center; }
.ss-mem-req { margin-left: 2px; color: #ed4259; }
.ss-mem-field.is-invalid .ss-mem-input,
.ss-mem-field.is-invalid .ss-mem-textarea { border-color: #ed4259; }
.ss-mem-msg-kind label { display: inline-block; margin-right: 18px; font-size: 14px; color: #666; cursor: pointer; }
.ss-mem-msg-kind input { margin-right: 4px; vertical-align: -1px; }
.ss-mem-captcha { padding: 0; overflow: hidden; }
.ss-mem-captcha img { display: block; width: 104px; height: 40px; }
.ss-mem-empty .ss-mem-btn { display: inline-flex; margin-top: 12px; }
.ss-mem-help a { color: #ed4259; }
.ss-mem-pager a.is-active,
.ss-mem-pager .is-active { background: #ed4259; border-color: #ed4259; color: #fff; }
@media screen and (max-width: 767px) {
    .ss-mem-row > .ss-mem-actions { flex: 1 0 100%; justify-content: flex-end; margin-top: 4px; }
}


/* fix: 老主题全局 dd/dt 规则会压扁会员资料值列；值列固定占满剩余宽度 */
.ss-mem .ss-mem-kv { display: flex; flex-wrap: wrap; }
.ss-mem .ss-mem-kv dt { float: none !important; flex: 0 0 88px !important; width: 88px !important; white-space: nowrap; }
.ss-mem .ss-mem-kv dd { float: none !important; display: block; flex: 0 0 calc(100% - 88px) !important; width: calc(100% - 88px) !important; min-width: 0; margin: 0; }

/* grid 兜底：标签列 88px，值列自适应，避免 flex 在老主题里被压扁/换行 */
.ss-mem .ss-mem-kv { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); column-gap: 0; }
.ss-mem .ss-mem-kv dt { float: none !important; width: auto !important; flex: none !important; white-space: nowrap; }
.ss-mem .ss-mem-kv dd { float: none !important; width: auto !important; flex: none !important; min-width: 0; margin: 0; }
