/* 历史文化页面样式 */

/* 酿酒工艺展示 */
.brewing-process {
    padding: 6rem 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.process-step:hover::before {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.step-icon {
    margin-bottom: 2rem;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.process-step:hover .step-icon img {
    transform: scale(1.1);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* 详细时间轴 */
.detailed-timeline {
    padding: 6rem 0;
    background: var(--bg-color);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    transform: translateX(-50%);
    z-index: 1;
}

.detailed-timeline .timeline-item {
    position: relative;
    margin-bottom: 5rem;
    display: flex;
    align-items: flex-start;
}

.detailed-timeline .timeline-item:nth-child(odd) {
    flex-direction: row;
}

.detailed-timeline .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.detailed-timeline .timeline-year {
    flex: 0 0 120px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #A00000);
    color: var(--white);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.detailed-timeline .timeline-year::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 25px;
    background: var(--secondary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--secondary-color);
}

.detailed-timeline .timeline-item:nth-child(odd) .timeline-year::before {
    right: -65px;
}

.detailed-timeline .timeline-item:nth-child(even) .timeline-year::before {
    left: -65px;
}

.detailed-timeline .timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0 4rem;
    position: relative;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.detailed-timeline .timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
}

.detailed-timeline .timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detailed-timeline .timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.timeline-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.detailed-timeline .timeline-content:hover .timeline-image img {
    transform: scale(1.05);
}

/* 非遗传承 */
.heritage-section {
    padding: 6rem 0;
    background: var(--white);
}

.heritage-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.master-profile {
    background: linear-gradient(135deg, var(--bg-color), #F5F1E8);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.master-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.master-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.master-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.heritage-text {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.heritage-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.heritage-text blockquote {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 2rem 0;
    font-style: italic;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.heritage-text blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.heritage-text cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* 酒与文化 */
.wine-culture {
    padding: 6rem 0;
    background: var(--bg-color);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.culture-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.culture-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.poem-content {
    background: linear-gradient(135deg, var(--primary-color), #A00000);
    color: var(--white);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.poem-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bamboo" patternUnits="userSpaceOnUse" width="30" height="30"><line x1="15" y1="0" x2="15" y2="30" stroke="rgba(212,175,55,0.1)" stroke-width="2"/></pattern></defs><rect width="100" height="100" fill="url(%23bamboo)"/></svg>');
    opacity: 0.3;
}

.poem-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.poet {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.poem-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.poem-explanation {
    padding: 2rem;
}

.poem-explanation p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* 文化展览馆 */
.museum-section {
    padding: 6rem 0;
    background: var(--white);
}

.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.museum-item {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.museum-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.museum-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.museum-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.museum-item:hover .museum-image img {
    transform: scale(1.1);
}

.museum-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(139, 0, 0, 0.1));
}

.museum-content {
    padding: 2rem;
    text-align: center;
}

.museum-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.museum-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 动画效果 */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }
.process-step:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .step-icon {
        height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .timeline-container::before {
        left: 30px;
        width: 3px;
    }
    
    .detailed-timeline .timeline-item {
        flex-direction: row !important;
        margin-bottom: 3rem;
        padding-left: 80px;
    }
    
    .detailed-timeline .timeline-year {
        position: absolute;
        left: 0;
        flex: none;
        width: 60px;
        font-size: 1.2rem;
        padding: 1rem 0.5rem;
    }
    
    .detailed-timeline .timeline-year::before {
        right: -41px !important;
        left: auto !important;
        width: 20px;
        height: 20px;
    }
    
    .detailed-timeline .timeline-content {
        margin: 0;
        margin-left: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .timeline-image {
        height: 150px;
    }
    
    .heritage-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .master-profile {
        position: static;
        padding: 2rem;
    }
    
    .master-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .heritage-text {
        padding: 2rem 1.5rem;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .poem-content {
        padding: 2rem 1.5rem;
    }
    
    .poem-explanation {
        padding: 1.5rem;
    }
    
    .museum-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .museum-image {
        height: 150px;
    }
    
    .museum-content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .process-step {
        padding: 1rem;
    }
    
    .process-step::before {
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .step-icon {
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .detailed-timeline .timeline-year {
        width: 50px;
        font-size: 1rem;
        padding: 0.8rem 0.3rem;
    }
    
    .detailed-timeline .timeline-content {
        padding: 1.5rem 1rem;
    }
    
    .timeline-image {
        height: 120px;
    }
    
    .master-profile {
        padding: 1.5rem 1rem;
    }
    
    .master-image {
        width: 120px;
        height: 120px;
    }
    
    .heritage-text {
        padding: 1.5rem 1rem;
    }
    
    .heritage-text blockquote {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .poem-content {
        padding: 1.5rem 1rem;
    }
    
    .poem-content h3 {
        font-size: 1.5rem;
    }
    
    .poem-text {
        font-size: 1rem;
    }
    
    .poem-explanation {
        padding: 1rem;
    }
    
    .museum-grid {
        grid-template-columns: 1fr;
    }
    
    .museum-content {
        padding: 1rem;
    }
}

/* 滚动触发动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 特殊效果 */
.process-step:nth-child(even) {
    background: linear-gradient(135deg, var(--bg-color), #F5F1E8);
}

.culture-item:nth-child(2) .poem-content {
    background: linear-gradient(135deg, var(--secondary-color), #B8860B);
}

.culture-item:nth-child(3) .poem-content {
    background: linear-gradient(135deg, #654321, var(--primary-color));
} 