/* ============ lordvvv 用户首页（仪表盘式） ============ */
:root {
    --lvv-bg: #0e1116;
    --lvv-bg2: #12161c;
    --lvv-card: #171c23;
    --lvv-card2: #1b212a;
    --lvv-line: #242c37;
    --lvv-text: #e9edf3;
    --lvv-muted: #8f9bab;
    --lvv-accent: #f0a44a;
    --lvv-accent-soft: rgba(240, 164, 74, .14);
    --lvv-green: #56c98f;
    --lvv-red: #e06b62;
    --lvv-blue: #6fa8ff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--lvv-bg);
    color: var(--lvv-text);
    font-size: 14px;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-text-size-adjust: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 图标（内联 SVG symbol） */
.lvv-ico {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* 主体容器 */
.lvv-body {
    padding: 24px 22px 32px;
    max-width: min(92vw, 1600px);
    margin: 0 auto;
}

/* ============ 欢迎区 ============ */
.lvv-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: linear-gradient(135deg, #1b212a, #171c23);
    border: 1px solid var(--lvv-line);
    border-radius: 14px;
    padding: 22px 24px;
}

.lvv-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lvv-gem {
    width: auto;
    height: auto;
    max-width: 130px;
    max-height: 130px;
    border-radius: 16px;
    flex: none;
    background: var(--lvv-card2);
    border: 1px solid var(--lvv-line);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    object-fit: contain;
}

.lvv-hello {
    font-size: 13px;
    color: var(--lvv-muted);
    margin: 0 0 6px;
}

.lvv-hero-sub {
    color: var(--lvv-muted);
    font-size: 13px;
    margin: 0 0 14px;
}

.lvv-hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lvv-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    border: 1px solid var(--lvv-accent);
    background: var(--lvv-accent);
    color: #16130e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.lvv-btn:hover {
    filter: brightness(1.06);
}

.lvv-btn-ghost {
    background: var(--lvv-card2);
    border-color: var(--lvv-line);
    color: var(--lvv-text);
    font-weight: 500;
}

.lvv-btn-ghost:hover {
    border-color: #3a4654;
}

.lvv-btn .lvv-ico {
    width: 15px;
    height: 15px;
}

/* 会员有效期卡片 */
.lvv-status {
    min-width: 210px;
    background: var(--lvv-bg);
    border: 1px solid var(--lvv-line);
    border-radius: 12px;
    padding: 16px 18px;
}

.lvv-status-label {
    font-size: 12px;
    color: var(--lvv-muted);
}

.lvv-status strong {
    display: block;
    font-size: 30px;
    font-weight: 600;
    color: var(--lvv-green);
    line-height: 1.2;
    margin: 4px 0 8px;
}

.lvv-status strong small {
    font-size: 14px;
    font-weight: 500;
    color: var(--lvv-muted);
}

.lvv-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--lvv-card2);
    overflow: hidden;
}

.lvv-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--lvv-green);
}

.lvv-status p {
    font-size: 12px;
    color: var(--lvv-muted);
    margin: 8px 0 0;
}

.lvv-status.is-expired strong {
    color: var(--lvv-red);
}

/* ============ 主内容网格 ============ */
.lvv-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.lvv-card {
    background: var(--lvv-card);
    border: 1px solid var(--lvv-line);
    border-radius: 12px;
    padding: 16px;
}

.lvv-col-side .lvv-card + .lvv-card {
    margin-top: 14px;
}

.lvv-col-main .lvv-card + .lvv-card {
    margin-top: 14px;
}

.lvv-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.lvv-card-head h2 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lvv-card-head h2 .lvv-ico {
    width: 16px;
    height: 16px;
    color: var(--lvv-accent);
}

.lvv-card-head a {
    font-size: 12px;
    color: var(--lvv-blue);
}

.lvv-card-head a:hover {
    text-decoration: underline;
}

/* 公告栏 */
.lvv-news {
    display: flex;
    flex-direction: column;
}

.lvv-news li {
    display: flex;
    gap: 10px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--lvv-line);
}

.lvv-news li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.lvv-news .lvv-news-title {
    color: var(--lvv-text);
    font-size: 14px;
    font-weight: 500;
}

.lvv-news p {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--lvv-muted);
}

.lvv-tag {
    flex: none;
    align-self: flex-start;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lvv-accent-soft);
    color: var(--lvv-accent);
    margin-top: 2px;
}

.lvv-tag.is-blue {
    background: rgba(111, 168, 255, .14);
    color: var(--lvv-blue);
}

/* 快捷入口 */
.lvv-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lvv-q {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 14px;
    border: 1px solid var(--lvv-line);
    border-radius: 10px;
    background: var(--lvv-card2);
    color: var(--lvv-text);
    font-size: 13px;
}

.lvv-q .lvv-ico {
    width: 18px;
    height: 18px;
    color: var(--lvv-accent);
}

.lvv-q:hover {
    border-color: #3a4654;
    background: #1e242e;
}

.lvv-q.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

/* ============ 我的记录 卡片（登录 / 续费 / 充值） ============ */
.records-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.record-block {
    background: var(--lvv-card2);
    border: 1px solid var(--lvv-line);
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 0;
}

.record-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lvv-text);
    margin-bottom: 10px;
}

.record-block-head .rt {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.record-block-head .rt .lvv-ico {
    width: 15px;
    height: 15px;
    color: var(--lvv-accent);
    flex: none;
}

.record-block-head .badge {
    flex: none;
    font-size: 11px;
    font-weight: 400;
    color: var(--lvv-muted);
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--lvv-muted);
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--lvv-line);
}

.record-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.record-list .r-main {
    color: var(--lvv-text);
    min-width: 0;
}

.record-list .r-time {
    flex: none;
    white-space: nowrap;
}

.record-list .r-src {
    color: var(--lvv-muted);
    font-size: 11px;
}

.record-list .r-tag {
    flex: none;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(86, 201, 143, .14);
    color: var(--lvv-green);
}

.record-list .r-tag.is-fail {
    background: rgba(224, 107, 98, .14);
    color: var(--lvv-red);
}

.record-empty {
    font-size: 12px;
    color: var(--lvv-muted);
    padding: 6px 0;
}

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

/* 邀请新用户卡片 */
.invite-reward {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--lvv-muted);
    line-height: 1.65;
}

.invite-reward strong {
    color: var(--lvv-accent);
    font-weight: 600;
}

/* 新手指引 */
.lvv-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lvv-steps li {
    position: relative;
    padding-left: 28px;
    font-size: 13px;
    color: var(--lvv-muted);
}

.lvv-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #3a4654;
    background: var(--lvv-card2);
}

.lvv-steps li.done::after,
.lvv-steps li.cur::after {
    content: '↓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(1px);
    font-size: 13px;
    font-weight: 700;
    color: #0e1116;
}

.lvv-steps li.done {
    color: var(--lvv-text);
}

.lvv-steps li.done::before {
    border-color: var(--lvv-green);
    background: var(--lvv-green);
}

.lvv-steps li.cur {
    color: var(--lvv-text);
    font-weight: 500;
}

.lvv-steps li.cur::before {
    border-color: var(--lvv-accent);
    background: var(--lvv-accent);
}

/* 合规提醒 */
.lvv-warn p {
    margin: 0;
    font-size: 12px;
    color: var(--lvv-muted);
    line-height: 1.65;
}

.lvv-warn .lvv-card-head h2 .lvv-ico {
    color: var(--lvv-red);
}

/* 到期弹窗 */
.swal-simple .swal2-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.swal-simple .swal2-html-container {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0;
}

/* ============ 右下角问题解决（客服弹窗） ============ */
#pet-chat {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    width: min(340px, calc(100vw - 32px));
    background: #121216;
    border: 1px solid #3a3a42;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

#pet-chat.open {
    display: flex;
}

.pet-chat-head {
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2e2e36;
}

#pet-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}

.pet-chat-body {
    height: 280px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0e0e12;
}

.pet-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.pet-msg.bot {
    background: #191920;
    color: #e5e7eb;
    border: 1px solid #33333c;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.pet-msg.user {
    background: #f2f2f0;
    color: #141418;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.pet-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: flex-start;
    max-width: 100%;
    padding-bottom: 2px;
}

.pet-opt {
    background: transparent;
    border: 1px solid #4a4a55;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.pet-opt:hover {
    border-color: #e5e7eb;
    background: #26262e;
}

.pet-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #121216;
    border-top: 1px solid #2e2e36;
}

.pet-chat-input input {
    flex: 1;
    background: #17171d;
    border: 1px solid #3a3a42;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
}

.pet-chat-input input:focus {
    border-color: #e5e7eb;
}

#pet-send {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.15s;
}

#pet-send:hover {
    background: #e5e7eb;
    color: #121216;
}

/* ============ 响应式 ============ */
@media (max-width: 640px) {
    .lvv-body {
        padding: 14px 12px 26px;
    }

    .lvv-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .lvv-hero-left {
        align-items: flex-start;
    }

    .lvv-status {
        min-width: 0;
    }

    .lvv-grid {
        grid-template-columns: 1fr;
    }

    .lvv-quick {
        grid-template-columns: repeat(2, 1fr);
    }
}
