/**
 * Typecool - 主题样式
 * 
 * @package Typecool
 * @author RAO
 * @version 1.0.0
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    --primary-color: #4939e4;
    --primary-hover: #3a2dc0;
    --secondary-color: #f5a623;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --body-bg: #f5f1eb;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ========================================
   Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
}

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

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

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

/* ========================================
   Header
======================================== */
.site-header {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-color);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
}

.logo-img {
    max-height: 36px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-link {
    color: var(--text-muted);
    font-size: 18px;
}

.icon-link:hover {
    color: var(--primary-color);
}

/* ========================================
   Hero Banner
======================================== */
.hero-banner {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.search-form {
    max-width: 650px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0 8px 0 20px;
    height: 48px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #333;
    height: 100%;
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-hover);
}

/* ========================================
   Main Content
======================================== */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

/* Section Styles */
.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
}

.title-bar {
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

.title-en {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 10px;
}

.more-link {
    color: var(--text-muted);
    font-size: 13px;
}

.more-link:hover {
    color: var(--primary-color);
}

/* ========================================
   Post Card
======================================== */
.post-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-thumb {
    display: block;
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    background-color: #ddd;
}

.card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.card-title a:hover {
    color: var(--primary-color);
}

/* ========================================
   Friend Links
======================================== */
.friend-links-section {
    margin-top: 20px;
}

.friend-links-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.friend-links-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.friend-links a {
    color: var(--text-muted);
    font-size: 13px;
}

.friend-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   Article Page
======================================== */
.article-page {
    padding: 30px 0;
}

.article-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.meta-item i {
    font-size: 14px;
}

.like-count {
    color: #ff6b6b;
}

/* Article Thumbnail */
.article-thumb {
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    display: block;
}

/* Article Content */
.article-body {
    padding: 10px 0;
}

.article-content {
    line-height: 1.8;
    font-size: 15px;
}

.article-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px;
}

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

.article-content img {
    border-radius: var(--border-radius);
    margin: 15px 0;
}

/* ========================================
   Code Block Styles - Override Bootstrap
   ======================================== */

/* Pre block - highest priority */
.article-content pre,
html body .article-content pre,
html body .article-content pre[class*="language-"] {
    display: block !important;
    position: relative !important;
    background-color: #f5f1eb !important;
    padding: 45px 20px 20px 20px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    margin: 20px 0 !important;
    line-height: 1.6 !important;
    border: 1px solid #e0dcd6 !important;
    box-sizing: border-box !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
    font-size: 14px !important;
    white-space: pre !important;
    word-wrap: normal !important;
}

/* Code inside pre - highest priority */
.article-content pre code,
html body .article-content pre code,
html body .article-content pre code[class*="language-"] {
    display: block !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    color: #333333 !important;
    text-shadow: none !important;
    white-space: pre !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    line-height: inherit !important;
    tab-size: 4 !important;
}

/* Copy button - fixed top right */
.article-content pre .copy-code-btn,
html body .article-content pre .copy-code-btn {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-block !important;
    background-color: rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    color: #666 !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 999 !important;
    line-height: 1.4 !important;
}

.article-content pre .copy-code-btn:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

.article-content pre .copy-code-btn.copied {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* Inline code - not in pre */
.article-content code:not(pre code),
.article-content p code,
.article-content li code,
.article-content td code,
.article-content h1 code,
.article-content h2 code,
.article-content h3 code,
.article-content h4 code {
    display: inline !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
    font-size: 0.875em !important;
    background-color: rgba(175, 184, 193, 0.2) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    color: #e83e8c !important;
    white-space: nowrap !important;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 10px 20px;
    margin: 15px 0;
    background-color: #f8f9fa;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Action Buttons */
.article-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-demo {
    background-color: #e9ecef;
    color: var(--text-color);
}

.btn-demo:hover {
    background-color: #dee2e6;
    color: var(--text-color);
}

.btn-download {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-download:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.btn-author {
    background-color: #ff6b6b;
    color: #fff;
}

.btn-author:hover {
    background-color: #ee5a5a;
    color: #fff;
}

/* Article Interact */
.article-interact {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.interact-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.like-btn {
    background-color: #fff0f0;
    color: #ff6b6b;
}

.like-btn:hover,
.like-btn.liked {
    background-color: #ff6b6b;
    color: #fff;
}

.reward-btn {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.reward-btn:hover {
    background-color: var(--success-color);
    color: #fff;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.article-tags a {
    color: var(--text-muted);
}

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

/* Post Navigation */
.post-navigation {
    display: flex;
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    gap: 3px;
}

.nav-prev,
.nav-next {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--primary-color);
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: var(--primary-hover);
    color: #fff;
    text-decoration: none;
}

.nav-prev {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    justify-content: flex-start;
}

.nav-prev i {
    font-size: 18px;
}

.nav-next {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    justify-content: flex-end;
    text-align: right;
}

.nav-next i {
    font-size: 18px;
}

.nav-content {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}

.nav-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    margin-bottom: 3px;
}

.nav-title {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-empty {
    background-color: var(--primary-color);
    opacity: 0.6;
    pointer-events: none;
}

/* Nav link styles - thePrev/theNext generates <a> inside nav-prev/nav-next */
.nav-prev a,
.nav-next a,
.nav-prev a:hover,
.nav-next a:hover,
.nav-title a,
.nav-title a:hover {
    color: #fff !important;
    text-decoration: none;
}

/* ========================================
   Related Posts
======================================== */
.related-posts {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.related-posts .section-title {
    margin-bottom: 20px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: flex-start;
}

.related-thumb {
    width: 70px;
    min-width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #eee;
    flex-shrink: 0;
}

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

.related-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.related-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.related-meta i {
    margin-right: 4px;
}

.related-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ========================================
   Comments Section
======================================== */
.comments-section {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.comments-section .section-title {
    margin-bottom: 20px;
}

/* Comment Form */
.comment-form-wrapper {
    margin-bottom: 30px;
}

.comment-input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ddd;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-textarea-wrapper {
    flex: 1;
    position: relative;
}

.comment-textarea-wrapper textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 50px 12px 15px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: var(--transition);
}

.comment-textarea-wrapper textarea:focus {
    border-color: var(--primary-color);
}

.comment-submit {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.comment-submit:hover {
    background-color: var(--primary-hover);
}

.comment-fields {
    margin-top: 15px;
}

.comment-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    transition: var(--transition);
}

.comment-input:focus {
    border-color: var(--primary-color);
}

/* Comments List */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

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

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions a {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-children {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* ========================================
   Pagination
======================================== */
.pagination-nav {
    margin-top: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-item {
    list-style: none;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    background-color: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.page-item .page-link:hover {
    color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(73, 57, 228, 0.35);
}

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

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background-color: var(--card-bg);
}

/* Typecho default pagination styles */
.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

/* If pageNav outputs as ol/ul list */
.page-navigator li {
    list-style: none;
    display: inline-block;
}

/* All clickable elements and page numbers */
.page-navigator a,
.page-navigator li a,
.page-navigator span,
.page-navigator li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    color: #888;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover state */
.page-navigator a:hover,
.page-navigator li a:hover {
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Current/active page - multiple selectors for different Typecho output formats */
.page-navigator .current,
.page-navigator .current a,
.page-navigator li.current,
.page-navigator li.current a,
.page-navigator a.current,
.page-navigator span.current {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(73, 57, 228, 0.4);
    border-radius: 10px !important;
}

/* Dots/ellipsis */
.page-navigator .dots,
.page-navigator li.dots,
.page-navigator li.dots span {
    background: transparent;
    box-shadow: none;
    color: #aaa;
    min-width: 30px;
    padding: 10px 8px;
}

/* ========================================
   No Results
======================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

/* ========================================
   Reward Modal
======================================== */
.reward-qrcodes {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

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

.qrcode-item img {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.qrcode-item span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Back to Top
======================================== */
.back-to-top-wrapper {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.back-to-top,
.go-to-bottom {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(73, 57, 228, 0.4);
    transition: var(--transition);
}

.back-to-top:hover,
.go-to-bottom:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-3px);
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background-color: #3d3d3d;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copyright {
    font-size: 13px;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright a:hover {
    color: #fff;
}

.typecho-link {
    font-weight: 600;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--card-bg);
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    .navbar-nav {
        margin-bottom: 15px;
    }
    
    .navbar-icons {
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .hero-title {
        font-size: 24px;
        letter-spacing: 4px;
    }
    
    .article-box {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-prev {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 767px) {
    .hero-banner {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .title-en {
        display: none;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .reward-qrcodes {
        flex-direction: column;
        align-items: center;
    }
    
    .comment-input-wrapper {
        flex-direction: column;
    }
    
    .comment-avatar {
        display: none;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ========================================
   Lazyload
======================================== */
.lazyload,
.lazyloading {
    opacity: 0;
}

.lazyloaded {
    opacity: 1;
    transition: opacity 0.3s;
}

/* ========================================
   Dark Mode
======================================== */
body.dark-mode {
    --body-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-color: #eaeaea;
    --text-muted: #a0a0a0;
    --border-color: #2a2a4a;
}

body.dark-mode .site-header {
    background-color: var(--card-bg);
}

body.dark-mode .navbar-brand {
    color: var(--text-color);
}

body.dark-mode .nav-link {
    color: var(--text-color) !important;
}

body.dark-mode .search-wrapper {
    background-color: #fff;
}

body.dark-mode .search-input {
    background-color: transparent;
    color: #333;
}

body.dark-mode .theme-toggle i::before {
    content: "\f185";
}

body.dark-mode .article-content blockquote {
    background-color: #1e1e3f;
}

body.dark-mode .btn-demo {
    background-color: #2a2a4a;
    color: var(--text-color);
}

/* ========================================
   Comment Extras (badges, floor, reply-info)
======================================== */
.comment-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
}

.comment-floor {
    display: inline-block;
    font-size: 11px;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    vertical-align: middle;
}

.comment-reply-info {
    display: inline-block;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--border-color);
    padding: 1px 7px;
    border-radius: 5px;
    vertical-align: middle;
}

.comment-by-author > .comment-avatar img {
    box-shadow: 0 0 0 2px var(--primary-color);
}
