/* =========================================================
   前台会员页样式（login / register / 个人中心）
   独立于主题：会员模板不继承主题 header/footer，
   换主题不影响会员页外观。
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(160deg, #eef5fb 0%, #f7fbff 40%, #eaf3fa 100%);
    color: #333; font-size: 15px; line-height: 1.7;
    min-height: 100vh;
}
a { text-decoration: none; color: #026bbc; }
input { font-family: inherit; }

.m-top { background: #fff; border-bottom: 1px solid #e5eef5; }
.m-top .in { max-width: 1040px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.m-logo { font-size: 21px; font-weight: 800; color: #026bbc; line-height: 1.2; }
.m-logo small { display: block; font-size: 10px; color: #9aa7b5; letter-spacing: 2px; font-weight: 400; }
.m-top .links a { font-size: 13px; color: #667; margin-left: 18px; }
.m-top .links a:hover { color: #026bbc; }

.m-wrap { max-width: 1040px; margin: 0 auto; padding: 40px 20px 60px; }
.m-wrap.narrow { max-width: 460px; }

.m-card { background: #fff; border: 1px solid #e5eef5; border-radius: 12px; box-shadow: 0 10px 30px rgba(2,107,188,.07); padding: 34px 32px; }
.m-card h1 { font-size: 22px; margin-bottom: 6px; }
.m-card .sub { font-size: 13px; color: #8a97a6; margin-bottom: 24px; }

.m-field { margin-bottom: 16px; }
.m-field label { display: block; font-size: 13px; color: #667; margin-bottom: 6px; }
.m-field input { width: 100%; border: 1px solid #dbe6f0; border-radius: 7px; padding: 11px 14px; font-size: 14.5px; outline: none; transition: .2s; background: #fbfdff; }
.m-field input:focus { border-color: #026bbc; background: #fff; box-shadow: 0 0 0 3px rgba(2,107,188,.09); }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.m-btn { display: block; width: 100%; border: 0; border-radius: 7px; background: #026bbc; color: #fff; font-size: 15.5px; font-weight: 700; padding: 12px 0; cursor: pointer; transition: .2s; font-family: inherit; }
.m-btn:hover { background: #025a9b; }
.m-btn.ghost { background: #fff; color: #026bbc; border: 1px solid #cfe0ee; }
.m-btn.ghost:hover { background: #f3f9fe; }

.m-err { background: #fdeeee; border: 1px solid #f3c9c9; color: #c0392b; font-size: 13.5px; border-radius: 7px; padding: 10px 14px; margin-bottom: 16px; }
.m-tip { font-size: 13px; color: #8a97a6; text-align: center; margin-top: 18px; }
.m-tip a { font-weight: 700; }
.m-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e5eef5; font-size: 13px; color: #8a97a6; text-align: center; }

/* ===== 个人中心 ===== */
.m-center { display: grid; grid-template-columns: 216px 1fr; gap: 24px; align-items: start; }
.m-side { background: #fff; border: 1px solid #e5eef5; border-radius: 12px; overflow: hidden; }
.m-user { padding: 22px 20px; border-bottom: 1px solid #e5eef5; text-align: center; }
.m-avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #026bbc, #0084ff); color: #fff; font-size: 24px; font-weight: 800; line-height: 58px; margin: 0 auto 10px; }
.m-user b { display: block; font-size: 15.5px; }
.m-user small { font-size: 12px; color: #9aa7b5; }
.m-nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 14px; color: #556; border-left: 3px solid transparent; }
.m-nav a:hover { background: #f6fafd; color: #026bbc; }
.m-nav a.on { background: #f1f8fe; color: #026bbc; border-left-color: #026bbc; font-weight: 700; }

.m-panel { background: #fff; border: 1px solid #e5eef5; border-radius: 12px; padding: 28px 30px; }
.m-panel h2 { font-size: 18px; margin-bottom: 4px; }
.m-panel .desc { font-size: 13px; color: #8a97a6; margin-bottom: 22px; }
.m-panel .m-field label { font-size: 13px; }
.m-panel .m-btn { width: auto; padding: 10px 34px; display: inline-block; }

.m-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.m-stat div { background: #f7fbff; border: 1px solid #e8f1f9; border-radius: 9px; padding: 14px 16px; }
.m-stat b { display: block; font-size: 20px; color: #026bbc; }
.m-stat span { font-size: 12.5px; color: #8a97a6; }

/* 我的留言 */
.m-msg { border: 1px solid #e5eef5; border-radius: 9px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.m-msg .t { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #9aa7b5; margin-bottom: 6px; }
.m-msg .c { font-size: 14px; color: #334; line-height: 1.8; }
.m-msg .r { margin-top: 10px; background: #f3f9ff; border-left: 3px solid #026bbc; border-radius: 0 6px 6px 0; padding: 10px 12px; font-size: 13.5px; color: #445; }
.m-msg .r b { color: #026bbc; }
.m-badge { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: #fff3e6; color: #c96a12; }
.m-badge.done { background: #eaf7ee; color: #2c7a4b; }
.m-empty { text-align: center; color: #9aa7b5; font-size: 13.5px; padding: 40px 0; }

@media (max-width: 760px) {
    .m-center { grid-template-columns: 1fr; }
    .m-row2 { grid-template-columns: 1fr; }
    .m-card { padding: 26px 20px; }
    .m-panel { padding: 22px 18px; }
    .m-top .in { height: 56px; }
}
