:root {
    --primary-color: #00e5ff;
    --secondary-color: #2979ff;
    --accent-color: #651fff;
    --background-color: #0a0e17;
    --text-color: #e0e0e0;
    --border-color: rgba(0, 229, 255, 0.3);
    --glow-color: rgba(0, 229, 255, 0.5);
    --box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    --font-main: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 星空背景 - 静态 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* 主容器样式 */
.maintenance-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 故障文字效果 */
.glitch-container {
    text-align: center;
    margin-bottom: 40px;
}

.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
    color: white;
    letter-spacing: 2px;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #00e5ff;
    animation: glitch-1 400ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #651fff;
    animation: glitch-2 400ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes glitch-1 {
    0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    }
    10% {
        clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
    }
    20% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }
    30% {
        clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
    }
    40% {
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    }
    50% {
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    }
    60% {
        clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
    }
    70% {
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
    80% {
        clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
    }
    90% {
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }
    100% {
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
    }
    15% {
        clip-path: polygon(0 65%, 100% 65%, 100% 65%, 0 65%);
    }
    30% {
        clip-path: polygon(0 85%, 100% 85%, 100% 85%, 0 85%);
    }
    45% {
        clip-path: polygon(0 85%, 100% 85%, 100% 85%, 0 85%);
    }
    60% {
        clip-path: polygon(0 55%, 100% 55%, 100% 55%, 0 55%);
    }
    75% {
        clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
    }
    80% {
        clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
    }
    95% {
        clip-path: polygon(0 85%, 100% 85%, 100% 85%, 0 85%);
    }
    100% {
        clip-path: polygon(0 55%, 100% 55%, 100% 60%, 0 60%);
    }
}

/* 消息容器样式 */
.message-container {
    margin-bottom: 40px;
}

.tech-border {
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    animation: borderGlow 3s infinite alternate;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
    }
}

.tech-box {
    background-color: rgba(10, 14, 23, 0.9);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    opacity: 0.8;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.message {
    position: relative;
    z-index: 1;
}

.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.server-icon {
    width: 80px;
    height: 120px;
    background: linear-gradient(to bottom, #1a1f2c, #0d1017);
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.server-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 2s infinite alternate;
}

.server-light:nth-child(2) {
    animation-delay: 0.5s;
}

.server-light:nth-child(3) {
    animation-delay: 1s;
}

@keyframes blink {
    0%, 80% {
        opacity: 1;
        box-shadow: 0 0 10px var(--primary-color);
    }
    100% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--primary-color);
    }
}

.message h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    color: white;
    letter-spacing: 1px;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #b0b0b0;
    font-size: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .details {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 2px solid var(--primary-color);
}

.detail-icon {
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.value {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

/* 进度条样式 */
.tech-progress {
    margin-top: 30px;
}

.progress-label {
    font-size: 14px;
    margin-bottom: 10px;
    color: #888;
}

.progress-bar {
    position: relative;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-track {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 37%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: progressPulse 2s infinite;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 37%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
    animation: progressGlow 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes progressGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(300%);
    }
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.status-text {
    color: #b0b0b0;
}

.status-percentage {
    color: var(--primary-color);
    font-weight: bold;
}

/* 电路装饰 */
.circuit-decoration {
    position: relative;
    height: 150px;
    margin-top: -50px;
    margin-bottom: -50px;
    overflow: hidden;
}

.circuit {
    width: 100%;
    height: 100%;
}

.circuit-path {
    fill: rgba(0, 229, 255, 0.05);
    stroke: var(--primary-color);
    stroke-width: 0.5;
    stroke-dasharray: 10;
    stroke-dashoffset: 0;
    animation: circuitAnimation 30s linear infinite;
}

@keyframes circuitAnimation {
    to {
        stroke-dashoffset: 1000;
    }
}

/* 页脚样式 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

.contact-info p {
    font-size: 14px;
    color: #888;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.company-info {
    text-align: right;
}

@media (max-width: 768px) {
    .company-info {
        text-align: center;
    }
}

.logo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 2px;
    color: white;
}

.logo span {
    color: var(--primary-color);
}

.company-info p {
    font-size: 12px;
    color: #666;
}

/* 浮动元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(10px);
}

#element1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 20s infinite alternate;
}

#element2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation: float 15s infinite alternate-reverse;
}

#element3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation: float 25s infinite alternate;
}

#element4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation: float 18s infinite alternate-reverse;
}

#element5 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 20%;
    animation: float 22s infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .tech-box {
        padding: 20px;
    }
    
    .message h2 {
        font-size: 20px;
    }
    
    .description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }
    
    .server-icon {
        width: 60px;
        height: 90px;
    }
    
    .message h2 {
        font-size: 18px;
    }
}