/* ============================================================
   CorePress × erphpdown / erphplogin 融合样式
   设计语言：复用 CorePress CSS 变量（--Maincolor / --border-hd 等）
   覆盖范围：付费可见框 / 登录弹窗 / VIP 徽章 / 社交登录按钮
   说明：保留 erphplogin.js 所需的原始 class/id（.sign / .sign-mask /
   .container / .sign-tips / .signinsubmit-loader 等），仅重做视觉。
   ============================================================ */

/* ---------- 1. 付费可见框（替换 erphpdown fieldset 外观） ---------- */
.cp-paybox.cp-paybox--erphp {
    border: 1px solid var(--border-box, #f5f6f7);
    border-left: 3px solid var(--Maincolor, #409EFF);
    border-radius: var(--border-hd, 2px);
    background: #fff;
    padding: 18px 22px;
    margin: 16px 0;
    box-shadow: var(--box-shadow, 0 0 2px 0 rgba(98, 124, 153, .1));
    transition: box-shadow .3s ease;
}
.cp-paybox.cp-paybox--erphp:hover {
    box-shadow: 0 4px 16px rgba(64, 158, 255, .12);
}
/* erphpdown 内部元素应用 CorePress 风格 */
.cp-paybox .erphpdown-child {
    border: 0 !important;
    background: #f7f9fa !important;
    border-radius: var(--border-hd, 2px);
    padding: 18px 16px 12px !important;
    margin: 10px 0 !important;
    position: relative;
}
.cp-paybox .erphpdown-child > legend {
    position: absolute;
    top: 0;
    background: var(--Maincolor, #409EFF);
    color: #fff;
    padding: 1px 10px !important;
    border-radius: 0 var(--border-hd, 2px) 0 var(--border-hd, 2px);
    font-size: 12px;
}
.cp-paybox .erphpdown-buy a,
.cp-paybox .erphpdown-buy button,
.cp-paybox .erphpdown-buy input[type="button"] {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    background: var(--Maincolor, #409EFF);
    border: 1px solid var(--Maincolor, #409EFF);
    color: #fff !important;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    margin: 4px 6px 4px 0;
    transition: .15s;
    font-weight: 500;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: var(--border-hd, 2px);
    text-decoration: none;
    cursor: pointer;
}
.cp-paybox .erphpdown-buy a:hover,
.cp-paybox .erphpdown-buy button:hover,
.cp-paybox .erphpdown-buy input[type="button"]:hover {
    background: var(--MaincolorHover, #66b1ff);
    border-color: var(--MaincolorHover, #66b1ff);
    color: #fff !important;
}
.cp-paybox .erphpdown-down a,
.cp-paybox .erphpdown-copy a {
    color: #fff !important;
    background: #67C23A;
    padding: 6px 14px;
    border-radius: var(--border-hd, 2px);
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    margin: 4px 6px 4px 0;
    transition: .15s;
}
.cp-paybox .erphpdown-down a:hover,
.cp-paybox .erphpdown-copy a:hover {
    opacity: .88;
}
.cp-paybox .erphpdown-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
    color: #606266;
}
.cp-paybox .erphpdown-item:last-child { border-bottom: 0; }

/* ---------- 2. 登录 / 注册弹窗（对齐 erphplogin.js 选择器） ---------- */
.cp-sign {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: none;
}
body.sign-show .cp-sign { display: block; }
.cp-sign .sign-mask {
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
}
.cp-sign .container {
    position: relative;
    width: 360px;
    max-width: 90vw;
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 28px 26px 24px;
    overflow: hidden;
    animation: cp-sign-in .28s ease;
}
@keyframes cp-sign-in {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.cp-sign-close {
    position: absolute;
    right: 14px; top: 10px;
    font-size: 24px;
    line-height: 1;
    color: #c0c4cc;
    cursor: pointer;
    transition: color .2s;
    z-index: 2;
}
.cp-sign-close:hover { color: var(--Maincolor, #409EFF); }
.cp-sign-tips {
    height: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-align: center;
    background: var(--Maincolor, #409EFF);
    border-radius: var(--border-hd, 2px);
    transition: height .22s ease;
    margin-bottom: 6px;
}
.cp-sign-social {
    text-align: center;
    margin-bottom: 14px;
}
.cp-sign-social h2 {
    font-size: 14px;
    font-weight: 500;
    color: #909399;
    margin-bottom: 10px;
}
.cp-sign-social .cp-social-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 0 !important;        /* 隐藏 "QQ登录/微博登录/微信登录" 文字 */
    line-height: 1 !important;
    text-indent: 0 !important;
    text-decoration: none !important;
    float: none !important;
    opacity: 1 !important;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.cp-sign-social .cp-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}
.cp-sign-social .cp-social-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

/* 弹窗社交按钮行容器（复用评论区 erphplogin 字体图标） */
.cp-sign-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 0;
}
.cp-sign-social .comment-social-ico {
    /* 防止弹窗 flex 容器把按钮拉伸成矩形（强制固定 30px 圆） */
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
}
.cp-social-qq, .login-qq { background: #12B7F5; }
.cp-social-weibo, .login-weibo { background: #E6162D; }
.cp-social-weixin, .login-weixin { background: #07C160; }

.cp-form-item {
    position: relative;
    margin-bottom: 14px;
}
.cp-form-item .form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    color: #303133;
    background: #f5f7fa;
    border: 1px solid #ebeef5;
    border-radius: var(--border-hd, 2px);
    outline: 0;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.cp-form-item .form-control:focus {
    border-color: var(--Maincolor, #409EFF);
    background: #fff;
}
.cp-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-captcha-row .form-control {
    flex: 1;
}
.cp-captcha-btn {
    flex-shrink: 0;
    height: 42px;
    line-height: 42px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--Maincolor, #409EFF);
    border: 1px solid var(--Maincolor, #409EFF);
    border-radius: var(--border-hd, 2px);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
}
.cp-captcha-btn:hover { background: #ecf5ff; }
.cp-captcha-btn.disabled { color: #c0c4cc; border-color: #dcdfe6; cursor: default; }

.cp-btn-primary {
    width: 100%;
    height: 44px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--Maincolor, #409EFF);
    border: 1px solid var(--Maincolor, #409EFF);
    border-radius: var(--border-hd, 2px);
    cursor: pointer;
    transition: .15s;
}
.cp-btn-primary:hover { background: var(--MaincolorHover, #66b1ff); border-color: var(--MaincolorHover, #66b1ff); }
.cp-btn-primary:disabled { opacity: .6; cursor: default; }

.cp-sign-trans {
    margin-top: 14px;
    font-size: 13px;
    color: #909399;
    text-align: center;
}
.cp-sign-trans a { color: var(--Maincolor, #409EFF); cursor: pointer; }

/* ---------- 3. 评论区 VIP 徽章（图标 + 渐变色 + 等级递进） ---------- */
.cp-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0 3px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    border-radius: 10px;
    color: #fff;
    vertical-align: middle;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .25);
}
.cp-vip-badge-ico {
    font-size: 11px;
    line-height: 1;
}
.cp-vip-trial   { background: linear-gradient(135deg, #36cfc9, #40a9ff); }
.cp-vip-month   { background: linear-gradient(135deg, #40a9ff, #597ef7); }
.cp-vip-quarter { background: linear-gradient(135deg, #36cfc9, #52c41a); }
.cp-vip-year    { background: linear-gradient(135deg, #fa8c16, #f5222d); }
.cp-vip-lifetime {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #6b3b00;
    border-color: rgba(255, 215, 130, .8);
    box-shadow: 0 2px 8px rgba(240, 160, 32, .45);
    position: relative;
}
/* 终身会员：皇冠光晕特效 */
.cp-vip-lifetime::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffe29f, #ffd25c, #ff9d2f, #ffd25c, #ffe29f);
    background-size: 200% 100%;
    z-index: -1;
    opacity: .7;
    animation: cpVipCrownGlow 2.5s linear infinite;
    filter: blur(1px);
}
@keyframes cpVipCrownGlow {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- 4. 社交登录按钮组（页头 / 侧边栏调用） ---------- */
.cp-social-login {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cp-social-login .cp-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}
.cp-social-login .cp-social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

/* ---------- 5. 暗色 / 浅底自适应（基于 CorePress 变量） ---------- */
@media (prefers-color-scheme: dark) {
    .cp-paybox.cp-paybox--erphp { background: #1e1e1e; border-color: #333; }
    .cp-paybox .erphpdown-child { background: #262626 !important; }
    .cp-paybox .erphpdown-item { color: #cfcfcf; border-bottom-color: #333; }
    .cp-sign .container { background: #1e1e1e; }
    .cp-form-item .form-control { background: #2a2a2a; color: #e5e5e5; border-color: #3a3a3a; }
    .cp-sign-social h2 { color: #9a9a9a; }
}

/* ---------- 6. 会员中心页（page-vip.php） ---------- */
.cp-vip-menu-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .2s, color .2s;
}
.cp-vip-menu-item:hover { background: #f5f7fa; }
.cp-vip-menu-item-active {
    background: #ecf5ff;
    color: var(--Maincolor, #409EFF);
    border-left-color: var(--Maincolor, #409EFF);
    font-weight: 500;
}
.cp-vip-card {
    border: 1px solid var(--border-box, #ebeef5);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 0 18px;
    background: linear-gradient(135deg, #f5f9ff, #eef4ff);
    border-left: 4px solid var(--Maincolor, #409EFF);
}
.cp-vip-card.cp-vip-lifetime {
    background: linear-gradient(135deg, #fff8e6, #fff1cf);
    border-left-color: #f0a020;
}
.cp-vip-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cp-vip-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-left: 10px;
    flex: 1;
}
.cp-vip-card-tag {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--Maincolor, #409EFF);
    color: #fff;
    flex-shrink: 0;
}
.cp-vip-card.cp-vip-lifetime .cp-vip-card-tag { background: #f0a020; }
.cp-vip-tip { font-size: 14px; color: #606266; margin: 4px 0; line-height: 1.6; }
.cp-vip-tip strong { color: var(--Maincolor, #409EFF); }
.cp-vip-disabled, .cp-vip-empty {
    font-size: 14px;
    color: #909399;
    padding: 14px 0;
}
.cp-vip-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}
.cp-vip-table th, .cp-vip-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
    color: #606266;
}
.cp-vip-table th {
    background: #f5f7fa;
    color: #303133;
    font-weight: 600;
}
.cp-vip-table tr:hover td { background: #fafafa; }
.cp-vip-badge-ok {
    display: inline-block;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #f0f9eb;
    color: #67C23A;
    border: 1px solid #e1f3d8;
}
.cp-vip-badge-wait {
    display: inline-block;
    padding: 1px 8px;
    font-size: 12px;
    border-radius: 10px;
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
}
/* erphplogin 社交按钮组在会员中心内的间距 */
.cp-vip-plane-bind .erphplogin-box a {
    display: inline-block;
    margin: 0 6px 6px 0;
    font-size: 13px;
}
.cp-vip-plane-bind .erphplogin-box .erphploginfont {
    font-size: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 会员状态卡片 — 提示文字 + 按钮同一行（左右呼应） */
.cp-vip-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.cp-vip-card-row .cp-vip-card-body {
    flex: 1;
    min-width: 0;
}
.cp-vip-card-row .cp-vip-card-body .cp-vip-tip {
    margin: 0;
}
.cp-vip-card-action {
    flex-shrink: 0;
    text-align: right;
}
.cp-vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--Maincolor, #409EFF) !important;
    background: #fff;
    border: 1px solid var(--Maincolor, #409EFF);
    border-radius: var(--border-hd, 2px);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    line-height: 1.4;
}
.cp-vip-btn::after {
    content: "\203A";
    font-size: 16px;
    line-height: 1;
    color: var(--Maincolor, #409EFF);
    transition: transform .15s;
}
.cp-vip-btn:hover {
    background: var(--Maincolor, #409EFF);
    border-color: var(--Maincolor, #409EFF);
    color: #fff !important;
    transform: translateY(-1px);
}
.cp-vip-btn:hover::after {
    color: #fff;
    transform: translateX(2px);
}

/* erphpdown 短代码融合层：隐藏插件自带 h2（改用 .usercenter-info-h3 面板标题），统一卡片内样式 */
.cp-vip-plane .erphpdown-sc {
    margin: 0 0 28px;
    padding: 0;
    border: none;
    background: none;
}
/* 隐藏插件自带区块标题，避免与面板 h3 重复 */
.cp-vip-plane .erphpdown-sc > h2 {
    display: none;
}
/* 插件表格统一为 CorePress 风格 */
.cp-vip-plane .erphpdown-sc-table,
.cp-vip-plane .erphpdown-sc-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}
.cp-vip-plane .erphpdown-sc-table th,
.cp-vip-plane .erphpdown-sc-table td,
.cp-vip-plane .erphpdown-sc-list th,
.cp-vip-plane .erphpdown-sc-list td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    text-align: left;
    color: #303133;
}
.cp-vip-plane .erphpdown-sc-table thead th,
.cp-vip-plane .erphpdown-sc-list thead th {
    background: #f5f7fa;
    font-weight: 600;
    color: #909399;
}
.cp-vip-plane .erphpdown-sc-table tr:hover td,
.cp-vip-plane .erphpdown-sc-list tr:hover td {
    background: #fafafa;
}
/* 插件表单输入框/按钮 CorePress 化 */
.cp-vip-plane .erphpdown-sc input[type="text"],
.cp-vip-plane .erphpdown-sc input[type="password"],
.cp-vip-plane .erphpdown-sc input[type="number"],
.cp-vip-plane .erphpdown-sc select {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: var(--border-hd, 2px);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.cp-vip-plane .erphpdown-sc input[type="text"]:focus,
.cp-vip-plane .erphpdown-sc input[type="password"]:focus,
.cp-vip-plane .erphpdown-sc select:focus {
    border-color: var(--Maincolor, #409EFF);
}
.cp-vip-plane .erphpdown-sc-btn,
.cp-vip-plane .erphpdown-sc .erphpdown-sc-btn {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    border: 1px solid var(--Maincolor, #409EFF);
    background: var(--Maincolor, #409EFF);
    color: #fff !important;
    border-radius: var(--border-hd, 2px);
    cursor: pointer;
    font-size: 14px;
}
.cp-vip-plane .erphpdown-sc-btn:hover {
    background: var(--MaincolorHover, #66b1ff);
    border-color: var(--MaincolorHover, #66b1ff);
}
/* 分页条 */
.cp-vip-plane .erphpdown-pagination {
    margin-top: 14px;
    text-align: center;
}
.cp-vip-plane .erphpdown-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.cp-vip-plane .erphpdown-pagination li a,
.cp-vip-plane .erphpdown-pagination li span {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    border: 1px solid #dcdfe6;
    border-radius: var(--border-hd, 2px);
    color: #606266;
    text-decoration: none;
    font-size: 13px;
}
.cp-vip-plane .erphpdown-pagination li.active span,
.cp-vip-plane .erphpdown-pagination li a:hover {
    border-color: var(--Maincolor, #409EFF);
    color: var(--Maincolor, #409EFF);
}

/* ===== 会员中心未登录页（权益预览 + 快捷登录卡）===== */
#cp-vip-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
    min-height: 70vh;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f7fa;
}
.cp-vip-login-plane {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 920px;
}

/* 左侧：权益预览 */
.cp-vip-benefit {
    flex: 1 1 320px;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}
.cp-vip-benefit-title {
    font-size: 30px;
    font-weight: 700;
    color: #303133;
    margin: 0 0 10px;
    line-height: 1.2;
}
.cp-vip-benefit-sub {
    font-size: 15px;
    color: #606266;
    margin: 0 0 28px;
    line-height: 1.6;
}
.cp-vip-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cp-vip-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #303133;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: var(--border-hd, 4px);
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.cp-vip-benefit-ico {
    color: #fff;
    background: var(--Maincolor, #409EFF);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    font-weight: 700;
}

/* 右侧：快捷登录卡 */
.cp-vip-login-card {
    flex: 0 1 380px;
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: var(--border-hd, 4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.cp-vip-login-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}
.cp-vip-login-title h3 {
    font-size: 19px;
    margin: 0;
    color: #303133;
    font-weight: 600;
}
.cp-vip-login-title a.cp-vip-register {
    color: var(--Maincolor, #409EFF);
    font-size: 14px;
    text-decoration: none;
}
.cp-vip-login-title a.cp-vip-register:hover { text-decoration: underline; }

/* 输入行：包裹 div 让 inline input 100% 有效 */
.cp-vip-input-wrap {
    position: relative;
    margin-bottom: 4px;
}
.cp-vip-input-wrap .ico-login {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #c0c4cc;
    pointer-events: none;
    z-index: 1;
}
/* 覆盖 login-plane.css 里的 .ico-login 偏移（绝对定位+居中） */
.cp-vip-login-card .ico-login {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
/* 统一 input 外观（覆盖原下划线样式为卡片化） */
.cp-vip-login-card .input-login {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px 0 36px;
    line-height: 42px;
    font-size: 14px;
    color: #303133;
    border: 1px solid #dcdfe6;
    border-radius: var(--border-hd, 4px);
    background: #fafafa;
    outline: none;
    box-sizing: border-box;
    margin: 0 0 12px;
    transition: border-color .15s, background .15s;
}
.cp-vip-login-card .input-login:focus {
    border-color: var(--Maincolor, #409EFF);
    background: #fff;
}

.cp-vip-login-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #606266;
    margin: 4px 0 18px;
}
.cp-vip-login-opt label {
    cursor: pointer;
    user-select: none;
}
.cp-vip-login-opt a {
    color: var(--Maincolor, #409EFF);
    text-decoration: none;
}
.cp-vip-login-opt a:hover { text-decoration: underline; }

.cp-vip-login-btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: var(--Maincolor, #409EFF);
    border: 0;
    border-radius: var(--border-hd, 4px);
    cursor: pointer;
    letter-spacing: 4px;
    transition: background .15s, transform .1s;
}
.cp-vip-login-btn:hover {
    background: var(--MaincolorHover, #66b1ff);
}
.cp-vip-login-btn:active {
    transform: scale(0.99);
}

.cp-vip-login-social {
    margin-top: 22px;
}
.cp-vip-login-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c0c4cc;
    font-size: 12px;
    margin-bottom: 14px;
}
.cp-vip-login-social-divider::before,
.cp-vip-login-social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ebeef5;
}
.cp-vip-login-social .cp-social-login,
.cp-vip-login-social .erphplogin-box {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}
.cp-vip-login-social #erphplogin-box {
    margin-bottom: 0 !important;
}
.cp-vip-login-social #erphplogin-box a {
    margin-right: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cp-vip-login-social .erphploginfont {
    font-size: 18px;
}
.cp-vip-login-note {
    margin: 12px 0 0;
    font-size: 14px;
    text-align: center;
    min-height: 18px;
}

/* ===== 会员状态 tab 内的卡片化区块（账户充值 / 升级会员）===== */
.cp-vip-panel {
    background: #fff;
    border: 1px solid #ebeef5;
    border-radius: var(--border-hd, 4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: 24px;
    overflow: hidden;
}
.cp-vip-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #fafbfc, #f5f7fa);
    border-bottom: 1px solid #ebeef5;
}
.cp-vip-panel-ico {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--border-hd, 4px);
    background: var(--Maincolor, #409EFF);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}
.cp-vip-panel-ico-hot {
    background: linear-gradient(135deg, #ff8f2b, #ff5a3c);
}
.cp-vip-panel-tit {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cp-vip-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.cp-vip-panel-sub {
    font-size: 12px;
    color: #909399;
}
.cp-vip-panel-body {
    padding: 20px;
}
.cp-vip-panel-hint {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 12px;
    color: #909399;
    background: #fafbfc;
    border-radius: var(--border-hd, 2px);
    line-height: 1.6;
}

/* 主区：会员状态卡片强化视觉权重 */
.cp-vip-plane-status .cp-vip-card {
    border-left: 4px solid var(--Maincolor, #409EFF);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.cp-vip-plane-status .cp-vip-card .cp-vip-card-name {
    font-size: 20px;
}
.cp-vip-plane-status .cp-vip-card-body .cp-vip-tip {
    font-size: 14px;
}

/* 状态卡：等级头像图标（按 tier 层级渐变） */
.cp-vip-card-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.cp-vip-card-avatar-ico {
    font-size: 20px;
    line-height: 1;
}
/* tier 0 普通 */
.cp-vip-tier-0 { background: #c0c4cc; }
/* tier 1-2 体验/月 */
.cp-vip-tier-1,
.cp-vip-tier-2 { background: linear-gradient(135deg, #40a9ff, #597ef7); }
/* tier 3 季 */
.cp-vip-tier-3 { background: linear-gradient(135deg, #36cfc9, #52c41a); }
/* tier 4 年 */
.cp-vip-tier-4 { background: linear-gradient(135deg, #fa8c16, #f5222d); }
/* tier 5 终身：金色皇冠 + 光晕 */
.cp-vip-tier-5 {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #6b3b00;
    position: relative;
    animation: cpVipCardCrown 2.5s ease-in-out infinite;
}
@keyframes cpVipCardCrown {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 211, 101, .6); }
    50%      { box-shadow: 0 0 16px 6px rgba(246, 211, 101, .45); }
}
/* 面板内 erphpdown 表单去掉外边框，融入白底卡片 */
.cp-vip-panel-body .erphpdown-sc {
    margin: 0;
}

/* ===== 各 tab 面板内的表格统一（VIP订单/已购/卡密等）===== */
.cp-vip-panel-body .erphpdown-sc-table,
.cp-vip-panel-body .erphpdown-sc-list,
.cp-vip-panel-body .cp-vip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 4px;
}
.cp-vip-panel-body .erphpdown-sc-table th,
.cp-vip-panel-body .erphpdown-sc-table td,
.cp-vip-panel-body .cp-vip-table th,
.cp-vip-panel-body .cp-vip-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    text-align: left;
    color: #303133;
}
.cp-vip-panel-body .erphpdown-sc-table thead th,
.cp-vip-panel-body .cp-vip-table thead th {
    background: #f7f8fa;
    color: #606266;
    font-weight: 600;
    white-space: nowrap;
}
.cp-vip-panel-body .erphpdown-sc-table tr:hover td,
.cp-vip-panel-body .cp-vip-table tr:hover td {
    background: #fafbfc;
}

/* ===== 社交绑定卡片：grid 列表 ===== */
.cp-vip-bind-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.cp-vip-bind-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fafbfc;
    border: 1px solid #f0f2f5;
    border-radius: var(--border-hd, 4px);
}
.cp-vip-bind-label {
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}
.cp-vip-bind-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cp-vip-bind-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: var(--border-hd, 2px);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.cp-vip-bind-link {
    color: var(--Maincolor, #409EFF);
    border: 1px solid var(--Maincolor, #409EFF);
    background: #fff;
}
.cp-vip-bind-link:hover {
    background: var(--Maincolor, #409EFF);
    color: #fff;
}
.cp-vip-unbind-btn {
    color: #f56c6c;
    border: 1px solid #f56c6c;
    background: #fff;
}
.cp-vip-unbind-btn:hover {
    background: #f56c6c;
    color: #fff;
}
.cp-vip-unbind-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.cp-vip-bind-btns {
    margin-top: 14px;
    text-align: center;
}
.cp-vip-bind-btns #erphplogin-box {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ===== 评论区快捷登录社交图标（紧凑单行卡片）===== */
.comment_form_must_login-pop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 12px 16px;
    background: #fafbfc;
    border-radius: var(--border-hd, 4px);
    border: 1px solid #ebeef5;
    margin-bottom: 16px;
    line-height: 1.4;
}
.comment_form_must_login-pop .comment_must_title {
    font-size: 13px;
    color: #606266;
    margin: 0;
    white-space: nowrap;
}
.comment_must_actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment_quick_social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.comment-social-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}
.comment-social-ico .erphploginfont {
    font-family: "erphploginfont" !important;
    font-size: 15px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    speak: none;
    display: inline-block;
    line-height: 1;
    text-align: center;
}
/* 自渲染 erphplogin 字符（避免依赖 erphplogin.css 伪元素被覆盖） */
.comment-social-ico .erphploginfont.erphplogin-qq::before     { content: "\e616"; font-family: "erphploginfont" !important; }
.comment-social-ico .erphploginfont.erphplogin-weixin::before { content: "\e614"; font-family: "erphploginfont" !important; }
.comment-social-ico .erphploginfont.erphplogin-weibo::before  { content: "\e615"; font-family: "erphploginfont" !important; }
.comment-social-ico:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.comment-social-qq     { background: #12b7f5; }
.comment-social-weixin { background: #09bb07; }
.comment-social-weibo  { background: #e6162d; }
.comment-quick-login-btn {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 18px;
    font-size: 13px;
    border-radius: 15px;
    white-space: nowrap;
}

/* ===== 升级VIP tab ===== */
.cp-vip-plane-hr {
    border: none;
    border-top: 1px dashed #dcdfe6;
    margin: 28px 0 22px;
}
.cp-vip-upgrade-sub {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f5f7fa;
    border-radius: var(--border-hd, 4px);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.cp-vip-upgrade-sub-tag {
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.8;
    color: #fff;
    background: var(--Maincolor, #409EFF);
    border-radius: 3px;
    font-weight: 600;
}
.cp-vip-upgrade-sub p {
    margin: 0;
    font-size: 13px;
    color: #606266;
    line-height: 1.7;
}
.cp-vip-plane-h4 {
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    margin: 22px 0 8px;
}
/* 让在线支付表单的支付按钮、余额升级按钮更醒目 */
.cp-vip-plane-upgrade .erphpdown-sc-btn {
    height: 38px;
    line-height: 38px;
    padding: 0 22px;
    font-size: 14px;
}
.cp-vip-plane-upgrade .erphpdown-sc select,
.cp-vip-plane-upgrade .erphpdown-sc input[type="text"] {
    height: 38px;
}
/* 在线支付表单区块间距 */
.cp-vip-plane-upgrade .erphpdown-sc {
    margin-bottom: 8px;
}
.cp-vip-plane-upgrade .erphpdown-sc h2 {
    display: none;
}

/* ===== 支付跳转提示遮罩 ===== */
#cp-vip-paymask {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-vip-paymask-card {
    background: #fff;
    border-radius: var(--border-hd, 4px);
    padding: 36px 40px;
    text-align: center;
    max-width: 340px;
    width: 88%;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.cp-vip-paymask-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #e4e7ed;
    border-top-color: var(--Maincolor, #409EFF);
    border-radius: 50%;
    animation: cp-vip-spin .8s linear infinite;
}
@keyframes cp-vip-spin {
    to { transform: rotate(360deg); }
}
.cp-vip-paymask-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 10px;
}
.cp-vip-paymask-sub {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}
.cp-vip-paymask-sub b {
    color: var(--Maincolor, #409EFF);
}
.cp-vip-paymask-tip {
    margin-top: 14px;
    font-size: 12px;
    color: #909399;
}

/* 移动端单列 */
@media (max-width: 768px) {
    #cp-vip-login-wrap { padding: 32px 14px; }
    .cp-vip-benefit { padding: 0; }
    .cp-vip-login-card { flex: 1 1 100%; max-width: 100%; }
}

@media (prefers-color-scheme: dark) {
    .cp-vip-card { background: linear-gradient(135deg, #1f2733, #1a2230); border-color: #333; }
    .cp-vip-card.cp-vip-lifetime { background: linear-gradient(135deg, #2a2415, #2a2310); }
    .cp-vip-card-name { color: #e5e5e5; }
    .cp-vip-tip, .cp-vip-table td { color: #cfcfcf; }
    .cp-vip-table th { background: #262626; color: #e5e5e5; }
    .cp-vip-table, .cp-vip-table th, .cp-vip-table td { border-color: #333; }
    .cp-vip-menu-item:hover { background: #262626; }
    .cp-vip-menu-item-active { background: #1a2230; color: var(--Maincolor, #409EFF); }
}

/* ---------- 7. 自带用户中心(page-usercenter.php) 的 VIP 提示 ---------- */
.cp-uc-vip-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 6px;
    line-height: 1.5;
}
.usercenter-userinfo .cp-vip-badge {
    margin-top: 8px;
    display: inline-block;
}
@media (prefers-color-scheme: dark) {
    .cp-uc-vip-tip { color: #8a8a8a; }
}
