/* ====================================================
   会员服务页面专属样式
   独立样式文件，td-member- 前缀命名
   ==================================================== */

/* ===== 页面容器 ===== */
.td-member-page {
    background: #f3f6fb;
    padding-bottom: 10px;
    min-height: 600px;
}

.td-member-page .m {
    background: transparent;
}

/* ===== 顶部英雄区 ===== */
.td-member__hero {
    background: linear-gradient(135deg, #003d6b 0%, #005496 40%, #0077c8 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.td-member__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 214, 102, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 180, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.td-member__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

.td-member__hero-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 2px;
}

.td-member__hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    line-height: 1.8;
    max-width: 640px;
}

/* ===== 通用章节头 ===== */
.td-member__section {
    margin-top: 24px;
}

.td-member__section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 6px;
}

.td-member__section-desc {
    font-size: 14px;
    color: #8a98a8;
    text-align: center;
    margin: 0 0 24px;
}

/* ===== 会员体系总览（4 卡） ===== */
.td-member__level-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.td-member__level-card {
    position: relative;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    padding: 30px 22px 26px;
    text-align: center;
    transition: all 0.25s;
}

.td-member__level-card:hover {
    border-color: #bcd4ee;
    box-shadow: 0 12px 36px rgba(0, 64, 128, 0.1);
    transform: translateY(-3px);
}

/* 热销卡片高亮 */
.td-member__level-card--hot {
    border-color: #e8a317;
    box-shadow: 0 12px 36px rgba(212, 136, 6, 0.12);
}

.td-member__level-tag {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #f5b942, #e8a317);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 12px 0 12px;
}

/* 会员徽章 */
.td-member__level-medal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 64, 128, 0.16);
}

.td-member__level-medal--free {
    background: linear-gradient(135deg, #005496, #0077c8);
}

.td-member__level-medal--silver {
    background: linear-gradient(135deg, #b6c2cd, #8fa0ae);
}

.td-member__level-medal--gold {
    background: linear-gradient(135deg, #f5b942, #e8a317);
}

.td-member__level-medal--diamond {
    background: linear-gradient(135deg, #4b8df8, #2f54eb);
}

.td-member__level-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.td-member__level-en {
    font-size: 12px;
    color: #b0becd;
    margin: 0 0 16px;
}

.td-member__level-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    text-align: left;
}

.td-member__level-list li {
    position: relative;
    font-size: 13px;
    color: #4d6278;
    line-height: 1.6;
    padding: 5px 0 5px 16px;
}

.td-member__level-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #005496;
}

.td-member__level-card--hot .td-member__level-list li::before {
    background: #e8a317;
}

/* 等级卡按钮 */
.td-member__btn {
    display: inline-block;
    min-width: 128px;
    height: 38px;
    line-height: 38px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #005496, #0077c8);
    transition: all 0.2s;
}

.td-member__btn:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 84, 150, 0.25);
}

.td-member__btn--plain {
    color: #005496;
    background: #fff;
    border: 1px solid #005496;
}

.td-member__btn--plain:hover {
    color: #fff;
    background: #005496;
}

/* ===== 付费会员专属权益（3 卡） ===== */
.td-member__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.td-member__feature-card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.25s;
}

.td-member__feature-card:hover {
    border-color: #bcd4ee;
    box-shadow: 0 12px 36px rgba(0, 64, 128, 0.1);
    transform: translateY(-3px);
}

.td-member__feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
}

.td-member__feature-icon--blue    { background: rgba(0, 84, 150, 0.1); color: #005496; }
.td-member__feature-icon--amber   { background: rgba(212, 136, 6, 0.1); color: #d48806; }
.td-member__feature-icon--green   { background: rgba(82, 196, 26, 0.1); color: #52c41a; }

.td-member__feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.td-member__feature-desc {
    font-size: 13px;
    color: #8a98a8;
    margin: 0;
    line-height: 1.8;
    text-align: left;
}

/* ===== 价格方案（3 卡） ===== */
.td-member__price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.td-member__price-card {
    position: relative;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    padding: 32px 26px 28px;
    text-align: center;
    transition: all 0.25s;
}

.td-member__price-card:hover {
    border-color: #bcd4ee;
    box-shadow: 0 14px 40px rgba(0, 64, 128, 0.12);
    transform: translateY(-4px);
}

/* 推荐方案高亮 */
.td-member__price-card--hot {
    border: 2px solid #e8a317;
    box-shadow: 0 14px 40px rgba(212, 136, 6, 0.14);
}

.td-member__price-flag {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #f5b942, #e8a317);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 0 14px 0 14px;
}

.td-member__price-head {
    margin-bottom: 20px;
}

.td-member__price-level {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    padding: 3px 18px;
    border-radius: 999px;
    color: #fff;
}

.td-member__price-level--silver   { background: linear-gradient(135deg, #b6c2cd, #8fa0ae); }
.td-member__price-level--gold     { background: linear-gradient(135deg, #f5b942, #e8a317); }
.td-member__price-level--diamond  { background: linear-gradient(135deg, #4b8df8, #2f54eb); }

.td-member__price-sub {
    font-size: 13px;
    color: #8a98a8;
    margin: 10px 0 0;
}

/* 周期价格列表 */
.td-member__price-plans {
    margin-bottom: 24px;
}

.td-member__price-plan {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    margin-bottom: 10px;
    background: #f7fafc;
    border: 1px solid #eef3f8;
    border-radius: 8px;
    transition: all 0.2s;
}

.td-member__price-plan:last-child {
    margin-bottom: 0;
}

.td-member__price-plan:hover {
    border-color: #bcd4ee;
}

.td-member__price-duration {
    font-size: 14px;
    color: #4d6278;
    font-weight: 500;
}

.td-member__price-num {
    font-size: 20px;
    font-weight: 700;
    color: #005496;
    font-family: Arial, sans-serif;
}

.td-member__price-card--hot .td-member__price-num {
    color: #d48806;
}

.td-member__price-save {
    position: absolute;
    right: -1px;
    bottom: -1px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #f5b942, #e8a317);
    padding: 2px 10px;
    border-radius: 8px 0 8px 0;
}

/* 价格卡按钮 */
.td-member__price-btn {
    display: block;
    height: 44px;
    line-height: 44px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #005496, #0077c8);
    transition: all 0.2s;
}

.td-member__price-btn:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 84, 150, 0.28);
}

.td-member__price-card--hot .td-member__price-btn {
    background: linear-gradient(135deg, #f5b942, #e8a317);
}

.td-member__price-card--hot .td-member__price-btn:hover {
    box-shadow: 0 8px 20px rgba(212, 136, 6, 0.28);
}

/* 价格提示 */
.td-member__price-tip {
    font-size: 13px;
    color: #8a98a8;
    text-align: center;
    margin: 20px 0 0;
}

.td-member__price-tip i {
    color: #d48806;
    margin-right: 4px;
}

/* ===== 付费会员权益对比表 ===== */
.td-member__compare {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    overflow: hidden;
}

.td-member__compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.td-member__compare-table thead {
    background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

.td-member__compare-table th,
.td-member__compare-table td {
    height: 52px;
    padding: 0 16px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid #eef3f8;
    color: #4d6278;
}

.td-member__compare-table thead th {
    font-weight: 600;
    color: #1a1a2e;
}

.td-member__compare-table tbody tr:last-child td {
    border-bottom: none;
}

.td-member__compare-table tbody tr:hover td {
    background: #fbfdff;
}

.td-member__compare-table .td-member__compare-item {
    text-align: left;
    font-weight: 500;
    color: #1a1a2e;
    background: #fbfdff;
}

/* 金牌列高亮 */
.td-member__compare-table .td-member__compare-col--gold {
    color: #d48806;
    background: rgba(245, 185, 66, 0.06);
}

.td-member__ok {
    color: #52c41a;
    font-size: 14px;
    margin-right: 2px;
}

.td-member__no {
    color: #e03c3c;
    font-size: 14px;
    margin-right: 2px;
}

/* ===== 开通流程（4 步） ===== */
.td-member__flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.td-member__flow-step {
    position: relative;
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.05);
    padding: 30px 20px 26px;
    text-align: center;
    transition: all 0.25s;
}

.td-member__flow-step:hover {
    border-color: #bcd4ee;
    transform: translateY(-3px);
}

.td-member__flow-num {
    width: 44px;
    height: 44px;
    line-height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #005496, #0077c8);
    box-shadow: 0 6px 16px rgba(0, 84, 150, 0.2);
}

.td-member__flow-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.td-member__flow-desc {
    font-size: 13px;
    color: #8a98a8;
    margin: 0;
    line-height: 1.7;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .td-member__level-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-member__price-grid,
    .td-member__feature-grid {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .td-member__level-grid,
    .td-member__feature-grid,
    .td-member__price-grid,
    .td-member__flow-steps {
        grid-template-columns: 1fr;
    }
    .td-member__hero {
        padding: 40px 0 34px;
    }
    .td-member__hero-title {
        font-size: 26px;
    }
    .td-member__section-title {
        font-size: 19px;
    }
    .td-member__compare-table th,
    .td-member__compare-table td {
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ====================================================
   会员权限提示页（member/tips）
   ==================================================== */

.td-tips {
    padding: 28px 0 40px;
    max-width: 760px;
    margin: 0 auto;
}

/* ===== 提示卡片 ===== */
.td-tips__card {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 64, 128, 0.08);
    padding: 40px 40px 34px;
    text-align: center;
}

.td-tips__card--success {
    border-color: #b7eb8f;
    background: linear-gradient(180deg, #f6ffed 0%, #fff 100%);
}

/* 权限不足（拒绝访问）警示卡片 */
.td-tips__card--denied {
    border-color: #ffd591;
    background: linear-gradient(180deg, #fff7f5 0%, #fff 100%);
}

.td-tips__card--denied .td-tips__title {
    color: #d4380d;
}

/* 图标 */
.td-tips__icon {
    width: 84px;
    height: 84px;
    line-height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    font-size: 40px;
    color: #fff;
    background: linear-gradient(135deg, #d48806, #e8a317);
    box-shadow: 0 10px 26px rgba(212, 136, 6, 0.25);
}

.td-tips__icon--success {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    box-shadow: 0 10px 26px rgba(82, 196, 26, 0.25);
}

/* 权限不足（拒绝访问）警示图标 */
.td-tips__icon--denied {
    background: linear-gradient(135deg, #e03c3c, #d4380d);
    box-shadow: 0 10px 26px rgba(224, 60, 60, 0.25);
}

/* 标题与描述 */
.td-tips__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.td-tips__desc {
    font-size: 14px;
    color: #4d6278;
    line-height: 1.9;
    margin: 0 auto 24px;
    max-width: 560px;
}

.td-tips__strong {
    color: #005496;
}

/* 等级强调色 0普通 1银牌 2金牌 3钻石 */
.td-tips__strong--0 { color: #005496; }
.td-tips__strong--1 { color: #8fa0ae; }
.td-tips__strong--2 { color: #d48806; }
.td-tips__strong--3 { color: #4b8df8; }

.td-tips__expiry {
    font-size: 13px;
    color: #8a98a8;
    margin: 0 0 20px;
}

/* ===== 当前等级 vs 所需等级 ===== */
.td-tips__levels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 22px;
}

.td-tips__level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 132px;
    padding: 16px 10px;
    background: #f7fafc;
    border: 1px solid #eef3f8;
    border-radius: 10px;
}

.td-tips__level--required {
    border-color: #ffe7a3;
    background: #fffbea;
}

.td-tips__level-tag {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    padding: 5px 20px;
    border-radius: 999px;
    white-space: nowrap;
}

.td-tips__level-tag--0 { background: linear-gradient(135deg, #005496, #0077c8); }
.td-tips__level-tag--1 { background: linear-gradient(135deg, #b6c2cd, #8fa0ae); }
.td-tips__level-tag--2 { background: linear-gradient(135deg, #f5b942, #e8a317); }
.td-tips__level-tag--3 { background: linear-gradient(135deg, #4b8df8, #2f54eb); }

.td-tips__level-label {
    font-size: 12px;
    color: #8a98a8;
}

.td-tips__arrow {
    font-size: 22px;
    color: #b0becd;
    flex-shrink: 0;
}

/* 提示条 */
.td-tips__notice {
    font-size: 13px;
    color: #8a6d0b;
    text-align: center;
    background: #fffbea;
    border: 1px solid #ffe7a3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.td-tips__notice i {
    color: #d48806;
}

/* 操作按钮 */
.td-tips__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.td-tips__btn {
    display: inline-block;
    height: 42px;
    line-height: 42px;
    padding: 0 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #005496, #0077c8);
    transition: all 0.2s;
}

.td-tips__btn:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 84, 150, 0.25);
}

.td-tips__btn--plain {
    color: #005496;
    background: #fff;
    border: 1px solid #005496;
}

.td-tips__btn--plain:hover {
    color: #fff;
    background: #005496;
}

.td-tips__btn--ghost {
    color: #8a98a8;
    background: #f7fafc;
    border: 1px solid #dfe8f2;
}

.td-tips__btn--ghost:hover {
    color: #005496;
    border-color: #005496;
    box-shadow: none;
}

/* ===== 会员等级一览 ===== */
.td-tips__section {
    margin-top: 24px;
}

.td-tips__section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 16px;
}

.td-tips__levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.td-tips__mini-level {
    background: #fff;
    border: 1px solid #dfe8f2;
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.2s;
}

.td-tips__mini-level:hover {
    border-color: #bcd4ee;
    transform: translateY(-2px);
}

.td-tips__mini-level--hot {
    border-color: #e8a317;
}

.td-tips__mini-desc {
    display: block;
    font-size: 12px;
    color: #8a98a8;
    margin-top: 10px;
    line-height: 1.5;
}

/* 客服联系方式 */
.td-tips__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #4d6278;
    margin-top: 26px;
}

.td-tips__contact i {
    font-size: 20px;
    color: #005496;
}

.td-tips__contact b {
    color: #005496;
    font-size: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .td-tips {
        padding: 18px 0 28px;
    }
    .td-tips__card {
        padding: 28px 18px 24px;
    }
    .td-tips__title {
        font-size: 20px;
    }
    .td-tips__levels {
        gap: 10px;
    }
    .td-tips__level {
        min-width: 110px;
    }
    .td-tips__levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .td-tips__btn {
        width: 100%;
        padding: 0 10px;
    }
    .td-tips__contact {
        flex-direction: column;
        text-align: center;
    }
}
