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

#railwayArticleSection {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
    padding: 60px 20px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 背景图片容器 */
#railwayArticleSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../Picture/talk.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
}

#railwayArticleSection .rail-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

#railwayArticleSection .buttons-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0px 80px 480px 180px;
    transition: all 0.5s ease;
}

#railwayArticleSection .buttons-wrapper.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

#railwayArticleSection .circle-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid transparent;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.95);
}

#railwayArticleSection .circle-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

#railwayArticleSection .circle-button:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

#railwayArticleSection .circle-button:hover::before {
    animation: railShine 0.5s ease;
}

@keyframes railShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

#railwayArticleSection .circle-button .icon {
    font-size: 52px;
    margin-bottom: 12px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

#railwayArticleSection .circle-button .title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    letter-spacing: 0.5px;
}

#railwayArticleSection .article-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

#railwayArticleSection .article-container.show {
    opacity: 1;
    pointer-events: all;
}

#railwayArticleSection .article-content {
    width: 100%;
    max-width: 1200px;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    padding: 40px;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#railwayArticleSection .article-content img {
    max-width: 100%;
    min-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

#railwayArticleSection .article-container.show .article-content {
    transform: scale(1);
}

#railwayArticleSection .article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e0e0;
}

#railwayArticleSection .article-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
}

#railwayArticleSection .article-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

#railwayArticleSection .close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#railwayArticleSection .close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

#railwayArticleSection .article-body {
    line-height: 1.9;
    color: #34495e;
    font-size: 16px;
}

#railwayArticleSection .article-body p {
    margin-bottom: 18px;
    text-align: justify;
}

/* 自定义滚动条 */
#railwayArticleSection .article-content::-webkit-scrollbar {
    width: 8px;
}

#railwayArticleSection .article-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#railwayArticleSection .article-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-radius: 10px;
}

#railwayArticleSection .article-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

/* 铁路主题按钮颜色 */
#railwayArticleSection .btn-1 {
    background: linear-gradient(145deg, rgba(255, 245, 245, 0.95), rgba(255, 224, 224, 0.95));
    border-color: #ffcccc;
}

#railwayArticleSection .btn-1:hover {
    border-color: #ff9999;
    background-color: rgba(255, 245, 245, 1);
}

#railwayArticleSection .btn-2 {
    background: linear-gradient(145deg, rgba(240, 248, 255, 0.95), rgba(224, 240, 255, 0.95));
    border-color: #cce5ff;
}

#railwayArticleSection .btn-2:hover {
    border-color: #99ccff;
    background-color: rgba(240, 248, 255, 1);
}

#railwayArticleSection .btn-3 {
    background: linear-gradient(145deg, rgba(245, 255, 245, 0.95), rgba(224, 255, 224, 0.95));
    border-color: #ccffcc;
}

#railwayArticleSection .btn-3:hover {
    border-color: #99ff99;
    background-color: rgba(245, 255, 245, 1);
}

#railwayArticleSection .btn-4 {
    background: linear-gradient(145deg, rgba(255, 245, 255, 0.95), rgba(255, 224, 255, 0.95));
    border-color: #ffccff;
}

#railwayArticleSection .btn-4:hover {
    border-color: #ff99ff;
    background-color: rgba(255, 245, 255, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #railwayArticleSection .buttons-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    #railwayArticleSection .circle-button {
        width: 150px;
        height: 150px;
    }

    #railwayArticleSection .circle-button .icon {
        font-size: 42px;
    }

    #railwayArticleSection .circle-button .title {
        font-size: 14px;
    }

    #railwayArticleSection .article-content {
        width: 95%;
        padding: 25px;
    }

    #railwayArticleSection .article-title {
        font-size: 24px;
    }
}