/* ===== 鸣溪川岸主题 - 自定义样式 ===== */

/* Tailwind 已覆盖大部分样式，这里仅放非 Tailwind 的细节样式 */

/* 背景渐变（轮播图蒙层） */
.bg-gradient-custom {
    background: linear-gradient(to right, rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.7));
}

/* 轮播图项过渡（fade） */
.carousel-item {
    transition: opacity 1s ease;
}

/* 卡片悬浮效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 文本阴影 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 回到顶部按钮过渡 */
#backToTop {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 导航栏过渡 */
#navbar {
    transition: all 0.3s ease;
}

/* 文章正文样式（详细） */
.article-body {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.article-body h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1A1A1A;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.article-body ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 600;
    color: #1A1A1A;
}

.article-body a {
    color: #D4AF37;
    text-decoration: underline;
}

.article-body a:hover {
    color: #b8941f;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body blockquote {
    border-left: 4px solid #D4AF37;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: #1A1A1A;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: transparent;
    color: #fff;
    padding: 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

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

.article-body table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* WordPress 内容对齐 */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 1rem auto;
}

.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100%;
    width: 100%;
}

/* WordPress 图片说明 */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* 文章分页 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-navigation a {
    max-width: 45%;
}

/* 文章标签 */
.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-tags a:hover {
    background: #D4AF37;
    color: #fff;
}

/* WordPress 分页 */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

.nav-links .current {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .article-body {
        font-size: 15px;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }

    .article-body h4 {
        font-size: 1.05rem;
    }
}

/* 选择文本高亮 */
::selection {
    background: #D4AF37;
    color: #fff;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #85754E;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}
