body { font-family: Arial, sans-serif; margin: 0; background-color: #fff; } h2 { text-align: center; color: #333; } /* 缩略图画廊布局 */ .gallery { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; } .gallery img { width: 200px;  object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } .gallery img:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.15); } .viewer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); /* 暗色半透明背景 */ display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.1s ease; } .viewer-overlay.active { opacity: 1; pointer-events: auto; } .viewer-image { max-width: 99%; max-height: 99%; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.1s ease; } .viewer-overlay.active .viewer-image { transform: scale(1); } .viewer-close-btn { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background-color: rgba(255, 255, 255, 0.1); color: #fff; border: none; border-radius: 50%; font-size: 28px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background-color 0.1s; } a{ text-decoration: none; color: inherit; } .viewer-close-btn:hover { background-color: rgba(255, 255, 255, 0.25); } .mm{scrollbar-width: none; width: 100%; white-space: nowrap; overflow-x: scroll; overflow-y: hidden; text-align: center; box-sizing: border-box;margin: 5px 0; border-bottom: 1px solid #ccc; text-align:center; height: 36px; line-height: 36px;} .mm a {display:inline-block;margin:0 10px;} .c-r{color:red} .mm a:hover{color:red}