/* ============================================
   Steam风格文章美化插件 - 样式表
   版本: 2.0.1
   ============================================ */

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

/* 主容器 */
.steam-article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a141e 0%, #1b2838 50%, #2a475e 100%);
    color: #c7d5e0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.steam-article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #66c0f4 0%, 
        #4b9cd3 25%, 
        #3178b7 50%, 
        #1a5a94 75%, 
        #0a3d6b 100%);
    z-index: 10;
}

/* 页面头部 */
.steam-page-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.steam-breadcrumb {
    font-size: 0.9em;
    color: #8f98a0;
}

.steam-breadcrumb a {
    color: #66c0f4;
    text-decoration: none;
    transition: color 0.3s;
}

.steam-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.steam-breadcrumb span {
    color: #fff;
    font-weight: 500;
}

/* 主内容布局 */
.steam-main-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .steam-main-content {
        grid-template-columns: 1fr;
    }
}

/* 左侧栏样式 */
.steam-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 特色图片 */
.steam-featured-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.steam-featured-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

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

.steam-featured-image:hover .steam-image-overlay {
    opacity: 1;
}

.steam-play-button {
    background: linear-gradient(90deg, #66c0f4 0%, #4b9cd3 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.steam-play-button:hover {
    transform: scale(1.05);
}

/* 无图片时的占位 */
.steam-featured-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.steam-placeholder-cover {
    text-align: center;
    color: #66c0f4;
}

.steam-placeholder-icon {
    font-size: 4em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* 游戏信息框 */
.steam-game-info {
    background: rgba(42, 71, 94, 0.3);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #66c0f4;
}

.steam-game-info h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steam-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #8f98a0;
    font-size: 0.9em;
}

.info-value {
    color: #fff;
    font-weight: 500;
}

/* 标签样式 */
.steam-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.steam-tag-item {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    border: 1px solid rgba(102, 192, 244, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.steam-tag-item:hover {
    background: rgba(102, 192, 244, 0.2);
    transform: translateY(-2px);
}

/* Steam账号框 */
.steam-account-box {
    background: rgba(23, 26, 33, 0.8);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #3d454d;
}

.steam-account-box h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-details {
    margin-bottom: 20px;
}

.account-details p {
    margin: 8px 0;
    color: #c7d5e0;
    font-size: 0.95em;
}

.account-details strong {
    color: #fff;
    min-width: 60px;
    display: inline-block;
}

.status-available {
    color: #5c7e10;
    font-weight: 600;
    background: rgba(92, 126, 16, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.steam-download-btn {
    width: 100%;
    background: linear-gradient(90deg, #5c7e10 0%, #6b8c21 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.steam-download-btn:hover {
    background: linear-gradient(90deg, #6b8c21 0%, #7a9b32 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 126, 16, 0.3);
}

/* 文章内容区域 */
.steam-article-content {
    background: rgba(26, 35, 48, 0.6);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.steam-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 192, 244, 0.3);
}

.steam-article-title {
    color: #fff;
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff 0%, #66c0f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steam-article-meta {
    display: flex;
    gap: 20px;
    color: #8f98a0;
    font-size: 0.95em;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章正文样式 */
.steam-article-body {
    line-height: 1.8;
    font-size: 1.1em;
    color: #c7d5e0;
}

.steam-article-body h2 {
    color: #66c0f4;
    font-size: 1.8em;
    margin: 1.5em 0 1em 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 192, 244, 0.2);
}

.steam-article-body h3 {
    color: #fff;
    font-size: 1.4em;
    margin: 1.2em 0 0.8em 0;
}

.steam-article-body h4 {
    color: #8f98a0;
    font-size: 1.2em;
    margin: 1em 0 0.6em 0;
}

.steam-article-body p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.steam-article-body strong {
    color: #fff;
    font-weight: 600;
}

.steam-article-body a {
    color: #66c0f4;
    text-decoration: none;
    border-bottom: 1px dotted #66c0f4;
    transition: all 0.3s ease;
}

.steam-article-body a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
    text-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.steam-article-body ul,
.steam-article-body ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.steam-article-body li {
    margin: 0.5em 0;
    padding-left: 0.5em;
}

.steam-article-body ul li::before {
    content: "▸";
    color: #66c0f4;
    margin-left: -1.2em;
    margin-right: 8px;
}

.steam-article-body blockquote {
    border-left: 4px solid #66c0f4;
    padding: 20px 30px;
    margin: 2em 0;
    background: rgba(102, 192, 244, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #b0d6f3;
}

.steam-article-body pre {
    background: rgba(23, 26, 33, 0.9);
    border: 1px solid #3d454d;
    border-radius: 8px;
    padding: 20px;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.steam-article-body code {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
}

.steam-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: rgba(23, 26, 33, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.steam-article-body th {
    background: rgba(102, 192, 244, 0.2);
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.steam-article-body td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #c7d5e0;
}

.steam-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 相关文章区域 */
.steam-related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(102, 192, 244, 0.3);
}

.steam-section-title {
    color: #fff;
    font-size: 1.5em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steam-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.steam-related-item {
    background: rgba(42, 71, 94, 0.3);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.steam-related-item:hover {
    background: rgba(42, 71, 94, 0.5);
    border-color: rgba(102, 192, 244, 0.3);
    transform: translateY(-5px);
}

.related-thumb {
    height: 120px;
    background: #1b2838;
    position: relative;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.steam-related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.steam-related-item:hover .related-overlay {
    opacity: 1;
}

.default-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #66c0f4;
    opacity: 0.5;
}

.related-info {
    padding: 15px;
}

.related-info h4 {
    color: #c7d5e0;
    font-size: 1em;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    color: #8f98a0;
    font-size: 0.85em;
}

.steam-related-item.placeholder {
    opacity: 0.7;
    cursor: default;
}

.steam-related-item.placeholder:hover {
    transform: none;
    background: rgba(42, 71, 94, 0.3);
    border-color: transparent;
}

/* 页面底部 */
.steam-page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.steam-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav-item {
    color: #8f98a0;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-nav-item:hover {
    color: #66c0f4;
    background: rgba(102, 192, 244, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .steam-article-container {
        padding: 15px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .steam-article-title {
        font-size: 1.8em;
    }
    
    .steam-article-content {
        padding: 20px;
    }
    
    .steam-article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .steam-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .steam-footer-nav {
        gap: 10px;
    }
}

/* 滚动条美化 */
.steam-article-container::-webkit-scrollbar {
    width: 8px;
}

.steam-article-container::-webkit-scrollbar-track {
    background: rgba(23, 26, 33, 0.5);
}

.steam-article-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #66c0f4 0%, #4b9cd3 100%);
    border-radius: 4px;
}

.steam-article-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7bcbf4 0%, #5ca7dd 100%);
}