/* ========== Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f8fa;
    --card: #ffffff;
    --text: #1d2129;
    --text-2: #4e5969;
    --text-3: #86909c;
    --accent: #165dff;
    --accent-hover: #0e42d2;
    --accent-light: #e8f0fe;
    --warn-bg: #fff7e8;
    --warn-border: #ffcf69;
    --warn-text: #b25000;
    --border: #e5e6eb;
    --radius: 14px;
    --font: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
    --mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部装饰条 ========== */
.deco-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #165dff, #722ed1, #eb2f96, #fa8c16);
    background-size: 300% 100%;
    animation: barShift 8s ease infinite;
    z-index: 100;
}

@keyframes barShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ========== 布局 ========== */
.page {
    width: 100%;
    max-width: 500px;
    padding: 24px 16px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04),
                0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    padding: 40px 32px 28px;
    text-align: center;
    animation: enter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes enter {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Logo ========== */
.card-header { margin-bottom: 20px; }

.logo-link { display: inline-block; text-decoration: none; }

.logo {
    height: 50px;
    width: auto;
    /*opacity: 0.8;*/
    /*transition: opacity 0.2s;*/
}

.logo:hover { opacity: 1; }

/* ========== 图标 ========== */
.status-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-light);
    animation: pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* ========== 标题 ========== */
.title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: up 0.4s ease 0.2s both;
}

/* ========== 地址框 ========== */
.url-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
    animation: up 0.4s ease 0.25s both;
}

.url-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.url-host {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.url-full {
    
    font-size: 18px !important;
    font-family: var(--mono);
    color: var(--accent);
    word-break: break-all;
    line-height: 1.6;
    opacity: 0.8;
}

/* ========== 警告 ========== */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: left;
    color: var(--warn-text);
    font-size: 13px;
    line-height: 1.7;
    animation: up 0.4s ease 0.3s both;
}

.warning-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========== 按钮 ========== */
.btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: up 0.4s ease 0.35s both;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg);
    border-color: #d0d3d8;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 93, 255, 0.3);
}

.btn:active {
    transform: scale(0.97);
}

/* ========== 倒计时 ========== */
.countdown {
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 20px;
    animation: up 0.4s ease 0.4s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-bar {
    width: 80px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.countdown-bar-inner {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 100%;
}

#timer {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    min-width: 16px;
    text-align: right;
}

.cancel-btn {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.cancel-btn:hover {
    background: var(--bg);
    color: var(--text);
}

/* ========== 底部 ========== */
.footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-3);
    animation: up 0.4s ease 0.45s both;
}

.footer a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
}

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

/* ========== 通用动画 ========== */
@keyframes up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== 移动端 ========== */
@media (max-width: 540px) {
    .card { padding: 32px 20px 24px; }

    .btn-group { flex-direction: column-reverse; }

    .title { font-size: 16px; }

    .url-host { font-size: 14px; }
}