﻿:root {
    --teal: #FED92F;
    --teal-dim: rgba(254,217,47,0.12);
    --teal-glow: rgba(254,217,47,0.25);
    --bg: #fffef5;
    --bg2: #fffde0;
    --card-bg: rgba(255,255,255,0.85);
    --text: #3d2e0a;
    --text-muted: #6b5d3a;
    --text-dim: #a8986a;
    --border: rgba(254,217,47,0.2);
    --border-hover: rgba(254,217,47,0.5);
    --grid-line: rgba(0,0,0,0.02);
    --glow-radial: rgba(254,217,47,0.06);
}
.dark {
    --teal: #FED92F;    
    --teal-dim: rgba(254,217,47,0.12);
    --teal-glow: rgba(254,217,47,0.3);
    --bg: #0d1117;      
    --bg2: #131920;      
    --card-bg: rgba(20, 32, 44, 0.85); 
    --text: #e8f4f3;    
    --text-muted: #7a9e9b; 
    --text-dim: #4a6b68;   
    --border: rgba(254,217,47,0.15);
    --border-hover: rgba(254,217,47,0.45);
    --grid-line: rgba(254,217,47,0.03); 
    --glow-radial: rgba(254,217,47,0.07);
}


body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}
body::before {
    content: ''; 
    position: fixed; 
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 15% 20%, var(--glow-radial) 0%, transparent 60%),
                radial-gradient(ellipse 40% 40% at 85% 75%, var(--glow-radial) 0%, transparent 55%);
    pointer-events: none; 
    z-index: -1;
    transition: background 0.5s ease;
}
body::after {
    content: ''; 
    position: fixed; 
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; 
    z-index: -1;
    transition: background-image 0.5s ease;
}


.pagination { 
    margin-top: 3rem; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 0.35rem; 
    flex-wrap: wrap; 
    list-style: none; 
    padding: 0; 
}
.pagination li {
    display: inline-block;
}
.pagination li a, 
.pagination li span { 
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border: 1px solid #e8e0cc;
    border-radius: 10px; 
    background: rgba(255,255,255,0.7); 
    color: #8b7d65; 
    transition: all 0.25s ease; 
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.pagination li.prev a,
.pagination li.next a {
    font-size: 13px;
    padding: 0 1rem;
    gap: 4px;
}
.pagination li.current a { 
    border-color: #FED92F; 
    background: #FED92F; 
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(254,217,47,0.3); 
}
.pagination li a:hover { 
    border-color: #FED92F; 
    background: rgba(254,217,47,0.1); 
    color: #ccb000;
}
.pagination li.current a:hover {
    background: #e6c200;
}
.pagination li span.dots {
    border: none;
    background: transparent;
    color: #c5b99a;
    min-width: auto;
    padding: 0 4px;
}
/* 响应式*/
@media (max-width: 640px) {
    .pagination li a, .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(16px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.post-card { 
    animation: fadeUp 0.6s ease both; 
    background: var(--card-bg); 
    backdrop-filter: blur(8px); 
    transition: background-color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease; 
}
.post-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 30px var(--teal-glow); 
}

body #comments .comment-list, 
body #comments .comment-list ol { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: block; 
    width: 100%; 
}
body #comments .comment-list li { 
    display: block; 
    width: 100%; 
    margin-top: 1.5rem; 
}
body #comments .comment-body { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
}
body #comments .comment-author { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 0.5rem; 
    color: var(--text); 
    font-weight: 600; 
}
body #comments .comment-author img.avatar { 
    border-radius: 50%; 
    width: 44px; 
    height: 44px; 
    border: 2px solid var(--teal-dim); 
}
body #comments .comment-meta { 
    font-size: 0.875rem; 
    color: var(--text-dim); 
    margin-bottom: 0.75rem; 
}
body #comments .comment-meta a { 
    color: var(--text-dim); 
}
body #comments .comment-content {
    background: var(--bg2); 
    padding: 1.25rem; 
    border-radius: 0.75rem; 
    color: var(--text); 
    margin-bottom: 0.75rem; 
    border: 1px solid var(--border);
    overflow-wrap: break-word; 
    word-break: break-word; 
}
body #comments .comment-content p { 
    margin: 0; 
}
body #comments .comment-content a { 
    color: var(--teal); 
    text-decoration: underline; 
    text-underline-offset: 2px; 
    word-break: break-all; 
}
body #comments .comment-content a:hover { 
    text-shadow: 0 0 8px var(--teal-glow); 
}
body #comments .comment-reply { 
    align-self: flex-end; 
    font-size: 0.875rem; 
}
body #comments .comment-reply a { 
    color: var(--teal); 
    background: var(--teal-dim); 
    padding: 0.25rem 0.75rem; 
    border-radius: 9999px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
}
body #comments .comment-reply a:hover { 
    background: var(--teal); 
    color: #fff; 
    box-shadow: 0 0 10px var(--teal-glow); 
}
body #comments .comment-children { 
    margin-top: 1.5rem; 
    padding-left: 2rem; 
    border-left: 2px solid var(--teal-dim); 
    width: 100%; 
}
@media (max-width: 768px) { 
    body #comments .comment-children { 
        padding-left: 1rem; 
    } 
}
body #respond { 
    display: block; 
    width: 100%; 
    clear: both; 
    margin-top: 2rem; 
}

/* Banner 视差滚动 */
#home-banner .relative.z-10,
.post-banner-content {
    transition: transform 0.1s linear, opacity 0.1s linear;
    will-change: transform, opacity;
}


/* ===== 加入我们 ===== */
.join-section {
    padding: 70px 24px;
    text-align: center;
    background: linear-gradient(135deg, #fffef5, #fffde0, #fff9c4);
    border-top: 1px solid rgba(254, 217, 47, 0.15);
}
.join-container {
    max-width: 600px;
    margin: 0 auto;
}
.join-heading {
    font-size: 32px;
    font-weight: 800;
    color: #665500;
    margin: 0 0 12px 0;
}
.join-heading-line {
    width: 50px;
    height: 3px;
    background: #FED92F;
    border-radius: 2px;
    margin: 0 auto 18px;
}
.join-desc {
    font-size: 15px;
    color: #998000;
    margin-bottom: 28px;
}
.join-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.join-input {
    padding: 12px 18px;
    border: 1px solid #fff0a0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    outline: none;
    min-width: 120px;
    flex: 1;
}
.join-input:focus {
    border-color: #FED92F;
}
.join-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    display: inline-block;
}
.join-btn-consult {
    background: #fff;
    color: #665500;
    border: 1px solid #FED92F;
}
.join-btn-consult:hover {
    background: #FED92F;
    color: #fff;
}
.join-btn-submit {
    background: #FED92F;
    color: #fff;
}
.join-btn-submit:hover {
    background: #e6c200;
}

/* ===== 页脚===== */
.site-footer {
    background: #1a1a2e;
    padding: 48px 0 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { min-width: 180px; }
.footer-brand-top {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.footer-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.footer-brand-name { font-size: 18px; font-weight: 700; color: #fff; }
.footer-tagline { font-size: 13px; color: #7a7a90; }
.footer-col-title {
    font-size: 14px; font-weight: 700; color: #fff;
    margin-bottom: 16px; padding-bottom: 8px; position: relative;
}
.footer-col-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 20px; height: 2px; background: #fdd835; border-radius: 1px;
}
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list-item { font-size: 13px; color: #9090a0; display: flex !important; align-items: center; gap: 6px; flex-wrap: nowrap !important; }
.footer-icon-img { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.footer-list a { color: #9090a0; text-decoration: none; font-size: 13px; }
.footer-list a:hover { color: #fdd835; }


/* 二维码 */
.footer-qr { display: flex; gap: 16px; }
.qr-item { text-align: center; }
.qr-placeholder {
    width: 100px; height: 100px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px; overflow: hidden;
    margin-bottom: 8px;
}
.qr-placeholder img {
    width: 100%; height: 100%; object-fit: contain;
}
.qr-label { font-size: 12px; color: #707080; }

/* 版权行 */
.footer-bottom {
    padding: 20px 0; text-align: center;
    font-size: 12px; color: #606070;
}
.footer-bottom a { color: #606070; text-decoration: none; }
.footer-bottom a:hover { color: #fdd835; }

/* 响应式*/
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-container { padding: 0 20px; }
    .footer-qr { justify-content: center; }
}

/* ===== 返回顶部 ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FED92F;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(254, 217, 47, 0.35);
}
.back-top:hover {
    background: #e6c200;
}

/* ===== 响应式===== */
@media (max-width: 768px) {
    .join-section {
        padding: 50px 16px;
    }
    .join-heading {
        font-size: 26px;
    }
    .join-form {
        flex-direction: column;
    }
    .join-input {
        width: 100%;
        max-width: 100%;
    }
    .join-btn {
        width: 100%;
    }
    .back-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
