/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面头部 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.logo .site-name a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #3498db;
    background-color: #ecf0f1;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.blog-content {
    flex: 3;
    /* 长命令行/URL 的代码块会把 flex 项撑到 min-content 宽度，压窄侧栏 */
    min-width: 0;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #7f8c8d;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #2c3e50;
    padding-top: 20px;
}

.post-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 15px;
    color: #34495e;
}

.post-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content .note {
    background-color: #fff8e1;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.download-table thead {
    background-color: #3498db;
    color: white;
}

.download-table th,
.download-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.download-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.download-table tbody tr:hover {
    background-color: #e3f2fd;
}

.download-table .btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-width: 250px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: #3498db;
}

.related-downloads {
    list-style: none;
}

.related-downloads li {
    margin-bottom: 10px;
}

.related-downloads li a {
    text-decoration: none;
    color: #34495e;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.related-downloads li a:hover {
    color: #3498db;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #fff;
    color: #3498db;
}

.btn-primary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

/* 首屏横幅 */
.hero-banner {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 90% at 82% 8%, rgba(56, 189, 248, 0.16), transparent 60%),
        radial-gradient(55% 75% at 12% 92%, rgba(99, 102, 241, 0.22), transparent 60%),
        linear-gradient(160deg, #0b1220 0%, #111e3d 55%, #0d1b33 100%);
    color: #f1f5f9;
    padding: 92px 0 84px;
    text-align: center;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.hero-banner .container {
    position: relative;
}

.hero-banner h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: #7dd3fc;
    background: linear-gradient(92deg, #7dd3fc 0%, #38bdf8 45%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 36px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-banner .btn-primary {
    background: linear-gradient(92deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    padding: 14px 38px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
}

.hero-banner .btn-ghost {
    margin-left: 14px;
    padding: 14px 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e2e8f0;
    background: transparent;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-banner .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(226, 232, 240, 0.8);
}

.hero-banner .sub-text {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* 平台介绍 */
.platform-intro {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 15px auto;
    border-radius: 3px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

.platform-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #edf1f5;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f6f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.platform-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #d6e6f5;
}

.platform-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.12);
    margin-bottom: 18px;
}

.platform-icon i,
.client-logo i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.platform-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.platform-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #5d6d7e;
}

.platform-item h3,
.client-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.platform-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Clash客户端介绍 */
.clients-intro {
    padding: 80px 0;
    background-color: #ecf0f1;
}

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

.client-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.client-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-logo {
    font-size: 3rem;
    margin-bottom: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.client-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.client-item p {
    margin-bottom: 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 什么是Clash */
.clash-intro {
    padding: 80px 0;
    background-color: #fff;
}

.clash-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.clash-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.clash-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    color: #2c3e50;
}

/* 特性表格 */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.feature-table thead {
    background-color: #3498db;
    color: white;
}

.feature-table th,
.feature-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.feature-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.feature-table tbody tr:hover {
    background-color: #e3f2fd;

}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background-color: #ecf0f1;
}

.download-tabs {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 15px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #7f8c8d;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: #3498db;
    color: white;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.download-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.download-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.download-links {
    margin-bottom: 25px;
}

.btn-download {
    background-color: #3498db;
    color: white;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.install-guide h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.install-guide ol {
    padding-left: 20px;
}

.install-guide li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 功能特点 */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #3498db;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        order: 2;
        max-width: 100%;
    }
    
    .blog-content {
        order: 1;
    }
    
    .download-table {
        font-size: 0.85rem;
    }
    
    .download-table th,
    .download-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .logo-img {
        height: 40px;
        margin-right: 10px;
    }
    
    .logo .site-name a {
        font-size: 1.5rem;
    }
    
    .logo p {
        font-size: 0.8rem;
    }
    
    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding: 5px 0;
    }
    
    .main-nav ul li {
        margin: 5px 5px;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #eee;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .btn-download {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .main-nav ul {
        font-size: 0.9rem;
    }
    
    .main-nav ul li {
        margin: 3px 3px;
    }
    
    .main-nav ul li a {
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    .hero-banner {
        padding: 50px 0;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 20px 15px;
    }
    
    .blog-content h1 {
        font-size: 1.6rem;
    }
    
    .download-table {
        font-size: 0.8rem;
    }
    
    .main-nav ul {
        font-size: 0.8rem;
    }
    
    .main-nav ul li {
        margin: 2px 2px;
    }
    
    .main-nav ul li a {
        padding: 3px 5px;
    }
}

/* 友情链接样式 */
.friend-links {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.friend-links .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.friend-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.friend-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.friend-links li {
    margin: 0;
}

.friend-links a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
    font-size: 1rem;
}

.friend-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 页脚法律声明样式 */
.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

/* 页脚Logo样式 */
.footer-logo {
    height: 24px;
    vertical-align: middle;
    margin-right: 10px;
}
/* 返回顶部按钮（由 main.js 注入） */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 1200;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: #3498db;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* 原生锚点跳转为固定头部预留空间 */
[id] {
    scroll-margin-top: 72px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .back-to-top {
        transition: none;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        padding: 64px 0 56px;
    }

    .hero-banner .btn-ghost {
        margin-left: 0;
        margin-top: 12px;
    }

    .back-to-top {
        right: 16px;
        bottom: 20px;
    }
}

/* 导航栏：加入 Linux 栏目后收紧间距 */
.main-nav ul li {
    margin-left: 16px;
}

.main-nav ul li a {
    font-size: 0.95rem;
}

/* 代码块（命令行教程） */
.post-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 16px 0 20px;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.post-content code {
    background: #eef2f7;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88em;
    word-break: break-all;
}

/* 支持多平台：宽屏两排三列，逐级降列 */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .platform-item {
        padding: 26px 20px;
    }

    .platform-icon {
        width: 72px;
        height: 72px;
    }
}

/* 侧边栏文字广告位（js/ads.js 渲染） */
.sidebar-widget.ad-slot {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    border: 1px solid #dbe9f6;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.06);
    padding: 18px;
    margin-bottom: 22px;
}

.ad-slot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2ecf6;
}

.ad-slot-head h3 {
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    border: none;
    color: #1f3a52;
}

.ad-slot-tag {
    flex: none;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #8fa5b8;
    border: 1px solid #cfe0ee;
    border-radius: 3px;
    padding: 1px 5px;
}

.ad-slot-desc {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #4d6478;
}

.ad-slot-points {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.ad-slot-points li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #3f5769;
}

.ad-slot-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #3498db;
}

.ad-slot-cta {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    background-image: linear-gradient(90deg, #3498db, #2f80c4);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ad-slot-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(52, 152, 219, 0.25);
}

/* 侧栏内容超过一屏时取消吸顶，避免底部广告位看不到 */
.sidebar.tall {
    position: static;
}
