/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Microsoft YaHei", Arial, sans-serif; 
    background: #E8E6D3; 
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
a { color: #5D6146; text-decoration: none; }
a:hover { color: #4a4d38; }

/* 头部样式 */
.maintopbc {
    width: 100%;
    background: #5D6146;
}
.maintop {
    width: 1200px;
    margin: 0 auto;
    height: 45px;
    background: rgba(240, 239, 226, 0.95);
}
.maintop .cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}
.maintop .left h1 {
    font-size: 20px;
    line-height: 45px;
    margin: 0;
}
.maintop .left h1 a {
    color: #5D6146;
    font-weight: bold;
}
.maintop .left h1 span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}
.maintop .right .son1 {
    display: flex;
    gap: 5px;
}
.maintop .right .son1 a {
    padding: 0 15px;
    line-height: 45px;
    color: #5D6146;
    font-size: 14px;
    transition: all 0.3s;
}
.maintop .right .son1 a:hover {
    background: rgba(93, 97, 70, 0.1);
}

/* 搜索栏 */
.mainbtm {
    width: 1200px;
    margin: 20px auto;
}
.mainbtm .son2 {
    display: flex;
    justify-content: center;
}
.search {
    width: 700px;
    height: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.search form {
    display: flex;
    height: 100%;
}

/* 主内容区 */
.main3 {
    width: 1200px;
    margin: 20px auto;
}
.main3 .left {
    width: 100%;
}

/* 作文卡片 */
.sons {
    background: #F0EFE2;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.sons:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.sons .cont {
    padding: 20px;
    position: relative;
}
.sons .yizhu {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 8px;
}
.sons .yizhu img {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.sons .yizhu img:hover {
    opacity: 1;
}
.sons .cont > div {
    padding-right: 150px;
}
.sons .cont p {
    margin-bottom: 10px;
}
.sons .source {
    color: #999;
    font-size: 13px;
}
.sons .source a {
    color: #5D6146;
    margin-right: 10px;
}
.sons .contson {
    color: #666;
    line-height: 1.8;
    text-indent: 2em;
}

/* 工具栏 */
.tool {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #D4D1BB;
    background: rgba(255,255,255,0.3);
}
.tool > div {
    margin-right: 15px;
    cursor: pointer;
}
.tool img {
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.tool img:hover {
    opacity: 1;
}
.jiucuo a {
    color: #5D6146;
    font-size: 12px;
}

/* 标签 */
.tag {
    padding: 10px 20px;
    border-top: 1px solid #D4D1BB;
}
.tag a {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 8px;
    margin-bottom: 5px;
    background: white;
    border-radius: 3px;
    font-size: 12px;
    color: #5D6146;
    transition: all 0.3s;
}
.tag a:hover {
    background: #5D6146;
    color: white;
}

/* 作者卡片 */
.sonspic {
    background: #F0EFE2;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.sonspic .cont {
    padding: 20px;
    display: flex;
    gap: 15px;
}
.sonspic .divimg {
    flex-shrink: 0;
}
.sonspic .divimg img {
    border-radius: 50%;
}

/* 详情页样式 */
.contyishang {
    padding: 20px;
}
.contyishang h2 {
    color: #5D6146;
    margin-bottom: 15px;
}
.contyishang p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 标题样式 */
.title {
    display: flex;
    align-items: center;
    margin: 30px 0 20px 0;
}
.titleleft {
    width: 4px;
    height: 20px;
    background: #5D6146;
    margin-right: 10px;
}
.title h2 {
    font-size: 18px;
    color: #5D6146;
}

/* 响应式 */
@media (max-width: 1200px) {
    .maintop, .mainbtm, .main3 {
        width: 100%;
        padding: 0 15px;
    }
}
