/* 文化传媒公司现代风格样式 */
:root {
    /* 文化传媒公司配色方案 */
    --c-primary: #6c5ce7;      /* 创意紫 - 主色调 */
    --c-primary-light: #8c7df7; /* 浅紫 - 悬停色 */
    --c-secondary: #fd79a8;    /* 活力粉 - 辅助色 */
    --c-accent: #00b894;       /* 清新绿 - 强调色 */
    
    /* 基础背景与文字 */
    --bg-body: #f9f9fb;        /* 极浅灰背景 */
    --bg-white: #ffffff;       /* 纯白背景 */
    --bg-card: #ffffff;        /* 卡片背景 */
    --text-main: #2d3436;      /* 主要文字 */
    --text-light: #636e72;     /* 次要文字 */
    --text-lighter: #b2bec3;   /* 极淡文字 */
    --border-color: #eaecef;   /* 边框颜色 */
    
    /* 布局参数 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --header-height: 80px;
    --max-width: 1320px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(108, 92, 231, 0.15);
    --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    outline: none; 
}

body {
    background-color: var(--bg-body);
    color: var(--text-light);
    font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition-default);
}

ul, li { 
    list-style: none; 
}

img { 
    display: block; 
    max-width: 100%; 
    height: auto; 
}

/* 容器 */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部导航 */
.site-header {
    background: var(--bg-white);
    height: var(--header-height);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.desktop-nav { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.desktop-nav a {
    font-size: 1rem; 
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 0; 
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--c-primary);
    transition: var(--transition-default);
}

.desktop-nav a:hover, 
.desktop-nav a.active { 
    color: var(--c-primary); 
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* 移动端菜单 */
.mobile-menu-trigger { 
    display: none; 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: var(--text-main); 
}

.mobile-menu-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255,255,255,0.98); 
    z-index: 9999;
    flex-direction: column; 
    padding: 30px;
}

.mobile-menu-header { 
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    margin-bottom: 30px; 
}

.logo-mobile { 
    font-weight: bold; 
    font-size: 1.6rem; 
    color: var(--c-primary); 
}

.close-btn { 
    font-size: 2rem; 
    cursor: pointer; 
}

.mobile-nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    text-align: center; 
    margin-top: 50px;
}

.mobile-nav-links a { 
    font-size: 1.4rem; 
    color: var(--text-main); 
    font-weight: 500; 
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section (大图/Banner) */
.hero-section {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 25px; 
    font-weight: 800; 
    line-height: 1.2;
}

.hero-subtitle { 
    font-size: 1.3rem; 
    margin-bottom: 45px; 
    opacity: 0.95; 
    max-width: 750px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 24px; 
}

.btn {
    display: inline-block; 
    padding: 14px 32px; 
    font-size: 1rem;
    border-radius: var(--radius-sm); 
    font-weight: 600; 
    cursor: pointer;
    transition: var(--transition-default);
    border: none;
}

.primary-btn { 
    background: #fff; 
    color: var(--c-primary); 
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.primary-btn:hover { 
    background: #f8f9fa; 
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.25);
}

.secondary-btn { 
    background: rgba(255,255,255,0.15); 
    backdrop-filter: blur(5px);
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.3);
}

.secondary-btn:hover { 
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* Info Section (核心价值) */
.info-section { 
    margin-bottom: 100px; 
}

.center-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.center-header h2 { 
    font-size: 2.2rem; 
    color: var(--text-main); 
    margin-bottom: 15px; 
    font-weight: 700;
}

.center-header p { 
    color: var(--text-lighter); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.95rem; 
}

.info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 36px; 
}

.info-card {
    background: var(--bg-card);
    padding: 45px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    transform: scaleX(0);
    transition: var(--transition-default);
}

.info-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card .icon { 
    font-size: 3rem; 
    margin-bottom: 25px; 
    color: var(--c-primary);
}

.info-card h3 { 
    font-size: 1.5rem; 
    color: var(--text-main); 
    margin-bottom: 20px; 
    font-weight: 600;
}

.info-card p { 
    color: var(--text-light); 
    margin-bottom: 25px; 
    font-size: 1rem; 
}

.read-more { 
    color: var(--c-primary); 
    font-weight: 600; 
    font-size: 0.95rem; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more::after {
    content: '→';
    transition: var(--transition-default);
}

.read-more:hover { 
    color: var(--c-primary-light);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Main Content Area */
.main-content-area { 
    min-height: 400px; 
    margin-bottom: 100px; 
}

.section-header { 
    margin-bottom: 40px; 
    border-left: 5px solid var(--c-primary); 
    padding-left: 20px; 
}

.section-header h2 { 
    font-size: 2rem; 
    color: var(--text-main); 
    font-weight: 700;
}

.cat-desc { 
    margin-top: 8px; 
    color: var(--text-light); 
    font-size: 1rem; 
    max-width: 800px;
}

/* Post Grid (文章列表) */
.post-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 36px; 
}

.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-default);
    border: 1px solid var(--border-color);
    display: flex; 
    flex-direction: column;
}

.grid-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
}

/* 封面图处理 */
.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 220px; /* 固定高度确保整齐 */
    background: #f1f1f3;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 核心：裁剪图片填满容器 */
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card:hover .card-img { 
    transform: scale(1.08); 
}

/* 无图时的占位 */
.card-img-placeholder {
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, #f1f1f3 0%, #eaecef 100%);
    color: var(--text-lighter); 
    font-weight: 700; 
    font-size: 1.4rem;
}

.card-body { 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.card-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9rem; 
    color: var(--text-lighter); 
    margin-bottom: 15px; 
}

.cat-tag { 
    color: var(--c-primary); 
    font-weight: 500; 
}

.grid-card h3 { 
    font-size: 1.35rem; 
    margin-bottom: 15px; 
    line-height: 1.5; 
    color: var(--text-main); 
    font-weight: 600;
}

.grid-card h3 a:hover { 
    color: var(--c-primary); 
}

.excerpt { 
    font-size: 0.95rem; 
    color: var(--text-light); 
    flex-grow: 1; 
    margin-bottom: 20px; 
}

.card-tags { 
    margin-top: auto; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
}

.tag-badge { 
    font-size: 0.8rem; 
    color: var(--text-lighter); 
    margin-right: 10px; 
    transition: var(--transition-default);
}

.tag-badge:hover { 
    color: var(--c-primary); 
}

/* 分页 */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    margin-top: 60px; 
}

.page-btn {
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    color: var(--text-main);
    background: var(--bg-white);
    transition: var(--transition-default);
}

.page-btn:hover { 
    background: var(--c-primary); 
    color: #fff; 
    border-color: var(--c-primary); 
    transform: translateY(-3px);
}

.page-current { 
    display: flex; 
    align-items: center; 
    padding: 0 15px; 
    font-weight: bold; 
    color: var(--text-main); 
}

/* 文章详情页 */
.single-post { 
    background: var(--bg-white); 
    padding: 50px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-card); 
    border: 1px solid var(--border-color);
}

.single-header { 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 30px; 
    margin-bottom: 40px; 
}

.breadcrumb { 
    font-size: 0.95rem; 
    color: var(--text-lighter); 
    margin-bottom: 20px; 
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.single-header h1 { 
    font-size: 2.4rem; 
    color: var(--text-main); 
    margin-bottom: 20px; 
    line-height: 1.4; 
    font-weight: 700;
}

.meta-line { 
    font-size: 0.95rem; 
    color: var(--text-lighter); 
    display: flex; 
    gap: 25px; 
}

/* Markdown 内容样式 */
.markdown-body { 
    color: var(--text-main); 
    font-size: 1.1rem; 
    line-height: 1.8; 
}

.markdown-body h2 { 
    font-size: 1.8rem; 
    color: var(--text-main); 
    margin: 1.8em 0 1em; 
    border-bottom: 2px solid var(--border-color); 
    padding-bottom: 12px; 
    font-weight: 600;
}

.markdown-body p { 
    margin-bottom: 1.8em; 
}

/* HR 样式 */
.markdown-body hr {
    margin: 2em 0;
    height: 2px;
    border: none;
    background-color: var(--border-color);
}

.markdown-body img { 
    max-width: 100%; 
    border-radius: var(--radius-sm); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
    margin: 30px 0; 
}

.markdown-body a { 
    color: var(--c-primary); 
    border-bottom: 2px solid rgba(108, 92, 231, 0.2); 
    transition: var(--transition-default);
}

.markdown-body a:hover { 
    color: var(--c-primary-light);
    border-bottom-color: var(--c-primary); 
}

.markdown-body blockquote { 
    border-left: 5px solid var(--c-primary); 
    background: rgba(108, 92, 231, 0.03); 
    padding: 20px 25px; 
    color: var(--text-light); 
    margin: 25px 0; 
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-tags-container { 
    margin-top: 50px; 
    padding-top: 25px; 
    border-top: 1px solid var(--border-color); 
}

.tags-label { 
    font-weight: bold; 
    margin-right: 15px; 
    color: var(--text-main); 
}

.tag-pill { 
    display: inline-block; 
    background: rgba(108, 92, 231, 0.07); 
    padding: 6px 16px; 
    font-size: 0.9rem; 
    color: var(--c-primary); 
    border-radius: 30px; 
    margin-right: 10px; 
    margin-bottom: 10px;
    transition: var(--transition-default);
}

.tag-pill:hover { 
    background: var(--c-primary); 
    color: #fff; 
    transform: translateY(-2px);
}

/* 特别要求：post-cta 背景禁止深色 */
.post-cta {
    margin-top: 50px; 
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.03) 0%, rgba(253, 121, 168, 0.03) 100%); 
    padding: 40px; 
    text-align: center; 
    border-radius: var(--radius-md);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.post-cta p { 
    font-weight: 600; 
    font-size: 1.2rem; 
    color: var(--text-main); 
    margin-bottom: 20px; 
}

.small-btn { 
    font-size: 0.95rem; 
    padding: 10px 30px; 
    background: var(--c-primary); 
    color: white; 
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.small-btn:hover {
    background: var(--c-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.post-navigation { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 50px; 
    padding-top: 30px; 
    border-top: 1px solid var(--border-color); 
}

.nav-prev, .nav-next { 
    display: flex; 
    flex-direction: column; 
    max-width: 45%; 
}

.nav-prev small, .nav-next small { 
    color: var(--text-lighter); 
    margin-bottom: 8px; 
    font-size: 0.85rem; 
}

.nav-prev span, .nav-next span { 
    color: var(--text-main); 
    font-weight: 500; 
    transition: var(--transition-default);
}

.nav-prev:hover span, .nav-next:hover span { 
    color: var(--c-primary); 
}

/* FAQ & Footer */
.faq-section { 
    background: var(--bg-white); 
    padding: 80px 0; 
    border-top: 1px solid var(--border-color); 
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item { 
    border-bottom: 1px solid var(--border-color); 
}

.faq-question { 
    padding: 25px 0; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-weight: 600; 
    color: var(--text-main); 
    font-size: 1.1rem;
    transition: var(--transition-default);
}

.faq-question:hover { 
    color: var(--c-primary); 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p { 
    padding-bottom: 25px; 
    color: var(--text-light); 
    font-size: 1.05rem;
}

.site-footer { 
    background: #121212; 
    color: #b0b0b0; 
    padding: 80px 0 40px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 50px; 
    margin-bottom: 60px; 
}

.footer-col h4 { 
    color: #fff; 
    margin-bottom: 30px; 
    font-size: 1.3rem; 
    font-weight: 600;
}

.footer-col p { 
    margin-bottom: 15px; 
    font-size: 1rem; 
    line-height: 1.8;
}

.footer-col a { 
    display: block; 
    margin-bottom: 15px; 
    font-size: 1rem; 
    transition: var(--transition-default);
}

.footer-col a:hover { 
    color: #fff; 
    transform: translateX(5px);
}

.footer-bottom { 
    text-align: center; 
    padding-top: 40px; 
    border-top: 1px solid rgba(255,255,255,0.08); 
    font-size: 0.9rem; 
}

/* 404页面样式 */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--c-primary);
    margin-bottom: 30px;
    font-weight: 800;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .single-post {
        padding: 40px 30px;
    }
    
    .single-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav { 
        display: none; 
    }
    
    .mobile-menu-trigger { 
        display: block; 
    }
    
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 80%;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .center-header h2 {
        font-size: 1.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 70px;
    }
    
    .logo a {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .single-post {
        padding: 25px 15px;
    }
    
    .single-header h1 {
        font-size: 1.6rem;
    }
    
    .post-cta {
        padding: 25px 15px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-prev, .nav-next {
        max-width: 100%;
    }
}