/* 极简风格 - 图片查看器 */
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* 图片显示区域 - 简化版本 */
#image-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#image-display img {
    max-width: none;
    height: auto;
    cursor: default;
    position: absolute;
    transform-origin: 0 0;
}
#image-display img:active {
    cursor: default;
}

/* 错误信息样式 */
.error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #dc3545;
    font-size: 16px;
    max-width: 400px;
    width: 90%;
    border: 1px solid #e9ecef;
    z-index: 100;
}

/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.language-btn:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    border-color: #adb5bd;
}

.language-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px; /* 统一圆角 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    min-width: 100px;
    overflow: hidden
}

.language-options a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f3f5;
}

.language-options a:last-child {
    border-bottom: none;
}

.language-options a:hover {
    background-color: #f8f9fa;
}

.language-options a.active {
    background-color: #e7f5ff;
    color: #0d6efd;
    font-weight: 600;
}

/* 显示下拉菜单 */
.language-switcher.show-options .language-options {
    opacity: 1;
    visibility: visible;
}
