/**
 * 点滴安全网站主题样式 - 腾讯云开发者风格
 * 版本: 2.0.0
 * 日期: 2026-03-19
 * 参考: https://cloud.tencent.com/developer
 * 设计: 张翠山（视觉）+ 黄蓉（技术）
 */

/* ========================================
   腾讯云开发者风格 - 核心配色
======================================== */
:root {
    /* 腾讯云主色 */
    --tencent-primary: #00A3FF;
    --tencent-primary-dark: #0080CC;
    --tencent-primary-light: #4DB8FF;
    
    /* 文字颜色 */
    --tencent-text: #171D33;
    --tencent-text-secondary: #5F6C8B;
    --tencent-text-muted: #8896A9;
    
    /* 背景色 */
    --tencent-bg-page: #F5F7FA;
    --tencent-bg-card: #FFFFFF;
    --tencent-bg-hover: #F8FBFF;
    --tencent-bg-tag: #E8F4FF;
    
    /* 边框色 */
    --tencent-border: #E4E8ED;
    --tencent-border-light: #F0F2F5;
    
    /* 阴影 */
    --tencent-shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --tencent-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --tencent-shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
    
    /* 圆角 */
    --tencent-radius-sm: 4px;
    --tencent-radius-md: 8px;
    --tencent-radius-lg: 12px;
    --tencent-radius-full: 20px;
    
    /* 过渡 */
    --tencent-transition: 0.2s ease;
    
    /* 间距 */
    --tencent-spacing-xs: 4px;
    --tencent-spacing-sm: 8px;
    --tencent-spacing-md: 16px;
    --tencent-spacing-lg: 24px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tencent-text);
    background: var(--tencent-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   链接样式
======================================== */
a {
    color: var(--tencent-primary);
    text-decoration: none;
    transition: color var(--tencent-transition);
}

a:hover {
    color: var(--tencent-primary-dark);
}

/* ========================================
   首页布局（仿腾讯云开发者）
======================================== */
/* 主容器 */
.site-main,
.main-content,
#primary {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--tencent-spacing-lg);
}

/* 内容区 + 侧边栏布局 */
.content-wrapper,
.site-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--tencent-spacing-lg);
}

@media screen and (max-width: 992px) {
    .content-wrapper,
    .site-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   文章卡片（仿腾讯云开发者）
======================================== */
/* 卡片容器 */
.posts-container,
.post-list,
article.post,
article.type-post {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    padding: var(--tencent-spacing-md);
    margin-bottom: var(--tencent-spacing-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
    transition: all var(--tencent-transition);
}

.posts-container:hover,
.post-list:hover,
article.post:hover,
article.type-post:hover {
    box-shadow: var(--tencent-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--tencent-primary-light);
}

/* 文章卡片内部布局 */
article.post .post-inner,
article.type-post .post-inner {
    display: flex;
    gap: var(--tencent-spacing-md);
}

/* 缩略图 */
article.post .post-thumbnail,
article.post img.attachment-post-thumbnail,
article.type-post .post-thumbnail,
article.type-post img:first-child {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--tencent-radius-md);
    flex-shrink: 0;
    margin: 0;
}

@media screen and (max-width: 768px) {
    article.post .post-thumbnail,
    article.post img.attachment-post-thumbnail,
    article.type-post .post-thumbnail,
    article.type-post img:first-child {
        width: 100%;
        height: 160px;
    }
    
    article.post .post-inner,
    article.type-post .post-inner {
        flex-direction: column;
    }
}

/* 文章信息区 */
article.post .entry-content,
article.post .post-content,
article.type-post .entry-content,
article.type-post .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    max-width: none;
}

/* 分类标签 */
article.post .cat-links,
article.type-post .cat-links,
.post-category,
.entry-category {
    margin-bottom: var(--tencent-spacing-sm);
}

article.post .cat-links a,
article.type-post .cat-links a,
.post-category a,
.entry-category a {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tencent-primary);
    background: var(--tencent-bg-tag);
    border-radius: var(--tencent-radius-sm);
    margin-right: 6px;
    transition: all var(--tencent-transition);
}

article.post .cat-links a:hover,
article.type-post .cat-links a:hover,
.post-category a:hover,
.entry-category a:hover {
    background: var(--tencent-primary);
    color: white;
}

/* 文章标题 */
article.post .entry-title,
article.post h2,
article.type-post .entry-title,
article.type-post h2,
.post-title,
.article-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: var(--tencent-text) !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
}

article.post .entry-title a,
article.post h2 a,
article.type-post .entry-title a,
article.type-post h2 a,
.post-title a,
.article-title a {
    color: var(--tencent-text) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tencent-transition);
}

article.post .entry-title a:hover,
article.post h2 a:hover,
article.type-post .entry-title a:hover,
article.type-post h2 a:hover,
.post-title a:hover,
.article-title a:hover {
    color: var(--tencent-primary) !important;
}

/* 文章摘要 */
article.post .entry-summary,
article.post .post-excerpt,
article.type-post .entry-summary,
article.type-post .post-excerpt,
.post-excerpt,
.article-excerpt {
    font-size: 13px;
    color: var(--tencent-text-secondary);
    line-height: 1.6;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

article.post .entry-summary p,
article.type-post .entry-summary p {
    margin: 0;
    font-size: 13px;
    color: var(--tencent-text-secondary);
}

/* 文章元数据 */
article.post .entry-meta,
article.post .post-meta,
article.type-post .entry-meta,
article.type-post .post-meta,
.post-meta,
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--tencent-text-muted);
    margin-top: auto;
    padding-top: 8px;
}

article.post .entry-meta span,
article.type-post .entry-meta span,
.post-meta span,
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

article.post .entry-meta a,
article.type-post .entry-meta a,
.post-meta a,
.article-meta a {
    color: var(--tencent-text-muted);
}

article.post .entry-meta a:hover,
article.type-post .entry-meta a:hover,
.post-meta a:hover,
.article-meta a:hover {
    color: var(--tencent-primary);
}

/* 作者头像 */
article.post .author-avatar,
article.type-post .author-avatar,
.post-author img,
.author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* ========================================
   侧边栏（仿腾讯云开发者）
======================================== */
.sidebar,
#secondary,
.widget-area {
    display: flex;
    flex-direction: column;
    gap: var(--tencent-spacing-md);
}

/* 小工具 */
.widget {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    padding: var(--tencent-spacing-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
}

/* 小工具标题 */
.widget-title,
.widgettitle,
.widget-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tencent-text);
    margin: 0 0 var(--tencent-spacing-md) 0;
    padding: 0 0 var(--tencent-spacing-sm) 0;
    border-bottom: 1px solid var(--tencent-border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title::before,
.widgettitle::before {
    content: "";
    width: 4px;
    height: 16px;
    background: var(--tencent-primary);
    border-radius: 2px;
    display: inline-block;
}

/* 热门文章列表 */
.widget ul,
.widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li,
.widget ol li {
    padding: var(--tencent-spacing-sm) 0;
    border-bottom: 1px solid var(--tencent-border-light);
    margin: 0;
    display: flex;
    gap: var(--tencent-spacing-sm);
}

.widget ul li:last-child,
.widget ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li:first-child,
.widget ol li:first-child {
    padding-top: 0;
}

/* 热门文章缩略图 */
.widget ul li img,
.widget ol li img,
.widget .post-thumbnail img,
.widget .thumb img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--tencent-radius-sm);
    flex-shrink: 0;
    margin: 0;
}

/* 热门文章信息 */
.widget ul li .post-info,
.widget ol li .post-info,
.widget .entry-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 热门文章标题 */
.widget ul li .post-title,
.widget ol li .post-title,
.widget ul li a,
.widget ol li a,
.widget .entry-title,
.widget .title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--tencent-text) !important;
    line-height: 1.5;
    margin: 0 0 4px 0;
    padding: 0;
    border: none;
    background: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--tencent-transition);
}

.widget ul li a:hover,
.widget ol li a:hover {
    color: var(--tencent-primary) !important;
}

/* 热门文章摘要 */
.widget ul li .excerpt,
.widget ol li .excerpt,
.widget .entry-summary,
.widget p {
    font-size: 12px;
    color: var(--tencent-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   导航栏（仿腾讯云）
======================================== */
.site-header,
.main-header,
#masthead {
    background: var(--tencent-bg-card);
    box-shadow: var(--tencent-shadow-sm);
    border-bottom: 1px solid var(--tencent-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .site-branding,
.main-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title,
.site-title a {
    color: var(--tencent-primary) !important;
    font-size: 20px;
    font-weight: 700;
}

.main-navigation a,
.nav-menu a,
.header-menu a {
    color: var(--tencent-text);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--tencent-radius-sm);
    transition: all var(--tencent-transition);
}

.main-navigation a:hover,
.nav-menu a:hover,
.header-menu a:hover {
    color: var(--tencent-primary);
    background: var(--tencent-bg-tag);
}

.current-menu-item a,
.current_page_item a {
    color: var(--tencent-primary) !important;
    background: var(--tencent-bg-tag);
}

/* ========================================
   页脚（仿腾讯云）
======================================== */
.site-footer,
#colophon {
    background: var(--tencent-text);
    color: rgba(255,255,255,0.7);
    padding: var(--tencent-spacing-lg) var(--tencent-spacing-md);
    margin-top: var(--tencent-spacing-lg);
}

.site-footer a,
#colophon a {
    color: rgba(255,255,255,0.7);
    transition: color var(--tencent-transition);
}

.site-footer a:hover,
#colophon a:hover {
    color: white;
}

/* ========================================
   文章详情页
======================================== */
.single-post article.post,
.single article.type-post {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-lg);
    padding: var(--tencent-spacing-lg);
    box-shadow: var(--tencent-shadow-md);
}

/* 文章标题 */
.single-post .entry-title,
.single .entry-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--tencent-text) !important;
    text-align: left !important;
    margin: 0 0 var(--tencent-spacing-md) 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 文章内容 */
.entry-content,
.post-content,
.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--tencent-text);
    max-width: none;
    padding: 0;
    margin: 0;
}

.entry-content h2,
.post-content h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--tencent-text) !important;
    border-left: 4px solid var(--tencent-primary);
    padding-left: var(--tencent-spacing-md);
    margin: 32px 0 var(--tencent-spacing-md) 0 !important;
    background: none;
}

.entry-content h3,
.post-content h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--tencent-text) !important;
    margin: 24px 0 var(--tencent-spacing-sm) 0 !important;
    border: none;
}

.entry-content h4,
.post-content h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--tencent-text-secondary) !important;
    margin: 20px 0 var(--tencent-spacing-sm) 0 !important;
}

/* 段落 */
.entry-content p,
.post-content p {
    margin: 0 0 var(--tencent-spacing-md) 0;
    line-height: 1.8;
}

/* 引用块 */
.entry-content blockquote,
.post-content blockquote {
    border-left: 4px solid var(--tencent-primary);
    padding: var(--tencent-spacing-md);
    margin: var(--tencent-spacing-md) 0;
    background: var(--tencent-bg-tag);
    border-radius: 0 var(--tencent-radius-md) var(--tencent-radius-md) 0;
    color: var(--tencent-text-secondary);
}

/* 代码块 */
.entry-content code,
.post-content code {
    background: #F5F7FA;
    color: #E83E3C;
    padding: 2px 6px;
    border-radius: var(--tencent-radius-sm);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    font-size: 13px;
}

.entry-content pre,
.post-content pre {
    background: #282C34;
    color: #ABB2BF;
    padding: var(--tencent-spacing-md);
    border-radius: var(--tencent-radius-md);
    overflow-x: auto;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    font-size: 13px;
    line-height: 1.5;
    margin: var(--tencent-spacing-md) 0;
}

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

/* 表格 */
.entry-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--tencent-spacing-md) 0;
    border-radius: var(--tencent-radius-md);
    overflow: hidden;
    box-shadow: var(--tencent-shadow-sm);
}

.entry-content thead,
.post-content thead {
    background: var(--tencent-primary);
    color: white;
}

.entry-content th,
.post-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.entry-content td,
.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tencent-border-light);
}

.entry-content tbody tr:nth-child(even),
.post-content tbody tr:nth-child(even) {
    background: #F8FAFB;
}

.entry-content tbody tr:hover,
.post-content tbody tr:hover {
    background: var(--tencent-bg-tag);
}

/* 列表 */
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    margin: var(--tencent-spacing-md) 0;
    padding-left: 24px;
}

.entry-content li,
.post-content li {
    margin: 8px 0;
    line-height: 1.7;
}

/* 图片 */
.entry-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tencent-radius-md);
    margin: var(--tencent-spacing-md) 0;
    box-shadow: var(--tencent-shadow-sm);
}

/* ========================================
   分页导航
======================================== */
.pagination,
.nav-links,
.posts-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--tencent-spacing-sm);
    margin: var(--tencent-spacing-lg) 0;
}

.pagination a,
.nav-links a,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--tencent-bg-card);
    color: var(--tencent-text);
    border: 1px solid var(--tencent-border);
    border-radius: var(--tencent-radius-sm);
    font-size: 14px;
    transition: all var(--tencent-transition);
}

.pagination a:hover,
.nav-links a:hover,
.page-numbers:hover {
    background: var(--tencent-bg-tag);
    color: var(--tencent-primary);
    border-color: var(--tencent-primary);
}

.pagination .current,
.page-numbers.current {
    background: var(--tencent-primary);
    color: white;
    border-color: var(--tencent-primary);
}

/* ========================================
   标签云
======================================== */
.tagcloud,
.wp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tencent-spacing-xs);
}

.tagcloud a,
.wp-tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tencent-bg-tag);
    color: var(--tencent-primary);
    border-radius: var(--tencent-radius-full);
    font-size: 13px !important;
    transition: all var(--tencent-transition);
}

.tagcloud a:hover,
.wp-tag-cloud a:hover {
    background: var(--tencent-primary);
    color: white;
}

/* ========================================
   搜索框
======================================== */
.search-form {
    display: flex;
    gap: var(--tencent-spacing-sm);
}

.search-form input[type="search"],
.search-field {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--tencent-border);
    border-radius: var(--tencent-radius-md);
    font-size: 14px;
    transition: all var(--tencent-transition);
}

.search-form input[type="search"]:focus,
.search-field:focus {
    outline: none;
    border-color: var(--tencent-primary);
    box-shadow: 0 0 0 3px rgba(0,163,255,0.1);
}

.search-submit,
.search-form button {
    padding: 10px 20px;
    background: var(--tencent-primary);
    color: white;
    border: none;
    border-radius: var(--tencent-radius-md);
    cursor: pointer;
    transition: all var(--tencent-transition);
}

.search-submit:hover,
.search-form button:hover {
    background: var(--tencent-primary-dark);
}

/* ========================================
   按钮
======================================== */
.btn,
.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--tencent-radius-md);
    cursor: pointer;
    transition: all var(--tencent-transition);
    text-decoration: none;
    border: none;
}

.btn-primary,
.button-primary,
input[type="submit"] {
    background: var(--tencent-primary);
    color: white;
}

.btn-primary:hover,
.button-primary:hover,
input[type="submit"]:hover {
    background: var(--tencent-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--tencent-shadow-md);
}

.btn-secondary,
.button-secondary {
    background: transparent;
    color: var(--tencent-primary);
    border: 1px solid var(--tencent-primary);
}

.btn-secondary:hover,
.button-secondary:hover {
    background: var(--tencent-bg-tag);
}

/* ========================================
   提示框
======================================== */
.notice,
.alert,
.info-box {
    padding: var(--tencent-spacing-md);
    border-radius: var(--tencent-radius-md);
    margin: var(--tencent-spacing-md) 0;
    border-left: 4px solid;
}

.notice-info,
.info-box {
    background: var(--tencent-bg-tag);
    border-left-color: var(--tencent-primary);
    color: var(--tencent-primary-dark);
}

.notice-success {
    background: #D4EDDA;
    border-left-color: #28A745;
    color: #155724;
}

.notice-warning {
    background: #FFF3CD;
    border-left-color: #FFC107;
    color: #856404;
}

.notice-error {
    background: #F8D7DA;
    border-left-color: #DC3545;
    color: #721C24;
}

/* ========================================
   响应式设计
======================================== */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .site-main,
    .main-content,
    #primary {
        padding: var(--tencent-spacing-md);
    }
    
    .content-wrapper,
    .site-content {
        gap: var(--tencent-spacing-md);
    }
    
    article.post .entry-title,
    article.type-post .entry-title {
        font-size: 16px !important;
    }
    
    .single-post .entry-title,
    .single .entry-title {
        font-size: 22px !important;
    }
    
    .entry-content h2,
    .post-content h2 {
        font-size: 18px !important;
    }
    
    .entry-content h3,
    .post-content h3 {
        font-size: 16px !important;
    }
    
    .widget {
        padding: var(--tencent-spacing-sm);
    }
}

@media screen and (max-width: 576px) {
    article.post .post-thumbnail,
    article.post img.attachment-post-thumbnail {
        width: 100%;
        height: 160px;
    }
    
    article.post .post-inner,
    article.type-post .post-inner {
        flex-direction: column;
    }
    
    .single-post article.post,
    .single article.type-post {
        padding: var(--tencent-spacing-md);
    }
}

/* ========================================
   滚动条
======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tencent-bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--tencent-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tencent-text-muted);
}

/* ========================================
   选择文本
======================================== */
::selection {
    background: var(--tencent-primary);
    color: white;
}

::-moz-selection {
    background: var(--tencent-primary);
    color: white;
}

/* ========================================
   辅助类
======================================== */
.text-primary { color: var(--tencent-primary) !important; }
.text-secondary { color: var(--tencent-text-secondary) !important; }
.text-muted { color: var(--tencent-text-muted) !important; }

.bg-primary { background: var(--tencent-primary) !important; }
.bg-card { background: var(--tencent-bg-card) !important; }
.bg-hover { background: var(--tencent-bg-hover) !important; }

.shadow-sm { box-shadow: var(--tencent-shadow-sm) !important; }
.shadow-md { box-shadow: var(--tencent-shadow-md) !important; }
.shadow-hover { box-shadow: var(--tencent-shadow-hover) !important; }

.rounded-sm { border-radius: var(--tencent-radius-sm) !important; }
.rounded-md { border-radius: var(--tencent-radius-md) !important; }
.rounded-lg { border-radius: var(--tencent-radius-lg) !important; }

/* ========================================
   安全资讯侧边栏 - 点滴安全定制版
   简洁风格：只显示排行 + 标题
======================================== */

/* 资讯小工具容器 */
.security-news-widget,
.widget.security-news {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #F0F2F5;
}

/* 标题栏 */
.security-news-widget .widget-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F2F5;
}

.security-news-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #171D33;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-news-widget .title-icon {
    font-size: 18px;
}

.security-news-widget .view-all {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    color: #8896A9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.security-news-widget .view-all:hover {
    color: #00A3FF;
}

/* 资讯列表 */
.security-news-widget .news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 资讯项 - 简洁版 */
.security-news-widget .news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F7FA;
    transition: background 0.2s ease;
}

.security-news-widget .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.security-news-widget .news-item:first-child {
    padding-top: 0;
}

.security-news-widget .news-item:hover {
    background: #F8FBFF;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

/* 排行标签 */
.security-news-widget .news-rank {
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 前3名特殊样式 */
.security-news-widget .news-item:nth-child(1) .news-rank {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
}

.security-news-widget .news-item:nth-child(2) .news-rank {
    background: linear-gradient(135deg, #FF9F43, #FF7F50);
    color: white;
}

.security-news-widget .news-item:nth-child(3) .news-rank {
    background: linear-gradient(135deg, #FFD93D, #FFC107);
    color: #333;
}

/* 4-10名普通样式 */
.security-news-widget .news-item:nth-child(n+4) .news-rank {
    background: #F0F2F5;
    color: #8896A9;
}

/* 标题 - 简洁版 */
.security-news-widget .news-title {
    font-size: 14px;
    line-height: 1.5;
    color: #171D33;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    flex: 1;
}

.security-news-widget .news-title:hover {
    color: #00A3FF;
}

/* 隐藏时间和元数据（简洁模式） */
.security-news-widget .news-time,
.security-news-widget .news-meta {
    display: none;
}

/* 加载更多按钮 */
.security-news-widget .load-more-wrapper {
    margin-top: 12px;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #F0F2F5;
}

.security-news-widget .load-more-btn {
    display: inline-block;
    background: transparent;
    color: #00A3FF;
    border: 1px solid #00A3FF;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.security-news-widget .load-more-btn:hover {
    background: #00A3FF;
    color: white;
}

/* ========================================
   响应式设计
======================================== */
@media screen and (max-width: 768px) {
    .security-news-widget {
        padding: 12px;
    }
    
    .security-news-widget .widget-title {
        font-size: 15px;
    }
    
    .security-news-widget .news-title {
        font-size: 13px;
    }
}

/* ========================================
   文章详情页 - 腾讯云开发者风格增强
   参考: https://cloud.tencent.com/developer/article/2626045
======================================== */

/* 文章头部信息区 */
.single-post .entry-header,
.single .entry-header {
    margin-bottom: var(--tencent-spacing-lg);
    padding-bottom: var(--tencent-spacing-md);
    border-bottom: 1px solid var(--tencent-border-light);
}

/* 文章作者信息卡片 */
.author-info,
.author-card {
    display: flex;
    align-items: center;
    gap: var(--tencent-spacing-md);
    padding: var(--tencent-spacing-md);
    background: var(--tencent-bg-hover);
    border-radius: var(--tencent-radius-md);
    margin-bottom: var(--tencent-spacing-lg);
}

.author-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--tencent-primary-light);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--tencent-text);
    margin-bottom: 4px;
}

.author-bio {
    font-size: 13px;
    color: var(--tencent-text-muted);
}

/* 文章元数据行 */
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tencent-spacing-md);
    margin-bottom: var(--tencent-spacing-md);
    font-size: 13px;
    color: var(--tencent-text-muted);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-meta-item svg,
.article-meta-item i {
    width: 14px;
    height: 14px;
    fill: var(--tencent-text-muted);
}

/* 文章标签（详情页） */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--tencent-spacing-lg);
    padding-top: var(--tencent-spacing-md);
    border-top: 1px solid var(--tencent-border-light);
}

.article-tags a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--tencent-bg-tag);
    color: var(--tencent-primary);
    border-radius: var(--tencent-radius-full);
    font-size: 13px;
    transition: all var(--tencent-transition);
}

.article-tags a:hover {
    background: var(--tencent-primary);
    color: white;
}

.article-tags a::before {
    content: "#";
    margin-right: 2px;
    font-weight: 600;
}

/* ========================================
   侧边栏 - 专栏/专栏作者卡片
   参考: https://cloud.tencent.com/developer/column
======================================== */

/* 专栏作者卡片 */
.column-author-card,
.author-widget {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    padding: var(--tencent-spacing-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
    text-align: center;
}

.column-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto var(--tencent-spacing-sm);
    border: 3px solid var(--tencent-primary-light);
}

.column-author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--tencent-text);
    margin-bottom: 4px;
}

.column-author-title {
    font-size: 13px;
    color: var(--tencent-text-muted);
    margin-bottom: var(--tencent-spacing-sm);
}

.column-author-stats {
    display: flex;
    justify-content: center;
    gap: var(--tencent-spacing-lg);
    padding-top: var(--tencent-spacing-sm);
    border-top: 1px solid var(--tencent-border-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--tencent-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--tencent-text-muted);
}

/* ========================================
   文章底部 - 相关文章推荐
======================================== */

/* 相关文章区域 */
.related-posts {
    margin-top: var(--tencent-spacing-lg);
    padding: var(--tencent-spacing-lg);
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
}

.related-posts-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tencent-text);
    margin-bottom: var(--tencent-spacing-md);
    padding-left: var(--tencent-spacing-sm);
    border-left: 4px solid var(--tencent-primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--tencent-spacing-md);
}

.related-post-item {
    background: var(--tencent-bg-hover);
    border-radius: var(--tencent-radius-sm);
    overflow: hidden;
    transition: all var(--tencent-transition);
}

.related-post-item:hover {
    box-shadow: var(--tencent-shadow-md);
    transform: translateY(-2px);
}

.related-post-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-post-content {
    padding: var(--tencent-spacing-sm);
}

.related-post-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--tencent-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title:hover {
    color: var(--tencent-primary);
}

/* ========================================
   首页专栏卡片 - 仿专栏页
======================================== */

/* 专栏卡片 */
.column-card {
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    padding: var(--tencent-spacing-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
    transition: all var(--tencent-transition);
}

.column-card:hover {
    box-shadow: var(--tencent-shadow-hover);
    transform: translateY(-2px);
}

.column-header {
    display: flex;
    align-items: center;
    gap: var(--tencent-spacing-sm);
    margin-bottom: var(--tencent-spacing-sm);
}

.column-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--tencent-radius-sm);
    background: linear-gradient(135deg, var(--tencent-primary), var(--tencent-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tencent-text);
}

.column-desc {
    font-size: 13px;
    color: var(--tencent-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--tencent-spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--tencent-text-muted);
}

/* ========================================
   文章底部操作栏
======================================== */

/* 点赞/收藏/分享栏 */
.article-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tencent-spacing-lg);
    padding: var(--tencent-spacing-md);
    margin-top: var(--tencent-spacing-lg);
    background: var(--tencent-bg-hover);
    border-radius: var(--tencent-radius-md);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--tencent-bg-card);
    border: 1px solid var(--tencent-border);
    border-radius: var(--tencent-radius-md);
    font-size: 14px;
    color: var(--tencent-text-secondary);
    cursor: pointer;
    transition: all var(--tencent-transition);
}

.action-btn:hover {
    border-color: var(--tencent-primary);
    color: var(--tencent-primary);
}

.action-btn.liked,
.action-btn.favorited {
    background: var(--tencent-bg-tag);
    border-color: var(--tencent-primary);
    color: var(--tencent-primary);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   面包屑导航
======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tencent-text-muted);
    margin-bottom: var(--tencent-spacing-md);
    padding: var(--tencent-spacing-sm) var(--tencent-spacing-md);
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-sm);
}

.breadcrumb a {
    color: var(--tencent-text-secondary);
}

.breadcrumb a:hover {
    color: var(--tencent-primary);
}

.breadcrumb .separator {
    color: var(--tencent-text-muted);
}

.breadcrumb .current {
    color: var(--tencent-text);
}

/* ========================================
   目录导航（TOC）
======================================== */

.toc-widget {
    position: sticky;
    top: 80px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    padding: 6px 0;
    border-left: 2px solid var(--tencent-border-light);
    padding-left: var(--tencent-spacing-sm);
}

.toc-list li.active {
    border-left-color: var(--tencent-primary);
}

.toc-list a {
    font-size: 13px;
    color: var(--tencent-text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toc-list a:hover,
.toc-list li.active a {
    color: var(--tencent-primary);
}

.toc-list .toc-h3 {
    padding-left: calc(var(--tencent-spacing-sm) * 2);
    font-size: 12px;
}

/* ========================================
   评论区
======================================== */

.comments-area {
    margin-top: var(--tencent-spacing-lg);
    padding: var(--tencent-spacing-lg);
    background: var(--tencent-bg-card);
    border-radius: var(--tencent-radius-md);
    box-shadow: var(--tencent-shadow-sm);
    border: 1px solid var(--tencent-border-light);
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tencent-text);
    margin-bottom: var(--tencent-spacing-md);
    padding-left: var(--tencent-spacing-sm);
    border-left: 4px solid var(--tencent-primary);
}

.comment {
    padding: var(--tencent-spacing-md);
    margin-bottom: var(--tencent-spacing-md);
    background: var(--tencent-bg-hover);
    border-radius: var(--tencent-radius-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--tencent-spacing-sm);
    margin-bottom: var(--tencent-spacing-sm);
}

.comment-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 600;
    color: var(--tencent-text);
}

.comment-meta {
    font-size: 12px;
    color: var(--tencent-text-muted);
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--tencent-text-secondary);
}

/* ========================================
   阅读进度条
======================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tencent-primary), var(--tencent-primary-light));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   返回顶部按钮
======================================== */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: var(--tencent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tencent-shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--tencent-transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--tencent-primary-dark);
    transform: translateY(-2px);
}

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

/* ========================================
   文章阅读时长/字数统计
======================================== */

.reading-stats {
    display: inline-flex;
    align-items: center;
    gap: var(--tencent-spacing-md);
    font-size: 12px;
    color: var(--tencent-text-muted);
    padding: 4px 12px;
    background: var(--tencent-bg-hover);
    border-radius: var(--tencent-radius-full);
}

.reading-stats svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   移动端优化
======================================== */

@media screen and (max-width: 768px) {
    /* 移动端隐藏部分侧边栏 */
    .sidebar .widget:nth-child(n+3) {
        display: none;
    }
    
    /* 文章卡片移动端布局 */
    article.post .post-inner,
    article.type-post .post-inner {
        flex-direction: column;
    }
    
    /* 作者信息简化 */
    .author-info {
        padding: var(--tencent-spacing-sm);
    }
    
    .author-avatar-large {
        width: 36px;
        height: 36px;
    }
    
    /* 相关文章单列 */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* 操作栏简化 */
    .article-actions {
        flex-wrap: wrap;
        gap: var(--tencent-spacing-sm);
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   打印优化
======================================== */

@media print {
    .sidebar,
    .article-actions,
    .comments-area,
    .related-posts,
    .back-to-top,
    .reading-progress {
        display: none !important;
    }
    
    .single-post article.post,
    .single article.type-post {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .entry-content {
        font-size: 12pt;
    }
}

/* ========================================
   暗色模式支持（可选）
======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --tencent-bg-page: #0D1117;
        --tencent-bg-card: #161B22;
        --tencent-bg-hover: #1C2128;
        --tencent-bg-tag: #1F3A5F;
        --tencent-text: #C9D1D9;
        --tencent-text-secondary: #8B949E;
        --tencent-text-muted: #6E7681;
        --tencent-border: #30363D;
        --tencent-border-light: #21262D;
    }
}
