/* ==================== 全局基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif SC", "SimSun", "STSong", serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #2c5282;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* 清除浮动 */
.clear {
    clear: both;
    zoom: 1;
}

.clear:after {
    content: "";
    display: block;
    clear: both;
}

/* ==================== 全局容器（核心对齐） ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== 顶部导航栏 ==================== */
.gs-hd {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.gs-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.gs-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    line-height: 1;
    text-decoration: none;
}

.gs-logo a:hover {
    color: #2c5282;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.breadcrumbs a {
    color: #718096;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.breadcrumbs a + a::before {
    content: "»";
    margin: 0 8px;
    color: #a0aec0;
}

/* ==================== 主内容容器 ==================== */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.content {
    padding: 30px 0;
}

/* ==================== 通用盒子样式 ==================== */
.box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
}

.pd-a {
    padding: 30px;
}

.bg {
    background-color: #fff;
}

/* ==================== 标题样式 ==================== */
h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* ==================== 作者信息 ==================== */
.zuozhe {
    text-align: center;
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 25px;
}

/* ==================== 简繁切换标签 ==================== */
.tab {
    text-align: center;
    margin-bottom: 25px;
    display: block !important;
}

.tab span {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.tab span.on {
    background-color: #2c5282;
    color: #fff;
    border-color: #2c5282;
}

.tab span:not(.on) {
    background-color: #f7fafc;
    color: #4a5568;
}

.tab span:not(.on):hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

/* ==================== 原文内容区域 ==================== */
.yuanwen {
    font-size: 18px;
    line-height: 2;
    color: #2d3748;
    padding: 10px 0;
}

.conview-def, .conview-ft {
    white-space: pre-wrap;
    word-break: break-all;
    display: block !important;
}

.conview-def a {
    font-weight: 600;
}

.conview-def span {
    color: #d90000;
}

.conview-ft {
    font-family: "Noto Serif TC", serif;
}

/* ==================== 标签区域 ==================== */
.tags {
    margin: 25px 0 10px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.tags a {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 4px 12px;
    background-color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

/* ==================== 展开/收起内容 ==================== */
.showmore {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
}

/* ==================== 上下首诗词 ==================== */
.box p {
    line-height: 2;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.box p:last-child {
    border-bottom: none;
}

/* ==================== 响应式适配（平板/手机） ==================== */
@media (max-width: 768px) {
    /* 容器统一适配 */
    .container, .main {
        padding: 0 15px;
    }
    
    /* 顶部导航 */
    .gs-hd {
        padding: 12px 0;
    }
    .gs-logo a {
        font-size: 20px;
    }
    
    /* 面包屑 */
    .breadcrumbs {
        padding: 12px 0;
        font-size: 13px;
    }
    .breadcrumbs a + a::before {
        margin: 0 6px;
    }
    
    /* 内容区域 */
    .pd-a {
        padding: 20px 15px;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    .yuanwen {
        font-size: 16px;
    }
    .zuozhe {
        font-size: 16px;
    }
    
    /* 简繁切换 */
    .tab span {
        padding: 6px 15px;
        font-size: 13px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    /* 容器统一适配 */
    .container, .main {
        padding: 0 10px;
    }
    
    /* 顶部导航 */
    .gs-logo a {
        font-size: 18px;
    }
    
    /* 面包屑 */
    .breadcrumbs {
        padding: 10px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 标签区域 */
    .tags {
        padding: 10px;
    }
    .tags a {
        padding: 3px 10px;
        font-size: 13px;
    }
}