/* 影响与传承页面样式 - 民国风格与现代设计结合 */
.modern-theme {
    --primary-color: #3a2c1f;
    --secondary-color: #f0e6d2;
    --accent-color: #8b0000;
    --text-color: #333;
    --bg-color: #f9f5eb;
    --ink-color: rgba(0, 0, 0, 0.8);
    --paper-texture: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="#f9f5eb" /><circle cx="50" cy="50" r="1" fill="#d4c5b5" opacity="0.1" /></svg>');
}

body {
    background: var(--paper-texture);
}

#influence-timeline {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.timeline-container {
    height: 400px;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
    position: relative;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.timeline-event {
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-event:hover {
    transform: translateX(10px);
    background-color: rgba(255, 255, 255, 0.5);
}

.timeline-event h3 {
    color: var(--accent-color);
    margin: 0 0 0.5rem 0;
    font-family: "楷体", KaiTi, serif;
}

.timeline-event p {
    margin: 0;
    color: var(--ink-color);
    line-height: 1.6;
}

#modern-interpretation {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.comparison-slider {
    padding: 2rem;
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.view-traditional, .view-modern {
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--primary-color);
    font-family: "宋体", SimSun, serif;
    line-height: 1.8;
    position: relative;
}

.slider {
    width: 100%;
    margin: 1rem 0;
    -webkit-appearance: none;
    height: 2px;
    background: var(--primary-color);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#reader-wall {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.message-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    font-family: "楷体", KaiTi, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.message-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(139, 0, 0, 0.2);
}

.message-form button {
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    font-family: "楷体", KaiTi, serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-form button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.message-wall {
    margin-top: 1rem;
}

.message-card {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    font-family: "宋体", SimSun, serif;
}

.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.message-card p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: var(--ink-color);
}

.message-card small {
    color: var(--accent-color);
    font-style: italic;
}

.message-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%235c3a21" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}