/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f1;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 20C40 20 30 30 30 40C30 50 40 60 50 60C60 60 70 50 70 40C70 30 60 20 50 20Z" fill="none" stroke="rgba(44, 110, 145, 0.05)" stroke-width="1"/></svg>');
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航样式 */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #4da6ff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    border-radius: 4px;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: #fff;
    background: rgba(52, 152, 219, 0.3);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(rgba(44, 110, 145, 0.9), rgba(26, 77, 110, 0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300"><rect width="400" height="300" fill="%232c6e91"/><path d="M0,150 Q200,50 400,150 T800,150" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* 主要内容区域样式 */
.main-content {
    padding: 40px 0;
}

.section-title {
    font-size: 36px;
    color: #2c6e91;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #2c6e91, transparent);
}

.taoist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.taoist-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 22px;
    color: #2c6e91;
    margin-bottom: 15px;
}

.card-text {
    color: #555;
    line-height: 1.7;
}

/* 经典语录区域 */
.quotes-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 60px 0;
    border-radius: 15px;
    margin-bottom: 60px;
    text-align: center;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
}

.quote {
    font-size: 24px;
    color: #2c6e91;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
    position: relative;
    padding: 0 40px;
}

.quote::before, .quote::after {
    font-size: 60px;
    color: rgba(44, 110, 145, 0.2);
    position: absolute;
    line-height: 1;
}

.quote::before {
    content: "“";
    top: -20px;
    left: 0;
}

.quote::after {
    content: "”";
    bottom: -40px;
    right: 0;
}

.quote-author {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* 时间线样式 */
.timeline-section {
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2c6e91, #1a4d6e);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 25px;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 25px;
    width: 0;
    height: 0;
    border-right: 10px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-year {
    position: absolute;
    top: 10px;
    width: 80px;
    height: 80px;
    background: #2c6e91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -40px;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4da6ff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c6e91;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a4d6e;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        right: auto;
        border-right: 10px solid white;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .taoist-grid {
        grid-template-columns: 1fr;
    }
    
    .quote {
        font-size: 20px;
        padding: 0 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.taoist-card, .timeline-content {
    animation: fadeIn 0.8s ease-out;
}