/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    color: #333;
    background: #f5f5f5;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部/底部 */
.site-header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
}
.site-header h1 a {
    color: #fff;
    text-decoration: none;
}
.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}
.site-header nav ul li a {
    color: #fff;
    text-decoration: none;
}
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* 流程图节点样式 */
.flowchart-container {
    margin: 2rem 0;
}
.node {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.level-0 {
    border-left: 5px solid #3498db;
}
.level-1 {
    margin-left: 2rem;
    border-left: 5px solid #2ecc71;
    margin-top: 1rem;
}
.level-2 {
    margin-left: 4rem;
    border-left: 5px solid #e67e22;
    margin-top: 1rem;
}
.node h2, .node h3, .node h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 图片样式 */
.node-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.thumbnail {
    width: 100px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border 0.3s;
}
.thumbnail:hover, .thumbnail.selected {
    border: 2px solid #3498db;
}

/* 备注样式 */
.node-notes {
    margin: 1rem 0;
}
.note-box {
    padding: 1rem;
    border: 1px dashed #999;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
}

/* 登录/注册样式 */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-group button {
    width: 100%;
    padding: 0.8rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.error-message {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 1rem;
}
.auth-container p {
    text-align: center;
    margin-top: 1rem;
}

/* 关于/捐赠页面样式 */
.page-container {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}
.page-container h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}
.page-content {
    line-height: 1.6;
}
.donate-qrcode {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}
.donate-qrcode img {
    width: 200px;
    height: auto;
}

/* 图片放大弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* max-width: 90%;
    max-height: 90%; */
    cursor: move;
}
#modal-image {
    /* max-width: 100%;
    max-height: 90vh; */
    /* 核心：高清渲染优化 */
    image-rendering: -webkit-optimize-contrast; /* webkit内核（Chrome/Safari） */
    image-rendering: crisp-edges; /* 标准写法，强制像素对齐 */
    image-rendering: pixelated; /* 像素化渲染，适合位图 */
    /*transform: translateZ(0); *//* 开启GPU加速，提升渲染精度 */
    /*backface-visibility: hidden; */ /* 防止渲染闪烁/模糊 */
}
.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}