/* ============================================
   3Xray — Coming Soon 科技感样式
   ============================================ */

/* --- 基础变量 --- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0d1225;
    --accent-cyan: #00f0ff;
    --accent-blue: #0066ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --text-primary: #e8eaf6;
    --text-secondary: #8892b0;
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.1);
    --glow-blue: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(0, 102, 255, 0.1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- 背景粒子画布 --- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- 网格背景 --- */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(60px); }
}

/* --- 扫描线效果 --- */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
    0% { top: -4px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* --- 主容器 --- */
.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Logo区域 --- */
.logo-wrap {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.logo {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.logo-3 {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.logo-x {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
    animation: xGlow 2s ease-in-out infinite alternate;
}

@keyframes xGlow {
    from { text-shadow: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 40px rgba(0, 240, 255, 0.1); }
    to { text-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.2), 0 0 80px rgba(0, 240, 255, 0.1); }
}

.logo-ray {
    color: var(--text-primary);
    opacity: 0.8;
}

.logo-sub {
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* --- 主标题打字机 --- */
.headline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.5em;
}

.bracket {
    color: var(--accent-cyan);
    opacity: 0.6;
}

.typing {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 倒计时 --- */

/* --- 预计上线 --- */
.countdown-est {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.countdown-est #est-date {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    font-weight: 500;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 1rem 1.2rem;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    line-height: 1.2;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 0.3rem;
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-cyan);
    opacity: 0.4;
    animation: sepBlink 1s step-end infinite;
}

@keyframes sepBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.1; }
}

/* --- 提示文字 --- */
.hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 400px;
    line-height: 1.6;
}

/* --- 通知表单 --- */
.notify {
    width: 100%;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.03);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group:focus-within {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.input-group input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#notify-btn {
    padding: 0.9rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
    white-space: nowrap;
}

#notify-btn:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

#notify-btn:active {
    transform: scale(0.97);
}

.btn-icon {
    transition: transform 0.3s;
}

#notify-btn:hover .btn-icon {
    transform: translateX(3px);
}

.notify-msg {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0.6rem;
    min-height: 1.2em;
    color: var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s;
}

.notify-msg.show {
    opacity: 1;
}

/* --- 进度条 --- */
.progress-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 1px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    border-radius: 3px;
    transition: width 2s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.progress-percent {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    min-width: 3em;
    text-align: right;
}

/* --- 底部 --- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 1.5rem;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 0 auto 1rem;
    opacity: 0.4;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 1px;
}

/* --- 响应式 --- */
@media (max-width: 600px) {
    .logo { font-size: 2.5rem; letter-spacing: 2px; }
    .logo-sub { font-size: 0.65rem; letter-spacing: 4px; }
    .headline { font-size: 0.9rem; }
    .countdown-item { min-width: 55px; padding: 0.8rem 0.9rem; }
    .countdown-value { font-size: 1.6rem; }
    .countdown-sep { font-size: 1.3rem; }
    .input-group { flex-direction: column; border-radius: 12px; }
    #notify-btn { justify-content: center; padding: 0.8rem; }
    .progress-wrap { flex-wrap: wrap; }
    .footer { position: relative; margin-top: 3rem; }
}

@media (max-width: 380px) {
    .countdown { gap: 0.3rem; }
    .countdown-item { min-width: 48px; padding: 0.7rem 0.6rem; }
    .countdown-value { font-size: 1.3rem; }
}
