* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #05020a;
    font-family: "Rajdhani", "Segoe UI", monospace;
    color: #d8f1ff;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c0517, #15092a);
    z-index: 1;
}

.bg-noise {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("https://assets.codepen.io/13471/sparkles.gif");
    opacity: 0.15;
    z-index: 2;
}

.scanline {
    position: fixed;
    top: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 255, 0.15);
    animation: scanline 4s linear infinite;
    z-index: -5;
}

@keyframes scanline {
    0% {
        top: 0
    }
    100% {
        top: 100%
    }
}

/* 七星容器 */
.star-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.star {
    border-radius: 50%;
    position: absolute;
    opacity: 0.95;
    transition: transform 0.1s;
    filter: drop-shadow(0 0 12px cyan);
    object-fit: cover;
}

/* UI 面板 */
.panel {
    width: 92%;
    max-width: 520px;
    margin: 20px auto;
    padding: 16px;
    border: 1px solid rgba(0, 255, 255, 0.28);
    background: rgba(10, 15, 35, 0.55);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px #0ff3;
    word-break: break-word;
}

.title {
    text-align: center;
    font-size: 26px;
    color: #00eaff;
    text-shadow: 0 0 12px #00eaff;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* 每行项目 */
.item {
    padding: 10px 8px;
    margin: 8px 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

.item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    animation: cyber-scan 2.5s infinite linear;
    pointer-events: none;
}

@keyframes cyber-scan {
    to {
        transform: translateX(100%);
    }
}

/* 左侧域名占剩余空间，可换行 */
.domain {
    color: #8ad4ff;
    font-size: 15px;
    overflow-wrap: anywhere;
    flex: 1 1 auto;
    margin-right: 10px;
}

/* 右侧按钮+延迟固定靠右 */
.right-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    justify-content: flex-end;
}

/* 延迟文本 */
.delay {
    font-size: 16px;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
    color: #7cffd5;
}

.timeout {
    color: #ff5f8b;
}

/* 按钮 */
.btn-domain {
    padding: 8px 14px;
    font-size: 14px;
    min-width: 50px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ff0099, #00eaff);
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 4px #fff;
    transition: 0.25s;
}

.btn-domain:hover {
    transform: scale(1.05);
}

/* 手机端优化 */
@media (max-width: 480px) {
    .panel {
        padding: 14px;
    }

    .title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .item {
        font-size: 13px;
        padding: 8px 6px;
        align-items: flex-start;
    }

    .btn-domain {
        font-size: 13px;
        padding: 6px 12px;
    }

    .delay {
        font-size: 14px;
        min-width: 50px;
    }
}