/* 全局样式 */
:root {
    --primary-color: #c12c1f;
    --secondary-color: #333;
    --background-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 导航栏样式 */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd700;
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.intro {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
} 

/* 生平事迹页面样式 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-date {
    position: absolute;
    left: -4.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-left: 1rem;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 著作展示页面样式 */
.works {
    padding: 2rem;
}

.works h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.work-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.work-image {
    height: 200px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-card:hover .work-image img {
    transform: scale(1.1);
}

.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #a01f15;
}

.poems {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.poems h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.poem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.poem-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.poem-item:hover {
    transform: translateY(-5px);
}

/* 思想研究页面样式 */
.thoughts {
    padding: 2rem;
}

.thoughts h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.thought-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.thought-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.thought-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.thought-image {
    height: 200px;
    overflow: hidden;
}

.thought-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thought-card:hover .thought-image img {
    transform: scale(1.1);
}

.thought-card h2 {
    color: var(--primary-color);
    padding: 1.5rem;
    margin: 0;
}

.thought-card p {
    padding: 0 1.5rem 1.5rem;
}

.research-papers {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.research-papers h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.paper-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.paper-item {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.paper-item:hover {
    transform: translateY(-5px);
}

.read-paper {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.read-paper:hover {
    background-color: #a01f15;
}

/* 互动交流页面样式 */
.interact {
    padding: 2rem;
}

.interact h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.interact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.register-login,
.comment-section,
.newsletter {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn,
.register-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 1rem;
}

.submit-btn:hover,
.register-btn:hover {
    background-color: #a01f15;
}

.comments-list {
    margin-top: 2rem;
}

.comment-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.comment-content {
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.like-btn,
.reply-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.like-btn:hover,
.reply-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .works-grid,
    .thought-content,
    .paper-list {
        grid-template-columns: 1fr;
    }
    
    .interact-container {
        grid-template-columns: 1fr;
    }
} 

/* 英雄区块引用样式 */
.hero-quote {
    margin-top: 2rem;
    text-align: center;
}

.hero-quote blockquote {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-quote cite {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* 简介区块样式 */
.intro-highlight {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.intro-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-timeline {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-point {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-point:last-child {
    margin-bottom: 0;
}

.timeline-point .year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 成就卡片网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

/* 特色卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.feature-link:hover {
    color: #a01f15;
}

/* 名言引用区块 */
.famous-quotes {
    background: white;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quote-card {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-card blockquote {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quote-card cite {
    color: var(--secondary-color);
    font-style: italic;
}

/* 快速链接区块 */
.quick-links {
    margin: 3rem 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-link {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.link-title {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.link-desc {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 页脚样式 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--secondary-color);
    color: white;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
} 