@font-face {
    font-family: 'JetBrainsMono';
    src: 
        url(./webfonts/JetBrainsMono-Regular.woff2) format('woff2'),
}

html {
    scroll-behavior: smooth;
}

/* Markdown样式，应与新闻网站的style.css的.article-content保持一致 */
.photo-detail-text {
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.photo-detail-text h1 {
    color: var(--accent);
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    border-bottom: 2px solid rgba(0, 168, 232, 0.3);
    padding-bottom: 10px;
}

.photo-detail-text h2 {
    color: var(--accent);
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

.photo-detail-text h3 {
    color: var(--accent);
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

.photo-detail-text p {
    margin-bottom: 0.8em;
    line-height: 1.8;
}

.photo-detail-text a {
    color: var(--accent);
    /* text-decoration: none; */
    transition: all 0.3s ease;
}

.photo-detail-text a:hover {
    color: var(--accent-hover);
    /* text-decoration: underline; */
}

.photo-detail-text ul, .photo-detail-text ol {
    margin-left: 25px;
    margin-bottom: 1.5em;
}

.photo-detail-text li {
    margin-bottom: 0.5em;
}

.photo-detail-text code {
    background: rgba(85, 85, 85, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'JetBrainsMono','monospace', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.photo-detail-text pre {
    background: rgba(85, 85, 85, 0.3);
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5em 0;
}

@media (prefers-color-scheme: light) {
    .photo-detail-text code {
        background: rgba(85, 85, 85, 0.088);
    }
    .photo-detail-text pre {
        background: rgba(85, 85, 85, 0.088);
    }
}

.photo-detail-text pre code {
    background: none;
    padding: 0;
}

.photo-detail-text blockquote {
    border-left: 4px solid #00a8e8;
    padding: 10px 20px;
    margin: 1.5em 0;
    background: rgba(0, 168, 232, 0.1);
    border-radius: 0 4px 4px 0;
}

.photo-detail-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.photo-detail-text th, .photo-detail-text td {
    border: 1px solid rgba(0, 168, 232, 0.3);
    padding: 10px;
    text-align: left;
}

.photo-detail-text th {
    background: rgba(0, 168, 232, 0.2);
    color: #64eaff;
}

.photo-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 新增导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 18, 21, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    /* background-color: rgba(15, 18, 21, 0.3); */
    /* padding: 0.75rem 2rem; */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background-color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
}

.logo-text span {
    font-weight: 600;
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--card-border);
    font-size: 1.1rem;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* 浅色模式适配 */
@media (prefers-color-scheme: light) {
    .navbar {
        background-color: rgba(245, 247, 250, 0.9);
    }
    
    .navbar.scrolled {
        background-color: rgba(245, 247, 250, 0.95);
    }
    
    .logo-text {
        color: var(--text-primary);
    }
    
    .mobile-menu {
        background-color: var(--surface);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* 允许轮播图被导航栏遮挡 */
.slider-container {
    margin-top: 0rem;
    height: calc(100vh - 0rem);
}

:root {
    /* 深色模式默认变量 */
    --bg-dark: #0f1215;
    --surface: #1c2025;
    --accent: #3498db; /* 青色强调色 */
    --accent-hover: #26C6DA;
    --text-primary: #f2f2f2;
    --text-secondary: #b0b0b0;
    --card-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 浅色模式变量 */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f5f7fa;
        --surface: #feffff;
        --accent: #3498db;
        --accent-hover: #26C6DA;
        --text-primary: #2c3e50;
        --text-secondary: #546e7a;
        --card-border: rgba(0, 0, 0, 0.08);
    }
    
    .slide::before {
        background: rgba(255, 255, 255, 0.6);
    }
    
    .indicator {
        background: rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .indicator.active {
        background: var(--accent);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 允许文本选中但防止编辑 */
body, div, p, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 特定元素禁止选中 */
/* 注：.photo-name是鼠标移动到图片上后弹出来的文字 */
.famous-player-grid-preview, .famous-player-photo-wall-img, .railway-map-container, .railway-map-photo-item, .card-icon, .big-container i, .big-container, .photo-wall-inner-btn, .railway-map-photo-item, .qq-group-btn, .indicator, .big-container-link, .slider-container, .close-detail, .close-photo-wall, .photo-detail-content, .close-bilibili, .photo-item, .photo-grid-preview {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 自定义滚动条 - 适配深色/浅色模式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0; /* 悬停时变色 */
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* 适配浅色模式 */
@media (prefers-color-scheme: light) {
    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    ::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgb(141, 155, 170);
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: content-box;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 全屏轮播区域 */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.49);
    z-index: 1;
    transition: background 0.5s ease;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* 轮播指示器 */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.indicator:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.8);
}

/* 主内容区域 */
.main-content {
    position: relative;
    z-index: 20;
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
    transition: background-color 0.5s ease;
}

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

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
    transition: color 0.5s ease;
}

.page-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    transition: color 0.5s ease;
}

/* 信息卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 188, 212, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.8rem;
    transition: all 0.5s ease;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.5s ease;
}

.card-content {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    transition: color 0.5s ease;
}

.card-list {
    margin-top: 1rem;
}

.card-list a {
    color: var(--accent);
    /* text-decoration: none; */
    /* transition: color 0.3s ease; */
}

.card-list a:hover {
    color: var(--accent);
}

.card-list p {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.card-list p::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* 优化后的QQ群按钮 - 减慢闪烁速度 */
.qq-group-btn {
    background: rgba(0, 123, 255, 0.15);
    border-radius: 16px;
    padding: 20px 25px;
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 123, 255, 0.3);
    min-height: 100px;
}

.qq-group-btn:hover {
    background: rgba(0, 123, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.qq-group-btn:active {
    transform: translateY(1px);
}

/* 闪烁动画 */
.qq-group-btn.flash {
    animation: flash 5s ease-in-out;
}

@keyframes flash {
    0%, 100% {
        background: rgba(0, 123, 255, 0.15);
        box-shadow: none;
    }
    15%, 45%, 75% {
        background: rgba(0, 123, 255, 0.3);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
    }
    30%, 60%, 90% {
        background: rgba(0, 123, 255, 0.15);
        box-shadow: none;
    }
}

.qq-group-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.qq-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 10px;
    cursor: pointer;
}

.qq-group-text {
    /* font-size: 1.0rem; */
    font-weight: bold;
    color: var(--accent);
    margin: 0;
    line-height: 1.3;
    cursor: pointer;
}

.qq-backup {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 1.0rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qq-backup a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.qq-backup a:hover {
    text-decoration: underline;
}

/* 大卡片 */
.big-container {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    transition: all 0.5s ease;
    margin-bottom: 4rem;
    position: relative; /* 添加相对定位 */
    overflow: hidden; /* 隐藏溢出的渐变效果 */
}

/* 添加右侧渐变图片效果 */
.big-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60rem; /* 渐变区域的宽度 */
    background: 
        linear-gradient(to right, #1c2025, rgba(0,0,0,0)),
        var(--bg-image,url('./images/default.webp')) right center/cover no-repeat;   /* ./images/default.webp 是大卡片找不到背景图片的默认图片 */
    z-index: 1;
    opacity: 0.48; /* 调整整体透明度 */
    transition: opacity 0.5s ease;
}

/* 悬停时增强效果 */
.big-container:hover::after {
    opacity: 0.40;
}

/* 确保内容在渐变层上方 */
.big-container > * {
    position: relative;
    z-index: 2;
}

/* 响应式调整 - 在小屏幕上隐藏渐变效果 */
@media (max-width: 768px) {
    .big-container::after {
        display: none;
    }
}

/* 适配浅色模式 */
@media (prefers-color-scheme: light) {
    .big-container::after {
        background: 
            linear-gradient(to right, #feffff, rgba(237, 0, 0, 0)),
            var(--bg-image,url('./images/default.webp')) right center/cover no-repeat;   /* ./images/default.webp 是大卡片找不到背景图片的默认图片 */
        opacity: 0.46; /* 调整整体透明度 */
    }

    ::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
    }
}

.big-container-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--accent);
    transition: color 0.5s ease;
}

.big-container-title i {
    margin-right: 12px;
    font-size: 1.6rem;
}

.big-container-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    transition: color 0.5s ease;
}

.big-container-link {
    display: inline-block;
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0, 188, 212, 0.4);
    cursor: pointer;
    margin-right: 1rem;
}

.big-container-link:hover {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.2);
}

.big-container-link:active {
    background: rgba(0, 188, 212, 0.2);
    color: var(--accent-hover);
    transform: translateY(1px);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}

.big-container-address {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: inline-block;
    margin-top: 1.5rem;
}

/* 页脚 */
.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    margin-top: 2rem;
    transition: all 0.5s ease;
}

/* ICP备案号样式 */
.icp-footer {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.icp-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-footer a:hover {
    color: var(--accent);
}

/* 照片墙样式 */
.photo-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.photo-wall-overlay.active {
    opacity: 1;
    visibility: visible;
}

.photo-wall-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.5s ease;
}

.photo-wall-overlay.active .photo-wall-container {
    transform: scale(1);
}

.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* 图片墙上的小图 */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.photo-item:active {
    transform: scale(1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 著名玩家，正方形样式 */
.famous-player-photo-wall-img {
    width: 7rem;
    height: 7rem;

    object-fit: cover;
    display: block;

    border-radius: 5px;
    aspect-ratio: 1/1;
}

.famous-player-photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 18px;
    padding: 5px;
}


.famous-player-grid-preview {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.famous-player-grid-preview img {

    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--card-border);

    width: 140px;
    height: 140px;
    object-fit: cover;
    aspect-ratio: 1/1;
    overflow: hidden;

    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .famous-player-grid-preview {
        gap:20px
    }
    .famous-player-grid-preview img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .famous-player-grid-preview {
        gap:30px
    }
    .famous-player-grid-preview img {
        width: 80px;
        height: 80px;
    }
}

.famous-player-grid-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 图片墙上的图片 铁路网络图专用 */
.railway-map-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
    cursor: grab;
}

.railway-map-photo-item:hover {
    /* transform: scale(1.05); */
    z-index: 10;
}

.railway-map-photo-item:active {
    cursor: grabbing;
}

.railway-map-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 影像馆上的预览图 */
.photo-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.photo-grid-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
}

.photo-grid-preview img:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 关闭图片墙 */
.close-photo-wall {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1010;
}

.close-photo-wall:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 照片名称样式 */
.photo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-name {
    transform: translateY(0);
}
/* 照片名称样式 著名人物图专用 */
.photo-name-famous-players {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    transform: translateY(8%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-name-famous-players {
    transform: translateY(0);
}

/* 图片墙上的小图的名字 铁路网络图专用 */
.railway-map-photo-item:hover .photo-name {
    transform: translateY(0);
}

/* 照片详情弹窗样式 */
.photo-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.photo-detail-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.photo-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    padding-top: 20px; /* 为关闭按钮留出空间 */
}

.photo-detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.close-detail {
    position: absolute;
    top: 15px; /* 调整关闭按钮位置 */
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* 确保关闭按钮在最上层 */
}

.close-detail:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 铁路地图/线路图按钮样式 */
.photo-wall-inner-btn {
    /* 基础样式 */
    position: absolute;
    top: 15px;
    right: 15px;
    float: right;
    margin-bottom: 2rem;
    margin-left: 1rem;
    padding: 10px 20px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
    z-index: 10000;
    letter-spacing: 0.5px;
    
    /* 悬停效果 */
    &:hover {
        background: rgba(0, 188, 212, 0.2);
        color: var(--accent-hover);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 188, 212, 0.2);
    }
    
    /* 点击效果 */
    &:active {
        transform: translateY(1px);
        box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
    }
    
    /* 动画效果 */
    /* &.switching {
        transform: scale(0.95);
        background: linear-gradient(135deg, #76b852, #8DC26F);
    } */
}

/* 铁路地图/线路图按钮样式的脉动动画 */
/* @keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 126, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 126, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 126, 95, 0);
    }
} */

/* 铁路地图/线路图按钮样式的响应式设计 */
@media (max-width: 992px) {
  .photo-wall-inner-btn {
    padding: 9px 18px;
    font-size: 15px;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 768px) {
  .photo-wall-inner-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 22px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 576px) {
  .photo-wall-inner-btn {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 20px;
    top: 8px;
    right: 8px;
    letter-spacing: 0.3px;
    
    /* 适配移动端点击 */
    &:hover {
      transform: none;
      box-shadow: none;
    }
  }
}

/* 超小屏幕设备 */
@media (max-width: 400px) {
  .photo-wall-inner-btn {
    padding: 6px 12px;
    font-size: 12px;
    top: 6px;
    right: 6px;
  }
}

/* B站视频弹窗样式 */
.bilibili-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bilibili-modal.active {
    opacity: 1;
    visibility: visible;
}

.bilibili-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    position: relative;
}

.bilibili-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

.bilibili-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.close-bilibili {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-bilibili:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .big-container {
        margin-bottom: 3rem;
    }

    .big-container-link {
    margin-bottom: 1.2rem;
    }
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-desc {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    /* 小屏幕下调整QQ群按钮 */
    .qq-group-btn {
        padding: 18px 22px;
    }
    
    .qq-group-text {
        font-size: 1.3rem;
    }
    
    /* 照片墙响应式 */
    .photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .famous-player-photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .famous-player-photo-wall-img {
        width: 120px;
        height: 120px;

    }

    /* 响应式调整B站视频窗口 */
    .bilibili-iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slider-container {
        height: 90vh;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        margin: 0 8px;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .big-container {
        padding: 1.5rem;
    }
    
    /* 小屏幕下优化QQ群按钮 */
    .qq-group-btn {
        padding: 16px 20px;
        min-height: 90px;
    }
    
    .qq-group-text {
        font-size: 1.2rem;
    }
    
    .qq-icon {
        font-size: 1.8rem;
    }
    
    /* 照片墙响应式 */
    .photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .famous-player-photo-wall {
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
        gap: 10px
    }

    .famous-player-photo-wall-img {
        width: 84px;
        height: 84px;

    }

    /* 响应式调整B站视频窗口 */
    .bilibili-iframe {
        height: 200px;
    }
}