/*
Theme Name: 四海特药
Theme URI: https://4hty.com
Author: 四海特药网
Author URI: https://4hty.com
Description: 四海特药WordPress主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sihaitiyao
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/



/* 自定义工具类 */
.content-auto {
    content-visibility: auto;
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-card {
    transition: all 0.2s ease;
}
.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.category-section {
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.category-title {
    position: relative;
    padding-left: 12px;
}
.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}
.nav-tabs {
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
    display: none;
}
.scroll-decoration {
    position: relative;
}
.scroll-decoration::before,
.scroll-decoration::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
}
.scroll-decoration::before {
    top: 0;
    background: linear-gradient(to bottom, white 0%, transparent 100%);
}
.scroll-decoration::after {
    bottom: 0;
    background: linear-gradient(to top, white 0%, transparent 100%);
}
.ancient-border {
    position: relative;
    padding: 1rem;
    border: 2px solid #d4a76a;
    border-radius: 8px;
    background: white;
}
.ancient-border::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #f7e6c4;
    border-radius: 12px;
    pointer-events: none;
}

/* 自定义颜色 */
:root {
    --primary-color: #d4a76a;
    --accent-color: #4a7c59;
    --tech-color: #2d5016;
    --heritage-color: #8b4513;
    --dark-color: #2d2d2d;
    --light-color: #f5f5f5;
}

/* 主题颜色 */
.text-primary {
    color: var(--primary-color);
}
.text-accent {
    color: var(--accent-color);
}
.text-tech {
    color: var(--tech-color);
}
.text-heritage {
    color: var(--heritage-color);
}
.text-dark {
    color: var(--dark-color);
}
.text-light {
    color: var(--light-color);
}

.bg-primary {
    background-color: var(--primary-color);
}
.bg-primary\/5 {
    background-color: rgba(212, 167, 106, 0.05);
}
.bg-accent {
    background-color: var(--accent-color);
}
.bg-accent\/5 {
    background-color: rgba(74, 124, 89, 0.05);
}
.bg-tech {
    background-color: var(--tech-color);
}
.bg-tech\/5 {
    background-color: rgba(45, 80, 22, 0.05);
}
.bg-heritage {
    background-color: var(--heritage-color);
}
.bg-heritage\/5 {
    background-color: rgba(139, 69, 19, 0.05);
}
.bg-dark {
    background-color: var(--dark-color);
}
.bg-light {
    background-color: var(--light-color);
}
.bg-neutral {
    background-color: #f9fafb;
}

.border-primary {
    border-color: var(--primary-color);
}
.border-primary\/10 {
    border-color: rgba(212, 167, 106, 0.1);
}
.border-heritage {
    border-color: var(--heritage-color);
}
.border-heritage\/10 {
    border-color: rgba(139, 69, 19, 0.1);
}

/* 自定义字体 */
.calligraphy-title {
    font-family: 'Ma Shan Zheng', cursive, sans-serif;
}

/* 纸张纹理背景 */
.bg-paper-texture {
    background-color: #faf9f6;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4a76a' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* 导航菜单样式 */
.nav-link {
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: var(--primary-color);
}

/* 分类链接样式 */
.category-link {
    transition: all 0.2s ease;
}
.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 页面标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
}

/* 正文样式 */
p {
    line-height: 1.8;
}

/* 按钮样式 */
button {
    transition: all 0.2s ease;
}
button:hover {
    transform: translateY(-1px);
}

/* 重要声明折叠样式 */
.notice-collapsed .notice-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
}

.notice-collapsed .fa-chevron-down {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-tabs {
        overflow-x: auto;
    }
}
