/* 通用样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 页眉样式 - 保留顶部导航栏的基本样式 */
header {
    height: 60px;
    line-height: 60px;
    width: 100%;
    color: #333;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top {
    padding: 0 15px;
}

.switch-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

#syname {
    text-align: left;
    flex-grow: 1;
    font-size: 18px;
    font-weight: 500;
}

.switch-right {
    text-align: right;
    cursor: pointer;
}

/* 返回首页按钮样式 */
.home-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.home-button span {
    font-weight: bold;
}

.home-button img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* 信息区域样式 */
.info-section {
    padding: 20px 15px;
    background-color: #f8f9fa;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
    width: calc(50% - 10px);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

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

.card-icon {
    margin-bottom: 15px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.card-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

.card-button {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.card-button:hover {
    background-color: #2980b9;
}

/* 主体区域样式 */
main {
    padding: 0 15px;
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.nwes {
    background-color: #fff;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nwes:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-header {
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.content-header p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.imgnews {
    width: 100%;
    height: auto;
    display: block;
    flex: 1;
}

.post-content-wrap-title {
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.color-333 {
    color: #2c3e50;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.color-333:hover {
    color: #3498db;
}

/* 移动端两张图片并排显示 */
@media screen and (max-width: 768px) {
    .info-section {
        padding: 15px 10px;
    }
    
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .contact-section {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    
    .nwes {
        width: calc(50% - 10px);
        margin: 5px;
        flex-direction: column;
    }
    
    .content-header {
        padding: 8px;
    }
    
    .content-header p {
        font-size: 14px;
    }
    
    .post-content-wrap-title {
        padding: 15px;
    }
    
    .color-333 {
        font-size: 16px;
        line-height: 24px;
    }
}

/* 平板及以上设备的并排显示 */
@media screen and (min-width: 769px) {
    .contact-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .nwes {
        width: calc(50% - 10px);
        margin: 10px;
    }
    
    .post-content-wrap-title {
        padding: 15px;
    }
    
    .color-333 {
        font-size: 18px;
        line-height: 28px;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    main {
        padding: 15px 10px;
    }
    
    .nwes {
        margin-left: 10px;
        margin-right: 10px;
    }

    .post-content-wrap-title {
        padding: 15px;
    }

    .color-333 {
        font-size: 16px;
        line-height: 24px;
    }
}
