/* ===================================================
   和升证券 HS SECURITIES - 前台样式
   设计还原：主色 #0f77de / #104492，深色页脚 #272c31
   =================================================== */

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 700; }

/* ---------- 容器 ---------- */
.content-padding { padding: 0 16%; }

/* ---------- 顶部 ---------- */
.site-header { background: #fff; position: relative; }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 2.2rem 16%;
}
.header-brand { display: flex; align-items: center; }
.header-logo { flex-shrink: 0; margin-right: 1.25rem; display: flex; align-items: center; }
.logo-mark {
    width: 54px; height: 54px; border-radius: 6px;
    background: #104492; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; font-weight: 800; letter-spacing: 0;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.header-title {
    font-size: 1.55rem; font-weight: 700; color: #333;
    letter-spacing: .5px; line-height: 1.35;
}
.header-title small {
    display: block; font-size: .62rem; font-weight: 600;
    color: #999; letter-spacing: 3px; margin-top: 2px;
}
.header-search-btn {
    display: none;
    width: 26px; height: 20px; position: relative; cursor: pointer;
    border: 0; background: none; color: #333;
}
.header-search-btn::before,
.header-search-btn::after,
.header-search-btn .bar {
    content: ""; display: block; width: 22px; height: 2px;
    border-radius: 2px; background: currentColor; position: absolute; left: 0;
}
.header-search-btn::before { top: 0; }
.header-search-btn .bar { top: 8px; }
.header-search-btn::after { top: 16px; }

/* ---------- 导航 ---------- */
.navbar { background: #0f77de; }
.navbar-inner {
    display: flex; align-items: stretch;
    padding: 0 16%;
    font-size: .95rem;
}
.nav-item {
    position: relative;
    display: flex; align-items: center;
    padding: 1rem 1.75rem;
    color: #fff;
    transition: background .25s;
}
.nav-item:hover { background: #104492; }
.nav-item .caret {
    width: 7px; height: 7px; margin-left: 7px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.nav-right { margin-left: auto; display: flex; align-items: stretch; }
.nav-item.is-cta { color: #fff; font-weight: 700; }

/* 下拉 */
.nav-sub {
    display: none;
    position: absolute; top: 100%; left: 0;
    min-width: 11rem;
    background: rgba(54, 62, 69, .92);
    z-index: 30;
}
.nav-item:hover .nav-sub { display: block; }
.nav-sub a {
    display: block; padding: .8rem 1.5rem;
    color: #fff; font-size: .9rem;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.nav-sub a:hover { background: #104492; }

/* 移动端箭头 */
.nav-arrow { display: none; width: 8px; height: 8px; border-top: 2px solid #ccc; border-left: 2px solid #ccc; transform: rotate(225deg); }

/* ---------- Banner ---------- */
.banner-line { padding: 1.5rem 16% 0; }
.banner-line img { width: 100%; min-height: 120px; background: #eef3fa; border-radius: 2px; }

/* ---------- 区块标题 ---------- */
.section { padding: 2.5rem 16%; }
.box-title { display: flex; flex-direction: column; padding: 1.25rem 0; }
.box-title-a { font-size: 2.2rem; font-weight: 700; color: #333; line-height: 1.4; }
.box-title-b {
    display: flex; align-items: center;
    margin-top: .75rem;
}
.box-title-b .name {
    font-size: 1.6rem; font-weight: 700; color: #104492;
    line-height: 1.4;
}
.box-title-b .divider { flex: 1; height: 1px; background: #ccc; margin-left: 1.5rem; }

/* 搜索 */
.box-title-search { display: flex; margin-left: 1rem; flex-shrink: 0; }
.box-title-search input {
    width: 200px; padding: .5rem .6rem;
    border: 1px solid #d5d5d5; border-right: 0;
    color: #333; font-size: .85rem; outline: none;
}
.box-title-search input:focus { border-color: #104492; }
.box-title-search button {
    padding: .5rem 1rem; border: 2px solid #104492;
    background: #104492; color: #fff; font-size: .85rem; cursor: pointer;
}

/* ---------- 新闻卡片网格 ---------- */
.news-grid { display: flex; flex-wrap: wrap; justify-content: space-between; padding: .75rem 0; }
.news-card {
    width: 49%; max-width: 49%;
    min-height: 126px;
    background: #fff; margin-bottom: 1rem;
    display: flex; align-items: center;
    transition: all .5s;
}
.news-card > a { display: flex; align-items: center; width: 100%; }
.news-card:hover { background-color: #3a4249; color: #fff; }
.news-card:hover .news-desc { color: #fff; }

/* 斜切日期块（还原对标站边框三角实现） */
.date-block {
    flex-shrink: 0;
    height: 1px;
    border-bottom: 125px solid #dfdfdf;
    border-right: 78px solid transparent;
    transition: all .5s;
    color: #555;
}
.date-block-inner {
    display: flex; flex-direction: column;
    padding: 1rem .5rem 0; margin-left: .5rem;
    transform: translateY(-1px);
}
.date-ym { font-size: 1rem; line-height: 1.3; white-space: nowrap; }
.date-day { font-size: 3rem; font-weight: 700; line-height: 1; margin-top: .35rem; color: #333; }
.news-card:hover .date-block { border-bottom-color: #104492; color: #fff; }
.news-card:hover .date-day { color: #fff; }

.news-context { display: flex; flex-direction: column; padding: 0 1rem; min-width: 0; }
.news-title { font-size: 1.05rem; line-height: 1.55; }
.news-desc {
    font-size: .85rem; color: #666; line-height: 1.7;
    margin-top: .6rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color .3s;
}

/* ---------- 蓝色卖点区块 ---------- */
.section-blue { background: #104492; color: #fff; }
.section-blue .box-title-a { color: #fff; }
.section-blue .box-title-b .name { color: #fff; }
.section-blue .box-title-b .divider { background: rgba(255, 255, 255, .25); }
.feature-grid { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 1rem 0 .5rem; }
.feature-item {
    width: 32%; max-width: 32%;
    display: flex; align-items: flex-start;
    background: rgba(0, 0, 0, .5);
    padding: 1.75rem;
    transition: all .5s;
}
.feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(16, 68, 146, .9);
}
.feature-icon {
    width: 100px; height: 100px; flex-shrink: 0;
    border-radius: 50%; margin-right: 1.25rem;
    background: rgba(255, 255, 255, .12);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { font-size: 1.05rem; line-height: 1.5; }
.feature-detail { font-size: .85rem; margin-top: .75rem; color: rgba(255, 255, 255, .85); line-height: 1.7; }

/* ---------- 灰色图文卡区块 ---------- */
.section-grey { background: #f0f0f0; }
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.card-item { width: 33%; max-width: 33%; padding: 0 .6rem; margin-bottom: .75rem; }
.card-item img { width: 100%; height: 190px; object-fit: cover; }
.card-name { font-size: .95rem; text-align: center; padding-top: .75rem; line-height: 1.6; }

/* ---------- 列表页 ---------- */
.page-tabs {
    display: flex; justify-content: center; align-items: center;
    padding: 2rem 16% .5rem;
    background: #fff;
}
.page-tab {
    padding: .55rem 2.5rem; margin: 0 .5rem;
    background: #363e45; color: #fff; font-size: .95rem;
    transition: background .25s;
}
.page-tab:hover { background: #104492; }
.page-tab.active { background: #104492; }

.list-line { padding: 1.5rem 16% 3rem; }
.list-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem; margin-bottom: .5rem;
}
.list-head .box-title-a { font-size: 1.9rem; }
.list-head .sub { font-size: .95rem; color: #104492; font-weight: 700; margin-top: .4rem; }

.news-list-item { border-bottom: 1px solid #e5e5e5; transition: all .5s; }
.news-list-item > a { display: flex; align-items: center; padding: 1.2rem 0; }
.news-list-item:hover { padding-left: 30px; }
.news-list-item-left { flex-shrink: 0; margin-right: 1.5rem; }
.news-list-item-left img { width: 150px; height: 96px; object-fit: cover; }
.news-list-item-middle { flex: 1; min-width: 0; }
.news-list-item-title { font-size: 1.1rem; line-height: 1.5; }
.news-list-item-desc {
    font-size: .85rem; color: #666; margin-top: .5rem; line-height: 1.7;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
}
.news-list-item-right {
    flex-shrink: 0; width: 10rem; text-align: right;
    color: #c4c4c4; font-family: Impact, "Arial Black", sans-serif;
    font-size: 1.5rem; letter-spacing: 1px;
}
.news-list-item-right .ym { font-size: .9rem; display: block; color: #999; font-family: inherit; }

/* 分页 */
.pagination { text-align: center; margin-top: 2rem; }
.pagination-box {
    display: inline-block;
    font-size: 14px; line-height: 35px;
    padding: 0 14px; margin: 5px 3px;
    background-color: #f5f5f5; border-radius: 3px;
    transition: all .5s;
}
.pagination-box:hover { background-color: #104492; color: #fff; }
.pagination-box.active { background-color: #104492; color: #fff; }

/* ---------- 详情页 ---------- */
.detail-layout {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.5rem 16% 3rem;
}
.detail-main { flex: 1; min-width: 0; }
.detail-title {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1.1rem; margin-bottom: 1.1rem;
}
.detail-title h1 { font-size: 1.85rem; line-height: 1.5; }
.detail-context { font-size: .92rem; line-height: 1.9; color: #333; }
.detail-context p { margin: .6rem 0; text-indent: 2em; }
.detail-context h3 {
    font-size: 1.1rem; color: #104492;
    margin: 1.3rem 0 .6rem; text-indent: 0;
}
.detail-context img { margin: .8rem auto; }
.detail-context .faq { text-indent: 0; }
.detail-author {
    border-bottom: 1px dashed #ccc;
    padding: 1rem 0 .9rem; margin-top: 1rem;
    font-size: .85rem; color: #888;
}
.detail-author span { margin-right: 1rem; }
.prevnext {
    display: flex; justify-content: space-between; gap: 1rem;
    margin-top: 1.25rem; font-size: .9rem;
}
.prevnext a { color: #555; }
.prevnext a:hover { color: #104492; }
.prevnext .next { margin-left: auto; text-align: right; }

/* 评论 */
.comments-box {
    margin-top: 1.5rem; background: #fff;
    border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 1.5rem;
}
.comments-box h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.comment-item { border-bottom: 1px solid #eee; padding: .8rem 0; }
.comment-item:last-child { border-bottom: 0; }
.comment-name { font-size: .8rem; font-weight: 600; color: #333; margin-bottom: .35rem; }
.comment-text { font-size: .82rem; color: #555; line-height: 1.7; }
.comments-empty { font-size: .85rem; color: #999; padding: .5rem 0; }

/* 相关阅读 */
.related-box { margin-top: 1.5rem; }
.related-title {
    width: fit-content;
    border-bottom: 2px solid #104492;
    color: #104492; font-size: 1.3rem;
    padding-bottom: .5rem; line-height: 1;
}
.related-list { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: .9rem; }
.related-item {
    width: 48%; display: flex; justify-content: space-between; gap: .6rem;
    border-bottom: 1px dotted #ccc;
    padding: .55rem 0; font-size: .88rem;
    overflow: hidden; white-space: nowrap;
}
.related-item .name { overflow: hidden; text-overflow: ellipsis; }
.related-item .date { color: #999; flex-shrink: 0; font-size: .8rem; }
.related-item:hover .name { color: #104492; }

/* 侧栏 最新文章 */
.sidebar { flex-shrink: 0; margin-left: 3.5rem; width: 22rem; }
.latest-box {
    border: 1px solid #efefef;
    box-shadow: 0 5px 5px -5px #ccc;
    border-radius: 10px; overflow: hidden;
}
.latest-title { padding: 1.25rem 3rem; font-size: 1.1rem; font-weight: 700; color: #333; }
.latest-item { border-top: 1px solid #efefef; }
.latest-item a { display: block; padding: 1rem 1.25rem; }
.latest-item a:hover .latest-name { color: #104492; }
.latest-name {
    font-size: .9rem; line-height: 1.55;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
}
.latest-date { font-size: .8rem; color: #999; margin-top: .4rem; }

/* ---------- 友情链接 / 页脚 ---------- */
.links-line { padding: 3rem 16%; }
.links-title { border-bottom: 1px solid #ddd; padding-bottom: .9rem; }
.links-title .cn { color: #104492; font-weight: 700; font-size: 1.1rem; }
.links-title .en { color: #999; font-size: .95rem; }
.links-context { padding-top: .9rem; font-size: .85rem; }
.links-context a { color: #666; }
.links-context a:hover { color: #104492; }

.footer { background: #272c31; padding-top: 5rem; display: flex; justify-content: center; }
.footer-content {
    background: #104492; width: 100%;
    padding: 1.2rem 16%;
    display: flex; flex-wrap: wrap; justify-content: center;
    color: #fff; font-size: .85rem;
}
.footer-content a { color: #fff; }
.footer-content a:hover { text-decoration: underline; }
.footer-content span { margin: 0 .35rem; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-page h1 { font-size: 4rem; color: #104492; }
.error-page p { color: #888; margin: .75rem 0 1.5rem; }
.error-page a {
    display: inline-block; padding: .6rem 1.6rem;
    background: #104492; color: #fff; border-radius: 3px;
}

/* ===================================================
   响应式（桌面 ≥ 768px 保持完整横版导航 + 两列；≤ 767px 折叠为移动端）
   =================================================== */
@media screen and (max-width: 767.98px) {
    html { font-size: 15px; }
    .content-padding, .header-inner, .navbar-inner { padding-left: 3%; padding-right: 3%; }
    .banner-line { padding: 1rem 3% 0; }
    .section, .list-line, .detail-layout, .links-line { padding: 1rem 3% 2rem; }
    .page-tabs { padding: 1rem 3% .5rem; }

    /* 固定顶栏 */
    .site-header {
        position: fixed; top: 0; left: 0; width: 100%;
        background: #fff; z-index: 100;
        box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    }
    .header-inner { padding-top: .6rem; padding-bottom: .6rem; }
    .header-title { font-size: .98rem; }
    .header-title small { display: none; }
    .logo-mark { width: 42px; height: 42px; font-size: .9rem; }
    .header-logo { margin-right: .6rem; }
    .header-search-btn { display: block; }

    /* 导航折叠 */
    .navbar { display: none; background: #fff; }
    .navbar.open { display: block; }
    .navbar-inner { flex-direction: column; padding: 0 3%; font-size: 1rem; }
    .nav-item {
        justify-content: space-between;
        padding: .9rem 0; color: #333;
        border-bottom: 1px solid #eee;
    }
    .nav-item:hover { background: none; color: #104492; }
    .nav-item .caret { display: none; }
    .nav-arrow { display: block; }
    .nav-sub {
        position: static; display: none;
        background: #f7f7f7; min-width: 0;
    }
    .nav-sub.open { display: block; }
    .nav-sub a { color: #555; border-bottom: 1px solid #eee; padding-left: 2rem; }
    .nav-right { margin-left: 0; flex-direction: column; }

    .main-offset { margin-top: 4.1rem; }

    .box-title { padding: .75rem 0; }
    .box-title-a { font-size: 1.5rem; }
    .box-title-b { flex-direction: column; align-items: flex-start; }
    .box-title-b .name { font-size: 1.1rem; margin-top: .35rem; }
    .box-title-b .divider { display: none; }
    .box-title-search { margin: .9rem 0 0; width: 100%; }
    .box-title-search input { flex: 1; width: auto; }
    .box-title-search button { min-width: 3rem; padding: .5rem 0; }

    /* 卡片单列 */
    .news-grid { flex-direction: column; }
    .news-card { width: 100%; max-width: 100%; min-height: 96px; }
    .date-block { border-bottom-width: 6rem; border-right-width: 4rem; }
    .date-block-inner { padding-top: .8rem; }
    .date-ym { font-size: .85rem; }
    .date-day { font-size: 2rem; margin-top: .25rem; }
    .news-title { font-size: .98rem; }
    .news-desc { font-size: .8rem; max-height: 2.4rem; margin-top: .3rem; }

    .feature-grid { flex-direction: column; }
    .feature-item { width: 100%; max-width: 100%; margin-bottom: .6rem; padding: 1.1rem; }
    .feature-icon { width: 70px; height: 70px; margin-right: .9rem; }
    .feature-title { font-size: .98rem; }
    .feature-detail { font-size: .8rem; margin-top: .4rem; }

    .card-grid { flex-direction: column; }
    .card-item { width: 100%; max-width: 100%; padding: 0; margin-bottom: .75rem; }
    .card-item img { height: auto; }
    .card-name { text-align: center; padding: .5rem 0; font-size: .9rem; }

    /* 列表页 */
    .page-tabs { justify-content: flex-start; overflow-x: auto; }
    .page-tab { padding: .45rem 1rem; margin: 0 .35rem 0 0; white-space: nowrap; font-size: .85rem; }
    .list-head .box-title-a { font-size: 1.35rem; }
    .list-head .sub { font-size: .85rem; }
    .news-list-item > a { padding: .9rem 0; position: relative; }
    .news-list-item:hover { padding-left: 0; }
    .news-list-item-left { margin-right: .8rem; }
    .news-list-item-left img { width: 80px; height: 60px; }
    .news-list-item-title { font-size: .95rem; }
    .news-list-item-desc { font-size: .8rem; max-height: 2.6rem; overflow: hidden; }
    .news-list-item-right {
        position: absolute; right: 0; bottom: .6rem;
        width: auto; font-size: .8rem; font-family: inherit; color: #aaa;
    }
    .news-list-item-right .ym { display: none; }

    /* 详情页 */
    .detail-layout { flex-direction: column; }
    .sidebar { display: none; }
    .detail-title h1 { font-size: 1.15rem; }
    .detail-context { font-size: .88rem; }
    .prevnext { font-size: .8rem; }
    .related-item { width: 100%; }
    .comments-box { padding: 1rem; }
    .comments-box h2 { font-size: 1rem; }

    .links-line { padding: 2rem 3%; }
    .footer { padding-top: 2rem; }
    .footer-content { padding-left: 5%; padding-right: 5%; text-align: center; font-size: .75rem; }
}
