/* 超自然行动组分层地图导航系统 - 前台样式 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏可能的外部插件按钮 */
[class*="回归"], [class*="首页"], [id*="回归"], [id*="首页"],
.plugin-button, .extension-button, .back-to-home {
    display: none !important;
    visibility: hidden !important;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 确保触摸目标足够大 */
    button, 
    .btn, 
    .type-card, 
    .shape-card, 
    .door-card,
    .map-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* 优化点击响应 */
    .type-card:active, 
    .shape-card:active, 
    .door-card:active,
    .map-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* 全局重置，强制移除所有可能的边框样式 */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 专门针对图片的全局重置 */
img {
    border: none !important;
    outline: none !important;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 60% 70%, rgba(255, 200, 120, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 10% 30%, rgba(200, 255, 200, 0.3) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: -2;
}

/* 浮动方块动画 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 大方块 - 更显眼的颜色 */
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 80% 80%, rgba(255, 200, 200, 0.18) 4px, transparent 4px),
        radial-gradient(circle at 40% 60%, rgba(200, 255, 255, 0.15) 2.5px, transparent 2.5px),
        /* 中方块 - 彩色效果 */
        radial-gradient(circle at 60% 30%, rgba(255, 255, 200, 0.2) 3.5px, transparent 3.5px),
        radial-gradient(circle at 30% 70%, rgba(200, 255, 200, 0.18) 3px, transparent 3px),
        /* 小方块 - 更亮的颜色 */
        radial-gradient(circle at 70% 10%, rgba(255, 200, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 20% 90%, rgba(200, 200, 255, 0.18) 2.5px, transparent 2.5px),
        radial-gradient(circle at 90% 50%, rgba(255, 255, 150, 0.12) 1.5px, transparent 1.5px),
        /* 新增更多方块 */
        radial-gradient(circle at 50% 10%, rgba(255, 150, 150, 0.16) 2px, transparent 2px),
        radial-gradient(circle at 15% 50%, rgba(150, 255, 150, 0.14) 2.2px, transparent 2.2px);
    background-size: 
        180px 180px,
        220px 220px,
        160px 160px,
        200px 200px,
        170px 170px,
        140px 140px,
        150px 150px,
        130px 130px,
        190px 190px,
        165px 165px;
    animation: floatingSquares 20s linear infinite;
    z-index: -1;
}

/* 背景渐变动画 */
@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 60% 70%, rgba(255, 200, 120, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 10% 30%, rgba(200, 255, 200, 0.3) 0%, transparent 50%);
    }
    25% {
        background: 
            radial-gradient(circle at 60% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 20% 60%, rgba(120, 219, 255, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 80% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 30% 10%, rgba(200, 255, 200, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 70% 50%, rgba(255, 200, 120, 0.3) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 40% 60%, rgba(120, 219, 255, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 80% 40%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 20% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 90% 80%, rgba(255, 200, 120, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 10% 70%, rgba(200, 255, 200, 0.3) 0%, transparent 50%);
    }
    75% {
        background: 
            radial-gradient(circle at 70% 30%, rgba(255, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 30% 80%, rgba(120, 219, 255, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 60% 10%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
            radial-gradient(circle at 40% 90%, rgba(200, 255, 200, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 60%, rgba(255, 200, 120, 0.3) 0%, transparent 50%);
    }
}

/* 浮动方块动画 */
@keyframes floatingSquares {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    20% {
        transform: translateY(-15px) translateX(10px) rotate(72deg) scale(1.1);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-30px) translateX(-5px) rotate(144deg) scale(0.9);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-20px) translateX(-15px) rotate(216deg) scale(1.05);
        opacity: 0.6;
    }
    80% {
        transform: translateY(-10px) translateX(5px) rotate(288deg) scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
        opacity: 0.9;
    }
}

/* 添加动态几何图形 */
.animated-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.shape:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 70%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.shape:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 50%;
    animation-delay: -8s;
    animation-duration: 16s;
}

/* 几何图形浮动动画 */
@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-40px) translateX(25px) rotate(90deg) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-80px) translateX(-15px) rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) translateX(-25px) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
        opacity: 0.4;
    }
}

/* 脉冲效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* 为某些形状添加脉冲效果 */
.shape:nth-child(2),
.shape:nth-child(4) {
    animation: float 15s infinite linear, pulse 3s infinite ease-in-out;
}

/* 新增几何图形样式 */
.shape-triangle {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 85%;
    border-radius: 0;
    background: rgba(255, 200, 200, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 18s infinite linear, pulse 4s infinite ease-in-out;
    animation-delay: -3s;
}

.shape-square {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 75%;
    border-radius: 0;
    background: rgba(200, 255, 200, 0.2);
    animation: float 22s infinite linear, pulse 2.5s infinite ease-in-out;
    animation-delay: -7s;
}

.shape-diamond {
    width: 45px;
    height: 45px;
    top: 85%;
    left: 15%;
    border-radius: 0;
    background: rgba(200, 200, 255, 0.2);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: float 16s infinite linear, pulse 3.5s infinite ease-in-out;
    animation-delay: -5s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 179, 186, 0.2);
    margin-bottom: 20px;
    border-radius: 20px;
    position: relative;
}

.header-content {
    padding: 20px 0;
}

.site-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #6b4c93;
    text-shadow: 2px 2px 4px rgba(255, 179, 186, 0.3);
}

.title-icon {
    font-size: 2.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

.subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: #8b7fa8;
    margin-top: 5px;
}

/* 分步导航样式 */
.step-navigation {
    margin-bottom: 30px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0e6ff;
    color: #b3a3d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #ffb3ba, #b3ffb3);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 179, 186, 0.4);
}

.step.completed .step-number {
    background: #b3ffb3;
    color: #4a4a4a;
}

.step-label {
    font-size: 0.9rem;
    color: #6b4c93;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #8b4c93;
    font-weight: 600;
}

/* 选择器区域样式 */
.selector-area {
    margin-bottom: 20px;
}

.selection-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.15);
}

.selection-panel h2 {
    text-align: center;
    color: #6b4c93;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    color: #8b7fa8;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #b3d9ff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 网格布局样式 */
.type-grid, .shape-grid, .variant-grid, .door-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.type-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.shape-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.variant-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.door-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* 卡片样式 */
.type-card, .shape-card, .variant-card, .door-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #6b4c93;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 179, 186, 0.15);
    border: 2px solid transparent;
}

.type-card:hover, .shape-card:hover, .door-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.25);
    border-color: #ffb3ba;
}

.type-icon, .shape-icon, .variant-icon, .door-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.type-card h3, .shape-card h3, .door-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6b4c93;
}

.type-card p {
    color: #8b7fa8;
    font-size: 0.95rem;
}

/* 主要内容样式 */
.main-content {
    padding: 20px 0;
    /* 为固定的底部留出空间 */
    padding-bottom: 100px;
}

/* 地图区块样式 */
.maps-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.15);
    margin-bottom: 30px;
}

.maps-header {
    margin-bottom: 30px;
}

.maps-title {
    font-size: 2rem;
    color: #6b4c93;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-count {
    font-size: 1rem;
    color: #8b7fa8;
    font-weight: 400;
    margin-left: auto;
}

.filter-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.filter-tag {
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
    color: #4a4a4a;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 地图网格样式 */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 确保所有卡片高度一致 */
.maps-grid:not(.list-view) .map-item {
    display: flex;
    flex-direction: column;
    height: auto;
    align-items: stretch;
}

.map-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 179, 186, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative; /* 为绝对定位的子元素提供定位上下文 */
    display: flex;
    flex-direction: column;
    height: auto; /* 让高度自适应内容 */
}

.map-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.25);
    border-color: #ffb3ba;
}

.map-image {
    position: relative;
    width: 100%;
    height: 200px; /* 回退方案 */
    aspect-ratio: 16/10; /* 统一的宽高比 */
    overflow: hidden;
    background: #f7fafc;
    border-radius: 12px 12px 0 0;
}

/* 对于支持aspect-ratio的浏览器，移除固定高度 */
@supports (aspect-ratio: 16/10) {
    .map-image {
        height: auto;
    }
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.map-image img.loaded {
    opacity: 1;
}

/* 确保图片正常显示 */
.map-image img {
    opacity: 1 !important;
}

/* 隐藏加载指示器 */
.mini-loader {
    display: none !important;
}

.map-item:hover .map-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-item:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 8px;
}

.view-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.map-info {
    padding: 20px;
    flex: 1; /* 确保信息区域填充剩余空间 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px; /* 最小高度确保一致性 */
}

.map-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b4c93;
    margin-bottom: 10px;
    line-height: 1.4;
}

.map-description {
    color: #8b7fa8;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.map-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    color: #b3a3d9;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.15);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #6b4c93;
    margin-bottom: 10px;
}

.empty-state p {
    color: #8b7fa8;
    margin-bottom: 25px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 179, 186, 0.3);
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #d9b3ff, #b3e6e6);
    box-shadow: 0 4px 15px rgba(217, 179, 255, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(217, 179, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
    color: #4a4a4a;
    box-shadow: 0 4px 15px rgba(255, 179, 186, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 179, 186, 0.4);
}

/* 图片模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(255, 179, 186, 0.9), rgba(179, 217, 255, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
}

.modal-filename {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-image-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 80px;
    overflow: hidden;
    cursor: default;
    /* 确保容器也没有边框 */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 确保模态框的所有子元素都没有边框 */
.image-modal *,
.image-modal *::before,
.image-modal *::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    transform-origin: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* 强制移除所有可能的边框和轮廓 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modal-image:focus,
.modal-image:active,
.modal-image:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 额外强制移除所有可能的边框和轮廓 */
.modal-image,
.modal-image *,
.modal-image::before,
.modal-image::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* 移除选中状态的边框 */
.modal-image::selection {
    background: transparent;
}

.modal-image::-moz-selection {
    background: transparent;
}

.modal-image.zoomed {
    cursor: grab;
    transform: scale(2);
    max-width: none;
    max-height: none;
    transition: none;
}

.modal-image.zoomed.dragging {
    cursor: grabbing;
}

.zoom-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-image-container:hover .zoom-hint {
    opacity: 1;
}

.modal-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(255, 179, 186, 0.9), rgba(179, 217, 255, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    max-width: 300px;
}

/* 错误消息样式 */
.error-message {
    background: #ffe6e6;
    color: #d94d4d;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ffb3ba;
}

/* 底部样式 */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-radius: 20px 20px 0 0;
    color: #8b7fa8;
    /* 确保底部固定在页面最下方 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.main-footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.main-footer a {
    color: #b3d9ff;
    text-decoration: none;
    font-weight: 500;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* 地图类型标签 - 重新设计防止重合 */
.map-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    pointer-events: none; /* 防止阻止点击事件 */
    max-width: 80px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-type-badge.jingjue {
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
}

.map-type-badge.kunlun {
    background: linear-gradient(135deg, #d9b3ff, #b3e6e6);
}

/* 地图标签覆盖层 - 重新设计防止重合 */
.map-labels {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    max-width: 120px; /* 限制最大宽度 */
}

.shape-label,
.variant-label,
.position-label {
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    max-width: 100px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.shape-label {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.variant-label {
    background: rgba(34, 197, 94, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.9);
}

.position-label {
    background: rgba(0, 0, 0, 0.6);
}

.position-label.up {
    background: rgba(34, 197, 94, 0.8);
}

.position-label.left {
    background: rgba(59, 130, 246, 0.8);
}

.position-label.down {
    background: rgba(239, 68, 68, 0.8);
}

.position-label.right {
    background: rgba(245, 158, 11, 0.8);
}

/* 快速筛选栏 */
.quick-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(255, 179, 186, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* 确保子元素可以被交互 */
    pointer-events: auto;
}

.search-group {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.quick-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0e6ff;
    border-radius: 25px;
    font-size: 14px;
    background: #faf8ff;
    transition: all 0.3s ease;
}

.quick-search:focus {
    outline: none;
    border-color: #ffb3ba;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 179, 186, 0.1);
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #b3a3d9;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #8b7fa8;
}

.view-controls {
    display: flex;
    gap: 8px;
    background: #f0e6ff;
    padding: 4px;
    border-radius: 12px;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    color: #8b7fa8;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.view-btn.active,
.view-btn:hover {
    background: white;
    color: #ffb3ba;
    box-shadow: 0 2px 4px rgba(255, 179, 186, 0.2);
}

/* 确保视图按钮可以点击 */
.view-controls .view-btn {
    pointer-events: auto !important;
    z-index: 1000;
    position: relative;
    background: transparent !important;
    border: none !important;
    outline: none;
    /* 确保按钮区域响应点击 */
    display: inline-block !important;
    cursor: pointer !important;
}

/* 解决可能的层级问题 */
.view-controls {
    z-index: 999;
    position: relative;
    pointer-events: auto !important;
}

/* 特别针对列表视图按钮的修复 */
#listViewBtn {
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    color: #8b7fa8 !important;
    transition: all 0.2s ease !important;
}

#listViewBtn:hover,
#listViewBtn.active {
    background: white !important;
    color: #ffb3ba !important;
    box-shadow: 0 2px 4px rgba(255, 179, 186, 0.2) !important;
}

/* 确保网格视图按钮也有相同保障 */
#gridViewBtn {
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.view-controls .view-btn:focus {
    outline: 2px solid #ffb3ba;
    outline-offset: 2px;
}

/* 列表视图样式 */
.maps-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%; /* 确保宽度一致 */
}

/* 确保列表视图在所有设备上的一致性 */
.maps-grid.list-view .map-item {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* 确保子元素高度一致 */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    height: 120px; /* 统一高度 */
    min-height: 120px; /* 确保最小高度 */
    max-height: 120px; /* 确保最大高度 */
    margin-bottom: 15px;
    transition: all 0.3s ease;
    max-width: none;
    width: 100%; /* 确保宽度一致 */
    box-sizing: border-box;
}

/* 确保列表视图在所有设备上的一致性 */
.maps-grid.list-view .map-item {
    display: flex;
    flex-direction: row;
    align-items: stretch; /* 确保子元素高度一致 */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0;
    height: 120px; /* 统一高度 */
    min-height: 120px; /* 确保最小高度 */
    max-height: 120px; /* 确保最大高度 */
    margin-bottom: 15px;
    transition: all 0.3s ease;
    max-width: none;
    width: 100%; /* 确保宽度一致 */
    box-sizing: border-box;
}

.maps-grid.list-view .map-image {
    width: 180px;
    height: 100%;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
    aspect-ratio: unset; /* 取消aspect-ratio，使用容器高度 */
    position: relative; /* 为标签定位提供上下文 */
}

.maps-grid.list-view .map-info {
    flex: 1;
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* 占满容器高度 */
    overflow: hidden; /* 防止内容溢出 */
    min-width: 0; /* 允许flex子项收缩 */
}

.maps-grid.list-view .map-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 标题单行显示 */
}

.maps-grid.list-view .map-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
    white-space: normal;
    flex: 1; /* 占用剩余空间 */
}

.maps-grid.list-view .map-meta {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 隐藏的地图项 */
.map-item.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .main-header {
        padding: 25px 0;
        margin-bottom: 20px;
        border-radius: 25px;
    }
    
    .site-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .step-indicator {
        gap: 20px;
    }
    
    .step {
        min-width: 120px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .selection-panel {
        padding: 25px;
        margin-bottom: 25px;
        border-radius: 20px;
    }
    
    .selection-panel h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .type-grid, .shape-grid, .door-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .type-card, .shape-card, .door-card {
        padding: 25px;
        border-radius: 15px;
        transition: all 0.2s ease;
        margin-bottom: 15px;
    }
    
    .type-card:hover, .shape-card:hover, .door-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .type-icon, .shape-icon, .variant-icon, .door-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .maps-section {
        padding: 0;
    }
    
    .maps-header {
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .breadcrumb {
        margin-bottom: 15px;
        font-size: 0.9rem;
        padding: 15px 0;
    }
    
    .maps-title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .map-count {
        margin-left: 0;
        font-size: 1rem;
        color: #8b7fa8;
    }
    
    .filter-summary {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .filter-tag {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
        background: #ffb3ba;
        color: white;
        font-weight: 500;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 5px;
    }
    
    .map-item {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.2s ease;
        background: white;
    }
    
    .map-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .map-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
    }
    
    .map-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s ease;
    }
    
    .map-info {
        padding: 20px;
        min-height: 100px;
        background: white;
    }
    
    .map-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        font-weight: 600;
        color: #6b4c93;
        line-height: 1.3;
    }
    
    .map-description {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #8b7fa8;
        line-height: 1.4;
    }
    
    .map-meta {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .meta-item {
        font-size: 0.9rem;
        color: #b3a3d9;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        background: #faf8ff;
        border-radius: 8px;
    }
    
    .map-type-badge {
        font-size: 12px;
        padding: 6px 10px;
        top: 12px;
        left: 12px;
        border-radius: 8px;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .map-labels {
        top: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .shape-label,
    .position-label {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 6px;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .quick-filters {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
        margin-bottom: 25px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .search-group {
        width: 100%;
        position: relative;
    }
    
    .quick-search {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #f0e6ff;
        border-radius: 12px;
        outline: none;
        transition: border-color 0.2s ease;
        background: white;
    }
    
    .quick-search:focus {
        border-color: #ffb3ba;
    }
    
    .clear-search {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: #f0e6ff;
        border: none;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #8b7fa8;
        cursor: pointer;
    }
    
    .view-controls {
        display: flex;
        gap: 6px;
        justify-content: center;
        background: #faf8ff;
        padding: 6px;
        border-radius: 10px;
    }
    
    .view-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 18px;
        border: none;
        background: transparent;
        color: #8b7fa8;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .view-btn.active {
        background: white;
        color: #ffb3ba;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* 列表视图 */
    .maps-grid.list-view .map-item {
        display: flex;
        align-items: center;
        background: white;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        padding: 0;
        height: 120px;
        margin-bottom: 15px;
        transition: all 0.2s ease;
    }
    
    .maps-grid.list-view .map-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .maps-grid.list-view .map-image {
        width: 120px;
        height: 100px;
        flex-shrink: 0;
        margin: 10px;
        border-radius: 10px;
        overflow: hidden;
    }
    
    .maps-grid.list-view .map-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .maps-grid.list-view .map-info {
        flex: 1;
        padding: 15px 20px 15px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        overflow: hidden;
    }
    
    .maps-grid.list-view .map-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        color: #6b4c93;
    }
    
    .maps-grid.list-view .map-description {
        font-size: 1rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #8b7fa8;
        flex: 1;
    }
    
    .maps-grid.list-view .map-meta {
        gap: 10px;
    }
    
    .maps-grid.list-view .meta-item {
        font-size: 0.85rem;
        padding: 4px 10px;
        background: #f0e6ff;
        border-radius: 6px;
    }
    
    .modal-container {
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-filename {
        font-size: 1.2rem;
    }
    
    .modal-image-container {
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .modal-image.zoomed {
        border-radius: 10px;
    }
    
    .modal-actions {
        padding: 20px;
        gap: 15px;
    }
    
    .modal-description {
        padding: 20px;
        font-size: 1rem;
    }
    
    .empty-actions {
        gap: 15px;
    }
}

/* 缩略图加载状态 */
.mini-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mini-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-top: 2px solid #ffb3ba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片加载指示器样式 */
.image-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.image-loading-indicator .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-top: 2px solid #ffb3ba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loading-indicator .loading-text {
    font-size: 12px;
    color: #6b4c93;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* 图片错误指示器样式 */
.image-error-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    min-width: 120px;
    animation: fadeInScale 0.3s ease-out;
}

.image-error-indicator .error-icon {
    font-size: 20px;
    color: #ef4444;
}

.image-error-indicator .error-text {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* 图片加载状态优化 */
.map-image {
    position: relative;
    width: 100%;
    height: 200px; /* 回退方案 */
    aspect-ratio: 16/10; /* 统一的宽高比 */
    overflow: hidden;
    background: #f7fafc;
    border-radius: 12px 12px 0 0;
    /* 添加加载状态背景 */
    background-image: 
        linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
        linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: loadingShimmer 2s linear infinite;
}

@keyframes loadingShimmer {
    0% {
        background-position: 0 0, 10px 10px;
    }
    100% {
        background-position: 20px 20px, 30px 30px;
    }
}

/* 图片加载完成后的状态 */
.map-image img.loaded {
    opacity: 1;
    background: transparent;
    animation: none;
}

/* 移动端加载指示器优化 */
@media (max-width: 768px) {
    .image-loading-indicator,
    .image-error-indicator {
        padding: 12px 16px;
        min-width: 100px;
        border-radius: 8px;
    }
    
    .image-loading-indicator .loading-spinner {
        width: 20px;
        height: 20px;
    }
    
    .image-loading-indicator .loading-text,
    .image-error-indicator .error-text {
        font-size: 11px;
    }
    
    .image-error-indicator .error-icon {
        font-size: 18px;
    }
}

/* 小屏幕设备加载指示器优化 */
@media (max-width: 480px) {
    .image-loading-indicator,
    .image-error-indicator {
        padding: 10px 12px;
        min-width: 80px;
        border-radius: 6px;
    }
    
    .image-loading-indicator .loading-spinner {
        width: 18px;
        height: 18px;
    }
    
    .image-loading-indicator .loading-text,
    .image-error-indicator .error-text {
        font-size: 10px;
    }
    
    .image-error-indicator .error-icon {
        font-size: 16px;
    }
}

.image-error-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
    backdrop-filter: blur(5px);
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .title-icon {
        font-size: 1.8rem;
    }
    
    .selection-panel h2 {
        font-size: 1.3rem;
    }
    
    .type-card h3, .shape-card h3, .door-card h3 {
        font-size: 1.1rem;
    }
    
    /* 地图图片使用统一的aspect-ratio */
    
    .map-title {
        font-size: 1.1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 优化滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff9aa2, #a3c9ff);
}

/* 小屏设备优化 */
@media (max-width: 600px) {
    .maps-grid {
        grid-template-columns: 1fr; /* 小屏设备强制单列 */
        gap: 12px;
    }
    
    .map-item {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* 移动端优化 - 重新设计 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .main-header {
        padding: 15px 0;
        margin-bottom: 15px;
        border-radius: 15px;
    }
    
    .site-title {
        font-size: 1.4rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    .title-icon {
        font-size: 1.6rem;
        margin-right: 8px;
    }
    
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    /* 步骤导航优化 */
    .step-indicator {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step {
        min-width: 80px;
        margin-bottom: 10px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .step-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .selection-panel {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .selection-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .type-card, .shape-card, .door-card {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 8px;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .type-icon, .shape-icon, .variant-icon, .door-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .type-card h3, .shape-card h3, .door-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
        text-align: center;
        line-height: 1.2;
    }
    
    .type-card p {
        font-size: 0.8rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .maps-section {
        padding: 0;
    }
    
    .maps-header {
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .maps-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .map-count {
        font-size: 0.9rem;
        margin-top: 5px;
    }
    
    /* 快速筛选栏重新设计 */
    .quick-filters {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin-bottom: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .search-group {
        width: 100%;
        position: relative;
    }
    
    .quick-search {
        padding: 12px 40px 12px 15px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #f0e6ff;
        border-radius: 8px;
        outline: none;
        transition: border-color 0.2s ease;
        background: white;
    }
    
    .quick-search:focus {
        border-color: #ffb3ba;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    }
    
    .clear-search {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #f0e6ff;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #8b7fa8;
        cursor: pointer;
    }
    
    .view-controls {
        display: flex;
        gap: 4px;
        justify-content: center;
        background: #faf8ff;
        padding: 4px;
        border-radius: 8px;
        width: fit-content;
        margin: 0 auto;
    }
    
    .view-btn {
        width: 40px;
        height: 36px;
        border-radius: 6px;
        font-size: 16px;
        border: none;
        background: transparent;
        color: #8b7fa8;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }
    
    .view-btn.active {
        background: white;
        color: #ffb3ba;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* 筛选标签优化 */
    .filter-summary {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }
    
    .filter-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 6px;
        background: #ffb3ba;
        color: white;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .maps-grid {
        gap: 12px;
        padding: 0 5px;
        grid-template-columns: 1fr;
    }
    
    /* 网格视图卡片重新设计 */
    .maps-grid:not(.list-view) .map-item {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.2s ease;
        border: 1px solid #f0e6ff;
    }
    
    .maps-grid:not(.list-view) .map-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    }
    
    .map-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16/10;
        overflow: hidden;
        background: #faf8ff;
    }
    
    .map-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .map-info {
        padding: 12px;
        background: white;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .map-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        font-weight: 600;
        color: #6b4c93;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .map-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
        color: #8b7fa8;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        flex: 1;
    }
    
    .map-meta {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: auto;
    }
    
    .meta-item {
        font-size: 0.7rem;
        color: #b3a3d9;
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 3px 6px;
        background: #faf8ff;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    /* 标签位置优化 - 防止重合 */
    .map-type-badge {
        font-size: 9px;
        padding: 2px 5px;
        top: 4px;
        left: 4px;
        border-radius: 3px;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        z-index: 10;
        max-width: 60px; /* 限制最大宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .map-labels {
        top: 4px;
        right: 4px;
        gap: 3px;
        z-index: 10;
        max-width: 80px; /* 限制最大宽度 */
    }
    
    .shape-label,
    .position-label {
        font-size: 8px;
        padding: 2px 4px;
        border-radius: 3px;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
        max-width: 70px; /* 限制最大宽度 */
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }
    
    /* 列表视图重新设计 - 统一高度和布局 */
    .maps-grid.list-view .map-item {
        display: flex;
        align-items: stretch; /* 改为stretch确保高度一致 */
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        padding: 0;
        height: 100px; /* 统一固定高度 */
        min-height: 100px; /* 确保最小高度 */
        max-height: 100px; /* 确保最大高度 */
        margin-bottom: 8px;
        transition: all 0.2s ease;
        border: 1px solid #f0e6ff;
        width: 100%; /* 确保宽度一致 */
        box-sizing: border-box;
    }
    
    .maps-grid.list-view .map-item:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    }
    
    .maps-grid.list-view .map-image {
        width: 90px;
        height: 80px;
        flex-shrink: 0;
        margin: 10px;
        border-radius: 6px;
        overflow: hidden;
        align-self: center; /* 垂直居中 */
        position: relative; /* 为标签定位提供上下文 */
    }
    
    .maps-grid.list-view .map-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .maps-grid.list-view .map-info {
        flex: 1;
        padding: 10px 12px 10px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        overflow: hidden;
        min-height: 80px; /* 确保最小高度 */
        min-width: 0; /* 允许flex子项收缩 */
    }
    
    .maps-grid.list-view .map-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
        color: #6b4c93;
        line-height: 1.2;
        flex-shrink: 0; /* 防止标题被压缩 */
    }
    
    .maps-grid.list-view .map-description {
        font-size: 0.75rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 允许显示2行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #8b7fa8;
        flex: 1;
        line-height: 1.3;
        min-height: 2em; /* 确保最小高度 */
    }
    
    .maps-grid.list-view .map-meta {
        gap: 6px;
        margin-top: auto;
        flex-shrink: 0; /* 防止元数据被压缩 */
        align-items: center;
    }
    
    .maps-grid.list-view .meta-item {
        font-size: 0.65rem;
        padding: 2px 5px;
        background: #f0e6ff;
        border-radius: 3px;
    }
    
    /* 面包屑导航优化 */
    .breadcrumb {
        margin-bottom: 12px;
        font-size: 0.8rem;
        color: #8b7fa8;
        padding: 8px 0;
        line-height: 1.3;
    }
    
    .breadcrumb a {
        color: #ffb3ba;
        text-decoration: none;
        font-weight: 500;
    }
    
    /* 空状态优化 */
    .empty-state {
        padding: 30px 15px;
        text-align: center;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        margin: 15px 0;
    }
    
    .empty-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
        opacity: 0.6;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #6b4c93;
        line-height: 1.2;
    }
    
    .empty-state p {
        font-size: 0.85rem;
        color: #8b7fa8;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .empty-actions {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.2s ease;
        line-height: 1.2;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* 移动端触摸优化 */
    .map-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        /* 添加滑动检测的视觉反馈 */
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        /* 防止滑动时的意外选择 */
        -webkit-touch-callout: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
    }
    
    /* 滑动时的视觉反馈 */
    .map-item.scrolling {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        opacity: 0.8;
        /* 滑动时的额外样式 */
        pointer-events: none;
    }
    
    /* 滑动结束后的恢复动画 */
    .map-item.scroll-end {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        opacity: 1;
        transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    }
    
    /* 确保整个页面可以正常滑动 */
    body {
        -webkit-overflow-scrolling: touch;
        /* 防止页面在滑动时出现橡皮筋效果 */
        overscroll-behavior: contain;
    }
    
    /* 地图网格容器优化 */
    .maps-grid {
        -webkit-overflow-scrolling: touch;
        /* 防止容器内的滑动影响外部 */
        overscroll-behavior: contain;
    }
    
    /* 滚动优化 */
    .maps-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 确保标签不会干扰滑动 */
    .map-type-badge,
    .map-labels,
    .shape-label,
    .position-label {
        pointer-events: none;
        /* 防止标签影响滑动检测 */
        touch-action: none;
    }
    
    /* 移动端特殊处理 - 防止滑动时触发点击 */
    @media (hover: none) and (pointer: coarse) {
        .map-item {
            /* 确保滑动优先 */
            touch-action: pan-y !important;
            -webkit-tap-highlight-color: transparent !important;
            /* 防止滑动时的意外行为 */
            -webkit-touch-callout: none !important;
            -webkit-user-drag: none !important;
        }
        
        /* 滑动时的状态 */
        .map-item.scrolling {
            transform: scale(0.98) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
            opacity: 0.8 !important;
            pointer-events: none !important;
        }
        
        /* 滑动结束后的恢复 */
        .map-item.scroll-end {
            transform: scale(1) !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }
        
        /* 防止快速点击 */
        .map-item:active {
            transform: none !important;
        }
        
        /* 确保页面滚动流畅 */
        .maps-section {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
    }
    
    /* 移动端底部样式 */
    .main-footer {
        padding: 15px 0;
        margin-top: 30px;
        border-radius: 15px 15px 0 0;
        /* 确保移动端也固定在底部 */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .main-footer p {
        font-size: 0.8rem;
        margin: 3px 0;
        line-height: 1.3;
    }
    
    /* 移动端主内容区域调整 */
    .main-content {
        padding-bottom: 100px;
    }
    
    /* 加载动画优化 */
    .mini-loader {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 6px;
        padding: 8px;
    }
    
    .mini-spinner {
        border: 2px solid #f0e6ff;
        border-top: 2px solid #ffb3ba;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        animation: spin 1s linear infinite;
    }
    
    /* 错误状态优化 */
    .image-error-badge {
        background: rgba(239, 68, 68, 0.9);
        border-radius: 4px;
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
    
    /* 模态框移动端优化 */
    .modal-header {
        padding: 15px;
    }
    
    .modal-filename {
        font-size: 1rem;
    }
    
    .close-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .modal-image-container {
        margin: 15px 0;
    }
    
    .modal-actions {
        padding: 15px;
        gap: 10px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .modal-description {
        font-size: 0.85rem;
        max-width: 250px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .title-icon {
        font-size: 1.5rem;
    }
    
    .step {
        min-width: 70px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .type-card, .shape-card, .door-card {
        padding: 12px;
        min-height: 70px;
    }
    
    .type-icon, .shape-icon, .variant-icon, .door-icon {
        font-size: 1.8rem;
    }
    
    .type-card h3, .shape-card h3, .door-card h3 {
        font-size: 0.9rem;
    }
    
    .maps-grid.list-view .map-item {
        height: 90px; /* 统一高度 */
        min-height: 90px;
        max-height: 90px;
    }
    
    .maps-grid.list-view .map-image {
        width: 80px;
        height: 70px;
        margin: 10px;
        align-self: center;
    }
    
    .map-title {
        font-size: 0.9rem;
    }
    
    .map-description {
        font-size: 0.75rem;
    }
    
    .meta-item {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    /* 超小屏幕底部样式 */
    .main-footer {
        padding: 12px 0;
        margin-top: 20px;
        border-radius: 12px 12px 0 0;
        /* 确保超小屏幕也固定在底部 */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .main-footer p {
        font-size: 0.75rem;
        margin: 2px 0;
        line-height: 1.2;
    }
    
    /* 超小屏幕主内容区域调整 */
    .main-content {
        padding-bottom: 90px;
    }
}

/* ===========================================
   公告系统样式
   =========================================== */

/* 公告横幅样式 */
.announcements-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-item.type-info {
    border-left-color: #b3d9ff;
    background: linear-gradient(135deg, rgba(179, 217, 255, 0.2), rgba(255, 255, 255, 0.9));
}

.banner-item.type-warning {
    border-left-color: #ffffb3;
    background: linear-gradient(135deg, rgba(255, 255, 179, 0.2), rgba(255, 255, 255, 0.9));
}

.banner-item.type-success {
    border-left-color: #b3ffb3;
    background: linear-gradient(135deg, rgba(179, 255, 179, 0.2), rgba(255, 255, 255, 0.9));
}

.banner-item.type-error {
    border-left-color: #ffb3ba;
    background: linear-gradient(135deg, rgba(255, 179, 186, 0.2), rgba(255, 255, 255, 0.9));
}

.banner-item.type-ad {
    border-left-color: #d9b3ff;
    background: linear-gradient(135deg, rgba(217, 179, 255, 0.2), rgba(255, 255, 255, 0.9));
}

.banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.banner-title {
    font-weight: 600;
    color: #6b4c93;
    font-size: 0.95rem;
}

.banner-content-text {
    color: #8b7fa8;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 横幅公告不可关闭，移除关闭按钮样式 */

.banner-actions {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
}

/* 横幅公告按钮样式 */
.banner-button {
    margin-left: 15px;
    flex-shrink: 0;
}

.btn-banner {
    background: linear-gradient(135deg, #ffb3ba, #ffdfba);
    color: #4a4a4a;
    border: 1px solid #ffb3ba;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-banner:hover {
    background: linear-gradient(135deg, #ff9aa2, #ffd3a5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 179, 186, 0.3);
}

/* 链接按钮样式 */
a.btn-banner {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

a.btn-banner:hover {
    text-decoration: none;
    color: #4a4a4a;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* 全新公告弹窗系统样式 */
.modern-announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 20px;
}

.modern-announcement-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.modern-announcement-overlay.show .announcement-container {
    transform: scale(1) translateY(0) rotateX(0) !important;
    opacity: 1 !important;
}

.announcement-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.announcement-container {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 32px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* 固定尺寸设置 */
    width: 800px;
    height: 1000px;
    max-width: 90vw;
    max-height: 90vh;
    /* 优化动画性能 */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: hidden;
    transform: scale(0.8) translateY(60px) rotateX(15deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 确保弹窗不会超出屏幕 */
    display: flex;
    flex-direction: column;
}

/* 公告导航栏 */
.announcement-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.announcement-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.5), 
        rgba(147, 51, 234, 0.5), 
        rgba(59, 130, 246, 0.5), 
        transparent
    );
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.announcement-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.current-index {
    color: #3b82f6;
    font-size: 16px;
}

.separator {
    color: #94a3b8;
}

.total-count {
    color: #64748b;
}

.announcement-type-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-type-badge.type-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.announcement-type-badge.type-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.announcement-type-badge.type-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.announcement-type-badge.type-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.announcement-type-badge.type-ad {
    background: linear-gradient(135deg, #e9d5ff, #ddd6fe);
    color: #6b21a8;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn, .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-btn::before, .close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before, .close-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #64748b;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 公告内容区域 */
.announcement-content-wrapper {
    padding: 32px;
    /* 固定高度，确保内容区域可以滚动 */
    height: calc(1000px - 200px); /* 总高度1000px减去导航栏和按钮区域的高度 */
    min-height: 500px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    /* 确保内容区域可以独立滚动 */
    flex: 1;
    display: flex;
    flex-direction: column;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* 滚动条始终显示，避免布局跳动 */
    scrollbar-gutter: stable;
}

/* 新的导航按钮容器 - 左下角和右下角 */
.announcement-navigation-buttons {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 32px;
    pointer-events: none;
    z-index: 10;
}

.announcement-navigation-buttons .nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    width: auto;
    height: auto;
    min-width: 120px;
    border-radius: 25px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.announcement-navigation-buttons .nav-btn.prev-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.announcement-navigation-buttons .nav-btn.next-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.announcement-navigation-buttons .nav-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.announcement-navigation-buttons .nav-btn.prev-btn:hover {
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.announcement-navigation-buttons .nav-btn.next-btn:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.announcement-navigation-buttons .nav-btn:active {
    transform: translateY(0) scale(0.98);
}

.announcement-navigation-buttons .nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-navigation-buttons .nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcement-navigation-buttons .nav-btn svg {
    flex-shrink: 0;
}

.announcement-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.announcement-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.announcement-meta {
    flex: 1;
}

.announcement-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.3;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.announcement-time svg {
    color: #94a3b8;
}

.announcement-body {
    margin-top: 24px;
    /* 确保内容区域可以滚动 */
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* 滚动条始终显示，避免布局跳动 */
    scrollbar-gutter: stable;
    /* 确保内容有足够的底部间距 */
    padding-bottom: 20px;
}

.announcement-text {
    color: #374151;
    line-height: 1.7;
    font-size: 16px;
    /* 确保文本内容可以正常显示和滚动 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* 确保内容不会超出容器 */
    max-width: 100%;
    /* 添加适当的间距 */
    margin: 0;
    padding: 0;
}

/* 富文本内容样式 */
.announcement-text h1,
.announcement-text h2,
.announcement-text h3,
.announcement-text h4,
.announcement-text h5,
.announcement-text h6 {
    color: #1e293b;
    margin: 24px 0 16px 0;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-text p {
    margin: 16px 0;
    color: #374151;
    text-align: justify;
}

.announcement-text ul,
.announcement-text ol {
    margin: 16px 0;
    padding-left: 24px;
}

.announcement-text li {
    margin: 8px 0;
    color: #374151;
    line-height: 1.6;
}

.announcement-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.announcement-text img:hover {
    transform: scale(1.02);
}

/* 图片自适应容器 */
.announcement-text {
    overflow: hidden;
    /* 确保内容可以正常滚动 */
    position: relative;
}

.announcement-text img {
    max-width: 100%;
    max-height: 500px; /* 增加图片最大高度，利用更大的弹窗空间 */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 16px auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.announcement-text img:hover {
    transform: scale(1.02); /* 减小缩放效果，避免影响滚动 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 移动端图片优化 */
@media (max-width: 768px) {
    .announcement-text img {
        max-height: 200px; /* 移动端进一步减小图片高度 */
        margin: 12px auto;
        border-radius: 8px;
    }
}

/* 小屏幕图片优化 */
@media (max-width: 480px) {
    .announcement-text img {
        max-height: 150px; /* 小屏幕设备图片高度 */
        margin: 8px auto;
        border-radius: 6px;
    }
}

.announcement-text a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.announcement-text a:hover {
    color: #1d4ed8;
    border-bottom-color: #3b82f6;
}

.announcement-text blockquote {
    border-left: 4px solid #e2e8f0;
    padding-left: 20px;
    margin: 20px 0;
    color: #64748b;
    font-style: italic;
    background: rgba(241, 245, 249, 0.5);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    /* 确保引用块不会超出容器 */
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 表格样式优化 */
.announcement-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    /* 确保表格可以水平滚动 */
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.announcement-text table thead,
.announcement-text table tbody,
.announcement-text table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.announcement-text table th,
.announcement-text table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
    /* 确保表格单元格内容可以换行 */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.announcement-text table th {
    background: #f8fafc;
    font-weight: 600;
}

/* 操作提示 */
.announcement-hints {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px 32px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.hint-item svg {
    color: #94a3b8;
}

/* 滚动条样式 */
.announcement-content-wrapper::-webkit-scrollbar,
.announcement-body::-webkit-scrollbar {
    width: 8px;
}

.announcement-content-wrapper::-webkit-scrollbar-track,
.announcement-body::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
    margin: 4px 0;
}

.announcement-content-wrapper::-webkit-scrollbar-thumb,
.announcement-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.announcement-content-wrapper::-webkit-scrollbar-thumb:hover,
.announcement-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* 滚动条角落样式 */
.announcement-content-wrapper::-webkit-scrollbar-corner,
.announcement-body::-webkit-scrollbar-corner {
    background: rgba(241, 245, 249, 0.5);
}

/* 移动端滚动条优化 */
@media (max-width: 768px) {
    .announcement-content-wrapper::-webkit-scrollbar,
    .announcement-body::-webkit-scrollbar {
        width: 6px;
    }
    
    .announcement-content-wrapper::-webkit-scrollbar-thumb,
    .announcement-body::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .modern-announcement-overlay {
        padding: 10px;
        /* 确保移动端弹窗有足够的z-index */
        z-index: 10001;
    }
    
    .announcement-container {
        /* 移动端固定尺寸 */
        width: 95vw;
        height: 80vh;
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 24px;
        /* 移除固定的transform，让JavaScript控制动画 */
        transform: scale(0.8) translateY(60px) rotateX(15deg);
        opacity: 0;
    }
    
    .announcement-navbar {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .navbar-left {
        justify-content: space-between;
    }
    
    .navbar-right {
        justify-content: center;
        gap: 16px;
    }
    
    .announcement-counter {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .current-index {
        font-size: 14px;
    }
    
    .announcement-type-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .nav-btn, .close-btn {
        width: 48px;
        height: 48px;
    }
    
    .announcement-content-wrapper {
        padding: 24px;
        /* 移动端内容区域高度调整 */
        height: calc(80vh - 180px);
        min-height: 200px;
        max-height: calc(80vh - 180px);
    }
    
    /* 移动端导航按钮样式 */
    .announcement-navigation-buttons {
        bottom: 15px;
        padding: 0 20px;
    }
    
    .announcement-navigation-buttons .nav-btn {
        padding: 10px 16px;
        min-width: 100px;
        font-size: 13px;
        gap: 6px;
    }
    
    .announcement-navigation-buttons .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .announcement-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto;
    }
    
    .announcement-title {
        font-size: 24px;
    }
    
    .announcement-time {
        justify-content: center;
    }
    
    .announcement-text {
        font-size: 15px;
    }
    
    .announcement-hints {
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px;
    }
    
    .hint-item {
        justify-content: center;
        font-size: 13px;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    .announcement-container {
        /* 小屏幕固定尺寸 */
        width: 98vw;
        height: 85vh;
        max-width: 98vw;
        max-height: 85vh;
        border-radius: 20px;
        /* 确保小屏幕也有正确的初始状态 */
        transform: scale(0.8) translateY(60px) rotateX(15deg);
        opacity: 0;
    }
    
    .announcement-content-wrapper {
        padding: 20px;
        /* 小屏幕内容区域高度调整 */
        height: calc(85vh - 160px);
        min-height: 180px;
        max-height: calc(85vh - 160px);
    }
    
    .announcement-navbar {
        padding: 16px 20px;
    }
    
    .announcement-header {
        gap: 12px;
    }
    
    .announcement-icon {
        width: 48px;
        height: 48px;
    }
    
    .announcement-title {
        font-size: 20px;
    }
    
    .announcement-text {
        font-size: 14px;
    }
    
    /* 小屏幕表格优化 */
    .announcement-text table {
        font-size: 12px;
    }
    
    .announcement-text table th,
    .announcement-text table td {
        padding: 6px 8px;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 360px) {
    .announcement-container {
        /* 超小屏幕固定尺寸 */
        width: 99vw;
        height: 90vh;
        max-width: 99vw;
        max-height: 90vh;
        border-radius: 16px;
        /* 确保超小屏幕也有正确的初始状态 */
        transform: scale(0.8) translateY(60px) rotateX(15deg);
        opacity: 0;
    }
    
    .announcement-content-wrapper {
        padding: 16px;
        /* 超小屏幕内容区域高度调整 */
        height: calc(90vh - 140px);
        min-height: 160px;
        max-height: calc(90vh - 140px);
    }
    
    .announcement-navbar {
        padding: 12px 16px;
    }
    
    .announcement-header {
        gap: 8px;
    }
    
    .announcement-icon {
        width: 40px;
        height: 40px;
    }
    
    .announcement-title {
        font-size: 18px;
    }
    
    .announcement-text {
        font-size: 13px;
    }
    
    /* 超小屏幕表格优化 */
    .announcement-text table {
        font-size: 11px;
    }
    
    .announcement-text table th,
    .announcement-text table td {
        padding: 4px 6px;
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 24px 24px 0 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.popup-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.announcement-type-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.announcement-title-main {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.announcement-time-main {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 18px;
    color: #ef4444;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.popup-content {
    padding: 28px;
    max-height: 65vh;
    overflow-y: auto;
    border-radius: 0 0 24px 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    position: relative;
}

.announcement-content-main {
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* 富文本内容样式 */
.announcement-content-main h1,
.announcement-content-main h2,
.announcement-content-main h3,
.announcement-content-main h4,
.announcement-content-main h5,
.announcement-content-main h6 {
    color: #1e293b;
    margin: 20px 0 12px 0;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-content-main p {
    margin: 12px 0;
    color: #374151;
    text-align: justify;
}

.announcement-content-main ul,
.announcement-content-main ol {
    margin: 12px 0;
    padding-left: 24px;
}

.announcement-content-main li {
    margin: 6px 0;
    color: #374151;
    line-height: 1.6;
}

.announcement-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.announcement-content-main img:hover {
    transform: scale(1.02);
}

.announcement-content-main a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.announcement-content-main a:hover {
    color: #1d4ed8;
    border-bottom-color: #3b82f6;
}

.announcement-content-main blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 16px;
    margin: 16px 0;
    color: #6b7280;
    font-style: italic;
}

.announcement-content-main code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.announcement-content-main pre {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.announcement-content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.announcement-content-main th,
.announcement-content-main td {
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    text-align: left;
}

.announcement-content-main th {
    background: #f9fafb;
    font-weight: 600;
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
        border-radius: 20px !important;
        transform: scale(0.95) translateY(20px);
    }
    
    .popup-header {
        padding: 20px;
        border-radius: 20px 20px 0 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    }
    
    .popup-title-section {
        gap: 8px;
    }
    
    .announcement-title-main {
        font-size: 16px;
    }
    
    .announcement-time-main {
        font-size: 12px;
    }
    
    .popup-content {
        padding: 20px;
        max-height: 70vh;
        border-radius: 0 0 20px 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        background: linear-gradient(135deg, #ffffff, #f8fafc);
    }
    
    .announcement-content-main {
        font-size: 13px;
    }
    
    .popup-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffb3ba, #b3d9ff);
    color: #4a4a4a;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #4a4a4a;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 弹窗标题区域 */
.popup-title-section {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #faf8ff, #f0e6ff);
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-type-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.announcement-title-main {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b4c93;
    line-height: 1.4;
}

.announcement-time-main {
    font-size: 0.9rem;
    color: #8b7fa8;
    flex-shrink: 0;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.popup-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
    background: white;
}

.announcement-content-main {
    color: #6b4c93;
    line-height: 1.7;
    font-size: 1rem;
}

/* 富文本内容样式 */
.announcement-content-main h1,
.announcement-content-main h2,
.announcement-content-main h3,
.announcement-content-main h4,
.announcement-content-main h5,
.announcement-content-main h6 {
    margin: 1.5em 0 0.5em 0;
    font-weight: 600;
    color: #6b4c93;
}

.announcement-content-main h1 { font-size: 1.5rem; }
.announcement-content-main h2 { font-size: 1.3rem; }
.announcement-content-main h3 { font-size: 1.2rem; }
.announcement-content-main h4 { font-size: 1.1rem; }
.announcement-content-main h5 { font-size: 1rem; }
.announcement-content-main h6 { font-size: 0.9rem; }

.announcement-content-main p {
    margin: 0.8em 0;
}

.announcement-content-main img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

.announcement-content-main ul,
.announcement-content-main ol {
    margin: 1em 0;
    padding-left: 2em;
}

.announcement-content-main li {
    margin: 0.3em 0;
}

.announcement-content-main blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin: 1em 0;
    color: #6b7280;
    font-style: italic;
}

.announcement-content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.announcement-content-main th,
.announcement-content-main td {
    border: 1px solid #e5e7eb;
    padding: 0.5em;
    text-align: left;
}

.announcement-content-main th {
    background-color: #f9fafb;
    font-weight: 600;
}

.announcement-content-main a {
    color: #b3d9ff;
    text-decoration: underline;
}

.announcement-content-main a:hover {
    color: #8b7fa8;
}

.announcement-content-main code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.announcement-content-main pre {
    background-color: #f3f4f6;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.announcement-content-main pre code {
    background: none;
    padding: 0;
}

.popup-announcement {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.popup-announcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-announcement.type-info {
    border-left-color: #b3d9ff;
    background: linear-gradient(135deg, rgba(179, 217, 255, 0.1), #f9fafb);
}

.popup-announcement.type-warning {
    border-left-color: #ffffb3;
    background: linear-gradient(135deg, rgba(255, 255, 179, 0.1), #f9fafb);
}

.popup-announcement.type-success {
    border-left-color: #b3ffb3;
    background: linear-gradient(135deg, rgba(179, 255, 179, 0.1), #f9fafb);
}

.popup-announcement.type-error {
    border-left-color: #ffb3ba;
    background: linear-gradient(135deg, rgba(255, 179, 186, 0.1), #f9fafb);
}

.popup-announcement.type-ad {
    border-left-color: #d9b3ff;
    background: linear-gradient(135deg, rgba(217, 179, 255, 0.1), #f9fafb);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.announcement-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.announcement-title {
    flex: 1;
    font-weight: 600;
    color: #6b4c93;
    font-size: 1.1rem;
}

.announcement-time {
    color: #8b7fa8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.announcement-content {
    color: #6b4c93;
    line-height: 1.6;
    font-size: 0.95rem;
}

.popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}

/* 弹窗分页控件样式 */
.popup-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    gap: 20px;
    position: relative;
}

.popup-pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.popup-prev-btn,
.popup-next-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 130px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.popup-prev-btn::before,
.popup-next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.popup-prev-btn:hover::before,
.popup-next-btn:hover::before {
    left: 100%;
}

.popup-prev-btn:hover:not(:disabled),
.popup-next-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.popup-prev-btn:disabled,
.popup-next-btn:disabled {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.popup-page-info {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 70px;
    text-align: center;
}

/* 公告滚动条样式 */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* 移动端公告样式优化 */
@media (max-width: 768px) {
    .announcements-banner {
        margin-bottom: 15px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-item {
        padding: 12px 15px;
    }
    
    .banner-text {
        flex-direction: column;
        gap: 5px;
    }
    
    .banner-title {
        font-size: 0.9rem;
    }
    
    .banner-content-text {
        font-size: 0.8rem;
    }
    
    .announcements-popup .popup-content {
        width: 95%;
        max-height: 90vh;
        margin: 2.5vh auto;
    }
    
    .popup-announcement {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    .announcement-time {
        font-size: 0.8rem;
    }
    
    /* 移动端分页控件样式 */
    .popup-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .popup-prev-btn,
    .popup-next-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .popup-page-info {
        order: -1;
        margin-bottom: 5px;
    }
    
    /* 移动端弹窗标题区域样式 */
    .popup-title-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .announcement-type-icon {
        font-size: 1.5rem;
    }
    
    .announcement-title-main {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .announcement-time-main {
        font-size: 0.8rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .announcement-content-main {
        font-size: 0.95rem;
    }
}