﻿/* 错误页面样式 */
.error-container {
    background-color: #ffffff8c;
    /*backdrop-filter: blur(15px);*/
    -webkit-backdrop-filter: blur(15px);
    box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
    border-radius: 10px;
    padding: 40px;
    text-align: left;
    max-width: 800px;
    width: 90%;
    margin: 20px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.error-icon {
    width: 48px;
    height: 48px;
    margin: 0 0 20px;
    color: #EE675C;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-trace {
    background: rgba(238, 103, 92, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    font-family: monospace;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 200px);
}

.error-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(238, 103, 92, 0.2);
    word-wrap: break-word;
}

.error-type {
    color: #EE675C;
    font-weight: bold;
    margin-right: 8px;
    display: block;
    margin-bottom: 8px;
    word-break: break-all;
}

.error-message {
    color: #666;
    word-wrap: break-word;
}

.stack-trace {
    font-size: 14px;
}

.stack-item {
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 2px solid rgba(238, 103, 92, 0.2);
}

.stack-file {
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.stack-code {
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
    border-radius: 4px;
    margin: 0;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #7257fa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.error-button--secondary {
    background-color: transparent;
    border: 1px solid #7257fa;
    color: #7257fa;
}

.error-button:hover {
    background-color: #5a41d9;
    transform: translateY(-2px);
}

.error-button--secondary:hover {
    background-color: rgba(114, 87, 250, 0.1);
}

.error-button svg {
    width: 16px;
    height: 16px;
}

@media only screen and (max-width: 450px) {
    .error-container {
        padding: 24px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-trace {
        padding: 16px;
        font-size: 12px;
    }

    .stack-code {
        padding: 6px;
        overflow-x: auto;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
        justify-content: center;
    }

    .error-type {
        font-size: 13px;
        line-height: 1.4;
    }

    .error-message {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* 自定义滚动条样式 */
.error-trace::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.error-trace::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.error-trace::-webkit-scrollbar-thumb {
    background: rgba(238, 103, 92, 0.3);
    border-radius: 3px;
}

.error-trace::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 103, 92, 0.5);
}

.stack-code::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.stack-code::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.stack-code::-webkit-scrollbar-thumb {
    background: rgba(238, 103, 92, 0.3);
    border-radius: 3px;
}

.stack-code::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 103, 92, 0.5);
}


/* 重定向页面样式 */
.redirect-container .error-icon {
    color: #7257fa; /* 改变图标颜色 */
}

.redirect-content {
    background: rgba(114, 87, 250, 0.1); /* 改变背景色 */
}

.redirect-content .error-info {
    border-bottom-color: rgba(114, 87, 250, 0.2);
}

.redirect-content .error-type {
    color: #7257fa;
}

.redirect-progress {
    position: relative;
    height: 4px;
    background: rgba(114, 87, 250, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #7257fa;
    width: 0;
    transition: width 1s linear;
}

.countdown {
    position: absolute;
    right: 0;
    top: -25px;
    color: #7257fa;
    font-size: 14px;
}

/* 移动端适配 */
@media only screen and (max-width: 450px) {
    .redirect-progress {
        margin-top: 16px;
    }

    .countdown {
        font-size: 12px;
        top: -20px;
    }
}


/* 404页面样式 */
.not-found-container .error-icon {
    color: #6E6B80; /* 使用更柔和的颜色 */
}

.not-found-content {
    background: rgba(110, 107, 128, 0.1);
}

.not-found-content .error-info {
    border-bottom-color: rgba(110, 107, 128, 0.2);
}

.not-found-content .error-type {
    color: #6E6B80;
}

.not-found-suggestions {
    margin-top: 24px;
    color: #666;
    background: rgba(110, 107, 128, 0.05);
    border-radius: 6px;
    padding: 16px 20px;
}

.not-found-suggestions h3 {
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 500;
    color: #6E6B80;
    display: flex;
    align-items: center;
}

.not-found-suggestions h3:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #6E6B80;
    border-radius: 2px;
    margin-right: 12px;
}

.not-found-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.not-found-suggestions li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.not-found-suggestions li:last-child {
    margin-bottom: 0;
}

.not-found-suggestions li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6B80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.6;
}

/* 移动端适配 */
@media only screen and (max-width: 450px) {
    .not-found-suggestions {
        margin-top: 20px;
        padding: 12px 16px;
    }

    .not-found-suggestions h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .not-found-suggestions h3:before {
        height: 14px;
        margin-right: 10px;
    }

    .not-found-suggestions li {
        font-size: 13px;
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .not-found-suggestions li:before {
        width: 14px;
        height: 14px;
    }
}

/* 500服务器错误页面样式 */
.server-error-container .error-icon {
    color: #F6A609; /* 使用警告色 */
}

.server-error-content {
    background: rgba(246, 166, 9, 0.1);
}

.server-error-content .error-info {
    border-bottom-color: rgba(246, 166, 9, 0.2);
}

.server-error-content .error-type {
    color: #F6A609;
}

.server-error-details {
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.server-error-details h3 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
}

.error-detail-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.error-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #666;
    min-width: 80px;
    margin-right: 12px;
}

.detail-value {
    color: #333;
    word-break: break-all;
}

.server-error-help {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.server-error-help h3 {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.server-error-help h3:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #F6A609;
    border-radius: 2px;
    margin-right: 12px;
}

.server-error-help ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.server-error-help li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.server-error-help li:last-child {
    margin-bottom: 0;
}

.server-error-help li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6A609' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.6;
}

/* 移动端适配 */
@media only screen and (max-width: 450px) {
    .server-error-details,
    .server-error-help {
        padding: 12px;
        margin-top: 16px;
    }

    .server-error-details h3,
    .server-error-help h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .server-error-help h3:before {
        height: 14px;
        margin-right: 10px;
    }

    .server-error-help li {
        font-size: 13px;
        padding-left: 20px;
        margin-bottom: 8px;
    }

    .server-error-help li:before {
        width: 14px;
        height: 14px;
    }
}