/* xr2 — 清爽浅色、少层级、统一卡片栅格 */
html {
    color-scheme: light;
}

:root {
    --xr-bg: #fafbfc;
    --xr-surface: #ffffff;
    --xr-border: rgba(15, 23, 42, 0.06);
    --xr-text: #0f172a;
    --xr-muted: #64748b;
    --xr-faint: #94a3b8;
    --xr-accent: #0d9488;
    --xr-accent2: #2563eb;
    --xr-radius: 20px;
    --xr-font: "DM Sans", "SF Pro Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    --xr-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.06);
    --xr-shadow-hover: 0 16px 48px rgba(15, 23, 42, 0.09);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.xr2 {
    margin: 0;
    min-height: 100vh;
    font-family: var(--xr-font);
    color: var(--xr-text);
    background: var(--xr-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.xr2-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(13, 148, 136, 0.09), transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 30%, rgba(37, 99, 235, 0.05), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, var(--xr-bg) 45%, var(--xr-bg) 100%);
}

.xr2-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) clamp(18px, 4vw, 32px) 56px;
}

/* —— 顶区 —— */
.xr2-hero {
    width: 100%;
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 52px);
}

.xr2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--xr-muted);
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
    margin-bottom: 22px;
    letter-spacing: 0.02em;
}

.xr2-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--xr-accent);
}

.xr2-title {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.xr2-title .xr2-gradient {
    background: linear-gradient(115deg, #0f766e 0%, var(--xr-accent) 30%, var(--xr-accent2) 70%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.xr2-trustline {
    margin: 0 auto 22px;
    max-width: 36em;
    font-size: 13px;
    line-height: 1.5;
    color: var(--xr-faint);
    letter-spacing: 0.02em;
}

.xr2-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.xr2-stats-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 4px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.xr2-stat-pill--wide {
    min-width: min(100%, 280px);
    justify-content: center;
}

.xr2-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--xr-muted);
    padding: 0 6px;
}

.xr2-stat-pill .ri {
    font-size: 16px;
    color: var(--xr-accent);
    opacity: 0.9;
}

.xr2-stat-pill strong {
    font-weight: 600;
    color: var(--xr-text);
}

.xr2-stats-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--xr-faint);
    opacity: 0.55;
    margin: 0 4px;
}

.xr2-num {
    color: var(--xr-accent);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.xr2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}

/* —— 按钮 —— */
.xr2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.xr2-btn:active {
    transform: scale(0.98);
}

.xr2-btn--primary {
    background: linear-gradient(135deg, #0f766e, var(--xr-accent));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.32);
}

.xr2-btn--primary:hover {
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.38);
}

.xr2-btn--ghost {
    background: var(--xr-surface);
    color: var(--xr-text);
    border-color: var(--xr-border);
}

.xr2-btn--ghost:hover {
    background: #f8fafc;
}

.xr2-btn--soft {
    background: rgba(37, 99, 235, 0.08);
    color: var(--xr-accent2);
    border-color: rgba(37, 99, 235, 0.14);
}

.xr2-btn--soft:hover {
    background: rgba(37, 99, 235, 0.12);
}

/* —— 主内容区：一块标题 + 统一卡片栅格 —— */
.xr2-main {
    width: 100%;
}

.xr2-main-head {
    margin-bottom: 14px;
    text-align: center;
}

.xr2-main-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--xr-text);
}

/* 扭蛋 / 秒赞：紧跟「服务说明」标题下，移动端无需长滑 */
.xr2-quick {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--xr-border);
}

.xr2-quick-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 560px) {
    .xr2-quick-row {
        grid-template-columns: 1fr 1fr;
    }
}

.xr2-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f6f8;
    border: 1px solid var(--xr-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.xr2-quick-item:hover {
    background: #eef1f5;
    border-color: rgba(13, 148, 136, 0.22);
}

.xr2-quick-ico {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--xr-accent);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.xr2-quick-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xr2-quick-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--xr-text);
    letter-spacing: -0.01em;
}

.xr2-quick-sub {
    font-size: 12px;
    color: var(--xr-muted);
    line-height: 1.5;
}

.xr2-quick-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
    color: #047857;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 4px;
}

.xr2-quick-go {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--xr-faint);
}

.xr2-quick-item:hover .xr2-quick-go {
    color: var(--xr-accent);
}

.xr2-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
}

@media (min-width: 900px) {
    .xr2-features {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
    }

    .xr2-features .xr2-feature:nth-child(1) {
        grid-column: span 3;
    }

    .xr2-features .xr2-feature:nth-child(2) {
        grid-column: span 3;
    }

    .xr2-features .xr2-feature:nth-child(3),
    .xr2-features .xr2-feature:nth-child(4),
    .xr2-features .xr2-feature:nth-child(5) {
        grid-column: span 2;
    }
}

.xr2-feature {
    padding: 26px 24px;
    border-radius: var(--xr-radius);
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
    text-align: left;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--xr-shadow);
}

.xr2-feature:hover {
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: var(--xr-shadow-hover);
}

.xr2-feature-ico {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.1), rgba(37, 99, 235, 0.06));
    color: var(--xr-accent);
}

.xr2-feature-ico .ri {
    font-size: 22px;
}

.xr2-feature h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--xr-text);
    letter-spacing: -0.015em;
}

.xr2-feature p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: var(--xr-muted);
}

/* —— 页脚 —— */
.xr2-footer {
    margin-top: auto;
    padding-top: 48px;
    text-align: center;
}

.xr2-footer-beian {
    margin: 0 0 8px;
}

.xr2-footer-beian a {
    color: var(--xr-muted);
    text-decoration: none;
    font-size: 13px;
}

.xr2-footer-beian a:hover {
    color: var(--xr-accent);
}

.xr2-footer-copy {
    margin: 0;
    font-size: 12px;
    color: var(--xr-faint);
}

/* 访问统计抽屉 */
.xr2-drawer {
    position: fixed;
    top: 24%;
    left: -168px;
    width: 168px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--xr-border);
    border-radius: 0 14px 14px 0;
    transition: left 0.28s ease;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.06);
}

.xr2-drawer.is-open {
    left: 0;
}

.xr2-drawer-tab {
    position: absolute;
    top: 50%;
    right: -36px;
    transform: translateY(-50%);
    width: 36px;
    height: 56px;
    border: 1px solid var(--xr-border);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: rgba(13, 148, 136, 0.1);
    color: var(--xr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    user-select: none;
}

.xr2-drawer-tab:hover {
    background: rgba(13, 148, 136, 0.18);
}

.xr2-drawer-inner {
    padding: 20px 16px;
}

.xr2-stat {
    text-align: center;
    margin-bottom: 18px;
}

.xr2-stat:last-child {
    margin-bottom: 0;
}

.xr2-drawer .xr2-stat-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--xr-faint);
}

.xr2-drawer .xr2-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--xr-accent);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 899px) {
    .xr2-features .xr2-feature:nth-child(n) {
        grid-column: auto !important;
    }
}

@media (max-width: 768px) {
    .xr2-features {
        grid-template-columns: 1fr;
    }

    .xr2-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xr2-btn {
        width: 100%;
    }
}
