/* ===== 品牌色:Plasma 青绿 × Polygon 紫 ===== */
:root {
    --plasma: #5eead4;
    --plasma-deep: #14b8a6;
    --polygon: #8247e5;
    --polygon-light: #a78bfa;
    --ink: #05070d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(1100px 720px at 8% -12%, rgba(45, 212, 191, 0.28), transparent 62%),
        radial-gradient(960px 720px at 108% 112%, rgba(130, 71, 229, 0.34), transparent 60%),
        radial-gradient(700px 500px at 85% 0%, rgba(94, 234, 212, 0.12), transparent 65%),
        linear-gradient(160deg, #06090f 0%, #0a0e18 46%, #0c0716 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 背景动画层 */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 流动光带(缓慢横移的彩色雾) */
.aurora {
    position: absolute;
    top: -30%;
    left: -50%;
    width: 200%;
    height: 160%;
    background:
        radial-gradient(420px 280px at 20% 30%, rgba(94, 234, 212, 0.22), transparent 60%),
        radial-gradient(520px 320px at 70% 60%, rgba(130, 71, 229, 0.28), transparent 62%),
        radial-gradient(380px 260px at 85% 25%, rgba(94, 234, 212, 0.16), transparent 60%),
        radial-gradient(460px 300px at 30% 80%, rgba(167, 139, 250, 0.20), transparent 62%);
    filter: blur(28px);
    animation: aurora-move 22s ease-in-out infinite alternate;
    opacity: 0.85;
}

@keyframes aurora-move {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%  { transform: translate3d(4%, 3%, 0) rotate(2deg); }
    100% { transform: translate3d(-4%, -2%, 0) rotate(-2deg); }
}

/* 脉动光晕:整体明暗呼吸 */
.pulse-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 50% 50%, rgba(45, 212, 191, 0.10), transparent 70%),
        radial-gradient(700px 500px at 80% 90%, rgba(130, 71, 229, 0.14), transparent 70%);
    animation: pulse-glow 6s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.06); }
}

/* 粒子 */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0%   { transform: translateY(100vh) translateX(0) scale(0.6); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateY(50vh) translateX(60px) scale(1.1); }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) translateX(120px) scale(0.8); opacity: 0; }
}

/* 粒子闪烁 */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* 尊重"减少动态效果"系统偏好 */
@media (prefers-reduced-motion: reduce) {
    .aurora,
    .pulse-glow,
    .particle {
        animation: none !important;
    }
    .pulse-glow { opacity: 0.55; }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
}

.card {
    background: linear-gradient(165deg, rgba(17, 25, 34, 0.82) 0%, rgba(9, 12, 20, 0.9) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.75),
        0 0 42px rgba(45, 212, 191, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--plasma), var(--polygon-light), var(--plasma));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* 卡片右上角青绿光晕 */
.card::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -230px;
    right: -160px;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.10), transparent 65%);
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.logo-area {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Plasma × Polygon 双品牌宣传图 */
.brand-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 4px auto 22px;
    position: relative;
    z-index: 1;
}

.brand-img {
    width: 150px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1.2), box-shadow 0.35s ease;
    background: #05070d;
}

.plasma-img {
    box-shadow:
        0 14px 32px -10px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(94, 234, 212, 0.40),
        0 0 28px rgba(45, 212, 191, 0.30);
}

.polygon-img {
    box-shadow:
        0 14px 32px -10px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(130, 71, 229, 0.50),
        0 0 28px rgba(130, 71, 229, 0.34);
}

.brand-img:hover {
    transform: translateY(-4px) scale(1.04);
}

.plasma-img:hover {
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(94, 234, 212, 0.60),
        0 0 40px rgba(45, 212, 191, 0.46);
}

.polygon-img:hover {
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(130, 71, 229, 0.72),
        0 0 40px rgba(130, 71, 229, 0.52);
}

.brand-x {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 6, 12, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.28);
    text-shadow: 0 0 12px rgba(148, 163, 184, 0.5);
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.16), 0 0 18px rgba(130, 71, 229, 0.16);
    flex-shrink: 0;
}

.chain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(130, 71, 229, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.40);
    padding: 5px 16px 5px 5px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 20px rgba(130, 71, 229, 0.20), inset 0 0 12px rgba(130, 71, 229, 0.12);
}

/* Polygon 六边形图标(纯 SVG,紫色品牌色) */
.chain-badge .chain-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #0c0813;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.45), 0 0 10px rgba(130, 71, 229, 0.5);
}

.chain-badge .chain-icon svg {
    display: block;
}

.chain-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--plasma);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--plasma);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(92deg, var(--plasma) 0%, #67e8f9 42%, var(--polygon-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.subtitle {
    text-align: center;
    color: #9fb0c3;
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.stat {
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.06), rgba(130, 71, 229, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 14px 10px 12px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 234, 212, 0.38);
    box-shadow: 0 10px 24px -12px rgba(45, 212, 191, 0.45);
}

.stat-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--plasma);
    text-shadow: 0 0 18px rgba(94, 234, 212, 0.35);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: #8da0b5;
    letter-spacing: 0.3px;
}

/* 血条样式 */
.stat-bar {
    position: relative;
    height: 8px;
    background: rgba(3, 6, 12, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.stat-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--plasma-deep) 0%, var(--plasma) 50%, var(--polygon-light) 100%);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.55), 0 0 4px rgba(130, 71, 229, 0.35);
    transition: width 1.2s cubic-bezier(.2,.7,.3,1.2);
    overflow: hidden;
}

/* 血条光泽扫过 */
.stat-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: bar-shimmer 2.4s linear infinite;
}

.stat-bar-fill.low {
    background: linear-gradient(90deg, var(--polygon) 0%, var(--polygon-light) 100%);
    box-shadow: 0 0 10px rgba(130, 71, 229, 0.55);
}

.stat-bar-fill.high {
    background: linear-gradient(90deg, var(--plasma-deep) 0%, var(--plasma) 60%, #67e8f9 100%);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
}

/* 紧迫感血条:红橙渐变 + 脉冲发光 */
.stat-bar-fill.urgent {
    background: linear-gradient(90deg, #dc2626 0%, #f97316 60%, #fbbf24 100%);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), 0 0 6px rgba(251, 146, 60, 0.5);
    animation: urgent-pulse 1.6s ease-in-out infinite;
}

@keyframes urgent-pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), 0 0 6px rgba(251, 146, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.9), 0 0 10px rgba(251, 146, 60, 0.75);
    }
}

@keyframes bar-shimmer {
    0% { left: -50%; }
    100% { left: 130%; }
}

.wallet-info {
    background: rgba(3, 6, 12, 0.45);
    border: 1px solid rgba(94, 234, 212, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.wallet-info .address {
    font-family: "SF Mono", Consolas, monospace;
    color: var(--plasma);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    width: 100%;
    padding: 16px;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn > svg,
.btn > span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--plasma-deep) 0%, #0ea5b7 38%, var(--polygon) 100%);
    color: #fff;
    box-shadow: 0 10px 26px -6px rgba(45, 212, 191, 0.45), 0 6px 20px -4px rgba(124, 58, 237, 0.5);
    overflow: hidden;
}

/* 主按钮光泽扫过 */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(45, 212, 191, 0.55), 0 10px 26px -4px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover:not(:disabled)::after {
    left: 135%;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(130, 71, 229, 0.14);
    border-color: rgba(139, 92, 246, 0.45);
    color: #fff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status {
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    display: none;
    position: relative;
    z-index: 1;
}

.status.show { display: block; }
.status.info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.status.success { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(45, 212, 191, 0.35); color: #6ee7b7; }
.status.error { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.status.loading { background: rgba(130, 71, 229, 0.16); border: 1px solid rgba(139, 92, 246, 0.35); color: #d8b4fe; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.info-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    position: relative;
    z-index: 1;
}

.info-section h3 {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.info-list {
    list-style: none;
    font-size: 13px;
    color: #93a4b8;
    line-height: 1.9;
}

.info-list li {
    padding-left: 18px;
    position: relative;
}

.info-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--plasma);
}

.footer {
    text-align: center;
    color: #5c6c80;
    font-size: 12px;
    margin-top: 22px;
    letter-spacing: 0.4px;
    position: relative;
    z-index: 1;
}

/* ====== 移动端适配 ====== */

/* 触屏设备:关闭 hover 放大,避免点完黏在放大态 */
@media (hover: none) {
    .stat:hover,
    .brand-img:hover,
    .btn-primary:hover:not(:disabled),
    .btn-secondary:hover:not(:disabled) {
        transform: none;
    }
    .stat:hover {
        border-color: rgba(148, 163, 184, 0.14);
        box-shadow: none;
    }
}

/* 平板及小桌面 */
@media (max-width: 720px) {
    .container { max-width: 100%; }
    .card { padding: 32px 22px; border-radius: 20px; }
    .card::after { width: 320px; height: 320px; top: -200px; right: -120px; }
    h1 { font-size: 28px; }
    .subtitle { font-size: 13.5px; margin-bottom: 22px; }
    .brand-img { width: 132px; max-height: 132px; }
    .brand-x { width: 36px; height: 36px; font-size: 13px; }
    .brand-images { gap: 14px; margin-bottom: 20px; }
    .stats { gap: 10px; margin-bottom: 22px; }
    .stat { padding: 12px 8px 10px; border-radius: 12px; }
    .stat-value { font-size: 16px; }
    .info-list { font-size: 12.5px; line-height: 1.85; }
    .info-list li { padding-left: 16px; }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    body { padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)) 12px; }
    .card { padding: 26px 18px; border-radius: 18px; }
    .card::after { width: 260px; height: 260px; top: -160px; right: -100px; }
    .logo-area { margin-bottom: 20px; }
    .brand-images { gap: 10px; margin-bottom: 18px; }
    .brand-img { width: 116px; max-height: 116px; border-radius: 10px; }
    .brand-x { width: 32px; height: 32px; font-size: 12px; }
    h1 { font-size: 24px; letter-spacing: 0.3px; margin-bottom: 8px; }
    .subtitle { font-size: 12.5px; margin-bottom: 20px; line-height: 1.65; }
    .stats { gap: 8px; margin-bottom: 20px; }
    .stat { padding: 11px 6px 9px; border-radius: 11px; gap: 4px; }
    .stat-value { font-size: 14px; letter-spacing: 0; }
    .stat-label { font-size: 10px; }
    .stat-bar { height: 6px; margin-top: 3px; }
    .wallet-info { padding: 12px 14px; font-size: 13px; }
    .btn { padding: 14px; min-height: 50px; font-size: 15px; border-radius: 12px; margin-bottom: 10px; }
    .status { padding: 12px; font-size: 13px; line-height: 1.6; }
    .info-section { margin-top: 22px; padding-top: 18px; }
    .info-section h3 { font-size: 13px; }
    .info-list { font-size: 12px; line-height: 1.8; }
    .info-list li { padding-left: 14px; }
    .footer { font-size: 11px; margin-top: 18px; }
}

/* 小屏手机 */
@media (max-width: 360px) {
    body { padding: 10px 8px max(14px, env(safe-area-inset-bottom)) 8px; }
    .card { padding: 22px 14px; border-radius: 16px; }
    .brand-img { width: 96px; max-height: 96px; }
    .brand-x { width: 28px; height: 28px; font-size: 11px; }
    .brand-images { gap: 8px; margin-bottom: 16px; }
    h1 { font-size: 21px; }
    .subtitle { font-size: 12px; }
    .stats { gap: 6px; }
    .stat { padding: 10px 4px 8px; }
    .stat-value { font-size: 12.5px; }
    .stat-label { font-size: 9px; }
    .btn { padding: 12px; min-height: 48px; font-size: 14px; }
    .info-list { font-size: 11.5px; line-height: 1.75; }
    .footer { font-size: 10px; }
}

/* 横屏手机:压缩纵向间距,一屏放下 */
@media (max-height: 480px) and (orientation: landscape) {
    body { padding: 8px 12px; align-items: flex-start; }
    .card { padding: 16px 18px; }
    .logo-area { margin-bottom: 12px; }
    .brand-images { margin-bottom: 12px; }
    .brand-img { width: 80px; max-height: 80px; }
    .brand-x { width: 24px; height: 24px; font-size: 10px; }
    h1 { font-size: 20px; margin-bottom: 4px; }
    .subtitle { margin-bottom: 12px; font-size: 11.5px; line-height: 1.4; }
    .stats { margin-bottom: 12px; gap: 6px; }
    .stat { padding: 8px 4px 6px; }
    .stat-value { font-size: 12px; }
    .stat-label { font-size: 9px; }
    .stat-bar { height: 5px; margin-top: 2px; }
    .btn { padding: 10px; min-height: 42px; font-size: 13px; margin-bottom: 8px; }
    .info-section { margin-top: 14px; padding-top: 12px; }
    .info-list { font-size: 11px; line-height: 1.5; }
    .footer { margin-top: 12px; font-size: 10px; }
}
