/* ==========================================================================
   Aibeige Monevator Theme - Exact Replica
   Based on monevator.com screenshot analysis
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
    --color-link: #2a5db0;
    --color-link-hover: #1a4080;
    --color-text: #222;
    --color-text-secondary: #555;
    --color-text-light: #888;
    --color-meta: #999;
    --color-border: #ddd;
    --color-bg: #fff;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --container-width: 680px;
}

/* Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }
body {
    margin: 0; padding: 0;
    font-family: var(--font-serif);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header
   ========================================================================== */
.site-header {
    padding-top: 8px;
    margin-bottom: 30px;
}

/* Top Nav Bar (About · Archives · Contact ...) */
.top-nav {
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 16px;
}

.top-nav .nav {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 18px;
}

.top-nav .nav li { margin: 0; }

.top-nav .nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.top-nav .nav a:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.top-nav-right {
    margin-left: auto;
}

.top-nav-link {
    color: var(--color-text-secondary) !important;
}

.top-nav a:hover {
    color: var(--color-text) !important;
}

/* Logo Area */
.site-brand {
    text-align: left;
    padding: 10px 0 12px;
}

.site-logo img {
    max-height: 90px;
    /* margin: 0 auto; 已移除 */
}

.site-title {
    font-family: Georgia, serif;
    font-size: 72px;
    font-weight: 400;
    color: #666;
    letter-spacing: -1px;
    line-height: 1;
    display: inline-block;
}

.site-description {
    text-align: right;
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* Header Bottom Row (MENU + FOLLOW) */
.header-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 0;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.05em;
    max-width: 1100px;
    /* margin: 0 auto; 已移除 */
}

.header-bottom-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-follow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.follow-label {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
}

.x-icon { background: #000; color: #fff; }
.yt-icon { background: #FF0000; color: #fff; }
.tk-icon { background: #000; color: #fff; }

.social-icon:hover { opacity: 0.85; text-decoration: none; }

/* Post Feed / Article List
   ========================================================================== */
.post-feed {
    /* no extra styles needed */
}

.post-card {
    margin-bottom: 50px;
    padding-bottom: 35px;
    /* border-bottom: none;; */
}

.post-card:last-child {
    /* border-bottom: none; */
}

.post-card-header {
    margin-bottom: 18px;
}

.post-card-title {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 6px;
}

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

.post-card-title a:hover {
    text-decoration: none;
    color: var(--color-link-hover);
}

.post-card-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.post-date {
    color: var(--color-meta);
}

/* Post Card Body - Image Right Layout */
.post-card-body {
    overflow: hidden;
}

.post-image-right {
    float: right;
    width: 280px;
    margin: 4px 0 15px 25px;
}

.post-image-right img {
    width: 100%;
    border: 1px solid var(--color-border);
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
}

.post-content p {
    margin: 0 0 16px;
}

/* Article (Single Post)
   ========================================================================== */
.article {
    margin-bottom: 60px;
}

.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--color-link);
}

.article-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-meta);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.article-date {
    color: var(--color-meta);
}

/* Article Body - Image Right + Text Left */
.article-body {
    overflow: hidden;
}

.article-image-right {
    float: right;
    width: 300px;
    margin: 4px 0 20px 28px;
}

.article-image-right img {
    width: 100%;
    border: 1px solid var(--color-border);
}

.article-image-right figcaption {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-meta);
    text-align: center;
    margin-top: 6px;
}

/* Content Styles
   ========================================================================== */
.gh-content {
    font-size: 18px;
    line-height: 1.7;
}

.gh-content > *:first-child { margin-top: 0; }
.gh-content > *:last-child { margin-bottom: 0; }

/* Drop Cap - Monevator style big first letter */
.gh-content > p:first-of-type::first-letter {
    float: left;
    font-size: 68px;
    line-height: 55px;
    font-weight: 700;
    margin: 6px 8px 0 0;
    color: var(--color-text);
}

.gh-content h2 {
    font-size: 26px;
    font-weight: 400;
    margin: 32px 0 12px;
    color: var(--color-link);
}

.gh-content h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 28px 0 10px;
}

.gh-content p {
    margin: 0 0 18px;
}

.gh-content ul, .gh-content ol {
    padding-left: 28px;
    margin: 0 0 18px;
}

.gh-content li {
    margin-bottom: 6px;
}

.gh-content blockquote {
    border-left: 3px solid var(--color-border);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.gh-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 2px 5px;
}

.gh-content pre {
    background: #f5f5f5;
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

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

.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}

.gh-content strong {
    font-weight: 700;
}

.gh-content em {
    font-style: italic;
}

.gh-content a {
    color: var(--color-link);
    text-decoration: underline;
}

.gh-content img {
    border: 1px solid var(--color-border);
    margin: 16px 0;
}

.gh-content figcaption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-meta);
    text-align: center;
    margin-top: 6px;
}

/* Article Footer
   ========================================================================== */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.article-footer a {
    color: var(--color-link);
}

/* Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
    font-family: var(--font-sans);
    font-size: 14px;
}

.pagination a {
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.pagination a:hover {
    background: #f9f9f9;
    text-decoration: none;
}

/* Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    margin-top: 50px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-meta);
}

.site-footer p {
    margin: 0;
}

/* Sidebar
   ========================================================================== */
.container-with-sidebar {
    display: flex;
    gap: 40px;
    max-width: 1100px;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 750px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-link);
    color: var(--color-text);
}

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

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

.sidebar-links a {
    display: block;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: var(--color-text);
    transition: all 0.2s;
}

.sidebar-links a:hover {
    background: var(--color-link);
    color: #fff;
    text-decoration: none;
    border-color: var(--color-link);
}

.sidebar-ad {
    min-height: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Page
   ========================================================================== */
.error-template {
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: 80px;
    color: var(--color-border);
    line-height: 1;
    margin: 0 0 12px;
}

.error-description {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

.error-link {
    font-family: var(--font-sans);
    font-weight: 600;
}

/* Author Page
   ========================================================================== */
.author-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    /* border-bottom: none;; */
}

.author-header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

.author-header-name {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px;
}

.author-header-bio {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin: 0 auto;
    max-width: 500px;
}

.author-header-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-meta);
}

/* Tag Page
   ========================================================================== */
.tag-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    /* border-bottom: none;; */
}

.tag-header-name {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px;
}

.tag-header-description {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Responsive
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
    }

    html { font-size: 16px; }

    .site-title { font-size: 48px; }

    .post-card-title { font-size: 26px; }
    .article-title { font-size: 28px; }

    .post-image-right,
    .article-image-right {
        float: none;
        width: 100%;
        margin: 0 0 16px 0;
    }

    .header-bottom {
        flex-direction: row;
    }

    .top-nav {
        font-size: 12px;
    }

    .gh-content > p:first-of-type::first-letter {
        font-size: 52px;
        line-height: 42px;
    }

    /* Sidebar on mobile */
    .container-with-sidebar {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }

    .site-title { font-size: 38px; }

    .social-follow { gap: 4px; }
    .social-icon { width: 20px; height: 20px; font-size: 12px; }
}
/* ==========================================================================
   Ghost Editor Card Widths
   ========================================================================== */
.kg-width-wide {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ==========================================================================
   AdSense Ad Slots
   ========================================================================== */
.ad-container {
    margin: 32px auto;
    padding: 16px 0;
    text-align: center;
    min-height: 90px;
    border-top: 1px solid var(--color-border);
    /* border-bottom: none;; */
}

.ad-container ins.adsbygoogle {
    display: block !important;
    /* margin: 0 auto; 已移除 */
}

/* ==========================================================================
   Tools Page - Monevator Style
   ========================================================================== */
.tools-page .page-title {
    font-size: 2rem;
    color: var(--color-link);
    font-family: var(--font-serif);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 32px;
}

.tool-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
}

.tool-item:last-of-type {
    border-bottom: none;
}

.tool-icon {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background: var(--color-link);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.tool-content h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: normal;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tool-content h3 a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.tool-content h3 a:hover {
    color: var(--color-link-hover);
    border-bottom-color: var(--color-link-hover);
}

.tool-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.tools-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid var(--color-link);
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.tools-disclaimer p {
    margin: 0;
}

/* Tools page responsive */
@media (max-width: 600px) {
    .tools-page .page-title {
        font-size: 1.6rem;
    }
    
    .tool-item {
        gap: 14px;
        margin-bottom: 28px;
        padding-bottom: 22px;
    }
    
    .tool-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .tool-content h3 {
        font-size: 1.15rem;
    }
    
    .tool-content p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Calculator Tools - Interactive
   ========================================================================== */

.calc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.calc-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
}

.calc-tab:hover { color: var(--color-link, #2563eb); }

.calc-tab.active {
    color: var(--color-link, #2563eb);
}

.calc-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-link, #2563eb);
}

.calc-panel { display: none; }
.calc-panel.active { display: block; }

.calc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text, #111);
}

.calc-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.calc-form {
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 16px;
}

.form-row:last-of-type { margin-bottom: 4px; }

.form-row label {
    min-width: 140px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #374151;
    text-align: right;
}

.form-row input,
.form-row select {
    flex: 1;
    max-width: 260px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-link, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-radio-group {
    display: block !important;
    align-items: flex-start !important;
}

.radio-options {
    margin-top: 4px;
}

.radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    font-weight: normal !important;
    font-size: 0.9rem !important;
    margin-bottom: 6px;
    cursor: pointer;
    min-width: auto !important;
    text-align: left !important;
}

.calc-btn {
    display: inline-block;
    margin-top: 10px;
    margin-left: 156px;
    padding: 10px 32px;
    background: var(--color-link, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.calc-btn:hover { opacity: 0.88; }

/* Result */
.calc-result {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.result-highlight {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-left: 4px solid var(--color-link, #2563eb);
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
}

.result-label {
    font-size: 0.95rem;
    color: #4b5563;
    font-weight: 600;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-link, #2563eb);
}

.result-unit {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 600;
}

.result-detail {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.result-box {
    background: #f8f9fa;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
}

.result-box-label {
    display: block;
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.result-box-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
}

/* Charts */
.calc-result canvas {
    width: 100% !important;
    height: auto !important;
    margin-top: 12px;
    border-radius: 6px;
    background: #fafbfc;
}

@media (max-width: 650px) {
    .calc-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .calc-tab { white-space: nowrap; padding: 10px 14px; font-size: 0.9rem; }
    .calc-form { padding: 16px; }
    .form-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .form-row label { text-align: left; min-width: auto; }
    .form-row input, .form-row select { max-width: none; width: 100%; }
    .calc-btn { margin-left: 0; width: 100%; }
    .result-value { font-size: 1.4rem; }
    .result-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   BBS - Anonymous Message Board
   ========================================================================== */

.bbs-page {
    max-width: 720px;
    /* margin: 0 auto; 已移除 */
}

.bbs-page .page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--color-text, #111);
}

.bbs-subtitle {
    color: #888;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.bbs-post-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 28px;
}

#bbs-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#bbs-input:focus {
    outline: none;
    border-color: var(--color-link, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.bbs-post-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

#bbs-char-count {
    font-size: 0.82rem;
    color: #999;
}

.bbs-post-btn {
    padding: 8px 24px;
    background: var(--color-link, #2563eb);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.bbs-post-btn:hover { opacity: 0.88; }
.bbs-post-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.bbs-msg {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1.2em;
}

.bbs-msg.success { color: #16a34a; }
.bbs-msg.error { color: #ef4444; }

.bbs-posts {
    margin-top: 8px;
}

.bbs-loading, .bbs-empty {
    text-align: center;
    color: #aaa;
    padding: 32px 0;
    font-size: 0.95rem;
}

.bbs-post {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeIn 0.3s ease;
}

.bbs-post:last-child { border-bottom: none; }

.bbs-post-time {
    font-size: 0.82rem;
    color: #aaa;
    font-weight: 600;
    white-space: nowrap;
    min-width: 42px;
    padding-top: 2px;
}

.bbs-post-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #333;
    word-break: break-word;
}

@media (max-width: 500px) {
    .bbs-post { gap: 10px; }
    .bbs-post-box { padding: 12px 14px; }
}

/* ==========================================================================
   New Header Layout: Logo left, Nav right (Monevator style)
   ========================================================================== */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 10px;
    padding-left: 20px;
}

.site-brand {
    text-align: left;
}

.site-logo img {
    max-height: 70px;
    margin: 0;
}

.site-description {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-link);
}

/* Hide old top-nav */
.top-nav { display: none; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ==========================================================================
   Sidebar Search Widget
   ========================================================================== */
.sidebar-search .site-search-form {
    display: flex;
    gap: 8px;
}

.site-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.site-search-input:focus {
    outline: none;
    border-color: var(--color-link);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.site-search-btn {
    padding: 10px 18px;
    background: var(--color-link);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.site-search-btn:hover {
    opacity: 0.9;
}