﻿

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器布局 - 与头部宽度保持一致 */
.jieyi-container {
    max-width: 1200px;
    margin: 0 auto;

    background: #fff;
    min-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


/* 古文解译标题区域 */
.jieyi-header {
    text-align: center;
    margin-bottom: 5px;
    padding: 30px 20px;
    border: 1px solid #e6d7b8;
    position: relative;
    overflow: hidden;
}

.jieyi-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23b89b5b" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23b89b5b" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.jieyi-title {
    font-size: 32px;
    color: #b89b5b;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.jieyi-meta {
    color: #666;
    font-size: 16px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.jieyi-meta a {
    color: #b89b5b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.jieyi-meta a:hover {
    text-decoration: underline;
    color: #a08850;
}

/* 古文解译内容 */
.jieyi-content {
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 5px;
    line-height: 2;
    font-size: 18px;
    color: #333;
    border: 1px solid #e6d7b8;
    box-shadow: 0 4px 15px rgba(184, 155, 91, 0.1);
    position: relative;
}

.jieyi-content::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: #b89b5b;
    opacity: 0.3;
    font-family: serif;
}

.jieyi-content::after {
    content: '"';
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 60px;
    color: #b89b5b;
    opacity: 0.3;
    font-family: serif;
}

.jieyi-content p {
    margin-bottom: 20px;
    text-indent: 2em;
    position: relative;
    z-index: 1;
}

.jieyi-content p:last-child {
    margin-bottom: 0;
}

/* 标签区域 */
.jieyi-tags {
    margin-bottom: 5px;
    padding: 15px;
 
    border-radius: 12px;
    border: 1px solid #e6d7b8;
}

.jieyi-tags h3 {
    color: #b89b5b;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}



.tag {
    display: inline-block;
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(184, 155, 91, 0.3);
    text-decoration: none;
}



/* 作者信息区域 */
.author-section {
    background: linear-gradient(135deg, #f9f6ec 0%, #f0e6d2 100%);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 5px;
    border: 1px solid #e6d7b8;
    box-shadow: 0 4px 15px rgba(184, 155, 91, 0.1);
}

    .author-section h3 {
        color: #b89b5b;
        margin-bottom: 5px;
        font-size: 22px;
        font-weight: 600;
        position: relative;
        padding-left: 20px;
        background: #fff;
    }

.author-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #b89b5b, #a08850);
    border-radius: 2px;
}

.author-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background:#fff;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b89b5b, #a08850);
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(184, 155, 91, 0.3);
    transition: transform 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    color: #b89b5b;
    margin-bottom: 12px;
}

.author-desc {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.author-stats {
    margin-top: 15px;
    padding-top: 5px;
    border-top: 1px solid rgba(184, 155, 91, 0.2);
}

.stat-item {
    display: inline-block;
    margin-right: 20px;
    color: #666;
    font-size: 14px;
}

.stat-item b {
    color: #b89b5b;
    font-weight: 600;
    margin-left: 5px;
}

/* 相关推荐区域 */
.related-section {
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #e6d7b8;
    box-shadow: 0 2px 8px rgba(184, 155, 91, 0.08);
    margin-bottom: 5px;
}

.related-section h3 {
    color: #b89b5b;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    border-bottom: 1px solid rgba(184, 155, 91, 0.2);
    padding-bottom: 2px;
}

.related-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #b89b5b;
    border-radius: 2px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px;
    margin-top: 10px;
}

.related-item {
    background: #fff;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e0d8c0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #b89b5b;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.related-item:hover::before {
    transform: scaleY(1);
}

.related-item:hover {
    background: linear-gradient(135deg, #fdfcf8 0%, #f9f6ec 100%);
    border-color: #b89b5b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 155, 91, 0.15);
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.25s ease;
    display: block;
    margin-bottom: 8px;
}

.related-item a:hover {
    color: #b89b5b;
}

.related-author {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-author::before {
    content: '👤';
    font-size: 10px;
    opacity: 0.7;
}

/* 错误信息样式 */
.error-message {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: linear-gradient(135deg, #f9f6ec 0%, #f0e6d2 100%);
    border-radius: 12px;
    border: 1px solid #e6d7b8;
    position: relative;
}

.error-message::before {
    content: '📚';
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.6;
}

.error-message h3 {
    color: #b89b5b;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.error-message p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.error-message a {
    color: #b89b5b;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #b89b5b;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.error-message a:hover {
    background: #b89b5b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 155, 91, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {

    

    

    
    .jieyi-title {
        font-size: 24px;
    }
    
    .jieyi-content {
        padding: 25px;
        font-size: 16px;
    }
    
    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
    }
    
        .author-section,
    .related-section,
    .jieyi-tags {
        padding: 1px;
    }

    .related-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .related-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .related-item {
        padding: 14px;
    }

    .related-item a {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .related-author {
        font-size: 11px;
    }

    .author-stats {
        text-align: center;
    }


}

@media (max-width: 480px) {
    .jieyi-title {
        font-size: 20px;
    }
    
    .jieyi-content {
        padding: 5px;
        font-size: 15px;
    }
    
    .jieyi-content::before,
    .jieyi-content::after {
        font-size: 40px;
    }
    
    .author-section h3,
    .related-section h3,
    .jieyi-tags h3 {
        font-size: 16px;
    }

    .related-section {
        padding: 1px;
    }

    .related-list {
        gap: 8px;
    }

    .related-item {
        padding: 12px;
    }

    .related-item a {
        font-size: 16px;
    }

    .related-author {
        font-size: 14px;
    }
} 