/* Garden Wisdom Page Styles */

.wisdom-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 50%, var(--bg-light) 100%);
}

/* Hero Section */
.wisdom-hero {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    background: url('课堂页.jpg.webp') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wisdom-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.8) 0%, rgba(139, 69, 19, 0.7) 50%, rgba(44, 24, 16, 0.8) 100%);
}

.wisdom-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.wisdom-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wisdom-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.wisdom-hero-decoration {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    opacity: 0.1;
    color: var(--primary);
    animation: rotate 20s linear infinite;
}

.wisdom-hero-decoration svg {
    width: 100%;
    height: 100%;
}

/* Introduction Section */
.wisdom-intro {
    padding: 80px 20px;
    background: var(--bg-light);
}

.wisdom-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.wisdom-intro-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 2;
    opacity: 0.9;
}

/* Four Sections Grid */
.wisdom-sections {
    padding: 60px 20px 100px;
}

.wisdom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.wisdom-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.wisdom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 69, 19, 0.15);
}

.wisdom-card:hover::before {
    transform: scaleX(1);
}

.wisdom-card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s ease;
}

.wisdom-card-icon svg,
.wisdom-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wisdom-card:hover .wisdom-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
}

.wisdom-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.wisdom-card-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.wisdom-card-desc {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.85;
}

.wisdom-card-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.wisdom-card-btn:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* Closing Quote Section */
.wisdom-quote {
    padding: 80px 20px;
    background: var(--bg-light);
    text-align: center;
}

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

.wisdom-quote-content p {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.9;
}

.wisdom-quote-highlight {
    font-size: 1.8rem !important;
    color: var(--primary) !important;
    font-weight: 700;
    opacity: 1 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: var(--gold);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-title {
    text-align: center;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 0.9;
}

/* Subpage Styles */
.wisdom-subpage {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 30%, var(--bg-light) 100%);
}

.subpage-hero {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    background: url('课堂页.jpg.webp') center/cover no-repeat;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.85) 0%, rgba(139, 69, 19, 0.75) 50%, rgba(44, 24, 16, 0.85) 100%);
}

.subpage-hero-content {
    position: relative;
    z-index: 1;
}

.subpage-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subpage-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.subpage-content {
    padding: 60px 20px;
}

.subpage-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.subpage-intro p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 2;
    opacity: 0.9;
}

.subpage-section {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.subpage-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.subpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.subpage-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.subpage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.15);
}

.subpage-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subpage-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.subpage-card p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0.85;
}

.subpage-list {
    max-width: 800px;
    margin: 0 auto;
}

.subpage-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.08);
}

.subpage-list-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 45px;
    text-align: center;
}

.subpage-list-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.subpage-list-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0.9;
}

.subpage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.subpage-tab {
    padding: 12px 25px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.subpage-tab:hover,
.subpage-tab.active {
    background: var(--primary);
    color: #fff;
}

.subpage-tab-content {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    display: none;
}

.subpage-tab-content.active {
    display: block;
}

.subpage-tab-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.subpage-tab-content ul {
    list-style: none;
    padding: 0;
}

.subpage-tab-content li {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 2;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.subpage-tab-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.subpage-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.subpage-tool-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
}

.subpage-tool-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.subpage-tool-item .plant-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.subpage-tool-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.subpage-tool-item p {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.subpage-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.subpage-tip {
    background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--gold);
}

.subpage-tip h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.subpage-tip p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    opacity: 0.9;
}

.subpage-action {
    text-align: center;
    margin-top: 50px;
}

.subpage-action .btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), #A0522D);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.subpage-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .wisdom-main-title {
        font-size: 2.5rem;
    }
    
    .wisdom-subtitle {
        font-size: 1.1rem;
    }
    
    .wisdom-hero-decoration {
        display: none;
    }
    
    .wisdom-card {
        padding: 30px 20px;
    }
    
    .wisdom-quote-content p {
        font-size: 1.4rem;
    }
    
    .wisdom-quote-highlight {
        font-size: 1.6rem !important;
    }

    .subpage-title {
        font-size: 2.2rem;
    }

    .subpage-subtitle {
        font-size: 1rem;
    }

    .subpage-list-item {
        flex-direction: column;
        gap: 15px;
    }

    .subpage-list-number {
        min-width: auto;
        text-align: left;
    }

    .subpage-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .subpage-tab-content {
        padding: 25px;
    }
}
