/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #b31a1d;
    --primary-dark: #8a1417;
    --primary-light: #f6e9e5;
    --secondary-color: #f0e6d8;
    --text-color: #2f1c19;
    --muted-text: #5c4b44;
    --card-shadow: 0 22px 45px rgba(47, 28, 25, 0.12);
    --card-border: 1px solid rgba(179, 26, 29, 0.12);
    --surface-color: #ffffff;
    --background-color: #fbf7f2;
}

body {
    font-family: 'Noto Serif SC', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    letter-spacing: 0.01em;
}

a {
    color: var(--primary-dark);
}

p {
    color: var(--muted-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(179, 26, 29, 0.15);
    box-shadow: 0 18px 40px rgba(47, 28, 25, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
}

.nav-logo h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.08em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

/* 收藏按钮样式 */
.bookmark-btn-container {
    display: flex;
    align-items: center;
}

.bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 12px 28px rgba(179, 26, 29, 0.22);
}

.bookmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(179, 26, 29, 0.28);
}

.bookmark-btn:active {
    transform: translateY(0);
}

.bookmark-btn.bookmarked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.bookmark-btn.bookmarked:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.bookmark-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bookmark-btn:hover i {
    transform: scale(1.1);
}

.bookmark-btn.bookmarked i {
    color: #fff;
}

.bookmark-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 收藏消息提示样式 */
.bookmark-message {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 18px 35px rgba(47, 28, 25, 0.2);
}

.bookmark-message.show {
    transform: translateX(0);
}

.bookmark-message.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bookmark-message.info {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(130deg, #ffffff 0%, #fbf7f2 45%, #f2e4d9 100%);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -18%;
    width: 55%;
    height: 140%;
    background: linear-gradient(130deg, rgba(138, 20, 23, 0.95), rgba(179, 26, 29, 0.85));
    border-radius: 240px;
    transform: rotate(-10deg);
}

.hero::after {
    content: '';
    position: absolute;
    top: 12%;
    left: -8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(179, 26, 29, 0.18), rgba(179, 26, 29, 0));
    filter: blur(0px);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.12em;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--muted-text);
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.04em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    box-shadow: 0 18px 30px rgba(179, 26, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 38px rgba(179, 26, 29, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid rgba(179, 26, 29, 0.35);
}

.btn-secondary:hover {
    background: rgba(179, 26, 29, 0.06);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: rgba(179, 26, 29, 0.08);
    color: var(--primary-dark);
    border: 2px solid rgba(179, 26, 29, 0.1);
}

.btn-tertiary:hover {
    background: rgba(179, 26, 29, 0.14);
    border-color: rgba(179, 26, 29, 0.2);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portrait-container {
    width: 280px;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(179, 26, 29, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 226, 214, 0.6));
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portrait-container::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.portrait-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(47, 28, 25, 0.25);
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.portrait-container:hover .portrait-image {
    transform: scale(1.05);
}

/* 章节样式 */
.section {
    padding: 110px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: rgba(179, 26, 29, 0.12);
    border-radius: 999px;
}

.section-title {
    text-align: center;
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    color: var(--primary-dark);
    position: relative;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 999px;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(179, 26, 29, 0.38), rgba(179, 26, 29, 0.08));
    transform: translateX(-50%);
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: linear-gradient(135deg, rgba(138, 20, 23, 0.95), rgba(179, 26, 29, 0.85));
    color: white;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 130px;
    text-align: center;
    box-shadow: 0 18px 30px rgba(179, 26, 29, 0.25);
}

.timeline-content {
    background: var(--surface-color);
    padding: 2.4rem;
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    margin: 0 2rem;
    flex: 1;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: var(--card-border);
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(47, 28, 25, 0.22);
}

.timeline-content h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--muted-text);
    line-height: 1.75;
}

/* 思想理念卡片 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 26px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.35s ease;
    border: var(--card-border);
    position: relative;
}

.philosophy-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 65px rgba(47, 28, 25, 0.18);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--primary-color);
}

.philosophy-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-card p {
    color: var(--muted-text);
    line-height: 1.7;
}

/* 著作文献 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.work-card {
    background: var(--surface-color);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
    border: var(--card-border);
}

.work-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 60px rgba(47, 28, 25, 0.2);
}

.work-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(138, 20, 23, 0.92), rgba(179, 26, 29, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-placeholder {
    font-size: 4rem;
    color: white;
}

.work-content {
    padding: 2rem;
}

.work-content h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-content p {
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(179, 26, 29, 0.08);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* 核心价值主张 */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--surface-color);
    padding: 2.2rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.35s ease;
    border: var(--card-border);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(47, 28, 25, 0.18);
}

.value-card h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--muted-text);
    line-height: 1.7;
}

/* 名言精选 */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quote-card {
    background: var(--surface-color);
    padding: 2.2rem;
    border-radius: 26px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
    position: relative;
    border: var(--card-border);
}

.quote-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(47, 28, 25, 0.2);
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: var(--primary-color);
    font-family: serif;
}

.quote-card blockquote {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.quote-card cite {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* 本地化内容 */
.local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.local-card {
    background: var(--surface-color);
    padding: 2.2rem;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s ease;
    border: var(--card-border);
}

.local-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(47, 28, 25, 0.2);
}

.local-card h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.local-card p {
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.local-details h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.local-details ul {
    list-style: none;
    padding-left: 0;
}

.local-details li {
    color: var(--muted-text);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.local-details li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ样式 */
.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--surface-color);
    margin-bottom: 1rem;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.35s ease;
    border: var(--card-border);
}

.faq-item:hover {
    box-shadow: 0 26px 55px rgba(47, 28, 25, 0.2);
}

.faq-item h3 {
    background: rgba(179, 26, 29, 0.06);
    padding: 1.6rem 2.2rem;
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.faq-item h3:hover {
    background: rgba(179, 26, 29, 0.12);
}

.faq-item.active h3 {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: inherit;
}

.faq-item.active h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 2.2rem 1.8rem;
}

.faq-answer p {
    color: var(--muted-text);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.faq-answer li {
    color: var(--muted-text);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.faq-answer li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 历史影响 */
.legacy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.legacy-text h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    margin-top: 2rem;
    font-weight: 600;
}

.legacy-text h3:first-child {
    margin-top: 0;
}

.legacy-text p {
    color: var(--muted-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legacy-quote {
    background: var(--surface-color);
    padding: 2.6rem;
    border-radius: 26px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    border: var(--card-border);
}

.legacy-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
}

.legacy-quote blockquote {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legacy-quote cite {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* 页脚 */
.footer {
    background: linear-gradient(140deg, #1f0d0e, #3a0f11);
    color: #fbeeea;
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #fff5f1;
    letter-spacing: 0.08em;
}

.footer-section p {
    color: rgba(251, 238, 234, 0.7);
    line-height: 1.7;
}

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

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(251, 238, 234, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(251, 238, 234, 0.15);
    padding-top: 1.2rem;
    text-align: center;
    color: rgba(251, 238, 234, 0.6);
    letter-spacing: 0.04em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 78px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 24px 45px rgba(47, 28, 25, 0.12);
        padding: 2rem 0;
    }
    
    /* 移动端收藏按钮样式 */
    .bookmark-btn-container {
        margin-left: auto;
        margin-right: 20px;
    }
    
    .bookmark-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .bookmark-text {
        display: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .portrait-container {
        width: 220px;
        height: 280px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        margin-left: 40px;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        margin: 0;
        width: 100%;
    }
    
    .legacy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .value-grid,
    .quotes-grid,
    .local-grid,
    .featured-grid,
    .hub-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-grid {
        margin: 2rem auto 0;
    }
    
    .faq-item h3 {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .portrait-container {
        width: 180px;
        height: 230px;
    }
    
    .philosophy-card,
    .work-card {
        padding: 1.5rem;
    }
}

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

.timeline-item,
.philosophy-card,
.work-card,
.value-card,
.quote-card,
.local-card,
.featured-card,
.hub-card,
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.philosophy-card:nth-child(1) { animation-delay: 0.1s; }
.philosophy-card:nth-child(2) { animation-delay: 0.2s; }
.philosophy-card:nth-child(3) { animation-delay: 0.3s; }
.philosophy-card:nth-child(4) { animation-delay: 0.4s; }

.work-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3) { animation-delay: 0.3s; }
.work-card:nth-child(4) { animation-delay: 0.4s; }
.work-card:nth-child(5) { animation-delay: 0.5s; }
.work-card:nth-child(6) { animation-delay: 0.6s; }

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }

.quote-card:nth-child(1) { animation-delay: 0.1s; }
.quote-card:nth-child(2) { animation-delay: 0.2s; }
.quote-card:nth-child(3) { animation-delay: 0.3s; }
.quote-card:nth-child(4) { animation-delay: 0.4s; }
.quote-card:nth-child(5) { animation-delay: 0.5s; }
.quote-card:nth-child(6) { animation-delay: 0.6s; }

.local-card:nth-child(1) { animation-delay: 0.1s; }
.local-card:nth-child(2) { animation-delay: 0.2s; }
.local-card:nth-child(3) { animation-delay: 0.3s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
.faq-item:nth-child(9) { animation-delay: 0.9s; } 

/* 新增：新闻快递 */
.news-list {
    list-style: none;
    max-width: 900px;
    margin: 2rem auto 0;
    padding-left: 0;
}

.news-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.4rem;
    background: var(--surface-color);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.6s ease forwards;
    border: var(--card-border);
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(47, 28, 25, 0.18);
}

.news-date {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(179, 26, 29, 0.12);
    border: 1px solid rgba(179, 26, 29, 0.25);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.news-link {
    color: var(--primary-dark);
    text-decoration: none;
}

.news-link:hover {
    color: var(--primary-color);
}

/* 新增：精选内容与深入学习栅格 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.featured-card {
    background: var(--surface-color);
    border-radius: 22px;
    padding: 1.7rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    border: var(--card-border);
}

.featured-card i {
    font-size: 28px;
    color: var(--primary-color);
}

.featured-card h3 {
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.featured-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 55px rgba(47, 28, 25, 0.18);
}

/* 新增：学习/哲学专题栅格 */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hub-card {
    background: var(--surface-color);
    border-radius: 22px;
    padding: 1.7rem;
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    border: var(--card-border);
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 55px rgba(47, 28, 25, 0.18);
}

.hub-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(138, 20, 23, 0.92), rgba(179, 26, 29, 0.85));
    color: #fff;
    font-size: 22px;
    margin-bottom: 0.75rem;
}

.hub-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.hub-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}
/* 分享功能样式 */
.floating-share-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(47, 28, 25, 0.25);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 55px rgba(47, 28, 25, 0.3);
}

.share-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(31, 12, 14, 0.92);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(31, 12, 14, 0.92);
}

.floating-share-btn:hover .share-tooltip {
    opacity: 1;
    visibility: visible;
}

/* 分享模态框样式 */
.share-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.share-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 22px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 35px 80px rgba(31, 12, 14, 0.25);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(179, 26, 29, 0.12);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 22px;
    border-radius: 22px 22px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.share-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.share-modal-body {
    padding: 32px;
}

/* 分享平台按钮样式 */
.share-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: white;
    min-height: 80px;
    justify-content: center;
}

.share-platform i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 各平台颜色 */
.share-platform.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
}

.share-platform.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0ea5e9 100%);
}

.share-platform.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #0a66c2 100%);
}

.share-platform.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #22c55e 100%);
}

.share-platform.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0ea5e9 100%);
}

.share-platform.reddit {
    background: linear-gradient(135deg, #ff4500 0%, #dc2626 100%);
}

.share-platform.pinterest {
    background: linear-gradient(135deg, #e60023 0%, #dc2626 100%);
}

.share-platform.email {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* 分享链接部分 */
.share-link-section {
    border-top: 1px solid rgba(179, 26, 29, 0.12);
    padding-top: 20px;
}

.share-link-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-dark);
}

.share-link-container {
    display: flex;
    gap: 10px;
}

.share-link-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(179, 26, 29, 0.2);
    border-radius: 12px;
    font-size: 14px;
    background-color: rgba(179, 26, 29, 0.05);
    color: var(--muted-text);
}

.copy-link-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(179, 26, 29, 0.24);
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(179, 26, 29, 0.3);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .floating-share-btn {
        top: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .share-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .share-modal-body {
        padding: 20px;
    }
    
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-platform {
        padding: 12px 8px;
        min-height: 70px;
        font-size: 12px;
    }
    
    .share-platform i {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    .copy-link-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .share-platforms {
        grid-template-columns: 1fr;
    }
    
    .share-platform {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
    }
    
    .share-platform i {
        margin-right: 15px;
        margin-bottom: 0;
    }
} 