/**
 * 全局基础样式
 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #333333;
    --text-color: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.btn-primary,
.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-submit:hover {
    background: #0052a3;
    color: var(--white);
}

/* 标题样式 */
.section-title {
    font-size: 32px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.section-title:hover {
    color: #d4af37;
    transform: scale(1.05);
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title:hover::after {
    width: 120px;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

/* 头部样式 */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.language-switcher a {
    margin-left: 10px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.language-switcher a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo img,
.custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1;
    white-space: nowrap;
}

/* 如果只有Logo没有文字 */
.custom-logo-link {
    display: inline-block;
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

/* 导航栏对齐方式 */
.main-navigation .nav-menu-center {
    justify-content: center;
    margin: 0 auto;
}

.main-navigation .nav-menu-left {
    justify-content: flex-start;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: var(--nav-spacing, 30px);
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

.main-navigation .nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle:hover span {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.mobile-menu-toggle:active span {
    transform: scale(0.9);
}

/* 底部样式 - 浅色优雅风格 */
.site-footer {
    background: #f5f5f5;
    color: #333333;
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4af37 0%, #f0d98d 50%, #d4af37 100%);
}

.footer-main {
    padding: 80px 0 60px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-main .container {
    max-width: 1400px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1fr;
    gap: 60px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.footer-grid h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-grid h4 {
    font-size: 16px;
    margin-bottom: 25px;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-about p {
    color: #666666;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 0;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 14px;
}

.footer-menu a {
    color: #666666;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    color: #d4af37;
}

.footer-menu a:hover::after {
    width: 100%;
}

.footer-contact p {
    color: #666666;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact p a {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact p a:hover {
    color: #d4af37;
}

.contact-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.footer-qrcode {
    text-align: center;
}

.footer-qrcode h4 {
    text-align: center;
}

.footer-qrcode img {
    max-width: 120px;
    border: 2px solid #d4af37;
    padding: 8px;
    background: white;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: white;
    color: #999;
    font-size: 13px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    background: #ebebeb;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    color: #999999;
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-bottom p img {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-bottom p a {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

/* 响应式 - 页脚 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-qrcode {
        text-align: left;
    }
    
    .footer-qrcode h4 {
        text-align: left;
    }
    
    .footer-qrcode img {
        margin: 0;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* 面包屑 */
.breadcrumb {
    background: var(--bg-light);
    padding: 15px 0;
    font-size: 14px;
}

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

/* 默认页面样式 */
.page-content {
    padding: 60px 0;
    background: #ffffff;
}

.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-article {
    background: #ffffff;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.page-content-area {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-content-area h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    font-weight: 600;
}

.page-content-area h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.page-content-area p {
    margin-bottom: 20px;
}

.page-content-area ul,
.page-content-area ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.page-content-area a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-content-area a:hover {
    color: #0052a3;
}

.page-content-area img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

.page-content-area blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
}

.page-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-content {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-excerpt {
        font-size: 16px;
    }
    
    .page-content-area {
        font-size: 14px;
    }
    
    .page-content-area h2 {
        font-size: 22px;
    }
    
    .page-content-area h3 {
        font-size: 18px;
    }
}

/* ========================================
   评论区样式 (参考 rife-free 主题)
   ======================================== */
.comments-area {
    margin: 60px 0 0;
    padding: 40px;
    background-color: #FAFAFA;
}

.comments-title {
    color: #222;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding-bottom: 20px;
    font-weight: 600;
}

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

.comment {
    min-height: 90px;
    padding: 50px 0 0;
}

.pingback {
    padding-top: 20px;
}

.comment-body {
    position: relative;
    padding-left: 120px;
    line-height: 1.5;
    word-wrap: break-word;
}

.pingback .comment-body {
    padding-left: 0;
}

.comment .comment {
    margin-left: 40px;
}

img.avatar {
    border-radius: 45px;
    display: block;
    position: absolute;
    left: 0;
    transition: all 0.5s;
}

.comment > .comment-body:hover img.avatar {
    transform: scale(0.8);
}

.says,
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.comment-metadata {
    font-size: 12px;
    margin-top: 4px;
}

.comment-metadata a {
    color: #AFAFAF;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #222;
}

.comment-metadata .edit-link {
    margin-left: 1em;
}

.comment-author {
    color: #484848;
    font-size: 15px;
    font-weight: bold;
}

.comment-author a {
    color: #484848;
    text-decoration: none;
}

.comment-author a:hover {
    color: #222;
}

.comment-author .fn {
    font-weight: bold;
    font-style: normal;
}

.comment-content {
    padding: 15px 0;
}

.comment-content p {
    margin: 1em 0 0;
}

.comment-content > p:first-child {
    margin-top: 0;
}

a.comment-reply-link {
    color: #6A6A6A;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

a.comment-reply-link:hover {
    color: #222;
}

em.comment-awaiting-moderation {
    border-bottom: 1px dashed;
}

.comment-navigation {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: #0066cc;
    text-decoration: none;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* ========================================
   评论表单 - 借鉴 rife-free
   ======================================== */
#respond {
    margin: 50px 0 0;
}

#respond:first-child {
    margin-top: 0;
}

.comment-form-comment textarea {
    max-width: none;
}

#reply-title {
    color: #222;
    font-size: 16px;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

#cancel-comment-reply-link {
    padding-left: 10px;
    margin-left: 10px;
    display: inline;
    border-left: 1px solid #222;
    color: #222;
    font-size: 14px;
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    color: #0066cc;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form-comment {
    margin: 0;
    grid-column: 1 / -1;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 12px;
    color: #222;
    font-size: 12px;
    font-weight: 500;
}

.comment-form .required {
    color: #d00;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
}

.comment-form-cookies-consent label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-submit {
    grid-column: 1 / -1;
    margin: 10px 0 0;
}

.submit-button {
    background: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #0052a3;
}

.no-comments {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .comments-area,
    .post-comments .comments-area {
        margin: 40px 0 0;
        padding: 20px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .submit-button {
        width: 100%;
        padding: 14px 20px;
    }

    .comment .comment {
        margin-left: 20px;
    }

    .comment-body {
        padding-left: 70px;
    }

    img.avatar {
        width: 50px;
        height: 50px;
    }
}


/* ========================================
   文章详情页样式
   ======================================== */
.single-post-page {
    padding: 60px 0;
    background: #f8f9fa;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* 主内容区 */
.single-main {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-article {
    padding: 0;
}

/* 文章头部 */
.article-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.article-category {
    margin-bottom: 15px;
}

.article-category a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.article-category a:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.article-title {
    font-size: 36px;
    line-height: 1.4;
    color: var(--secondary-color);
    margin: 0 0 20px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: #999;
    font-size: 14px;
}

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

.meta-item svg {
    opacity: 0.7;
}

/* 特色图片 */
.article-featured-image {
    margin: 0;
    line-height: 0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-content {
    padding: 50px 50px 40px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 25px 0 12px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
}

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

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

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content a:hover {
    color: #0052a3;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #666;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content table th,
.article-content table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.article-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.page-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* 文章底部 */
.article-footer {
    padding: 30px 50px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags svg {
    color: #999;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 分享按钮 */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 14px;
    color: #999;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    transition: var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.share-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.share-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

/* 文章导航 - 已移至 single-post.css */

/* 侧边栏 */
.single-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* 作者信息 */
.author-info {
    text-align: center;
}

.author-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.author-info h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 0 0 10px;
}

.author-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 相关文章 */
.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 20px;
}

.related-posts-list li:last-child {
    margin-bottom: 0;
}

.related-posts-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.related-posts-list a:hover {
    transform: translateX(5px);
}

.related-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0 0 8px;
    line-height: 1.4;
    font-weight: 600;
}

.related-date {
    font-size: 12px;
    color: #999;
}

/* 分类列表 */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.categories-list a:hover {
    background: var(--primary-color);
    color: #fff;
}

.cat-count {
    font-size: 12px;
    color: #999;
}

.categories-list a:hover .cat-count {
    color: rgba(255,255,255,0.8);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .single-post-page {
        padding: 30px 0;
    }
    
    .article-header {
        padding: 30px 20px 20px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .article-content {
        padding: 30px 20px;
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-footer {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    

    
    .sidebar-widget {
        padding: 20px;
    }
    
    .single-sidebar {
        grid-template-columns: 1fr;
    }
}

/* 页脚响应式优化 */
@media (max-width: 768px) {
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-logo img {
        max-height: 50px;
    }
    
    .footer-qrcode {
        text-align: left;
    }
    
    .footer-qrcode h4 {
        text-align: left;
    }
    
    .footer-qrcode img,
    .qrcode-placeholder {
        margin: 0;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #b8941f;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

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

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
