:root {
    /* 配色方案：深空灰与品牌蓝 */
    --bg-color: #0f172a;       /* 深蓝灰背景 */
    --card-bg: #1e293b;        /* 卡片背景 */
    --text-main: #f8fafc;      /* 主要文字 */
    --text-muted: #94a3b8;     /* 次要文字 */
    --primary: #3b82f6;        /* 品牌主色 */
    --primary-hover: #2563eb;  /* 按钮悬停色 */
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 氛围背景光 */
.bg-gradient {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 卡片主体 */
.redirect-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5), 
        0 0 0 1px var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* 顶部图标区域 */
.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}
.icon-wrapper svg {
    width: 28px;
    height: 28px;
}

/* 状态与倒计时 */
.status-content h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.timer-wrapper {
    margin-bottom: 30px;
    font-variant-numeric: tabular-nums;
}

#countdown {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.unit {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 4px;
    vertical-align: baseline;
}

/* 目标地址框 */
.target-info {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.target-info .label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-text {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 14px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 进度条 */
.progress-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-fill {
    width: 0; /* 初始宽度 */
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    /* 关键：JS会在100ms后设置width为100%，这里设置3秒过渡以配合倒计时 */
    transition: width 3s linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* 替换 style.css 中的 .action-btn 相关样式 */

.action-btn {
    width: 100%;
    height: 52px;
    /* 使用品牌色渐变，比纯白更具科技感 */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* 添加投影，制造悬浮发光感 */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 悬停效果：上浮 + 投影加深 */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    filter: brightness(1.1);
}

/* 点击效果 */
.action-btn:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* 图标动画：悬停时箭头向右移动 */
.action-btn svg {
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: translateX(4px);
}

.footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.15);
}

/* 移动端适配优化 */
@media (max-width: 480px) {
    .redirect-card {
        padding: 30px 24px;
        box-shadow: none;
        background: transparent; /* 移动端融合背景 */
        border: none;
    }
    
    .target-info {
        background: rgba(30, 41, 59, 0.5);
    }
}