/* 口令复制组件样式 */
.code-container {
    margin-top: 10px;
    background: rgba(247, 250, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #3b82f6;
}

.code-label {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.code-content {
    position: relative;
}

.code-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    word-break: break-all;
    margin-bottom: 8px;
    position: relative;
}

.code-text.collapsed {
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

.code-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #f8fafc);
}

.code-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.expand-btn, .copy-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.expand-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
    font-weight: bold;
    min-width: 40px;
}

.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.expand-btn:hover, .copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.copy-btn:hover {
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.expand-btn:active, .copy-btn:active {
    transform: translateY(0);
}

/* 复制成功动画 */
.copy-btn.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: scale(0.95);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .code-container {
        padding: 10px;
        margin-top: 8px;
    }
    
    .code-text {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .code-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .expand-btn, .copy-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* 轮播广告样式 */
.banner-container {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 200px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 20px 30px;
    gap: 30px;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h3 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 16px;
    margin: 0 0 12px 0;
    opacity: 0.9;
    font-weight: 500;
}

.banner-desc {
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.6;
    opacity: 0.95;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.banner-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.movie-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-movie {
    font-size: 40px;
    animation: bounce 2s infinite;
}

.icon-ticket {
    font-size: 30px;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 移动端轮播广告适配 */
@media (max-width: 768px) {
    .banner-slider {
        height: 160px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .banner-text h3 {
        font-size: 22px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .banner-desc {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .banner-features {
        display: none; /* 移动端隐藏特性列表以节约空间 */
    }
    
    .feature-item {
        font-size: 11px;
    }
    
    .banner-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .banner-image {
        width: 80px;
        height: 80px;
    }
}

/* 下拉选择框样式 */
.download-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
    isolation: isolate;
}

.download-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: space-between;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.download-btn:active {
    transform: translateY(0);
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.download-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999; /* 提高层级以确保不被遮挡 */
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    /* 处理边界情况 */
    max-width: 200px;
    white-space: nowrap;
}

/* 当下拉框超出右侧边界时向左显示 */
.download-dropdown:last-child .dropdown-menu,
.download-dropdown.align-right .dropdown-menu {
    right: 0;
    left: auto;
}

.download-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    color: #667eea;
}

.netdisk-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .dropdown-menu {
        min-width: 140px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .post-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
    }

    .game-image {
        width: 70px;
        height: 70px;
    }

    .post-item {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
    }

    .images-container {
        align-self: center;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
        max-width: 100%;
        gap: 10px;
    }

    .main-container {
        padding: 15px;
    }
    
    /* 移动端禁用悬停效果 */
    .post-item:hover,
    .dropdown-item:hover {
        transform: none;
        background: transparent;
    }
}

/* PC端特定样式 */
@media (min-width: 769px) {
    .post-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .post-content {
        flex: 1;
        min-width: 0;
    }
    
    .post-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .post-author {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .images-container {
        margin-left: 20px;
        flex-shrink: 0;
        max-width: 280px;
        gap: 12px;
    }
    
    .game-image {
        width: 85px;
        height: 85px;
    }
}

/* 游戏页面通用样式文件 */

/* 页面整体优化 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

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

.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
}

/* 项目样式优化 */
.post-item {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    overflow: visible;
}



.post-content {
    flex: 1;
}

.post-item .post-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.post-item .post-link {
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

.post-item .author-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.post-item .author-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.post-item .post-desc {
    color: #5a6c7d;
    line-height: 1.7;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    text-align: left;
}

/* 图片容器样式 */
.images-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* 图片样式增强 */
.images-container .game-image {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.images-container .game-image:hover {
    border-color: rgba(76, 175, 80, 0.5);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 游戏图片样式 */
.game-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.game-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 图片详情弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    /* 为移动端添加触摸支持 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: imageModalShow 0.3s ease;
}

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

.image-modal img {
    width: 100%;
    height: auto;
    display: block;
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    /* 防止图片被意外拖拽 */
    pointer-events: auto;
}

.image-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* 增大点击区域以便移动端操作 */
    padding: 10px;
    margin: -10px;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 移动端弹窗适配 */
@media (max-width: 768px) {
    .image-modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 90vh;
    }
    
    .image-modal-close {
        /* 移动端增大关闭按钮 */
        width: 45px;
        height: 45px;
        font-size: 28px;
        right: 10px;
        top: 10px;
    }
    
    /* 移动端取消悬停效果 */
    .image-modal-close:hover {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* 移动端添加按下效果 */
    .image-modal-close:active {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(0.95);
    }
}