:root {
    --primary: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #e6f2ff;
    --secondary: #00a8e6;
    --accent: #00c853;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-light: #f5f8fc;
    --bg-dark: #0a2540;
    --border: #e0e6ed;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    position: relative; /* 作为 #page-floating-root 的定位基准，使其高度覆盖整个文档 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* logo 经 editable_image 渲染为 <img class="editable-image logo-img">，
   以高度 48px 为准（随导航高度自适应，不受上传图片原始尺寸限制） */
img.editable-image.logo-img {
    height: 48px;
    width: auto;
    max-width: none;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 14px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius);
}

/* 同 logo-img，保持页脚 logo 原尺寸不被通用规则覆盖 */
img.editable-image.footer-logo {
    max-width: 180px;
    height: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    display: block;
    text-align: center;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
}

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

.bg-dark {
    background: var(--bg-dark);
    color: #fff;
}

.bg-dark .section-title h2,
.bg-dark .section-title p {
    color: #fff;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 560px;
    background: linear-gradient(135deg, #0a2540 0%, #004c99 100%);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 230, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 83, 0.15) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-banner-slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

/* active 时半透明让前景文字可读；但有内联 background-image 的图片 slide 不要半透明 */
.hero-slide.active:not([style*="background-image"]) {
    opacity: 0.3;
}

.hero-slide-1 { background: linear-gradient(135deg, #0a2540 0%, #004c99 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #003366 0%, #0066cc 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #002244 0%, #0055aa 100%); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Intro section */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    text-align: justify;
}

.intro-image {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.intro-image[data-empty="true"] {
    background: linear-gradient(135deg, var(--primary-light), #fff);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    color: var(--text-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Timeline（发展历程，按官网模板样式） */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(0, 200, 83, 0.05), rgba(0, 200, 83, 0.55), rgba(0, 200, 83, 0.05));
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 44px 44px 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 44px 44px;
    text-align: left;
}

.tl-item:nth-child(odd) {
    text-align: right;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid rgba(0, 200, 83, 0.2);
}

.tl-item:nth-child(odd) .tl-dot {
    right: -8px;
}

.tl-item:nth-child(even) .tl-dot {
    left: -8px;
}

.tl-card {
    display: inline-block;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--shadow);
    max-width: 360px;
}

.tl-stage {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.tl-card h4 {
    font-size: 17px;
    color: var(--text);
    margin: 4px 0 6px;
}

.tl-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* News list */
.news-list {
    display: grid;
    gap: 20px;
}

.news-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-category {
    color: var(--primary);
    font-weight: 500;
}

.news-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.news-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control.error {
    border-color: #e53935;
}

.errorlist {
    list-style: none;
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-info-card h3 {
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item p {
    font-size: 1.05rem;
    color: var(--text);
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Content page */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-page h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px;
    color: var(--text);
}

.content-page h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
    color: var(--text);
}

.content-page p {
    color: var(--text-light);
    margin-bottom: 16px;
    text-align: justify;
}

.content-page ul,
.content-page ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.content-page li {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

/* 页脚快速链接的「链接地址」编辑块：匿名访客不可见，仅编辑模式作为小标签显示 */
.footer-url-edit {
    display: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .divider {
    margin: 0 8px;
}

/* Placeholder image */
.placeholder-img {
    border-radius: var(--radius);
    border: 1px dashed var(--primary);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.placeholder-img[data-empty="true"] {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e6f7ff 100%);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 24px;
}

/* Thanks page */
.thanks-box {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-box h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.thanks-box p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 992px) {
    .intro-section,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
    }

    .hero-banner {
        height: auto;
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   插入元素（整页编辑插入的浮动文字/图片）—— 所有访客可见
   #page-floating-root 以 body 为定位基准，覆盖整个文档：
     - 水平：居中的内容列（max-width 1200px），与页面正文列对齐
     - 垂直：高度撑满文档（height:100%）
   插入元素以百分比定位（left/top），随页面长宽缩放自动等比调整，
   与原有流式页面元素一样适配不同屏幕尺寸。
   ========================================================================== */
#page-floating-root {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: var(--container);
    height: 100%;
    pointer-events: none; /* 覆盖整页但绝不拦截点击 */
}

#page-floating-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
}

.floating-el {
    position: absolute;
    max-width: 100%;
    pointer-events: auto;
}

.floating-el-text {
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 文字字号遵循 text_an.log：
   - 标题使用全站固定字号（h1 2.4rem / h2 2rem / h3 1.25rem / h4 1rem / 正文 1rem）
   - ≤768 时 h1、h2 按全站规则缩小（2.4→1.9rem、2→1.6rem），其余字号不变
   - 窄屏仅自动换行增高，不做 JS 计算 */
.floating-el-h1 .floating-el-text { font-size: 2.4rem; font-weight: 700; color: var(--text); }
.floating-el-h2 .floating-el-text { font-size: 2rem; font-weight: 700; color: var(--text); }
.floating-el-h3 .floating-el-text { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.floating-el-h4 .floating-el-text { font-size: 1rem; font-weight: 600; color: var(--text); }
.floating-el-p .floating-el-text { font-size: 1rem; color: var(--text-light); }
.floating-el-span .floating-el-text { font-size: 1rem; }

@media (max-width: 768px) {
    .floating-el-h1 .floating-el-text { font-size: 1.9rem; }
    .floating-el-h2 .floating-el-text { font-size: 1.6rem; }
    .floating-el-banner .floating-el-img { height: auto; aspect-ratio: 15 / 7; }
}

/* 正文段落：宽 550px（与内容列单列内宽一致），窄屏时随内容列收缩 */
.floating-el-p {
    width: min(550px, 100%);
}

.floating-el-img {
    display: block;
}

.floating-el-img[data-empty="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fc;
    border: 2px dashed #c0c8d0;
    border-radius: var(--radius);
    color: #888;
    font-size: 14px;
}

/* 内容配图：宽 550px（img_an.log：桌面内容列单列宽），随内容列收缩；空态 8:5 保持比例 */
.floating-el-intro_image {
    width: min(550px, 100%);
}

.floating-el-intro_image .floating-el-img {
    width: 100%;
    height: auto;
}

.floating-el-intro_image .floating-el-img[data-empty="true"] {
    aspect-ratio: 8 / 5;
    height: auto;
}

/* 占位大图：宽 900px（img_an.log：占位图上限），随内容列收缩；空态 15:4（900:240） */
.floating-el-placeholder_img {
    width: min(900px, 100%);
}

.floating-el-placeholder_img .floating-el-img {
    width: 100%;
    height: auto;
}

.floating-el-placeholder_img .floating-el-img[data-empty="true"] {
    aspect-ratio: 15 / 4;
    height: auto;
}

/* 横幅大图（img_an.log）：桌面全宽×高固定 560px cover 裁切；≤768 高度随内容、按 15:7 等比 */
.floating-el-banner {
    width: 100%;
    max-width: 1200px;
}

.floating-el-banner .floating-el-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

/* Logo / 图标：高 160px，宽自适应 */
.floating-el-logo .floating-el-img {
    height: 160px;
    width: auto;
    max-width: 100%;
}

.floating-el-logo .floating-el-img[data-empty="true"] {
    width: 200px;
    height: 160px;
    aspect-ratio: auto;
}

/* ==========================================================================
   流式插入元素（建议 A）—— 作为区块流内容的一部分，随页面宽度自动重排/缩放
   ========================================================================== */
.page-element-wrap {
    display: block;
}

.page-element {
    position: relative;
    display: block;
    margin: 12px 0;
    max-width: 100%;
    pointer-events: auto;
}

.page-element-text {
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 文字字号遵循 text_an.log：固定字号 + ≤768 缩小 h1/h2 */
.page-element-h1 .page-element-text { font-size: 2.4rem; font-weight: 700; color: var(--text); }
.page-element-h2 .page-element-text { font-size: 2rem; font-weight: 700; color: var(--text); }
.page-element-h3 .page-element-text { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.page-element-h4 .page-element-text { font-size: 1rem; font-weight: 600; color: var(--text); }
.page-element-p .page-element-text { font-size: 1rem; color: var(--text-light); }
.page-element-span .page-element-text { font-size: 1rem; }

@media (max-width: 768px) {
    .page-element-h1 .page-element-text { font-size: 1.9rem; }
    .page-element-h2 .page-element-text { font-size: 1.6rem; }
}

/* 图片：随区块内容宽度等比缩放（宽度百分比由内联样式控制） */
.page-element-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-element-img[data-empty="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fc;
    border: 2px dashed #c0c8d0;
    border-radius: var(--radius);
    color: #888;
    font-size: 14px;
    min-height: 160px;
}

/* ==========================================================================
   富文本（CKEditor 5）内插入图片：对齐与缩放样式 —— 访客可见
   编辑保存后输出的 <figure class="image ..."> 需在非编辑态也正确显示
   ========================================================================== */
figure.image {
    display: table;
    clear: both;
    max-width: 100%;
    margin: 1em 0;
}

figure.image img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure.image.image-style-align-left {
    float: left;
    margin-right: 1.5em;
}

figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

figure.image.image-style-align-right {
    float: right;
    margin-left: 1.5em;
}

figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 6px;
}

/* 行内图（CKEditor <span class="image-inline image-style-*">）对齐 */
.image-inline.image-style-align-left {
    float: left;
    margin-right: 1em;
}

.image-inline.image-style-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.image-inline.image-style-align-right {
    float: right;
    margin-left: 1em;
}

/* 文字环绕：图片浮动到侧边并缩至 50% 宽，文字环绕其侧（访客可见） */
figure.image.image-style-align-side {
    float: right;
    width: 50%;
    max-width: 50%;
    margin-left: 1.5em;
}

/* 文字环绕（左）：图左、文右 */
figure.image.image-style-align-side-left {
    float: left;
    width: 50%;
    max-width: 50%;
    margin-right: 1.5em;
}

/* 图片在上 / 图片在下：z-index 叠层（图片脱离文档流，与文字重叠分层）
   - 图片在上：z-index 2，浮在文字上方（可能遮挡文字）
   - 图片在下：z-index -1，沉到文字下方（文字盖住图片，仅空隙可见） */
figure.image.image-style-align-top {
    position: absolute;
    z-index: 2;
    max-width: 100%;
    height: auto;
}

figure.image.image-style-align-bottom {
    position: absolute;
    z-index: -1;
    max-width: 100%;
    height: auto;
}

/* 插入图片元素的富文说明（caption） */
.page-element-caption,
.floating-el-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 标题（section-title h2 / page-header h1 / content-page h2,h3 等）内的富文本段落：
   与标题本身样式统一（去除 <p> 默认外边距/行高/字重差异），
   使「纯文本标题」与「<p>包装的标题」渲染一致 */
.section-title h2 p,
.page-header h1 p,
.page-header p p,
.content-page h2 p,
.content-page h3 p,
.tl-card h4 p {
    margin: 0;
    font: inherit;
    line-height: inherit;
}

/* 富文本内容中嵌入的 iframe：自适应宽度 */
.news-content iframe,
.content-page iframe,
.intro-content iframe,
.page-element-wrap iframe {
    display: block;
    max-width: 100%;
    border: 0;
}
