﻿/* 全局样式：完全匹配Chrome默认样式，清除默认边距/填充 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #202124;
    background-color: #ffffff; /* Chrome原生错误页面背景为纯白 */
}

/* Chrome原生错误页面核心样式 */
.chrome-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
}

/* 原生Chrome错误图标（超时错误的圆圈+感叹号，矢量图1:1还原） */
.chrome-error-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Ccircle cx='36' cy='36' r='36' fill='%23f1f3f4'/%3E%3Cpath d='M36 16c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2s-2-.9-2-2V18c0-1.1.9-2 2-2zm2 26c0 1.1-.9 2-2 2s-2-.9-2-2v-4c0-1.1.9-2 2-2s2 .9 2 2v4z' fill='%235f6368'/%3E%3Ccircle cx='36' cy='52' r='4' fill='%235f6368'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* 错误标题（无法访问此网站） */
.chrome-error-title {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* 域名+错误描述 */
.chrome-error-desc {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* 解决办法标题 */
.chrome-error-fix-title {
    font-size: 14px;
    color: #202124;
    text-align: left;
    width: 100%;
    max-width: 480px;
    margin-bottom: 8px;
}

/* 解决办法列表 */
.chrome-error-fix-list {
    list-style: none;
    text-align: left;
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
    padding-left: 0;
}
.chrome-error-fix-list li {
    margin-bottom: 8px;
    color: #202124;
    font-size: 14px;
    line-height: 1.5;
}
.chrome-error-fix-list li a {
    color: #1a73e8;
    text-decoration: none;
}
.chrome-error-fix-list li a:hover {
    text-decoration: underline;
}

/* 错误代码（ERR_CONNECTION_TIMED_OUT） */
.chrome-error-code {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* 按钮组（重新加载、详情） */
.chrome-error-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.chrome-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}
/* 重新加载按钮（原生蓝色） */
.chrome-reload-btn {
    background-color: #1a73e8;
    color: #ffffff;
}
.chrome-reload-btn:hover {
    background-color: #1557b0;
}
/* 详情按钮（原生浅灰边框） */
.chrome-details-btn {
    background-color: #ffffff;
    color: #202124;
    border: 1px solid #dadce0;
}
.chrome-details-btn:hover {
    background-color: #f8f9fa;
}

/* 详情折叠区域（原生隐藏，点击展开） */
.chrome-error-details {
    width: 100%;
    max-width: 480px;
    text-align: left;
    font-size: 12px;
    color: #5f6368;
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 4px;
    display: none; /* 默认隐藏 */
    white-space: pre-wrap; /* 保留换行，匹配原生错误详情 */
    line-height: 1.5;
}

/* 古风页面样式保留（《关雎》页面不修改） */
.poem-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #d4c8b8;
    font-family: "仿宋", "SimSun", serif;
    background-color: #f5f0e8;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23bfa88e' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.poem-title {
    text-align: center;
    font-size: 32px;
    color: #8b4513;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 2px;
}
.poem-author {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}
.poem-content {
    font-size: 22px;
    line-height: 2;
    color: #333;
    text-align: center;
    white-space: pre-line;
}
.flag-box {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
}
.flag-text {
    font-size: 24px;
    color: #8b4513;
    font-weight: bold;
    letter-spacing: 3px;
}