/* 
 * 佰益净化主题主样式表 
 * 使用 Tailwind CSS，此处主要定义自定义动画、重置样式和全局平滑滚动
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.menu-item > a {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-item > a:hover,
.current-menu-item > a,
.current-menu-ancestor > a {
    color: #0056b3;
}

/* 导航栏滚动效果过渡 */
.site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 移动端菜单过渡 */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* 
 * 滚动动画样式 
 * 初始状态隐藏，添加 .is-visible 类后播放动画
 */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 渐变文本 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 默认内容区域样式 (针对 the_content) */
.entry-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #0f172a;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: #1e293b;
}

.entry-content ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2em 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    color: #374151;
    background: #ffffff;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    color: #ffffff;
    background: #0056b3;
    border-color: #0056b3;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
