/* ========================================
   EPB 网站维护中 — 样式表
   ======================================== */

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

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --bg-dark: #0a0e1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.15) 50%, rgba(6,182,212,0.15) 100%);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Background Particles ---------- */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.bg-particles::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -100px;
    left: -100px;
}

.bg-particles::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Particle dots */
.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: drift linear infinite;
}

@keyframes drift {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    to { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ---------- Layout ---------- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Main ---------- */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* ---------- Maintenance Icon ---------- */
.maintenance-icon {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 48px;
}

.gear {
    position: absolute;
    color: var(--primary);
    animation: rotate 8s linear infinite;
}

.gear-large {
    width: 100px;
    height: 100px;
    top: 10px;
    left: 10px;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.gear-small {
    width: 60px;
    height: 60px;
    bottom: 0;
    right: 0;
    color: var(--secondary);
    animation: rotate-reverse 6s linear infinite;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.5));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ---------- Title ---------- */
.title {
    text-align: center;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s ease-out;
}

.title-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* ---------- Description ---------- */
.description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ---------- Countdown ---------- */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.countdown-num:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-sep {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    animation: blink 1s ease-in-out infinite;
    margin-bottom: 20px;
}

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

/* ---------- Progress Section ---------- */
.progress-section {
    max-width: 500px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
    border-radius: 4px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Status Steps ---------- */
.status-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.completed {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.step.completed .step-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.step.completed .step-dot::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #fff;
}

.step.active {
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.step.active .step-dot {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.step-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ---------- Contact Section ---------- */
.contact-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.contact-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Notify Section ---------- */
.notify-section {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.notify-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.notify-form {
    display: flex;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    transition: var(--transition);
}

.notify-form:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.notify-input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.notify-input::placeholder {
    color: var(--text-muted);
}

.notify-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gradient-main);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.notify-btn svg {
    width: 16px;
    height: 16px;
}

.notify-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.notify-btn:active {
    transform: scale(0.98);
}

/* ---------- Footer ---------- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 14px 28px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius);
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .title-line {
        font-size: 1.75rem;
    }

    .title-sub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .description {
        font-size: 1rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-num {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }

    .countdown-sep {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }

    .maintenance-icon {
        width: 110px;
        height: 110px;
        margin-bottom: 36px;
    }

    .gear-large {
        width: 80px;
        height: 80px;
    }

    .gear-small {
        width: 48px;
        height: 48px;
    }

    .status-steps {
        gap: 6px;
    }

    .step {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    .contact-items {
        flex-direction: column;
        gap: 12px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .title-line {
        font-size: 1.5rem;
    }

    .countdown-num {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .notify-form {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }

    .notify-input {
        width: 100%;
        text-align: center;
    }

    .notify-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Dark mode enhancement ---------- */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-dark);
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
