/* ==========================================
   余林茂个人品牌网站 - 主样式表
   ========================================== */

/* CSS变量定义 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #d4af37;
    --accent-color: #c41e3a;
    --bg-color: #f7f5f0;
    --text-color: #2d3748;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
}

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

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

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

/* ==========================================
   导航栏样式
   ========================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a7c 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Noto Serif SC', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==========================================
   Hero区域
   ========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a7c 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ==========================================
   通用区域样式
   ========================================== */
.about-section {
    padding: 4rem 20px;
}

.bg-light {
    background-color: rgba(226, 232, 240, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 3rem;
}

/* ==========================================
   作者介绍区域
   ========================================== */
.author-intro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.author-photo img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 300px;
}

.author-name {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.info-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================
   成就与荣誉
   ========================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.achievement-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.achievement-card p {
    color: #718096;
    line-height: 1.6;
}

/* ==========================================
   创作时间线
   ========================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
}

.timeline-badge {
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-secondary {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
}

.badge-accent {
    background-color: rgba(196, 30, 58, 0.2);
    color: var(--accent-color);
}

.timeline-item p {
    line-height: 1.8;
}

/* ==========================================
   核心思想体系
   ========================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.philosophy-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.philosophy-card-featured {
    border: 2px solid var(--secondary-color);
}

.philosophy-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.philosophy-card p {
    text-align: left;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.philosophy-motto {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
}

/* ==========================================
   媒体报道
   ========================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.media-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.media-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.media-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.media-image-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a7c 100%);
}

.media-image-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c9a332 100%);
}

.media-image-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, #a31830 100%);
}

.media-icon {
    font-size: 4rem;
}

.media-content {
    padding: 1.5rem;
}

.media-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.media-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.media-card p {
    color: #718096;
    line-height: 1.6;
}

/* ==========================================
   CTA区域
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a7c 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 20px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: #c9a332;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d4a7c 100%);
    color: var(--white);
    padding: 3rem 20px 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

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

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .author-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-photo {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .philosophy-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
}
