/* ISMedNut - match ismednut.org layout */
:root {
    --blue-dark: #1a3a6b;
    --blue-logo: #2c5282;
    --nav-active: #c41e3a;
    --hero-bg: #c8dde8;
    --orange: #e07020;
    --orange-light: #f08830;
    --text: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --white: #ffffff;
    --font-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --content-width: 1200px;
}

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

body {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

a {
    color: inherit;
}

/* ========== Header (原站双行结构) ========== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

/* 首页：轮播铺满顶部，Logo/导航叠在轮播上 */
.home-hero-shell {
    position: relative;
    width: 100%;
    min-height: clamp(460px, 52vw, 560px);
    overflow: hidden;
}

.home-hero-shell .home-hero {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-shell .banner-slider {
    height: 100%;
    min-height: clamp(460px, 52vw, 560px);
}

.site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: transparent;
    border-bottom: none;
    pointer-events: none;
}

.site-header--overlay .header-inner,
.site-header--overlay .site-nav,
.site-header--overlay .site-nav-inner,
.site-header--overlay a,
.site-header--overlay button {
    pointer-events: auto;
}

.site-header--overlay .site-nav {
    background: transparent;
    border-top: none;
}

.site-header--overlay .newPrimaryTitle {
    text-shadow: none;
}

.site-header--overlay .nav-link,
.site-header--overlay .nav-auth,
.site-header--overlay .nav-auth a,
.site-header--overlay .nav-auth-btn {
    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.95),
        0 0 10px rgba(255, 255, 255, 0.85);
}

/* 首页不叠加白色蒙版，背景图保持原样清晰 */
.home-hero-shell .banner-slide-shade {
    display: none;
}

.home-hero-shell .banner-foreground {
    padding: clamp(120px, 15vw, 155px) 24px 40px;
    justify-content: center;
    align-items: center;
}

.home-hero-shell .banner-arrow {
    z-index: 40;
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10px 24px 4px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.header-main {
    flex: 1;
    min-width: 0;
}

.logo-group {
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: min(340px, 42vw);
    object-fit: contain;
    object-position: left center;
}

/* 原站页头主标题（Russo One，类名 newPrimaryTitle） */
h1.newPrimaryTitle,
.newPrimaryTitle {
    font-family: "Russo One", sans-serif !important;
    font-size: clamp(24px, 2.9vw, 38px);
    font-weight: 400 !important;
    font-style: normal;
    font-synthesis: none;
    color: #000 !important;
    line-height: 1.08;
    margin: 0;
    padding: 2px 0 0;
    letter-spacing: 0.02em;
    text-transform: none;
    align-self: flex-start;
    -webkit-font-smoothing: antialiased;
}

.home-hero-shell .header-inner {
    padding-top: 8px;
}

/* 导航栏（与标题同列左对齐） */
.site-nav {
    border-top: 1px solid #f0f0f0;
    background: var(--white);
    margin-top: 4px;
}

.site-header--overlay .site-nav {
    background: transparent;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    min-height: 42px;
    padding: 0;
}

.site-nav-inner > .nav-link:first-child,
.site-nav-inner > .nav-item:first-child > .nav-link {
    padding-left: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    padding: 12px 22px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--nav-active);
}

.nav-link.active {
    color: var(--nav-active);
    font-weight: 600;
}

/* 二级下拉菜单 */
.nav-item {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.nav-item--has-dropdown > .nav-link {
    position: relative;
    padding-right: 18px;
}

.nav-item--has-dropdown > .nav-link::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -2px;
    border: 4px solid transparent;
    border-top-color: currentColor;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    padding: 6px 0;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-link:last-child {
    border-bottom: none;
}

.nav-dropdown-link:hover {
    background: #f7f9fc;
    color: var(--nav-active);
}

.nav-dropdown-link.active {
    color: var(--nav-active);
    font-weight: 600;
    background: #fafafa;
}

.nav-auth {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.nav-auth a {
    text-decoration: none;
    color: var(--blue-logo);
}

.nav-auth a:hover {
    color: var(--nav-active);
}

.nav-sep {
    color: #ccc;
}

.nav-logout-form {
    display: inline;
}

.nav-auth-btn {
    background: none;
    border: none;
    font: inherit;
    font-size: 12px;
    color: var(--blue-logo);
    cursor: pointer;
    padding: 0;
}

.nav-auth-btn:hover {
    color: var(--nav-active);
}

.nav-admin-link {
    color: var(--blue-dark) !important;
    font-weight: 600;
}

.auth-desc {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: -12px 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-desc a {
    color: var(--blue-logo);
    font-weight: 600;
}

/* ========== 首页 Hero 轮播（原站：通栏背景 + 右中文案叠层） ========== */
.home-hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-home {
    padding-top: 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: clamp(400px, 44vw, 500px);
    overflow: hidden;
    background: var(--hero-bg);
}

.page-home-hero main.main-home {
    padding-top: 0;
}

.banner-track {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.banner-parallax-group {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* 背景铺满；略放大并外扩，避免视差时露边 */
.banner-slide-bg {
    position: absolute;
    inset: -40px;
    z-index: 0;
    background-color: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.12s ease-out;
    will-change: transform;
}

.banner-slide-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(200, 221, 232, 0.15) 0%,
        rgba(200, 221, 232, 0) 45%,
        rgba(255, 255, 255, 0.12) 100%
    );
}

/* 附图：水平垂直居中 */
.banner-foreground {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 14vw, 140px) 32px 48px;
    transition: transform 0.1s ease-out;
    will-change: transform;
    pointer-events: none;
}

.banner-copy {
    text-align: center;
    max-width: 520px;
    width: 100%;
    pointer-events: auto;
}

.banner-title-art {
    line-height: 0;
    pointer-events: auto;
    cursor: default;
}

.banner-title-art img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(820px, 90vw);
    max-height: min(340px, 62vh);
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.14));
}

.banner-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--orange);
    line-height: 1.05;
    margin: 0 0 12px;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
    paint-order: stroke fill;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.banner-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--orange-light);
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.75);
}

.banner-prev {
    left: 0;
}

.banner-next {
    right: 0;
}

/* ========== 首页区块 ========== */
.home-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 48px 24px 56px;
}

.home-section-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 36px;
}

/* 合作伙伴横排 logo */
.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px 64px;
    padding: 10px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: calc(var(--partner-logo-w, 200px) + 24px);
    min-width: 120px;
    max-width: 280px;
    height: calc(var(--partner-logo-h, 72px) + 16px);
    min-height: 56px;
    padding: 8px 12px;
    box-sizing: border-box;
}

.partner-item img {
    max-height: var(--partner-logo-h, 72px);
    max-width: var(--partner-logo-w, 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-fallback {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--text);
}

/* 新闻列表（原站左右结构） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}

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

.news-content h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content h3 a {
    color: var(--text);
    text-decoration: none;
}

.news-content h3 a:hover {
    color: var(--nav-active);
}

.news-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content time {
    font-size: 12px;
    color: #999;
}

.news-list-page {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ========== 内页 Banner（与首页相同：贴顶 + 导航叠在上面，高 320px） ========== */
.home-hero-shell.page-inner-hero {
    min-height: 320px;
    height: 320px;
}

.home-hero-shell.page-inner-hero .home-hero--page,
.home-hero-shell.page-inner-hero .page-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 320px;
}

.home-hero-shell.page-inner-hero .page-banner-shade {
    display: none;
}

.home-hero-shell.page-inner-hero .page-banner-foreground {
    align-items: center;
    justify-content: center;
    padding: clamp(108px, 13vw, 128px) 24px 20px;
}

.home-hero-shell.page-inner-hero .page-banner-overlay-art img {
    max-width: min(820px, 90vw);
    max-height: min(200px, 42vw);
}

.page-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--hero-bg);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-color: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.page-banner-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 55%,
        rgba(0, 0, 0, 0.06) 100%
    );
}

.page-banner-foreground {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 24px 28px;
    pointer-events: none;
}

.page-banner-overlay-art img {
    display: block;
    width: auto;
    max-width: min(720px, 88vw);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

/* ========== 内页 ========== */
.inner-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.inner-page-title {
    font-family: var(--font-serif);
    font-size: 28px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

.inner-page--no-title {
    padding-top: 32px;
}

.inner-page--no-title .inner-page-body {
    margin-top: 0;
}

.inner-page-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
}

.inner-page-body.article-body {
    max-width: none;
    font-size: 17px;
    line-height: 1.85;
}

.inner-page-body p {
    margin-bottom: 1rem;
}

.text-link {
    color: var(--blue-logo);
    font-weight: 600;
}

/* 新闻详情（与站点通栏同宽） */
.article-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.article-page h1 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 8px;
    line-height: 1.35;
}

.article-page time {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 20px;
}

.article-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin-bottom: 24px;
}

.article-page .lead {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-page .article-body {
    font-size: 17px;
    line-height: 1.85;
    max-width: none;
    color: var(--text);
}

.article-body h2 {
    font-size: 1.45em;
}

.article-body h3 {
    font-size: 1.25em;
}

.article-body h4 {
    font-size: 1.1em;
}

/* 富文本：恢复列表缩进（全局 * reset 会清掉 ul/ol 的 padding） */
.article-body p {
    margin: 0 0 1em;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1em 1.25em;
    padding-left: 2.5em !important;
    list-style-position: outside !important;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    display: list-item !important;
    margin-bottom: 0.45em;
    list-style-position: outside !important;
}

.article-body li > p {
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

.article-body li:last-child {
    margin-bottom: 0;
}

.article-body ul ul,
.article-body ul ol,
.article-body ol ul,
.article-body ol ol {
    margin: 0.35em 0 0.5em 0;
    padding-left: 2em !important;
}

.article-body ul ul {
    list-style-type: circle;
}

.article-body ul ul ul {
    list-style-type: square;
}

.article-body ol ol {
    list-style-type: lower-alpha;
}

.article-body li > ul,
.article-body li > ol {
    margin-bottom: 0.35em;
}

/* Word 粘贴为带 margin-left / 悬挂缩进的段落时保留层级感 */
.article-body p[style*="margin-left"],
.article-body div[style*="margin-left"] {
    margin-left: 2em;
    margin-bottom: 0.65em;
}

.article-body p[style*="text-indent"] {
    padding-left: 0.25em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

.article-body table {
    max-width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    table-layout: auto;
}

.article-body table:not([width]):not([style*="width"]) {
    width: 100%;
}

.article-body .table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    max-width: 100%;
}

.article-body table td,
.article-body table th {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

/* border="0" / noBorderTable：站点默认表格样式会加边框，需显式关闭 */
.article-body table.noBorderTable,
.article-body table.no-border-table,
.article-body table[border="0"],
.article-body table[border="0"] {
    border: none;
}

.article-body table.noBorderTable td,
.article-body table.noBorderTable th,
.article-body table.no-border-table td,
.article-body table.no-border-table th,
.article-body table[border="0"] td,
.article-body table[border="0"] th {
    border: none !important;
}

.article-body table.noBorderTable,
.article-body table.no-border-table,
.article-body table[border="0"] {
    display: table !important;
    table-layout: fixed;
}

.article-body table.noBorderTable:not([width]):not([style*="width"]),
.article-body table.no-border-table:not([width]):not([style*="width"]),
.article-body table[border="0"]:not([width]):not([style*="width"]) {
    width: 100%;
    max-width: 1100px;
}

.article-body table.noBorderTable tr,
.article-body table.no-border-table tr,
.article-body table[border="0"] tr {
    display: table-row !important;
}

.article-body table.noBorderTable td,
.article-body table.noBorderTable th,
.article-body table.no-border-table td,
.article-body table.no-border-table th,
.article-body table[border="0"] td,
.article-body table[border="0"] th {
    display: table-cell !important;
}

.article-body table.noBorderTable td,
.article-body table.no-border-table td,
.article-body table[border="0"] td {
    padding: 0 3px;
    vertical-align: top;
}

.article-body table.noBorderTable img,
.article-body table.no-border-table img,
.article-body table[border="0"] img {
    max-width: 100%;
    height: auto;
    margin: 0;
    display: block;
}

.article-body blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 4px solid var(--blue-logo);
    background: #f5f8fa;
    color: var(--text-muted);
}

.article-body pre {
    background: #f4f4f4;
    padding: 12px;
    overflow-x: auto;
    border-radius: 4px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 1.2em 0 0.6em;
    font-weight: 700;
}

.article-body h2:not([style]),
.article-body h3:not([style]),
.article-body h4:not([style]) {
    color: var(--text);
}

.back-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--blue-logo);
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: var(--nav-active);
}

/* ========== 登录注册（保持简洁，融入原站风格） ========== */
.auth-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.auth-page h1 {
    font-family: var(--font-serif);
    font-size: 26px;
    text-align: center;
    margin-bottom: 28px;
}

.auth-form {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 28px 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-logo);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.btn-submit {
    width: 100%;
    padding: 11px;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--blue-logo);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--blue-logo);
    font-weight: 600;
}

.text-danger {
    color: var(--nav-active);
    font-size: 12px;
}

.profile-dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    font-size: 14px;
}

.profile-dl dt {
    font-weight: 600;
    color: var(--text-muted);
}

.profile-page .inner-page-body {
    max-width: 900px;
}

.profile-dl-summary {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.profile-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.profile-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-alert-info {
    background: #e8f4fc;
    color: #1a3a6b;
    border: 1px solid #c8dde8;
}

.profile-status-complete {
    margin-bottom: 16px;
    font-size: 14px;
    color: #155724;
}

.profile-fieldset {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 20px 8px;
    margin-bottom: 24px;
    background: #fafafa;
}

.profile-fieldset legend {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-dark);
    padding: 0 8px;
}

.profile-form-split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form .field-label,
.profile-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.profile-form .req {
    color: var(--nav-active);
}

.profile-form .form-hint-inline {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.checkbox-pill {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox-pill input {
    margin-top: 2px;
    flex-shrink: 0;
}

.radio-row {
    display: flex;
    gap: 24px;
    margin-top: 6px;
}

.radio-row label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-check-block label {
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.profile-save-btn {
    min-width: 200px;
}

/* ========== Account area (sidebar layout) ========== */
.account-page .account-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 24px 48px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 24px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 0;
}

.account-sidebar-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 20px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-nav {
    display: flex;
    flex-direction: column;
}

.account-nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.account-nav-link:hover {
    background: #eef3f9;
    color: var(--blue-logo);
}

.account-nav-link.active {
    background: #e8f0fa;
    color: var(--blue-logo);
    border-left-color: var(--blue-logo);
}

.account-content .inner-page-title {
    margin-top: 0;
}

.account-panel {
    max-width: none;
}

.account-password-form {
    max-width: 480px;
}

.profile-photo-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    background: #eee;
}

.profile-photo-fieldset .form-group {
    flex: 1;
    min-width: 200px;
}

.custom-file-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.custom-file-input-native {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.custom-file-input-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.custom-file-input-btn:hover {
    background: #ebebeb;
    border-color: #bbb;
}

.custom-file-input-name {
    font-size: 14px;
    color: var(--text-muted);
}

.research-other-wrap {
    margin-top: 12px;
    max-width: 480px;
}

.research-other-wrap label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ========== Account area (sidebar) ========== */
.account-page .account-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 24px 48px;
    align-items: start;
}

.account-sidebar {
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 0;
    position: sticky;
    top: 24px;
}

.account-sidebar-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0 20px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.account-nav {
    display: flex;
    flex-direction: column;
}

.account-nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-left: 3px solid transparent;
}

.account-nav-link:hover {
    background: #eef3f9;
    color: var(--blue-logo);
}

.account-nav-link.active {
    background: #e8f0fa;
    color: var(--blue-logo);
    border-left-color: var(--blue-logo);
}

.account-content .inner-page-title {
    margin-top: 0;
}

.account-panel {
    max-width: none;
}

.account-password-form {
    max-width: 480px;
}

.profile-photo-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    flex-shrink: 0;
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    background: #eee;
}

.profile-photo-fieldset .form-group {
    flex: 1;
    min-width: 200px;
}

.auth-form .profile-form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .profile-form-split {
        grid-template-columns: 1fr;
    }

    .auth-form .profile-form-split {
        grid-template-columns: 1fr;
    }

    .account-page .account-shell {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px 40px;
    }

    .account-sidebar {
        position: static;
    }

    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px 8px;
        gap: 4px;
    }

    .account-nav-link {
        border-left: none;
        border-radius: 4px;
        padding: 8px 12px;
    }

    .account-nav-link.active {
        border-left: none;
    }
}

/* ========== Footer ========== */
.site-footer {
    border-top: 1px solid var(--border);
    background: #f9f9f9;
    padding: 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

.footer-address {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .newPrimaryTitle {
        font-size: clamp(22px, 4.8vw, 32px);
    }

    .banner-slider {
        height: 300px;
    }

    .home-hero-shell {
        min-height: 380px;
    }

    .home-hero-shell .banner-slider {
        min-height: 380px;
    }

    .home-hero-shell .banner-foreground {
        padding: 150px 20px 32px;
    }

    .banner-foreground {
        padding: 120px 20px 36px;
    }

    .banner-title-art img {
        max-width: 92vw;
        max-height: 240px;
    }

    .site-nav-inner {
        justify-content: flex-start;
    }

    .nav-auth {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .home-hero-shell {
        min-height: 340px;
    }

    .home-hero-shell .banner-slider {
        min-height: 340px;
    }

    .home-hero-shell .banner-foreground {
        padding: 160px 16px 28px;
    }

    .banner-foreground {
        padding: 140px 16px 32px;
    }

    .banner-title-art img {
        max-height: 200px;
    }

    .banner-copy {
        max-width: 92%;
    }

    .banner-title {
        text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
    }

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

    .news-thumb {
        width: 100%;
        height: 180px;
    }

    .nav-link {
        padding: 10px 14px;
    }
}
