/* =========================================
   1. Root Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --bg-paper: #fdfbf7;       /* 暖白纸张背景 */
    --bg-white: #ffffff;
    --text-primary: #2d3436;   /* 深灰正文 */
    --text-secondary: #636e72; /* 浅灰辅助文 */
    
    --color-accent: #e17055;   /* 暖珊瑚色 - 情感 */
    --color-deep: #2c3e50;     /* 深靛蓝 - 理性 */
    --color-highlight: #6c5ce7; /* 提亮色 - 智慧 */

    --border-color: #dfe6e9;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Lato', sans-serif;
    background-color: var(--bg-paper);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-deep);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-deep);
}

.sub-logo {
    font-size: 0.8rem;
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background-color: var(--color-deep);
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 背景图：建议替换为一张有质感的书房或圆桌讨论图 */
    background: url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.1);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-deep);
    border-color: #fff;
}

/* =========================================
   4. Philosophy Section
   ========================================= */
.philosophy-section {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    transition: var(--transition);
    border-radius: 12px;
}

.feature-item:hover {
    background-color: var(--bg-paper);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   5. Highlight Sections (Core Content)
   ========================================= */
.highlight-section {
    padding: var(--section-padding);
    overflow: hidden;
}

.highlight-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.highlight-layout.reverse {
    flex-direction: row-reverse;
}

.highlight-content {
    flex: 1;
}

.highlight-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.highlight-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.highlight-content h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
}

.highlight-note {
    margin-top: 30px;
    padding: 20px;
    border-left: 3px solid var(--color-highlight);
    background: rgba(108, 92, 231, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 0 8px 8px 0;
}

/* --- Warm Theme (Lori Book) --- */
.warm-theme {
    background-color: var(--bg-paper);
}

.dialogue-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin: 30px 0;
    border: 1px solid #eee;
}

.dialogue-line {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #eee;
}

.dialogue-line.student { border-left-color: var(--color-accent); }
.dialogue-line.teacher { border-left-color: var(--color-highlight); }

.dialogue-line:last-child { margin-bottom: 0; }

.dialogue-line .speaker {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.dialogue-line p {
    font-size: 1rem;
    color: var(--text-primary);
    font-style: italic;
}

/* --- Deep Theme (Educated Book) --- */
.deep-theme {
    background-color: #1a252f;
    color: #ecf0f1;
}

.deep-theme h3, .deep-theme .section-desc {
    color: #fff;
}

.deep-theme .highlight-note {
    background: rgba(255,255,255,0.05);
    color: #bdc3c7;
    border-left-color: var(--color-accent);
}

.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.insight-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.insight-card h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.insight-card blockquote {
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Visual Cards (Right side images/quotes) */
.visual-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 400px;
    position: relative;
    transform: rotate(2deg); /* 俏皮的倾斜 */
}

.visual-card.dark-mode {
    background: #2c3e50;
    color: #fff;
    transform: rotate(-2deg);
}

.visual-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.quote-author {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.visual-card.dark-mode .quote-author {
    color: #bdc3c7;
}

/* =========================================
   6. Curriculum / Book Section
   ========================================= */
.books-section {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.book-entry {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.book-entry:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.book-entry.featured {
    border: 2px solid var(--color-accent);
    position: relative;
}

.book-entry.featured::after {
    content: '深度推荐';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.book-cover-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.book-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--color-deep);
}

.book-info .author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.book-info .desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.tags span {
    font-size: 0.75rem;
    background: #f1f2f6;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* =========================================
   7. Testimonials
   ========================================= */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-paper);
    text-align: center;
}

.testimonial-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-deep);
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-author div {
    text-align: left;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================
   8. Footer
   ========================================= */
.site-footer {
    background-color: #2d3436;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.footer-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-content p {
    color: #b2bec3;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 60px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 112, 85, 0.4);
}

.footer-links {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    color: #636e72;
}

.footer-links a:hover {
    color: #fff;
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    
    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .highlight-layout, .highlight-layout.reverse {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .highlight-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .visual-card {
        transform: rotate(0);
        margin: 0 auto;
    }

    .main-nav { display: none; } /* 移动端导航简化处理 */
}

@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .btn { width: 100%; display: block; margin-bottom: 10px; }
    .hero-actions { flex-direction: column; }
    .section-header h2 { font-size: 2rem; }
    .testimonial-text { font-size: 1.4rem; }
}

/* =========================================
   10. New Theme: Raw/Real (The Glass Castle)
   ========================================= */

/* 这种配色方案旨在体现“玻璃城堡”中的荒凉、真实与泥土感 */
.raw-theme {
    background-color: #fffbf0; /* 极淡的暖黄色背景 */
}

.raw-theme h3 {
    color: #2c3e50;
}

/* 案例分析盒子样式 */
.case-study-box {
    background: #fff;
    border: 1px solid #eecfa1;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(211, 84, 0, 0.08);
    margin-top: 30px;
    position: relative;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff3e0;
    padding-bottom: 15px;
}

.case-tag {
    background: #e65100;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.case-text {
    font-size: 1rem;
    color: #5d4037;
    margin-bottom: 20px;
    font-weight: 500;
}

.student-insight {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.student-insight i {
    color: #e65100;
    font-size: 1.2rem;
    margin-top: 5px;
}

.student-insight p {
    font-size: 0.95rem;
    color: #bf360c;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* 视觉卡片的纹理效果 */
.visual-card.paper-texture {
    background-color: #fff;
    background-image: linear-gradient(0deg, transparent 24%, #e1e1e1 25%, #e1e1e1 26%, transparent 27%, transparent 74%, #e1e1e1 75%, #e1e1e1 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, #e1e1e1 25%, #e1e1e1 26%, transparent 27%, transparent 74%, #e1e1e1 75%, #e1e1e1 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    border: 1px solid #d7ccc8;
}

.book-badge {
    margin-top: 20px;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    color: #d35400;
    border-bottom: 1px solid #d35400;
    font-size: 0.9rem;
}