
/*
Template Name: Nature Forest
Author: Manus AI
*/

:root {
    --forest-green: #2D5016;
    --wood-brown: #8B6914;
    --cream-white: #FFFEF2;
    --leaf-green: #4CAF50;
    --dark-text: #333;
    --light-text: #f4f4f4;
    --font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--cream-white);
    color: var(--dark-text);
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--wood-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--leaf-green);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.main-header {
    background: url('../images/wood-texture.png') repeat-x; /* 木纹质感 */
    background-color: var(--wood-brown);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cream-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 15px;
}

.main-nav ul li a {
    color: var(--cream-white);
    padding: 8px 15px;
    border-radius: 20px; /* 圆角胶囊按钮 */
    background-color: rgba(255,255,255,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: var(--leaf-green);
    transform: translateY(-2px);
}

/* Leaf Divider */
.leaf-divider {
    height: 20px;
    background: url('../images/leaf-border.png') repeat-x center center;
    background-size: contain;
}


/* --- Homepage Styles --- */
.hero-banner {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cream-white);
    position: relative;
}

.hero-banner::after {
    content: \'\';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.announcement-bar {
    background-color: var(--forest-green);
    color: var(--cream-white);
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--forest-green);
    position: relative;
}

.section-title span {
    background: var(--cream-white);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: \'\';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: var(--wood-brown);
    opacity: 0.5;
}

/* Waterfall Layout */
.waterfall-container {
    column-count: 4;
    column-gap: 20px;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    position: relative;
    border: 3px solid transparent;
    transition: border 0.5s ease;
}

.card:hover {
    border-image: url(\'../images/branch-border.png\') 30 round; /* Fictional branch border */
    animation: growBorder 0.5s forwards;
}

@keyframes growBorder {
    from { border-width: 0px; }
    to { border-width: 5px; }
}

.card-image {
    position: relative;
}

.card-image .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-content {
    padding: 15px;
}

.card-title a {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-text);
}

.card-meta {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin: 20px 0;
}
.wave-divider::before {
    content: \'\';
    position: absolute;
    left: -50%;
    width: 200%;
    height: 800px;
    background-color: var(--cream-white);
    border-radius: 45%;
    animation: wave-animation 15s infinite linear;
    background-color: var(--forest-green);
    opacity: 0.2;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category Navigation */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-chip {
    background-color: var(--leaf-green);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-chip:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: white;
}

/* FAQ Section */
.faq-accordion .faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.faq-question {
    cursor: pointer;
    padding: 15px;
    font-size: 1.2rem;
    position: relative;
}

.faq-question::after {
    content: \'+\';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 15px;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 15px;
}
/* --- List Page Styles (Bookshelf) --- */
.list-page .page-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px dashed var(--wood-brown);
    margin-bottom: 40px;
}

.bookshelf-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    padding: 20px;
    background: url('../images/wood-shelf.png');
    border: 10px solid var(--wood-brown);
    border-radius: 5px;
}

.book-item {
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: rotate(0) scale(1.05);
    z-index: 10;
}

.book-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
}

.book-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.book-item:hover .book-item-overlay {
    opacity: 1;
}

/* --- Show Page Styles (Scroll) --- */
.show-page {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.scroll-container {
    flex: 3;
    background: url('../images/parchment.jpg');
    background-size: cover;
    padding: 40px 60px;
    border: 2px solid var(--wood-brown);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 5px;
    position: relative;
}

.scroll-container::before, .scroll-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: var(--wood-brown);
    top: 0;
    border-radius: 10px;
}

.scroll-container::before { left: -30px; }
.scroll-container::after { right: -30px; }

.video-header h1 {
    text-align: center;
    color: #5D4037;
}

.video-meta {
    text-align: center;
    margin-bottom: 20px;
    color: #795548;
}

.video-body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

.sidebar {
    flex: 1;
}

.related-videos-widget ul {
    list-style: none;
    padding: 0;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.related-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}
/* --- Footer --- */
.main-footer {
    background-color: var(--forest-green);
    color: var(--cream-white);
    padding-top: 60px;
    margin-top: 40px;
    position: relative;
}

.main-footer .container {
    padding-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--leaf-green);
    border-bottom: 1px solid var(--leaf-green);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: var(--cream-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom a {
    color: var(--leaf-green);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .waterfall-container {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .main-nav ul li {
        margin: 5px 0;
    }
    .waterfall-container {
        column-count: 2;
    }
    .show-page {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .waterfall-container {
        column-count: 1;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
