/* 新中式水墨风全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Han Serif SC", "Songti SC", serif;
    background: #F9F7F2;
    color: #2C2C2C;
    line-height: 1.8;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%232C2C2C" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.5;
    z-index: -1;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4c4a8, transparent);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F9F7F2;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(178, 34, 34, 0.1) 0%, rgba(178, 34, 34, 0) 70%);
    z-index: -1;
}

h1 {
    font-size: 2.2em;
    font-weight: normal;
    margin-bottom: 10px;
    letter-spacing: 6px;
    color: #2C2C2C;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    letter-spacing: 2px;
}

/* 导航样式 */
nav {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 60px;
}

nav li {
    display: inline;
}

nav a {
    color: #666;
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 10px;
    transition: all 0.3s ease;
    font-family: "Source Han Serif SC", "Songti SC", serif;
    letter-spacing: 2px;
}

nav a:hover {
    color: #B22222;
}

/* 主内容样式 */
main {
    min-height: 60vh;
}

/* 欢迎语区域样式 */
.welcome-section {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.welcome-title {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.welcome-text {
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
    color: #666;
    line-height: 1.8;
    font-family: "SimHei", "Heiti TC", sans-serif;
}

/* 卡片样式 */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(178, 34, 34, 0.1);
}

/* 文章列表样式 */
.post-list {
    list-style: none;
}

.post-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(178, 34, 34, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateX(5px);
}

.post-item a {
    color: #2C2C2C;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
    font-family: "Source Han Serif SC", "Songti SC", serif;
    flex: 1;
}

.post-item a:hover {
    color: #B22222;
}

.post-meta {
    color: #999;
    font-size: 0.9em;
    margin-left: 20px;
    white-space: nowrap;
    font-family: "SimHei", "Heiti TC", sans-serif;
}

.category-tag {
    display: inline-block;
    color: #999;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-right: 10px;
    border: 1px solid #e8dcc8;
    transition: all 0.3s ease;
}

.category-tag:hover {
    color: #B22222;
    border-color: #B22222;
}

/* 视频网格样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(178, 34, 34, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    background: #F9F7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #B22222;
    position: relative;
    cursor: pointer;
}

.video-thumbnail::after {
    content: '▶';
    position: absolute;
    background: rgba(178, 34, 34, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #B22222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #2C2C2C;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.video-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: "SimHei", "Heiti TC", sans-serif;
}

/* 服务列表样式 */
.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(178, 34, 34, 0.1);
    font-size: 1.1em;
    font-family: "Source Han Serif SC", "Songti SC", serif;
    color: #2C2C2C;
    transition: all 0.3s ease;
}

.service-list li:hover {
    color: #B22222;
    transform: translateX(5px);
}

.service-list li:last-child {
    border-bottom: none;
}

/* 联系方式样式 */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(178, 34, 34, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: "SimHei", "Heiti TC", sans-serif;
    color: #2C2C2C;
    font-size: 1.1em;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    border: 1px solid rgba(178, 34, 34, 0.1);
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 分类导航样式 */
.category-nav {
    margin: 30px 0;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
}

.category-nav a {
    display: inline-block;
    margin: 0 10px;
    padding: 5px 15px;
    color: #999;
    text-decoration: none;
    border: 1px solid #e8dcc8;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.category-nav a:hover {
    color: #B22222;
    border-color: #B22222;
    background: transparent;
}

.category-nav a.active {
    color: #B22222;
    border-color: #B22222;
    font-weight: 500;
}

/* 文章内容样式 */
.article-content {
    margin-top: 30px;
}

.article-content h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin: 30px 0 15px 0;
    color: #2C2C2C;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.article-content h3 {
    font-size: 1.3em;
    font-weight: normal;
    margin: 20px 0 10px 0;
    color: #2C2C2C;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-family: "SimHei", "Heiti TC", sans-serif;
    color: #333;
}

.article-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
    font-family: "SimHei", "Heiti TC", sans-serif;
    color: #333;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 0.9em;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(178, 34, 34, 0.1), transparent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-icon {
        margin-bottom: 10px;
    }
    
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .post-meta {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .service-list li {
        font-size: 1em;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #B22222;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: "Source Han Serif SC", "Songti SC", serif;
}

.btn:hover {
    background: #991111;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 20px;
}

.mt-4 {
    margin-top: 20px;
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}
