/* ==========================================================
 * MXGF User v2.0 — 前台用户中心
 * 卡密卡片 / 设备 / 操作动效 / 渐变文字
 * ========================================================== */

.mxgf-page {
    color: var(--bone-100);
    font-family: var(--font-sans);
    background: var(--ink-warm-1);
    background-image: var(--bg-pattern);
    padding: 32px 0 80px;
    min-height: 60vh;
    position: relative;
    /* 提升前台暗色文字对比度 */
    --bone-300: #D6CFC4;
    --bone-400: #B8B0A3;
    --bone-500: #8A8378;
}

.mxgf-page ::placeholder {
    color: var(--bone-500);
    opacity: 1;
}
.mxgf-page .mxgf-greeting { color: var(--bone-300); }

.mxgf-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.mxgf-page h1, .mxgf-page h2, .mxgf-page h3 {
    font-family: var(--font-serif); font-weight: 700; line-height: 1.2;
    letter-spacing: -0.01em;
}
.mxgf-page h1 { font-size: 36px; margin-bottom: 6px; }
.mxgf-page h1 .mxgf-gradient-text { display: inline; }
.mxgf-page h2 { font-size: 22px; }
.mxgf-page h3 { font-size: 16px; }

/* ============ Hero（用户中心顶部）============ */
.mxgf-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px 28px;
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.mxgf-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--coral-500) 0%, transparent 60%);
    opacity: 0.10;
    pointer-events: none;
    animation: mxgf-float 8s var(--ease-in-out) infinite;
}
.mxgf-hero::after {
    content: '';
    position: absolute;
    bottom: -50px; left: 30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 60%);
    opacity: 0.08;
    pointer-events: none;
    animation: mxgf-float 6s var(--ease-in-out) infinite reverse;
}
.mxgf-hero .left { position: relative; z-index: 1; }
.mxgf-hero .right { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }

.mxgf-greeting {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--bone-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.mxgf-greeting .mxgf-dot { color: var(--jade-500); margin-right: 4px; }

.mxgf-hero .user-info {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px; background: var(--ink-warm-3);
    border: 1px solid var(--hairline-2); border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}
.mxgf-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--grad-primary);
    display: grid; place-items: center;
    color: var(--ink-warm-0);
    font-family: var(--font-serif); font-weight: 700; font-size: 16px;
    box-shadow: var(--shadow-coral);
    position: relative;
}
.mxgf-avatar::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 12px; height: 12px;
    background: var(--jade-500);
    border: 2px solid var(--ink-warm-3);
    border-radius: 50%;
}
.mxgf-username { font-weight: 600; font-size: 14px; }
.mxgf-userrole {
    font-size: 10px; color: var(--bone-300);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============ 主题切换（升级）============ */
.mxgf-theme-bar {
    display: flex; justify-content: flex-end; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.theme-toggle {
    position: relative; width: 56px; height: 30px;
    border-radius: var(--radius-full);
    background: var(--ink-warm-3);
    border: 1px solid var(--hairline-2);
    cursor: pointer; padding: 0;
    transition: all var(--dur-base) var(--ease-out-soft);
}
.theme-toggle:hover {
    border-color: var(--coral-500);
    box-shadow: 0 0 12px rgba(255, 107, 61, 0.20);
}
.theme-toggle .knob {
    position: absolute; top: 2px; left: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--grad-primary);
    transition: transform var(--dur-slow) var(--ease-out-back);
    display: grid; place-items: center;
    color: #fff; font-size: 12px;
    box-shadow: var(--shadow-2);
}
.theme-toggle .knob::before { content: '☾'; }
[data-mxgf-theme="day"] .theme-toggle .knob { transform: translateX(26px); }
[data-mxgf-theme="day"] .theme-toggle .knob::before { content: '☀'; }

/* ============ 统计 ============ */
.mxgf-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 32px;
}
.mxgf-stat {
    position: relative;
    padding: 20px 22px;
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    transition: all var(--dur-base) var(--ease-out-soft);
    overflow: hidden;
}
.mxgf-stat::after {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--coral-500) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-slow);
    pointer-events: none;
}
.mxgf-stat:hover {
    border-color: var(--coral-500);
    transform: translateY(-3px);
    box-shadow: var(--shadow-coral);
}
.mxgf-stat:hover::after { opacity: 0.15; }
.mxgf-stat .l {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.14em; color: var(--bone-400);
    text-transform: uppercase; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.mxgf-stat .l .ic {
    width: 18px; height: 18px;
    border-radius: var(--radius-xs);
    background: rgba(255, 107, 61, 0.12);
    color: var(--coral-400);
    display: grid; place-items: center;
    font-size: 10px;
}
.mxgf-stat .v {
    font-family: var(--font-serif);
    font-size: 30px; font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.mxgf-stat .v small {
    font-size: 0.4em;
    color: var(--bone-300);
    -webkit-text-fill-color: var(--bone-300);
    margin-left: 4px;
    font-weight: 500;
}
.mxgf-stat .d { font-size: 12px; color: var(--sage-500); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.mxgf-stat.is-jade .l .ic { background: rgba(111, 184, 154, 0.12); color: var(--jade-500); }
.mxgf-stat.is-gold .l .ic { background: rgba(224, 184, 100, 0.12); color: var(--gold-500); }
.mxgf-stat.is-violet .l .ic { background: rgba(155, 126, 222, 0.12); color: var(--violet-500); }

/* ============ Tabs ============ */
.mxgf-tabs {
    display: flex; gap: 4px; padding: 4px;
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-full);
    margin-bottom: 24px; width: fit-content;
    flex-wrap: wrap;
    position: relative;
}
.mxgf-tab {
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    color: var(--bone-300); white-space: nowrap;
    transition: all var(--dur-base) var(--ease-out-soft);
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.mxgf-tab:hover { color: var(--bone-100); }
.mxgf-tab.active {
    background: var(--grad-primary);
    color: var(--ink-warm-0); font-weight: 600;
    box-shadow: var(--shadow-coral);
}
.mxgf-tab .count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-family: var(--font-mono);
}
.mxgf-panel { display: none; animation: mxgf-fade-up var(--dur-slow) var(--ease-out-soft) both; }
.mxgf-panel.active { display: block; }

/* ============ 卡密卡片（升级）============ */
.mxgf-key-card {
    position: relative;
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 18px;
    transition: all var(--dur-base) var(--ease-out-soft);
    overflow: hidden;
}
.mxgf-key-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--dur-slow);
    pointer-events: none;
    border-radius: inherit;
}
.mxgf-key-card:hover {
    border-color: var(--hairline-3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}
.mxgf-key-card.is-active { border-color: rgba(111, 184, 154, 0.30); }
.mxgf-key-card.is-active::before { opacity: 0.04; }

.mxgf-key-card .top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
    position: relative;
}
.mxgf-key-card .plan {
    display: flex; align-items: center; gap: 10px;
}
.mxgf-key-card .plan-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 15px;
}
.mxgf-key-card .plan-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--grad-primary);
    display: grid; place-items: center;
    color: #fff; font-size: 14px;
    box-shadow: var(--shadow-coral);
}
.mxgf-key-card.is-active .plan-icon { background: var(--grad-jade); box-shadow: var(--shadow-jade); }
.mxgf-key-card.is-expired .plan-icon { background: var(--grad-crimson); }

.mxgf-key-card .code-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    background: var(--ink-warm-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.mxgf-key-card .code-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 61, 0.04), transparent);
    background-size: 200% 100%;
    animation: mxgf-shimmer 4s linear infinite;
    pointer-events: none;
}

.mxgf-key-code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--gold-400);
    letter-spacing: 0.1em;
    font-weight: 600;
    user-select: all;
    position: relative;
}
.mxgf-key-code.is-hidden {
    letter-spacing: 0.4em;
    filter: blur(4px);
    color: var(--bone-400);
}

.mxgf-key-actions { display: flex; gap: 6px; flex-shrink: 0; }

.mxgf-key-card .info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
}
.mxgf-key-card .info .cell {
    padding: 10px 14px;
    background: var(--ink-warm-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
}
.mxgf-key-card .info .label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--bone-400);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.mxgf-key-card .info .val {
    font-size: 13px;
    color: var(--bone-100);
    font-weight: 500;
}
.mxgf-key-card .info .val small {
    font-size: 11px;
    color: var(--bone-400);
    margin-left: 4px;
}

/* ============ 状态徽章 ============ */
.mxgf-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.08em; font-weight: 500;
    text-transform: uppercase;
    position: relative;
}
.mxgf-badge .mxgf-dot {
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
}
.mxgf-badge.is-active .mxgf-dot { animation: mxgf-blink 1.6s var(--ease-in-out) infinite; }
.mxgf-badge.is-active   { background: rgba(111, 184, 154, 0.12); color: var(--jade-500); }
.mxgf-badge.is-unused   { background: rgba(157, 182, 122, 0.12); color: var(--sage-500); }
.mxgf-badge.is-bound    { background: rgba(255, 107, 61, 0.10); color: var(--coral-400); }
.mxgf-badge.is-expired  { background: rgba(192, 57, 43, 0.12); color: var(--crimson-500); }
.mxgf-badge.is-revoked  { background: rgba(110, 105, 97, 0.18); color: var(--bone-300); }
.mxgf-badge.is-pending  { background: rgba(224, 184, 100, 0.12); color: var(--gold-500); }

/* ============ 设备 ============ */
.mxgf-device-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 14px; margin-top: 18px;
}
.mxgf-device {
    padding: 18px 20px;
    background: var(--ink-warm-1);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    transition: all var(--dur-base);
    position: relative;
    overflow: hidden;
}
.mxgf-device:hover {
    border-color: var(--hairline-3);
    transform: translateY(-1px);
}
.mxgf-device.is-active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-jade);
}
.mxgf-device .d-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.mxgf-device .d-name {
    font-family: var(--font-serif); font-weight: 700; font-size: 15px;
    display: flex; align-items: center; gap: 8px;
}
.mxgf-device .d-name .ic {
    width: 24px; height: 24px;
    border-radius: var(--radius-xs);
    background: rgba(255, 107, 61, 0.12);
    color: var(--coral-400);
    display: grid; place-items: center;
    font-size: 12px;
}
.mxgf-device .d-row {
    display: flex; justify-content: space-between;
    padding: 4px 0; font-size: 12px; color: var(--bone-300);
}
.mxgf-device .d-row strong {
    color: var(--bone-100);
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 11px;
}
.mxgf-device .d-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    display: flex; justify-content: flex-end; gap: 6px;
}
.mxgf-device-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--bone-400);
    background: var(--bg-tint);
    border: 1px dashed var(--hairline-3);
    border-radius: var(--radius-md);
    grid-column: 1 / -1;
    font-size: 13px;
}

/* ============ 换绑表单（折叠）============ */
.mxgf-unbind-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slower) var(--ease-in-out),
                padding var(--dur-slower) var(--ease-in-out),
                margin var(--dur-slower) var(--ease-in-out);
    padding: 0 22px;
    margin: 0;
    background: var(--ink-warm-1);
    border-top: 1px solid transparent;
}
.mxgf-unbind-form.open {
    max-height: 400px;
    padding: 20px 22px;
    margin: 18px -26px -24px;
    border-top-color: var(--hairline);
}

/* ============ 按钮 ============ */
.mxgf-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; border-radius: var(--radius-full);
    font-size: 12px; font-weight: 500;
    border: 1px solid var(--hairline-2);
    background: var(--ink-warm-3); color: var(--bone-200);
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out-soft);
    text-decoration: none;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}
.mxgf-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 50%);
    opacity: 0;
    transition: opacity var(--dur-fast);
    pointer-events: none;
}
.mxgf-btn:hover { border-color: var(--coral-500); color: var(--coral-400); transform: translateY(-1px); }
.mxgf-btn:hover::after { opacity: 1; }
.mxgf-btn:active { transform: translateY(0); }
.mxgf-btn.is-primary {
    background: var(--grad-primary);
    border-color: transparent; color: var(--ink-warm-0);
    font-weight: 600;
    box-shadow: var(--shadow-coral);
}
.mxgf-btn.is-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-coral-strong);
    color: var(--ink-warm-0);
}
.mxgf-btn.is-danger { background: var(--crimson-500); color: #fff; border-color: transparent; }
.mxgf-btn.is-success { background: var(--jade-500); color: #fff; border-color: transparent; }
.mxgf-btn.is-gold { background: var(--grad-gold); color: var(--ink-warm-0); border-color: transparent; font-weight: 600; }
.mxgf-btn.is-ghost { background: transparent; border-color: var(--hairline-2); }
.mxgf-btn.is-sm { padding: 6px 12px; font-size: 11px; }
.mxgf-btn.is-lg { padding: 12px 24px; font-size: 14px; }
.mxgf-btn.is-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.mxgf-btn .ic { font-size: 13px; opacity: 0.85; }

/* ============ 表单 ============ */
.mxgf-form .row { margin-bottom: 18px; }
.mxgf-form .row.is-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mxgf-form label {
    display: block; font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.14em;
    color: var(--bone-400); text-transform: uppercase; margin-bottom: 8px;
}
.mxgf-form input, .mxgf-form select, .mxgf-form textarea {
    width: 100%; padding: 11px 14px;
    background: var(--ink-warm-1);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-sm);
    color: var(--bone-100); font-size: 14px;
    font-family: var(--font-sans);
    transition: all var(--dur-base) var(--ease-out-soft);
}
.mxgf-form input:hover, .mxgf-form select:hover, .mxgf-form textarea:hover { border-color: var(--hairline-3); }
.mxgf-form input:focus, .mxgf-form select:focus, .mxgf-form textarea:focus {
    outline: 0;
    border-color: var(--coral-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.15);
}
.mxgf-form input.is-error {
    border-color: var(--crimson-500);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.mxgf-form .desc { font-size: 11px; color: var(--bone-400); margin-top: 6px; }
.mxgf-form .desc::before { content: 'ⓘ '; color: var(--coral-500); }

/* ============ Toast（升级）============ */
.mxgf-toast {
    position: fixed; left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(120%);
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-md);
    padding: 12px 20px 12px 16px; font-size: 13px;
    color: var(--bone-100);
    box-shadow: var(--shadow-3);
    z-index: 99999;
    transition: transform var(--dur-slow) var(--ease-out-back), opacity var(--dur-base);
    max-width: 360px;
    display: flex; align-items: center; gap: 10px;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.mxgf-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.mxgf-toast .ic {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; font-size: 13px; flex-shrink: 0;
}
.mxgf-toast.success .ic { background: var(--jade-500); }
.mxgf-toast.error   .ic { background: var(--crimson-500); }
.mxgf-toast.info    .ic { background: var(--azure-500); }
.mxgf-toast.warn    .ic { background: var(--gold-500); color: var(--ink-warm-0); }
.mxgf-toast.success { border-color: var(--jade-500); }
.mxgf-toast.error   { border-color: var(--crimson-500); }
.mxgf-toast.info    { border-color: var(--azure-500); }
.mxgf-toast.warn    { border-color: var(--gold-500); }

/* ============ 登录提示 ============ */
.mxgf-login-required {
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    max-width: 480px;
    margin: 60px auto;
    position: relative;
    overflow: hidden;
}
.mxgf-login-required::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--coral-500) 0%, transparent 60%);
    opacity: 0.10;
}
.mxgf-login-required .ic {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: grid; place-items: center;
    color: #fff; font-size: 32px;
    box-shadow: var(--shadow-coral);
    position: relative;
}
.mxgf-login-required h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 8px;
    position: relative;
}
.mxgf-login-required p {
    color: var(--bone-300);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}
.mxgf-login-required .mxgf-btn { position: relative; }

/* ============ 历史表 ============ */
.mxgf-table-wrap {
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.mxgf-history { width: 100%; border-collapse: collapse; }
.mxgf-history th, .mxgf-history td {
    text-align: left; padding: 14px 18px; font-size: 12px;
}
.mxgf-history thead th {
    color: var(--bone-400); font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--bg-tint);
    border-bottom: 1px solid var(--hairline);
}
.mxgf-history tbody tr { border-bottom: 1px solid var(--hairline); }
.mxgf-history tbody tr:last-child { border-bottom: none; }
.mxgf-history .mono { font-family: var(--font-mono); color: var(--gold-400); }

/* ============ 时间线（活动历史）============ */
.mxgf-timeline { position: relative; padding-left: 28px; }
.mxgf-timeline::before {
    content: '';
    position: absolute;
    left: 9px; top: 6px; bottom: 6px;
    width: 1px;
    background: var(--hairline-3);
}
.mxgf-timeline .item {
    position: relative;
    padding-bottom: 20px;
}
.mxgf-timeline .item::before {
    content: '';
    position: absolute;
    left: -23px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ink-warm-2);
    border: 2px solid var(--coral-500);
    z-index: 1;
}
.mxgf-timeline .item.is-success::before { border-color: var(--jade-500); }
.mxgf-timeline .item.is-warn::before { border-color: var(--gold-500); }
.mxgf-timeline .item.is-error::before { border-color: var(--crimson-500); }
.mxgf-timeline .when {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--bone-400);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.mxgf-timeline .what {
    font-size: 13px;
    color: var(--bone-100);
    line-height: 1.5;
}
.mxgf-timeline .what strong { color: var(--coral-400); font-weight: 500; }

/* ============ 渐变文字 ============ */
.mxgf-gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ============ 空状态 ============ */
.mxgf-empty {
    text-align: center;
    padding: 80px 40px 60px;
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.mxgf-empty::before {
    content: '';
    position: absolute;
    top: -150px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--coral-500) 0%, transparent 60%);
    opacity: 0.08;
    pointer-events: none;
    animation: mxgf-float 10s var(--ease-in-out) infinite;
}
.mxgf-empty::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--amber-500) 0%, transparent 60%);
    opacity: 0.06;
    pointer-events: none;
    animation: mxgf-float 8s var(--ease-in-out) infinite reverse;
}
.mxgf-empty .empty-illu {
    position: relative;
    z-index: 1;
    margin: 0 auto 24px;
    width: 120px; height: 120px;
    display: grid; place-items: center;
    animation: mxgf-float 5s var(--ease-in-out) infinite;
}
.mxgf-empty .empty-illu svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 8px 24px rgba(255, 107, 61, 0.20));
}
.mxgf-empty h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.mxgf-empty p {
    color: var(--bone-300);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.mxgf-empty .mxgf-btn {
    position: relative;
    z-index: 1;
}
.mxgf-empty .empty-tips {
    list-style: none;
    padding: 0;
    margin: 32px auto 0;
    max-width: 420px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.mxgf-empty .empty-tips li {
    padding: 10px 14px;
    background: var(--bg-tint);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--bone-200);
    font-family: var(--font-mono);
    transition: all var(--dur-base) var(--ease-out-soft);
}
.mxgf-empty .empty-tips li:hover {
    background: var(--bg-tint-2);
    border-color: var(--hairline-3);
    transform: translateX(2px);
}
.mxgf-empty .empty-tips strong { color: var(--coral-400); font-weight: 600; }

/* ============ AOS 简易动画 ============ */
[data-aos] {
    opacity: 0;
    transition: opacity var(--dur-slower) var(--ease-out-soft),
                transform var(--dur-slower) var(--ease-out-soft);
    will-change: opacity, transform;
}
[data-aos="fade-up"]    { transform: translateY(20px); }
[data-aos="fade-down"]  { transform: translateY(-20px); }
[data-aos="fade-left"]  { transform: translateX(20px); }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="zoom-in"]    { transform: scale(0.94); }
[data-aos].is-visible { opacity: 1; transform: none; }

/* ============ 复制反馈动画 ============ */
@keyframes mxgf-copy-flash {
    0% { background: var(--ink-warm-3); }
    50% { background: var(--coral-500); color: #fff; border-color: var(--coral-500); }
    100% { background: var(--ink-warm-3); }
}
.mxgf-btn.is-copied {
    animation: mxgf-copy-flash 0.6s var(--ease-out-soft);
}

.mxgf-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 28px 0;
}
.mxgf-plan-card {
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-base) var(--ease-out-soft), box-shadow var(--dur-base) var(--ease-out-soft);
    position: relative;
}
.mxgf-plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mxgf-plan-card.is-featured {
    border-color: var(--coral-400);
    background: linear-gradient(180deg, rgba(255,107,61,0.08) 0%, var(--ink-warm-2) 60%);
}
.mxgf-plan-card.is-featured::before {
    content: '推荐';
    position: absolute;
    top: 14px; right: 14px;
    background: var(--grad-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}
.plan-header { margin-bottom: 20px; }
.plan-header h3 { font-size: 20px; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.plan-price .unit { font-size: 18px; color: var(--coral-400); font-weight: 700; }
.plan-price .num { font-size: 42px; font-weight: 800; color: var(--bone-100); font-family: var(--font-mono); }
.plan-price .period { font-size: 13px; color: var(--bone-400); }
.plan-desc { font-size: 13px; color: var(--bone-300); line-height: 1.5; }
.plan-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px; color: var(--bone-200);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .ic {
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(111,184,154,0.12); color: var(--jade-500);
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
}
.plan-qty { margin-bottom: 18px; }
.plan-qty label { display: block; font-size: 12px; color: var(--bone-400); margin-bottom: 8px; font-family: var(--font-mono); }
.qty-control {
    display: inline-flex; align-items: center; gap: 0;
    border: 1px solid var(--hairline-2); border-radius: var(--radius-md);
    overflow: hidden;
}
.qty-control button {
    width: 36px; height: 36px;
    background: var(--ink-warm-3); color: var(--bone-200);
    border: none; font-size: 18px; cursor: pointer;
    display: grid; place-items: center;
}
.qty-control button:hover { background: var(--ink-warm-1); color: var(--coral-400); }
.qty-control input {
    width: 50px; height: 36px;
    background: transparent; color: var(--bone-100);
    border: none; text-align: center; font-family: var(--font-mono);
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mxgf-buy-notice {
    background: var(--ink-warm-2);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    font-size: 13px; color: var(--bone-300);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .mxgf-stats { grid-template-columns: repeat(2, 1fr); }
    .mxgf-device-grid { grid-template-columns: 1fr; }
    .mxgf-key-card .top { flex-direction: column; align-items: flex-start; }
    .mxgf-key-card .info { grid-template-columns: repeat(2, 1fr); }
    .mxgf-hero { grid-template-columns: 1fr; }
    .mxgf-hero .right { flex-direction: column; align-items: stretch; }
    .mxgf-page h1 { font-size: 26px; }
    .mxgf-form .row.is-2col { grid-template-columns: 1fr; }
    .mxgf-key-code { font-size: 16px; }
    .mxgf-plan-grid { grid-template-columns: 1fr; }
}
