/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: "FangSong", "仿宋", STFangsong, "华文仿宋", serif;
    background: #f8f4e9 url('../images/paper_texture.png');
    color: #333;
    line-height: 1.8;
}

/* 导航样式 */
header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid #333;
    padding: 1rem 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #8b0000;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8b0000;
    transition: all 0.3s ease;
}

.main-nav a:hover::after {
    width: 80%;
    left: 10%;
}

/* Banner样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

.banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    writing-mode: vertical-rl;
    letter-spacing: 1rem;
}

/* 内容区样式 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.theory {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.theory::before,
.theory::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: #333;
    top: 50%;
}

.theory::before {
    left: 0;
}

.theory::after {
    right: 0;
}

/* 网格布局样式 */
.method-grid,
.acupoint-grid,
.indication-grid,
.effect-grid,
.tool-grid,
.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
}

/* 卡片样式 */
.method-item,
.acupoint-item,
.indication-item,
.effect-item,
.tool-item,
.technique-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-item:hover,
.acupoint-item:hover,
.indication-item:hover,
.effect-item:hover,
.tool-item:hover,
.technique-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 图片样式 */
.method-item img,
.acupoint-item img,
.indication-item img,
.effect-item img,
.tool-item img,
.technique-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

/* 标题样式 */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #8b0000;
}

h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #333;
}

/* 装饰元素 */
.decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.decoration-top-left {
    top: 0;
    left: 0;
    width: 150px;
}

.decoration-bottom-right {
    bottom: 0;
    right: 0;
    width: 150px;
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 3rem;
        writing-mode: horizontal-tb;
        letter-spacing: 0.5rem;
    }

    .method-grid,
    .acupoint-grid,
    .indication-grid,
    .effect-grid,
    .tool-grid,
    .technique-grid {
        grid-template-columns: 1fr;
    }
} 

/* 下拉菜单样式优化 */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(248, 244, 233, 0.98);
    min-width: 180px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 0.5rem 0;
    z-index: 100;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-content a:hover {
    background: rgba(139, 0, 0, 0.05);
    padding-left: 2rem;
}

/* 内容区域装饰 */
.content {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 4rem 2rem;
    margin: 2rem auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/paper_texture.png');
    opacity: 0.1;
    pointer-events: none;
    border-radius: 10px;
}

/* 分隔线样式 */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(139, 0, 0, 0.2), transparent);
    margin: 3rem 0;
    position: relative;
}

.divider::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(139, 0, 0, 0.4);
    background: #f8f4e9;
    padding: 0 1rem;
}

/* 卡片样式增强 */
.method-item,
.acupoint-item,
.indication-item,
.effect-item,
.tool-item,
.technique-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.method-item::before,
.acupoint-item::before,
.indication-item::before,
.effect-item::before,
.tool-item::before,
.technique-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-item:hover::before,
.acupoint-item:hover::before,
.indication-item:hover::before,
.effect-item:hover::before,
.tool-item:hover::before,
.technique-item:hover::before {
    opacity: 1;
}

/* 标题样式增强 */
h2 {
    font-family: "KaiTi", "楷体", STKaiti, serif;
    position: relative;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

h2::before,
h2::after {
    content: '《';
    position: absolute;
    left: 0;
    color: #8b0000;
    opacity: 0.6;
}

h2::after {
    content: '》';
    left: auto;
    right: 0;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        transform: none;
    }

    .dropdown-content a {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .content {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .method-grid,
    .acupoint-grid,
    .indication-grid,
    .effect-grid,
    .tool-grid,
    .technique-grid {
        gap: 1.5rem;
    }
}

/* 水墨动效 */
@keyframes inkSpread {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        opacity: 0.05;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.method-item:hover::after,
.acupoint-item:hover::after,
.indication-item:hover::after,
.effect-item:hover::after,
.tool-item:hover::after,
.technique-item:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, transparent 70%);
    transform-origin: center;
    animation: inkSpread 1.5s ease-out forwards;
}

/* 图片悬停效果 */
.method-item img:hover,
.acupoint-item img:hover,
.indication-item img:hover,
.effect-item img:hover,
.tool-item img:hover,
.technique-item img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* 装饰元素增强 */
.decoration {
    opacity: 0.08;
    transition: opacity 0.3s ease;
}

.content:hover .decoration {
    opacity: 0.12;
}

/* 文字样式优化 */
p {
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 1rem;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f4e9;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 0, 0, 0.3);
} 