/* ========== 页面 Hero 区域 ========== */
.page-hero {
    position: relative;
    padding: 60px 0 48px;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,169,110,0.08) 0%, transparent 60%),
        linear-gradient(180deg, #151210 0%, #1a1410 70%, #1e1814 100%);
}
.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.page-title {
    color: #c9a96e;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.page-title-deco {
    color: rgba(201,169,110,0.35);
    font-size: 10px;
    letter-spacing: 2px;
}
.page-subtitle {
    color: #6a5040;
    font-size: 13px;
    letter-spacing: 3px;
    margin: 0;
}

/* ========== 等级权益区域 ========== */
.level-section {
    background: linear-gradient(180deg, #15100c 0%, #1a1410 30%, #1e1814 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(201,169,110,0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #c9a96e;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
    margin: 0 0 12px;
}
.title-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.4), transparent);
}
.section-desc {
    color: #6a5040;
    font-size: 13px;
    letter-spacing: 2px;
}

/* ========== 加载/错误状态 ========== */
.level-loading,
.level-error {
    text-align: center;
    padding: 60px 20px;
    color: #6a5040;
}
.level-loading p,
.level-error p {
    font-size: 14px;
    margin: 12px 0 0;
}
.level-error svg {
    color: #e74c3c;
    opacity: 0.6;
}
.retry-btn {
    margin-top: 16px;
    background: transparent;
    border: 1px solid rgba(201,169,110,0.4);
    color: #c9a96e;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.retry-btn:hover {
    background: rgba(201,169,110,0.1);
    border-color: #c9a96e;
}

/* loading spinner */
.loading-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 2px solid rgba(201,169,110,0.15);
    border-top-color: #c9a96e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 等级摘要条 ========== */
.level-summary {
    max-width: 720px;
    margin: 44px auto 0;
    background: linear-gradient(180deg, #2a2218 0%, #1e1814 100%);
    border: 1px solid rgba(201,169,110,0.15);
    border-radius: 14px;
    padding: 24px 28px;
}
.summary-bar {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    text-align: center;
}
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.summary-label {
    font-size: 11px;
    color: #6a5040;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.summary-value {
    font-size: 22px;
    font-weight: 800;
    color: #c9a96e;
    letter-spacing: 1px;
}
#summaryNextLevel .summary-value {
    color: #F78400;
}

/* 成长值进度条 */
.growth-progress-wrap {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed rgba(201,169,110,0.08);
}
.growth-progress-track {
    height: 8px;
    background: rgba(201,169,110,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.growth-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a96e, #F78400);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 4px;
}
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: #5a4a38;
    letter-spacing: 0.5px;
}

/* ========== 等级网格 — 单行横向对比 ========== */
.level-grid {
    display: flex;
    gap: 16px;
}
.level-grid .level-card {
    flex: 1 1 0;
    min-width: 0;
}
@media (max-width: 900px) {
    .level-grid { flex-wrap: wrap; }
    .level-grid .level-card { flex: 1 1 calc(50% - 8px); min-width: 0; }
}
@media (max-width: 520px) {
    .level-grid { flex-wrap: wrap; }
    .level-grid .level-card { flex: 1 1 100%; }
}

/* ========== 等级卡片 ========== */
.level-card {
    background: linear-gradient(180deg, #2e2620 0%, #221a15 50%, #1a1410 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 22px 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.45s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}
.level-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--card-glow, rgba(201,169,110,0.12)), transparent 70%);
    pointer-events: none;
}
.level-card.level-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.level-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(255,255,255,0.10);
}

/* 已达成 */
.level-card.level-reached:hover {
    border-color: rgba(201,169,110,0.25);
    box-shadow: 0 8px 28px rgba(201,169,110,0.08);
}
/* 未解锁 */
.level-card.level-locked {
    opacity: 0.5;
}
.level-card.level-locked:hover {
    opacity: 0.7;
}
/* 当前等级 */
.level-card.level-current {
    border-color: rgba(201,169,110,0.35);
    box-shadow:
        0 0 0 1px rgba(201,169,110,0.08),
        0 8px 32px rgba(201,169,110,0.12),
        inset 0 1px 0 rgba(201,169,110,0.06);
    z-index: 2;
}
.level-card.level-current.level-visible {
    transition-delay: 0.05s !important;
}

/* ---------- 卡片头部 ---------- */
.level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
}
.level-badge {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    /* 动态外发光 */
    box-shadow:
        0 0 20px -2px var(--card-glow, rgba(201,169,110,0.35)),
        0 4px 16px rgba(0,0,0,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.level-card:hover .level-badge {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 0 28px -2px var(--card-glow, rgba(201,169,110,0.5)),
        0 6px 20px rgba(0,0,0,0.3);
}
.level-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.badge-initial {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.level-titles {
    flex: 1;
    min-width: 0;
}
.level-name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: var(--text-color, #c9a96e);
    text-shadow: var(--text-shadow, 0 1px 4px rgba(0,0,0,0.3));
}
.level-code {
    margin: 2px 0 0;
    font-size: 10px;
    color: #5a4a38;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* 当前标签 */
.current-tag {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #c9a96e, #F78400);
    color: #1a1410;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

/* ---------- 成长值进度条 ---------- */
.level-growth-bar {
    margin-bottom: 12px;
}
.growth-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #7a6a50;
}
.growth-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-color, #c9a96e);
}
.level-card.level-locked .growth-value {
    color: #5a4a38;
}
.progress-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    min-width: 8px;
    /* 进度条发光 */
    box-shadow: 0 0 12px -2px var(--card-glow, rgba(201,169,110,0.5));
}

/* ---------- 权益列表 ---------- */
.level-benefits {
    flex: 1;
}
.benefits-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    color: #6a5040;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #b0a088;
    line-height: 1.6;
}
.benefit-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    /* 勾选图标也带主题色 */
    color: var(--card-glow, rgba(201,169,110,0.6));
    filter: drop-shadow(0 0 3px var(--card-glow, rgba(201,169,110,0.3)));
}
.level-card.level-locked .benefit-item svg {
    color: #5a4a38;
}

/* ---------- 底部装饰线 ---------- */
.level-footer-line {
    height: 2px;
    margin-top: 14px;
    opacity: 0.5;
}

/* ========== 权益说明区域 ========== */
.level-tip-section {
    background: linear-gradient(180deg, #1e1814 0%, #151210 30%, #1a1410 100%);
    padding: 48px 0 64px;
    border-top: 1px solid rgba(201,169,110,0.1);
}
.tip-box {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(192,57,43,0.06), rgba(201,169,110,0.04));
    border: 1px solid rgba(192,57,43,0.12);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    gap: 16px;
}
.tip-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.08));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96e;
}
.tip-body {
    flex: 1;
    min-width: 0;
}
.tip-body strong {
    display: block;
    font-size: 14px;
    color: #c9a96e;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rule-list li {
    position: relative;
    padding-left: 14px;
    font-size: 12px;
    color: #7a6a50;
    line-height: 1.7;
}
.rule-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(201,169,110,0.4);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .page-hero { padding: 40px 0 32px; }
    .page-title { font-size: 22px; letter-spacing: 4px; }

    .level-section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 18px; letter-spacing: 2px; }

    .level-summary { padding: 18px 20px; }
    .summary-bar { gap: 10px; }
    .summary-value { font-size: 18px; }

    .level-card { padding: 16px; }
    .level-badge { width: 40px; height: 40px; border-radius: 10px; }

    .tip-box { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .rule-list li { padding-left: 0; }
    .rule-list li::before { display: none; }
}

@media (max-width: 480px) {
    .level-grid {
        grid-template-columns: 1fr;
    }
}
