:root {
    --ink: #142033;
    --muted: #617083;
    --line: #dce4ec;
    --paper: #ffffff;
    --wash: #f3f7f9;
    --blue: #175a91;
    --cyan: #008ca1;
    --red: #d94757;
    --yellow: #e3ac24;
    --green: #238166;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    background: #f6f8fa;
    color: var(--ink);
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; }
.portal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
    align-items: center;
    gap: 32px;
    padding: 0 clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}
.portal-brand img { width: 40px; height: 40px; object-fit: contain; }
.portal-brand span span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.portal-nav { display: flex; height: 72px; justify-content: center; gap: 4px; }
.portal-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 3px solid transparent;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.portal-nav a:hover, .portal-nav a[aria-current="page"] { border-color: var(--cyan); color: var(--blue); }
.account-link {
    padding: 9px 14px;
    border: 1px solid #b9c8d8;
    border-radius: 6px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.account-area { display: flex; align-items: center; gap: 10px; justify-self: end; }
.account-name { color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.account-logout {
    padding: 9px 14px;
    border: 1px solid #e2b9bd;
    border-radius: 6px;
    background: #fff;
    color: #b32b39;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.account-logout:hover { background: #fdf2f2; }
.color-rule { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; height: 5px; }
.color-rule span:nth-child(1) { background: var(--cyan); }
.color-rule span:nth-child(2) { background: var(--red); }
.color-rule span:nth-child(3) { background: var(--yellow); }
.color-rule span:nth-child(4) { background: #192b43; }
.page-intro {
    position: relative;
    overflow: hidden;
    padding: 58px clamp(20px, 7vw, 110px) 52px;
    background: #eaf2f5;
    border-bottom: 1px solid var(--line);
}
.page-intro::after {
    position: absolute;
    right: 7vw;
    bottom: -45px;
    width: 250px;
    height: 180px;
    background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(0, 140, 161, .12) 17px 19px), repeating-linear-gradient(0deg, transparent 0 17px, rgba(217, 71, 87, .1) 17px 19px);
    content: "";
    transform: rotate(-7deg);
}
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.page-intro h1 { position: relative; z-index: 1; margin: 0; font-family: "STZhongsong", "SimSun", serif; font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: 0; }
.page-intro p:last-child { position: relative; z-index: 1; max-width: 720px; margin: 15px 0 0; color: #4c5d70; font-size: 16px; line-height: 1.8; }
.portal-main { width: min(1180px, calc(100% - 36px)); margin: 38px auto 70px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: #455568;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.filter-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.search-box { width: min(320px, 100%); min-height: 42px; padding: 9px 13px; border: 1px solid #bdc9d5; border-radius: 5px; background: #fff; font: inherit; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.article-list { border-top: 2px solid var(--ink); }
.article-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.article-item[hidden] { display: none; }
.article-visual { display: grid; min-height: 108px; place-items: center; overflow: hidden; border-radius: 6px; color: white; font-family: Georgia, serif; font-size: 30px; font-weight: 700; }
.visual-cyan { background: linear-gradient(145deg, #0e91a0 0 48%, #096477 48%); }
.visual-red { background: linear-gradient(145deg, #da4857 0 48%, #9f2939 48%); }
.visual-yellow { background: linear-gradient(145deg, #e5ad25 0 48%, #b67a08 48%); }
.visual-blue { background: linear-gradient(145deg, #23669e 0 48%, #153c68 48%); }
.article-meta { display: flex; gap: 12px; margin-bottom: 8px; color: #718096; font-size: 12px; }
.article-tag { color: var(--cyan); font-weight: 800; }
.article-item h2 { margin: 0 0 9px; font-size: 21px; line-height: 1.45; }
.article-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.article-list-single { width: min(920px, 100%); margin: 0 auto; }
.journal-article { overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--cyan); background: #fff; box-shadow: 0 18px 42px rgba(20, 32, 51, .08); }
.journal-article[hidden] { display: none; }
.journal-header { padding: clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff 0 70%, #edf6f7 70%); }
.journal-header .article-meta { flex-wrap: wrap; align-items: center; }
.journal-header .article-tag { padding: 4px 8px; border: 1px solid #b7dce1; border-radius: 3px; background: #edf8f9; }
.journal-header h2 { max-width: 760px; margin: 18px 0 12px; font-family: "STZhongsong", "SimSun", serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.28; letter-spacing: 0; }
.journal-english-title { max-width: 760px; margin: 0; color: #476073; font-family: Georgia, serif; font-size: 16px; line-height: 1.55; }
.journal-subtitle { margin: 24px 0 0; color: var(--blue); font-size: 17px; font-weight: 700; line-height: 1.7; }
.journal-byline { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.journal-byline a { color: var(--blue); text-decoration: none; }
.journal-body { padding: clamp(26px, 5vw, 58px); }
.journal-body section + section { margin-top: 48px; }
.journal-body h3 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 25px; line-height: 1.45; }
.journal-body h4 { margin: 32px 0 13px; color: var(--blue); font-size: 19px; line-height: 1.55; }
.journal-body p, .journal-body li { color: #3e4d5e; font-size: 16px; line-height: 2; }
.journal-body p { margin: 0 0 16px; }
.journal-body ul, .journal-body ol { margin: 8px 0 22px; padding-left: 24px; }
.journal-body li + li { margin-top: 6px; }
.journal-abstract { padding: 24px; border-left: 4px solid var(--cyan); background: #f1f7f8; }
.journal-abstract h3 { border: 0; padding: 0; font-size: 20px; }
.journal-keywords { margin-bottom: 0 !important; color: #526678 !important; }
.journal-table-wrap { margin: 24px 0 34px; overflow-x: auto; }
.journal-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.journal-table-wrap th, .journal-table-wrap td { padding: 13px 14px; border: 1px solid #cfd9e2; text-align: left; vertical-align: top; }
.journal-table-wrap th { background: #183d5c; color: #fff; }
.journal-table-wrap tr:nth-child(even) td { background: #f5f8fa; }
.journal-figure { width: min(692px, 100%); margin: 48px auto 0; }
.journal-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.journal-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.sidebar-panel { padding: 22px; border-top: 4px solid var(--cyan); background: #fff; box-shadow: 0 10px 24px rgba(20, 32, 51, .06); }
.sidebar-panel + .sidebar-panel { margin-top: 18px; border-top-color: var(--yellow); }
.sidebar-panel h2 { margin: 0 0 16px; font-size: 18px; }
.topic-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.topic-list a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: #3d4d5f; font-size: 14px; text-decoration: none; }
.topic-list span { color: #8491a1; }
.portal-footer { padding: 28px 20px; border-top: 1px solid var(--line); background: #fff; color: #6a7786; font-size: 13px; text-align: center; }
.contact-main { min-height: 390px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.contact-entry { min-height: 220px; padding: 36px; border-bottom: 1px solid var(--line); background: #fff; }
.contact-entry + .contact-entry { border-left: 1px solid var(--line); }
.contact-entry:first-child { border-top: 5px solid var(--cyan); }
.contact-entry:last-child { border-top: 5px solid var(--red); }
.contact-label { margin: 0 0 22px; color: var(--muted); font-size: 13px; font-weight: 800; }
.contact-entry h2 { margin: 0 0 16px; font-family: "STZhongsong", "SimSun", serif; font-size: 30px; letter-spacing: 0; }
.contact-entry a { color: var(--blue); font-size: 22px; font-weight: 800; text-decoration: none; }
.contact-entry a:hover { text-decoration: underline; }
.contact-address h2 { max-width: 560px; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 23px; line-height: 1.65; }
.contact-address a { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 15px; border: 1px solid #b9c8d8; border-radius: 5px; font-size: 14px; }
.contact-entry:nth-child(2) { border-top: 5px solid #07c160; }
.contact-address { grid-column: 1 / -1; }
.wechat-service-link { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 22px; border-radius: 6px; background: #07c160; color: #fff !important; font-size: 16px !important; font-weight: 800; box-shadow: 0 2px 8px rgba(7, 193, 96, 0.35); }
.wechat-service-link:hover { background: #06ad56; text-decoration: none; }
.contact-service-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-result { padding: 40px; border: 1px dashed #b9c5d2; color: var(--muted); text-align: center; }
.knowledge-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 30px; align-items: start; }
.knowledge-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.knowledge-topic { min-height: 154px; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); background: #fff; }
.knowledge-topic:nth-child(2) { border-top-color: var(--red); }
.knowledge-topic:nth-child(3) { border-top-color: var(--yellow); }
.knowledge-topic:nth-child(4) { border-top-color: var(--blue); }
.knowledge-topic h2 { margin: 0 0 10px; font-size: 18px; }
.knowledge-topic p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.assistant { position: sticky; top: 94px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--cyan); background: #fff; box-shadow: 0 14px 30px rgba(20, 32, 51, .08); }
.assistant-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.assistant-head h2 { margin: 3px 0 0; font-size: 20px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--blue); font-size: 20px; cursor: pointer; }
.assistant-messages { display: flex; height: 330px; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; background: #f5f8fa; }
.message { max-width: 90%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.message.bot { align-self: flex-start; background: #fff; }
.message.user { align-self: flex-end; border-color: #b3d5df; background: #e7f5f7; }
.message.error { border-color: #efb5ba; color: #a92634; }
.unavailable-note { color: #8a96a3; font-size: 12px; }
.assistant-form { display: grid; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }
.assistant-form textarea { min-height: 82px; resize: vertical; padding: 10px; border: 1px solid #becad6; border-radius: 5px; font: inherit; }
.assistant-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.assistant-status { color: var(--muted); font-size: 12px; }
.send-button { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.send-button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1100px) {
    .portal-header { grid-template-columns: auto auto; gap: 12px; padding: 10px 18px; }
    .portal-nav { grid-column: 1 / -1; order: 3; width: 100%; height: 46px; overflow-x: auto; justify-content: flex-start; }
    .portal-nav a { padding: 0 13px; white-space: nowrap; }
    .account-link { justify-self: end; }
    .content-grid, .knowledge-grid { grid-template-columns: 1fr; }
    .assistant { position: static; }
}
@media (max-width: 620px) {
    .portal-brand span span { display: none; }
    .page-intro { padding: 38px 20px; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .search-box { width: 100%; }
    .article-item { grid-template-columns: 1fr; }
    .article-visual { min-height: 92px; }
    .journal-header, .journal-body { padding: 24px 20px; }
    .journal-header { background: #fff; }
    .journal-body h3 { font-size: 22px; }
    .journal-body p, .journal-body li { font-size: 15px; line-height: 1.9; }
    .journal-abstract { padding: 20px 16px; }
    .knowledge-topics { grid-template-columns: 1fr; }
    .contact-list { grid-template-columns: 1fr; }
    .contact-entry { min-height: 180px; padding: 28px 24px; }
    .contact-entry + .contact-entry { border-left: 0; }
}

/* ==================== 联系我们：在线沟通 ==================== */
.contact-chat { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.contact-chat-head h2 { margin: 6px 0 8px; }
.contact-chat-tip { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.contact-chat-root { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-chat-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.contact-message-list { max-height: 360px; overflow-y: auto; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.contact-empty { color: var(--muted); text-align: center; margin: 24px 0; font-size: 14px; }
.contact-message { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.7; word-break: break-word; }
.contact-message-meta { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.contact-message-body { margin: 0; white-space: pre-wrap; }
.contact-message-mine { align-self: flex-end; background: var(--blue); color: #fff; }
.contact-message-mine .contact-message-meta { color: rgba(255, 255, 255, 0.75); }
.contact-message-other { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.contact-message-file { display: block; margin-top: 6px; color: inherit; font-size: 13px; text-decoration: underline; word-break: break-all; }
.contact-message-mine .contact-message-file { color: #fff; }
.contact-meta-form { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.contact-meta-form input, .contact-message-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; color: var(--ink); }
.contact-message-form-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: end; }
.contact-attach-button { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--blue); background: var(--wash); cursor: pointer; user-select: none; }
.contact-attach-button:hover { border-color: var(--blue); }
.contact-attach-disabled { opacity: 0.45; pointer-events: none; }
.contact-message-form textarea { resize: vertical; min-height: 74px; }
.contact-send-button { border: 0; border-radius: 8px; padding: 12px 22px; font-size: 14px; font-weight: 600; color: #fff; background: var(--blue); cursor: pointer; }
.contact-send-button:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-file-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--ink); }
.contact-file-remove { border: 0; background: none; color: var(--red); font-size: 15px; cursor: pointer; padding: 0 2px; }
.contact-status { margin: 0; min-height: 20px; font-size: 13px; color: var(--muted); }
.contact-status-error { color: var(--red); }
.contact-thread-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.contact-thread { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.contact-thread:hover { border-color: var(--blue); }
.contact-thread-active { border-color: var(--blue); background: var(--wash); }
.contact-thread-preview { color: var(--muted); font-size: 12px; }
.contact-thread-badge { font-size: 12px; color: var(--cyan); }
@media (min-width: 900px) {
    .contact-chat-root { grid-template-columns: 260px 1fr; }
}
@media (max-width: 720px) {
    .contact-meta-form { grid-template-columns: 1fr; }
    .contact-message-form-row { grid-template-columns: 1fr; }
    .contact-message { max-width: 94%; }
}

/* ==================== 博客页面左右布局与左侧标题导航栏 ==================== */
.portal-main-blog {
    width: min(1360px, calc(100% - 36px));
}

.blog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.blog-layout > * {
    min-width: 0;
}

.article-list {
    min-width: 0;
}

.journal-article {
    min-width: 0;
    max-width: 100%;
}

.journal-body {
    min-width: 0;
}

.journal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.blog-sidebar {
    min-width: 0;
}

.blog-sidebar-sticky {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--cyan);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 32, 51, .06);
}

.blog-sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}
.blog-sidebar-sticky::-webkit-scrollbar-thumb {
    background: #cfd9e2;
    border-radius: 2px;
}

.blog-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.blog-nav-title {
    margin: 0;
    color: #182b4d;
    font-size: 15px;
    font-weight: 700;
}

.blog-nav-count {
    color: var(--muted);
    font-size: 12px;
}

.blog-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-nav-item {
    margin: 0;
    padding: 0;
}
.blog-nav-item[hidden] {
    display: none;
}

.blog-nav-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 5px;
    color: #243548;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.blog-nav-link:hover {
    background: #edf6f8;
    color: var(--blue);
}

.blog-nav-link.active {
    background: #e3f2f5;
    color: var(--cyan);
}

.nav-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: #9aa8b8;
    transition: background-color .15s ease;
}

.blog-nav-link.active .nav-dot {
    background: var(--cyan);
}

.blog-subnav-list {
    list-style: none;
    margin: 6px 0 4px 14px;
    padding: 0 0 0 10px;
    border-left: 2px solid #e5edf3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-subnav-list a {
    display: block;
    padding: 3px 0;
    color: #637588;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .15s ease;
}

.blog-subnav-list a:hover {
    color: var(--blue);
}

.blog-subnav-list a.active-section {
    color: var(--cyan);
    font-weight: 700;
}

.blog-layout .article-list-single {
    width: 100%;
    margin: 0;
}

.journal-article + .journal-article {
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .blog-sidebar-sticky {
        position: static;
        max-height: none;
    }
}

