@charset "utf-8";

/* ============================================================
   贝臣口腔 · 新闻中心样式（列表页 / 内容页）
   文件：/new_files/css/news2026.css
   ============================================================ */

:root {
    --main: #1a5f7a;
    --main-dark: #144f72;
    --main-light: #2d7a9a;
    --accent: #f39c12;
    --text: #2c3e46;
    --muted: #6d828d;
    --line: #e6edf1;
    --bg: #f4f8fa;
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: var(--main);
}

img {
    max-width: 100%;
    border: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

/* ---------- 页面头部 ---------- */
.page-hero {
    position: relative;
    padding: 52px 0 86px;
    background: linear-gradient(135deg, #144f72 0%, #1a5f7a 48%, #2d7a9a 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 8%;
    bottom: -120px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-inner h1 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.3;
}

.hero-inner .hero-sub {
    margin-top: 12px;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .68);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .66);
}

.crumb li {
    display: inline-flex;
    align-items: center;
}

.crumb li+li::before {
    content: '/';
    margin: 0 9px;
    color: rgba(255, 255, 255, .35);
}

.crumb a {
    color: rgba(255, 255, 255, .66);
}

.crumb a:hover {
    color: #fff;
}

/* ---------- 两栏布局 ---------- */
.news-layout {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: -48px auto 0;
    padding: 0 20px 70px;
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ---------- 侧栏 ---------- */
.side {
    position: sticky;
    top: 96px;
}

.side-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: 0 8px 28px rgba(20, 79, 114, .07);
    margin-bottom: 20px;
}

.side-title {
    position: relative;
    padding-left: 13px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-dark);
    letter-spacing: 1px;
}

.side-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--main), var(--main-light));
}

.side-nav li {
    margin-bottom: 6px;
}

.side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 15px;
    color: #4a6572;
    background: #f7fbfc;
    transition: all .25s ease;
}

.side-nav a::after {
    content: '›';
    font-size: 15px;
    color: #a9c0cc;
}

.side-nav a:hover {
    background: #eef6fa;
    color: var(--main-dark);
    transform: translateX(3px);
}

.side-nav li.active a {
    background: linear-gradient(135deg, var(--main), var(--main-light));
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 95, 122, .28);
}

.side-nav li.active a::after {
    color: rgba(255, 255, 255, .8);
}

.side-news li {
    position: relative;
    padding: 10px 50px 10px 0;
    border-bottom: 1px dashed #e8eff3;
    font-size: 14px;
    line-height: 1.6;
}

.side-news li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.side-news li a {
    display: block;
    color: #43555f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-news li a:hover {
    color: var(--main);
}

.side-news li span {
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 12px;
    color: #9db1bb;
}

/* 咨询小卡 */
.side-cta {
    background: linear-gradient(150deg, #144f72, #2d7a9a);
    color: #fff;
    text-align: center;
    padding: 26px 20px;
}

.side-cta .cta-tip {
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .7);
}

.side-cta .cta-tel {
    display: block;
    margin: 8px 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.side-cta .cta-btn {
    display: block;
    padding: 10px 0;
    border-radius: 22px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.side-cta .cta-btn:hover {
    background: #e08e0b;
    color: #fff;
}

/* ---------- 列表 ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 22px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(20, 79, 114, .06);
    transition: all .3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    border-color: #d7eaf2;
    box-shadow: 0 16px 38px rgba(20, 79, 114, .13);
}

.news-date {
    flex: 0 0 78px;
    height: 78px;
    border-radius: 14px;
    background: linear-gradient(160deg, #f3fafc, #e5f1f7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--main-dark);
    transition: all .3s ease;
}

.news-item:hover .news-date {
    background: linear-gradient(160deg, var(--main), var(--main-light));
    color: #fff;
}

.news-date b {
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.5px;
}

.news-date span {
    margin-top: 7px;
    font-size: 12px;
    color: #6b8b9b;
    letter-spacing: .5px;
}

.news-item:hover .news-date span {
    color: rgba(255, 255, 255, .82);
}

.news-info {
    flex: 1;
    min-width: 0;
}

.news-info h2 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 8px;
}

.news-info h2 a {
    color: #22343d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-info h2 a {
    color: var(--main);
}

.news-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-light);
}

.news-more::after {
    content: '→';
    transition: transform .25s ease;
}

.news-item:hover .news-more::after {
    transform: translateX(4px);
}

.news-empty {
    padding: 70px 20px;
    text-align: center;
    color: #a4b6bf;
    font-size: 15px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 22px rgba(20, 79, 114, .06);
}

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 6px;
}

.pager li {
    display: inline-block;
}

.pager .page-link,
.pager li>a,
.pager li>span {
    display: block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    padding: 0 14px;
    text-align: center;
    font-size: 14px;
    color: #4a6572;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: all .25s ease;
}

.pager li>a:hover {
    border-color: var(--main-light);
    color: var(--main-dark);
    box-shadow: 0 6px 14px rgba(26, 95, 122, .12);
}

.pager .page-item.active .page-link,
.pager li.thisclass>span,
.pager li.thisclass>a,
.pager .thisclass .page-link {
    background: linear-gradient(135deg, var(--main), var(--main-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 95, 122, .25);
}

.pager .page-item.disabled .page-link,
.pager li.disabled>span {
    color: #b7c6ce;
    background: #f7fafb;
}

/* ============================================================
   内容页
   ============================================================ */
.art-layout {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: -48px auto 0;
    padding: 0 20px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.art-main {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(20, 79, 114, .08);
    padding: 40px 48px 46px;
}

.art-title {
    font-size: 29px;
    line-height: 1.5;
    font-weight: 700;
    color: #14313d;
    letter-spacing: .5px;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: #8a9ba4;
}

.art-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.art-meta span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c3d5de;
}

.art-body {
    padding: 28px 0 8px;
    font-size: 16px;
    line-height: 2;
    color: #31454e;
    letter-spacing: .2px;
    word-break: break-word;
}

.art-body p {
    margin: 0 0 18px;
}

.art-body img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 16px auto;
    border-radius: 8px;
}

.art-body section {
    max-width: 100% !important;
}

.art-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.art-body h2,
.art-body h3,
.art-body h4 {
    margin: 26px 0 14px;
    color: #14313d;
    line-height: 1.5;
}

.art-body h2 {
    font-size: 21px;
}

.art-body h3 {
    font-size: 18px;
}

.art-body a {
    color: var(--main-light);
    text-decoration: underline;
}

.art-body blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 4px solid var(--main-light);
    background: #f4fafc;
    border-radius: 0 8px 8px 0;
    color: #4a6572;
}

.art-body blockquote p:last-child {
    margin-bottom: 0;
}

.art-body font,
.art-body span {
    font-family: inherit;
}

.art-body span[style],
.art-body font[face] {
    font-family: inherit !important;
}

.art-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px dashed #e3edf2;
    font-size: 13px;
    color: #8a9ba4;
}

.art-share a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 18px;
    background: #f4f8fa;
    color: #4a6572;
    font-size: 13px;
}

.art-share a:hover {
    background: #e9f4f9;
    color: var(--main-dark);
}

.art-pn {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.art-pn div {
    padding: 13px 18px;
    border-radius: 10px;
    background: #f7fafb;
    color: #7b8f99;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-pn div a {
    color: #3d525c;
}

.art-pn div a:hover {
    color: var(--main);
}

/* 相关文章 */
.art-rel {
    margin-top: 40px;
}

.art-rel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.art-rel-head h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--main-dark);
    letter-spacing: 1px;
}

.art-rel-head .line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.art-rel ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 26px;
}

.art-rel li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #eaf1f5;
    font-size: 14px;
}

.art-rel li::before {
    content: '';
    flex: 0 0 5px;
    height: 5px;
    margin-top: 11px;
    border-radius: 50%;
    background: #b9d5e2;
}

.art-rel li a {
    flex: 1;
    min-width: 0;
    color: #43555f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-rel li a:hover {
    color: var(--main);
}

.art-rel li span {
    flex: 0 0 auto;
    font-size: 12px;
    color: #9db1bb;
}

/* 侧栏-返回列表 */
.side-back {
    display: block;
    margin-top: 4px;
    padding: 11px 0;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    color: #4a6572;
}

.side-back:hover {
    border-color: var(--main-light);
    color: var(--main-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {

    .news-layout,
    .art-layout {
        grid-template-columns: minmax(0, 1fr);
        margin-top: -40px;
        gap: 20px;
    }

    .side {
        position: static;
        order: 2;
    }

    .side-box {
        margin-bottom: 16px;
    }

    .art-main {
        padding: 30px 26px 34px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }
    .page-hero {
        padding: 34px 0 72px;
    }

    .hero-inner h1 {
        font-size: 24px;
    }

    .news-layout,
    .art-layout {
        padding: 0 14px 46px;
    }

    .news-item {
        gap: 16px;
        padding: 18px;
    }

    .news-date {
        flex: 0 0 62px;
        height: 62px;
    }

    .news-date b {
        font-size: 22px;
    }

    .news-info h2 {
        font-size: 16px;
    }

    .news-desc {
        font-size: 13px;
    }

    .art-main {
        padding: 24px 18px 28px;
        border-radius: 14px;
    }

    .art-title {
        font-size: 21px;
    }

    .art-body {
        font-size: 15px;
        line-height: 1.95;
    }

    .art-rel ul {
        grid-template-columns: 1fr;
    }

    .art-pn div {
        white-space: normal;
    }
}

/* ---------- 移动端头部适配（仅新闻页加载本文件时生效） ---------- */
@media (max-width: 900px) {
    html,
    body {
        overflow-x: hidden;
    }

    .top-bar span {
        text-align: center;
        padding: 0 12px;
        font-size: 12px;
        line-height: 1.6;
    }

    .header-content {
        padding: 10px 14px;
    }

    .logo img {
        height: 42px;
        width: auto;
    }

    .phone {
        font-size: 16px;
        gap: 6px;
    }

    .phone-title {
        font-size: 11px;
    }

    nav {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    .nav-content {
        width: max-content;
        min-width: 100%;
        gap: 22px;
        padding: 0 14px;
        justify-content: flex-start;
    }

    .nav-content>a,
    .nav-item-dropdown .nav-link {
        font-size: 15px;
        padding: 12px 0;
        white-space: nowrap;
    }

    .dropdown-menu {
        display: none !important;
    }

    .page-hero {
        padding: 30px 0 64px;
    }
}
