/* 仿照120ask新闻站样式 */
:root {
    --primary-blue: #1e6fe0;
    --primary-dark-blue: #1558b8;
    --primary-light-blue: #e8f0fd;
    --text-main: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #e4e4e4;
    --bg-light: #f5f5f5;
    --white: #fff;
    --header-bg: #fff;
    --nav-bg: #1a6cd8;
    --nav-hover: #0f5bbd;
    --footer-bg: #2c3e50;
    --footer-text: #bdc3c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

a:hover {
    color: var(--primary-dark-blue);
}

ul, ol {
    list-style: none;
}

.clears:after {
    content: '';
    display: block;
    clear: both;
    visibility: hidden;
    height: 0;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部区域 */
.healthNews {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    width: 180px;
    height: 50px;
    background: url('../images/logo.png') no-repeat;
    background-size: contain;
    text-indent: -9999px;
}

.search {
    width: 500px;
}

.search form {
    display: flex;
}

.search .text {
    flex: 1;
    height: 40px;
    border: 1px solid var(--primary-blue);
    border-right: none;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search .button {
    width: 120px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search .button:hover {
    background: var(--primary-dark-blue);
}

/* 主导航 */
.header-nav {
    background: var(--nav-bg);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-a {
    display: block;
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    color: var(--white);
    font-size: 16px;
    position: relative;
}

.nav-a:hover {
    background: var(--nav-hover);
}

.nav-a.first {
    background: var(--nav-hover);
}

.nav-div {
    position: relative;
}

.nav-div:hover .morenav-box {
    display: block;
}

.morenav-box {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.morenav-box a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    white-space: nowrap;
}

.morenav-box a:hover {
    background: var(--bg-light);
}

/* 主要内容区域 */
.news-cont {
    padding: 20px 0;
    display: flex;
}

.left-nav {
    width: 220px;
    margin-right: 20px;
    flex-shrink: 0;
}

.part {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.part b {
    display: block;
    padding: 10px 15px;
    background: var(--primary-light-blue);
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.part b i {
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--primary-blue);
    margin-right: 8px;
    vertical-align: middle;
}

.part ul {
    padding: 10px 0;
}

.part li {
    padding: 8px 15px;
    border-left: 3px solid transparent;
}

.part li:hover {
    border-left-color: var(--primary-blue);
    background: var(--primary-light-blue);
}

.part li a {
    color: var(--text-main);
}

.part li a:hover {
    color: var(--primary-blue);
}

.part li em {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.content-main {
    flex: 1;
}

/* 首页特定样式 - 轮播图 */
.banner {
    height: 300px;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.slide-item {
    position: relative;
    height: 300px;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 15px;
}

.slide-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 14px;
    opacity: 0.8;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-img {
    height: 150px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    padding: 15px;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-main);
}

.news-title a:hover {
    color: var(--primary-blue);
}

.news-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-meta {
    color: var(--text-light);
    font-size: 12px;
}

/* 列表页特定样式 */
.list-header {
    padding: 15px;
    background: var(--primary-light-blue);
    border-radius: 4px;
    margin-bottom: 20px;
}

.list-header h1 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.list-desc {
    color: var(--text-secondary);
}

.list-items {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

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

.list-item:hover {
    background: var(--bg-light);
}

.list-item-img {
    width: 120px;
    height: 80px;
    background: var(--bg-light);
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

.list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-info {
    flex: 1;
}

.list-item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.list-item-title a {
    color: var(--text-main);
}

.list-item-title a:hover {
    color: var(--primary-blue);
}

.list-item-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.list-item-meta {
    color: var(--text-light);
    font-size: 12px;
}

.pagination {
    padding: 20px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
}

.pagination a:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination .current {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* 详情页特定样式 */
.detail-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.detail-meta {
    color: var(--text-light);
    font-size: 14px;
}

.detail-meta span {
    margin-right: 20px;
}

.detail-content {
    padding: 20px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.detail-tags {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0;
}

.detail-tags a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: var(--primary-light-blue);
    color: var(--primary-blue);
    border-radius: 4px;
    font-size: 14px;
}

.detail-tags a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.detail-navigation {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
}

.detail-navigation a {
    color: var(--primary-blue);
    font-size: 16px;
}

.detail-navigation a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
}

.footer-column {
    margin-right: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--footer-text);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--footer-text);
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 1240px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .news-cont {
        flex-direction: column;
    }

    .left-nav {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        display:none;
    }

    .news-list {
        grid-template-columns: 1fr;
    }

    .list-item {
        flex-direction: column;
    }

    .list-item-img {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .footer-column {
        width: 50%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
@media (max-width: 480px){
    .logo{display: none;}
}