/**
 * Styles for the error pages
 * Updated with modern, responsive design
 */
body, div, h1, h2, h3, h4, h5, p, form, ul, li, dl, dt, dd, span, a, img, em, i, strong, b, input, select, textarea {
    margin: 0px;
    padding: 0px;
}

li {
    list-style: none;
}

img {
    border: 0 none;
    vertical-align: top;
}

em, i {
    font-style: normal;
}

a {
    text-decoration: none;
    color: #595858;
}

a:hover {
    cursor: pointer;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ===== 新的错误页面样式 ===== */
.error-page-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.error-content-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 50px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.error-illustration {
    margin-bottom: 30px;
}

.error-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-image {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.error-icon-symbol {
    font-size: 80px;
    color: #667eea;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.error-status-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    min-width: 50px;
}

.error-info {
    margin-bottom: 40px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.error-description {
    font-size: 18px;
    font-weight: 600;
    color: #c0392b;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.error-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.error-button:hover::before {
    width: 300px;
    height: 300px;
}

.error-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.error-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.error-button.primary:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 18px;
    line-height: 1;
    background: transparent;
}

/* ===== 保留旧样式以兼容 ===== */
.errorbox {
    width: 720px;
    height: 360px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -180px 0px 0px -360px;
}

.error_mian {
    text-align: center;
}

.errorbox h1 {
    font-size: 78px;
    font-weight: 900;
    text-align: center;
}

.error_txt {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    padding: 0px 30px;
}

.error_txt span {
    color: #ff0000;
}

.errormian {
    width: 740px;
    height: 400px;
    position: fixed;
    left: 50%;
    top: 40%;
    margin: -200px 0px 0px -370px;
}

.content-container {
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.error-container {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 90%;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 20px;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    vertical-align: baseline;
    display: inline-block;
    padding: 10px;
    width: 300px;
    height: 180px;
}

.error-message {
    font-size: 16px;
    margin: 30px 0;
}

.buttons a {
    text-decoration: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 5px;
    display: inline-block;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.retry-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    margin: 0;
    transition: .1s;
    font-weight: 500;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    padding: 12px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #409eff;
    border-color: #409eff;
    border-radius: 20px;
}

.cart-button {
    background-color: #007bff;
}

.cart-button:hover {
    background-color: #0069d9;
}

.support-button {
    background-color: #17a2b8;
}

.support-button:hover {
    background-color: #138496;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .error-page-container {
        padding: 15px;
    }

    .error-content-wrapper {
        padding: 35px 25px;
        border-radius: 16px;
    }

    .error-title {
        font-size: 26px;
    }

    .error-description {
        font-size: 16px;
        padding: 14px 18px;
    }

    .error-button {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .logo-image {
        max-width: 150px;
        max-height: 90px;
    }

    .error-icon-symbol {
        font-size: 60px;
    }

    .error-status-badge {
        font-size: 16px;
        padding: 6px 12px;
    }

    .error-container {
        padding: 25px;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .error-content-wrapper {
        padding: 30px 20px;
    }

    .error-title {
        font-size: 22px;
    }

    .error-description {
        font-size: 15px;
        padding: 12px 16px;
    }

    .error-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
