/* ========== CSS Variables ========== */
:root {
    --theme-bg: #f0f2f5;
    --theme-scroll-bg: #f0f2f5;
    --theme-text: #333333;
    --theme-text-secondary: #666666;
    --theme-text-muted: #999999;
    --theme-border: #e0e0e0;
    --theme-accent: #07c160;
    --theme-accent-hover: #06ad56;
    --theme-accent-light: #e8f8ef;
    --theme-toolbar: #ffffff;
    --theme-sidebar: #ffffff;
    --theme-card: #ffffff;
    --theme-shadow: 0 4px 20px rgba(0,0,0,0.10);
    --theme-input-bg: #ffffff;
    --theme-hover: #f0f0f0;
    --theme-danger: #e74c3c;
    --theme-danger-bg: #fde8e8;
    --theme-header-bg: #ffffff;
    --theme-header-border: #e0e0e0;
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --sidebar-width: 250px;
    --sidebar-right-width: 250px;
    --header-height: 50px;
    --font-stack: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background: var(--theme-bg);
    color: var(--theme-text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ========== Header ========== */
.app-header {
    background: var(--theme-header-bg);
    border-bottom: 1px solid var(--theme-header-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 100;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo {
    font-size: 17px;
    font-weight: 700;
    color: var(--theme-accent);
}
.header-version {
    font-size: 10px;
    color: var(--theme-text-muted);
    background: var(--theme-hover);
    padding: 1px 8px;
    border-radius: 10px;
}
.header-center {
    flex: 1;
    text-align: center;
}
.save-status {
    font-size: 11px;
    color: var(--theme-text-muted);
}
.header-right {
    display: flex;
    gap: 8px;
    align-items: center;
}
.header-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

/* ========== App Body ========== */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========== Left Sidebar ========== */
.sidebar-left {
    width: var(--sidebar-width);
    background: var(--theme-sidebar);
    border-right: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--theme-border);
    flex-shrink: 0;
}
.sidebar-tab {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    color: var(--theme-text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-stack);
}
.sidebar-tab.active {
    color: var(--theme-accent);
    border-bottom-color: var(--theme-accent);
    font-weight: 600;
}
.sidebar-tab:hover {
    color: var(--theme-accent);
}
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 2px;
}
.sidebar-panel {
    display: block;
}

/* ===== 样式面板 ===== */
.style-categories {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.style-category {
    flex: 1;
    padding: 5px 4px;
    text-align: center;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    background: var(--theme-card);
    color: var(--theme-text-secondary);
    min-width: 36px;
}
.style-category:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}
.style-category.active {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
    color: var(--theme-accent);
    font-weight: 600;
}

.style-template-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 520px;
    overflow-y: auto;
}
.style-template-list::-webkit-scrollbar {
    width: 4px;
}
.style-template-list::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 2px;
}

/* ===== 模板卡片（唯一版本） ===== */
.style-template-item-vertical {
    padding: 6px 8px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--theme-hover);
    height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* 章节专属：更高的预览高度 */
.style-template-chapter {
    height: 400px !important;
}
.style-template-chapter .style-template-preview-html {
    max-height: none;
}
.style-template-item-vertical:hover {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
}

.style-template-preview-html {
    font-size: 12px;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
    position: relative;
    max-height: none;
}
.style-template-preview-html > div {
    transform: none;
    width: 100%;
    max-height: none;
    overflow: visible;
}

/* 美化滚动条 */
.style-template-preview-html::-webkit-scrollbar {
    width: 4px;
}
.style-template-preview-html::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.style-template-preview-html::-webkit-scrollbar-track {
    background: transparent;
}

/* 可选：底部渐变遮罩（不影响滚动） */
.style-template-preview-html::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--theme-hover));
    pointer-events: none;
}

/* 内部元素重置（保持干净） */
.style-template-preview-html * {
    margin: 2px 0 !important;
    padding: 0 !important;
}
.style-template-preview-html h1,
.style-template-preview-html h2,
.style-template-preview-html h3,
.style-template-preview-html h4 {
    font-size: 14px !important;
    margin: 2px 0 !important;
}
.style-template-preview-html p {
    font-size: 12px !important;
    margin: 2px 0 !important;
}
.style-template-preview-html div {
    font-size: 12px !important;
}

/* ===== 分割线面板 ===== */
.divider-header {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.divider-subtab {
    flex: 1;
    padding: 5px 0;
    text-align: center;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    background: var(--theme-card);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    font-family: var(--font-stack);
    color: var(--theme-text-secondary);
}
.divider-subtab:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}
.divider-subtab.active {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
    color: var(--theme-accent);
    font-weight: 600;
}
.divider-categories {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.divider-cat {
    padding: 3px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-card);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
    font-family: var(--font-stack);
    color: var(--theme-text-secondary);
}
.divider-cat:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}
.divider-cat.active {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
    color: var(--theme-accent);
    font-weight: 500;
}
.divider-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}
.divider-list::-webkit-scrollbar {
    width: 4px;
}
.divider-list::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 2px;
}
.divider-list-item-vertical {
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    padding: 5px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--theme-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.divider-list-item-vertical:hover {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
}
.divider-list-item-vertical img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}
.divider-subpanel {
    display: block;
}

/* ========== Center Editor ========== */
.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--theme-bg);
    min-width: 0;
    overflow: hidden;
}
.editor-toolbar {
    background: var(--theme-toolbar);
    border-bottom: 1px solid var(--theme-border);
    padding: 2px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}
.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 4px;
    align-items: center;
    padding: 1px 0;
}
.toolbar-group {
    display: flex;
    gap: 1px;
    align-items: center;
    padding: 0 2px;
}
.toolbar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-text-muted);
    margin-right: 2px;
    user-select: none;
}
.tool-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--theme-text-secondary);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-family: var(--font-stack);
}
.tool-btn:hover {
    background: var(--theme-hover);
    color: var(--theme-text);
}
.tool-btn:active,
.tool-btn.active {
    background: var(--theme-accent-light);
    color: var(--theme-accent);
}
.tool-btn.text-btn {
    width: auto;
    padding: 0 4px;
    font-size: 10px;
}
.tool-btn[style*="color:#e74c3c"]:hover {
    background: var(--theme-danger-bg);
}
.tool-select {
    height: 20px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    padding: 0 3px;
    font-size: 10px;
    color: var(--theme-text-secondary);
    background: var(--theme-input-bg);
    cursor: pointer;
    outline: none;
    font-family: var(--font-stack);
}
.tool-select:focus {
    border-color: var(--theme-accent);
}
.color-btn-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    background: var(--theme-card);
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-btn-small:hover {
    border-color: var(--theme-accent);
    transform: scale(1.05);
}
.color-btn-small .color-indicator {
    position: absolute;
    bottom: 1px;
    left: 2px;
    right: 2px;
    height: 2px;
    border-radius: 2px;
}
.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
}
.editor-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    background: #eef2f6;  /* ← 固定值，不随主题变化 */
}
.editor-scroll::-webkit-scrollbar {
    width: 6px;
}
.editor-scroll::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 3px;
}
.editor-card {
    background: #ffffff;  /* ← 固定白色 */
    width: 100%;
    max-width: 780px;
    min-height: calc(100% - 20px);
    box-shadow:  0 4px 20px rgba(0,0,0,0.10);  /* ← 固定阴影 */
    border-radius: var(--radius);
    padding: 18px 40px 30px;
    position: relative;
}
.article-meta {
    margin-bottom: 8px;
}
.article-title-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 22px;
    font-weight: 700;
    color:  #333333;  /* ← 固定颜色 */
    padding: 10px 0;
    outline: none;
    font-family: var(--font-stack);
    resize: none;
    line-height: 1.4;
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: transparent;
}
.article-title-input:focus {
    border-bottom-color: #07c160;
}
.article-title-input::placeholder {
    color: var(--theme-text-muted);
    font-weight: 400;
    font-size: 18px;
}
#editor {
    outline: none;
    min-height: 320px;
    font-size: 16px;
    line-height: 1.8;
    color:  #333333;  /* ← 固定深灰 */
    word-break: break-word;
    cursor: text;
}
#editor:empty::before {
    content: '在这里开始写作...';
    color: var(--theme-text-muted);
    font-size: 14px;
    line-height: 1.6;
}
#editor h1 { font-size: 28px; text-align: center; margin: 20px 0 16px; }
#editor h2 { font-size: 22px; margin: 18px 0 12px; border-left: 4px solid #07c160; padding-left: 12px; }
#editor h3 { font-size: 19px; margin: 16px 0 10px; }
#editor h4 { font-size: 17px; margin: 14px 0 10px; color: var(--theme-text-secondary); font-weight: 400 !important; }
#editor .title-center { font-size: 20px; text-align: center; margin: 20px 0 14px; color: #1a1a1a; }
#editor .title-sub { font-size: 16px; text-align: center; color: #666666; margin: 10px 0; }
#editor blockquote { margin: 15px 0; padding: 12px 20px; background: #f5f5f5; border-left: 4px solid #07c160; border-radius: var(--radius-sm); color: #666666; font-size: 15px; line-height: 1.7; }
#editor p { margin: 8px 0; }
#editor ul,
#editor ol {
    padding-left: 28px;
    margin: 8px 0;
}
#editor li {
    margin: 2px 0;
}
#editor img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
    border-radius: var(--radius-sm);
}
#editor img.selected {
    outline: 2px solid var(--theme-accent);
    outline-offset: 3px;
}
#editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}
#editor table td,
#editor table th {
    border: 1px solid var(--theme-border);
    padding: 8px 12px;
    vertical-align: top;
}
#editor table th {
    background: #f5f5f5;
    font-weight: 600;
}
#editor pre code {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
}
.code-block {
    background: #f5f5f5;
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    margin: 12px 0;
    border: 1px solid #e0e0e0;
}
.img-bg-wrapper {
    background: #e8f8ef;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
}
.img-bg-wrapper img {
    margin: 0 auto;
}

/* ========== Right Sidebar ========== */
.sidebar-right {
    width: var(--sidebar-right-width);
    background: var(--theme-sidebar);
    border-left: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-right .sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}
.sidebar-right .sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-right .sidebar-content::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 2px;
}
.sidebar-section {
    margin-bottom: 12px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text-secondary);
}
.sidebar-divider {
    height: 1px;
    background: var(--theme-border);
    margin: 10px 0;
}
.sidebar-row {
    display: flex;
    gap: 4px;
}
.sidebar-action-btn {
    padding: 5px 10px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    background: var(--theme-card);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    font-family: var(--font-stack);
    color: var(--theme-text-secondary);
    text-align: center;
}
.sidebar-action-btn:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: var(--theme-accent-light);
}
.sidebar-action-btn.primary {
    background: var(--theme-accent);
    color: #fff;
    border-color: var(--theme-accent);
}
.sidebar-action-btn.primary:hover {
    background: var(--theme-accent-hover);
}
.sidebar-select {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    background: var(--theme-input-bg);
    cursor: pointer;
    outline: none;
    font-family: var(--font-stack);
}
.sidebar-select:focus {
    border-color: var(--theme-accent);
}

/* ===== 滑块 ===== */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.slider-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.slider-label {
    font-size: 11px;
    color: var(--theme-text-secondary);
}
.slider-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.slider-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-text);
    min-width: 22px;
    text-align: center;
}
.slider-input {
    flex: 1;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--theme-border);
    border-radius: 2px;
    outline: none;
}
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--theme-accent);
    cursor: pointer;
}
.slider-input::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--theme-accent);
    cursor: pointer;
    border: none;
}
.slider-unit {
    font-size: 10px;
    color: var(--theme-text-muted);
    min-width: 16px;
}

/* ===== 图片工具 ===== */
.img-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3px;
    margin-bottom: 3px;
}
.img-tool-grid .img-btn {
    padding: 3px 4px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    background: var(--theme-card);
    cursor: pointer;
    font-size: 10px;
    transition: var(--transition);
    font-family: var(--font-stack);
    color: var(--theme-text-secondary);
    text-align: center;
    white-space: nowrap;
}
.img-tool-grid .img-btn:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
    background: var(--theme-accent-light);
}
.img-tool-grid .img-btn.primary-btn {
    background: var(--theme-accent);
    color: #fff;
    border-color: var(--theme-accent);
}
.img-tool-grid .img-btn.primary-btn:hover {
    background: var(--theme-accent-hover);
}
.img-tool-grid .img-btn.danger-btn {
    color: var(--theme-danger);
    border-color: var(--theme-danger-bg);
}
.img-tool-grid .img-btn.danger-btn:hover {
    background: var(--theme-danger-bg);
    border-color: var(--theme-danger);
}
.img-color-row {
    display: flex;
    align-items: center;
    gap: 3px;
    grid-column: 1 / -1;
}

/* ===== 统计 ===== */
.stats-section {
    margin-bottom: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid var(--theme-border);
    font-size: 12px;
}
.stat-label {
    color: var(--theme-text-muted);
}
.stat-value {
    font-weight: 600;
    color: var(--theme-text);
}

/* ========== Status & Modals ========== */
#status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    display: none;
    z-index: 1000;
    text-align: center;
}
#status .sub {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}
#modal-box {
    background: var(--theme-card);
    max-width: 680px;
    width: 90%;
    max-height: 80%;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--theme-shadow);
    display: flex;
    flex-direction: column;
}
#preview-content {
    flex: 1;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    padding: 16px;
    overflow-y: auto;
    background: var(--theme-hover);
    font-family: var(--font-stack);
    line-height: 1.8;
}
#preview-content img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
    border-radius: var(--radius-sm);
}
.actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.actions button {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-stack);
    font-size: 13px;
}
.actions .btn-close {
    background: var(--theme-hover);
    color: var(--theme-text);
}
.actions .btn-close:hover {
    background: var(--theme-border);
}
.actions .btn-copy {
    background: var(--theme-accent);
    color: white;
}
.actions .btn-copy:hover {
    background: var(--theme-accent-hover);
}
#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-card);
    z-index: 3000;
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}
#fullscreen-overlay .fs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
#fullscreen-overlay .fs-content {
    flex: 1;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    padding: 16px;
    background: var(--theme-card);
    box-shadow: var(--theme-shadow);
    border-radius: var(--radius);
}
#fullscreen-overlay .fs-content img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
    border-radius: var(--radius-sm);
}
#phone-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ========== Toast ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.custom-toast {
    animation: fadeIn 0.2s ease;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-secondary);
}

/* ========== Print ========== */
@media print {
    .app-header, .sidebar-left, .sidebar-right, .editor-toolbar,
    #hint, #status, #modal-overlay, #fullscreen-overlay,
    #phone-preview-overlay, .custom-toast { display: none !important; }
    body { background: white; margin: 0; padding: 0; overflow: visible; height: auto; }
    .app-body { display: block; height: auto; }
    .editor-main { background: white; height: auto; }
    .editor-scroll { padding: 0; overflow: visible; display: block; }
    .editor-card { box-shadow: none !important; border-radius: 0 !important; padding: 16px !important; max-width: 100% !important; min-height: auto !important; }
    #editor { min-height: auto !important; }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .sidebar-left { width: 200px; }
    .sidebar-right { width: 200px; }
    .editor-card { padding: 14px 16px; }
}
@media (max-width: 860px) {
    .sidebar-left, .sidebar-right { display: none; }
    .editor-scroll { padding: 8px; }
    .editor-card { padding: 10px; }
    .toolbar-row { gap: 0px 2px; }
    .tool-btn { width: 20px; height: 20px; font-size: 9px; }
    .tool-btn.text-btn { font-size: 8px; padding: 0 3px; }
    .tool-select { font-size: 8px; height: 16px; padding: 0 2px; }
    .toolbar-label { font-size: 9px; }
    .header-right .header-author { font-size: 11px; }
    .article-title-input { font-size: 18px; }
}

/* ============================================================
   自定义模板样式（左侧统计）
   ============================================================ */
.left-stats {
    border-top: 1px solid var(--theme-border);
    padding: 8px 6px 6px 6px;
    margin-top: 6px;
    background: var(--theme-hover);
    border-radius: 4px;
    flex-shrink: 0;
}
.left-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
}
.left-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 1px 0;
    color: var(--theme-text-secondary);
}
.left-stat-label {
    color: var(--theme-text-muted);
}
.left-stat-value {
    font-weight: 600;
    color: var(--theme-text);
}
.left-stats-footer {
    font-size: 10px;
    color: var(--theme-text-muted);
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid var(--theme-border);
    margin-top: 4px;
}

/* ============================================================
   右侧组件库（带预览的滑块卡片）
   ============================================================ */
.component-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}
.component-list::-webkit-scrollbar {
    width: 4px;
}
.component-list::-webkit-scrollbar-thumb {
    background: var(--theme-text-muted);
    border-radius: 2px;
}
.component-card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
}
.component-card:hover {
    border-color: var(--theme-accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.component-card-preview {
    background: var(--theme-hover);
    border-radius: var(--radius-sm);
    padding: 0;
    max-height: none;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 6px;
    position: relative;
    zoom: 0.7;
}
.component-card-preview > * {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
}
.component-card-preview img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
.component-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.component-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 6px;
}
.component-btn-insert {
    padding: 2px 12px;
    background: var(--theme-accent);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-stack);
    flex-shrink: 0;
}
.component-btn-insert:hover {
    background: var(--theme-accent-hover);
}
.component-btn-del {
    padding: 0 4px;
    color: var(--theme-danger);
    background: transparent;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.component-btn-del:hover {
    transform: scale(1.2);
}

/* 组件编辑模式 */
.component-card-inner.editing {
    user-select: auto !important;
    cursor: text !important;
}
.component-card-inner.editing * {
    user-select: auto !important;
}
.component-card-inner.editing,
.component-card-inner.editing * {
    contenteditable: true !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}
.component-card-inner.editing {
    border-color: #ff9800 !important;
}

/* ============================================================
   文章样式（左侧“文章样式”面板）
   ============================================================ */

#articleStyleList {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.article-style-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--theme-card);
    position: relative;
    min-height: 48px;
}
.article-style-card:hover {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
}
.article-style-card.active {
    border-color: var(--theme-accent);
    background: var(--theme-accent-light);
}

.article-style-card-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}
.article-style-card-info {
    flex: 1;
    min-width: 0;
}
.article-style-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text);
}
.article-style-card-desc {
    font-size: 11px;
    color: var(--theme-text-muted);
    margin-top: 2px;
}
.article-style-card-check {
    color: var(--theme-accent);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.article-style-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.article-style-divider {
    font-size: 11px;
    color: var(--theme-text-muted);
    text-align: center;
    padding: 8px 0 4px 0;
    border-top: 1px solid var(--theme-border);
    margin-top: 6px;
}

/* ============================================================
   文章样式（作用于 #editor）—— 升级版（带装饰感）
   ============================================================ */

/* ----- 1. 公众号风格（绿色系 · 清新阅读） ----- */
#editor.style-wechat h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1a1a1a !important;
    letter-spacing: 2px !important;
    margin: 30px 0 20px 0 !important;
    position: relative !important;
}
#editor.style-wechat h1::after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: #07c160 !important;
    margin: 10px auto 0 auto !important;
    border-radius: 2px !important;
}
#editor.style-wechat h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    border-left: 4px solid #07c160 !important;
    padding: 6px 0 6px 14px !important;
    margin: 24px 0 16px 0 !important;
}
#editor.style-wechat h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 20px 0 12px 0 !important;
}
#editor.style-wechat p,
#editor.style-wechat div,
#editor.style-wechat section,
#editor.style-wechat article,
#editor.style-wechat li {
    font-size: 15px !important;
    color: #3f3f3f !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    margin: 0 0 16px 0 !important;
}
#editor.style-wechat blockquote {
    font-size: 15px !important;
    color: #555 !important;
    border-left: 4px solid #07c160 !important;
    background: #f6faf8 !important;
    padding: 14px 20px !important;
    margin: 16px 0 !important;
    border-radius: 0 6px 6px 0 !important;
}
#editor.style-wechat ul,
#editor.style-wechat ol {
    padding-left: 28px !important;
    color: #3f3f3f !important;
}
#editor.style-wechat img {
    margin: 16px auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ----- 2. 头条号风格（橙色系 · 资讯感） ----- */
#editor.style-toutiao h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #1a1a1a !important;
    margin: 24px 0 16px 0 !important;
    border-bottom: 3px solid #f39c12 !important;
    padding-bottom: 8px !important;
}
#editor.style-toutiao h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 20px 0 12px 0 !important;
    padding-left: 14px !important;
    border-left: 4px solid #f39c12 !important;
}
#editor.style-toutiao h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 16px 0 10px 0 !important;
}
#editor.style-toutiao p,
#editor.style-toutiao div,
#editor.style-toutiao section,
#editor.style-toutiao article,
#editor.style-toutiao li {
    font-size: 17px !important;
    color: #222222 !important;
    line-height: 2.0 !important;
    text-align: justify !important;
    margin: 0 0 8px 0 !important;
}
#editor.style-toutiao blockquote {
    font-size: 16px !important;
    color: #555 !important;
    border-left: 4px solid #f39c12 !important;
    background: #fefcf8 !important;
    padding: 12px 20px !important;
    margin: 16px 0 !important;
    border-radius: 0 4px 4px 0 !important;
}
#editor.style-toutiao ul,
#editor.style-toutiao ol {
    padding-left: 28px !important;
    color: #222222 !important;
}
#editor.style-toutiao img {
    margin: 12px auto !important;
    border-radius: 4px !important;
}

/* ----- 3. 百家号风格（蓝色系 · 深度阅读） ----- */
#editor.style-baijia h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1a3a5c !important;
    margin: 28px 0 18px 0 !important;
    letter-spacing: 3px !important;
}
#editor.style-baijia h1::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 2px !important;
    background: #2c6b9e !important;
    margin: 10px auto 0 auto !important;
}
#editor.style-baijia h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a3a5c !important;
    margin: 22px 0 14px 0 !important;
    padding-left: 14px !important;
    border-left: 4px solid #2c6b9e !important;
}
#editor.style-baijia h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a3a5c !important;
    margin: 18px 0 10px 0 !important;
}
#editor.style-baijia p,
#editor.style-baijia div,
#editor.style-baijia section,
#editor.style-baijia article,
#editor.style-baijia li {
    font-size: 16px !important;
    color: #2c3e50 !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    margin: 0 0 12px 0 !important;
    text-indent: 2em !important;
}
#editor.style-baijia blockquote {
    font-size: 15px !important;
    color: #3a5a7a !important;
    border-left: 4px solid #2c6b9e !important;
    background: #f0f5fa !important;
    padding: 14px 20px !important;
    margin: 16px 0 !important;
    border-radius: 0 6px 6px 0 !important;
}
#editor.style-baijia ul,
#editor.style-baijia ol {
    padding-left: 28px !important;
    color: #2c3e50 !important;
}
#editor.style-baijia img {
    margin: 12px auto !important;
    border-radius: 6px !important;
}

/* ----- 4. 简约风格（干净 · 无装饰） ----- */
#editor.style-simple h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #1a1a1a !important;
    margin: 24px 0 16px 0 !important;
}
#editor.style-simple h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 20px 0 12px 0 !important;
}
#editor.style-simple h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 16px 0 10px 0 !important;
}
#editor.style-simple p,
#editor.style-simple div,
#editor.style-simple section,
#editor.style-simple article,
#editor.style-simple li {
    font-size: 16px !important;
    color: #333333 !important;
    line-height: 1.8 !important;
    text-align: left !important;
    margin: 0 0 12px 0 !important;
}
#editor.style-simple blockquote {
    font-size: 15px !important;
    color: #555 !important;
    border-left: 3px solid #ccc !important;
    background: #f5f5f5 !important;
    padding: 12px 18px !important;
    margin: 16px 0 !important;
}
#editor.style-simple ul,
#editor.style-simple ol {
    padding-left: 28px !important;
    color: #333333 !important;
}
#editor.style-simple img {
    margin: 12px auto !important;
    border-radius: 4px !important;
}

/* ----- 5. 新闻风格（红色系 · 紧凑资讯） ----- */
#editor.style-news h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #1a1a1a !important;
    margin: 20px 0 12px 0 !important;
    border-bottom: 2px solid #e74c3c !important;
    padding-bottom: 6px !important;
}
#editor.style-news h2 {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 18px 0 10px 0 !important;
    padding-left: 12px !important;
    border-left: 4px solid #e74c3c !important;
}
#editor.style-news h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 14px 0 8px 0 !important;
}
#editor.style-news p,
#editor.style-news div,
#editor.style-news section,
#editor.style-news article,
#editor.style-news li {
    font-size: 15px !important;
    color: #333333 !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    margin: 0 0 8px 0 !important;
}
#editor.style-news blockquote {
    font-size: 14px !important;
    color: #555 !important;
    border-left: 4px solid #e74c3c !important;
    background: #fdf6f6 !important;
    padding: 10px 16px !important;
    margin: 12px 0 !important;
}
#editor.style-news ul,
#editor.style-news ol {
    padding-left: 28px !important;
    color: #333333 !important;
}
#editor.style-news img {
    margin: 10px auto !important;
    border-radius: 4px !important;
}

/* ----- 6. 学术风格（宋体 · 严谨） ----- */
#editor.style-academic h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #1a1a1a !important;
    margin: 28px 0 16px 0 !important;
    font-family: 'SimSun', 'STSong', serif !important;
}
#editor.style-academic h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 22px 0 12px 0 !important;
    font-family: 'SimSun', 'STSong', serif !important;
}
#editor.style-academic h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 18px 0 10px 0 !important;
    font-family: 'SimSun', 'STSong', serif !important;
}
#editor.style-academic p,
#editor.style-academic div,
#editor.style-academic section,
#editor.style-academic article,
#editor.style-academic li {
    font-size: 14px !important;
    color: #333333 !important;
    line-height: 1.5 !important;
    text-align: justify !important;
    margin: 0 0 8px 0 !important;
    text-indent: 2em !important;
    font-family: 'SimSun', 'STSong', serif !important;
}
#editor.style-academic blockquote {
    font-size: 13px !important;
    color: #555 !important;
    border-left: 3px solid #888 !important;
    background: #f5f5f5 !important;
    padding: 10px 16px !important;
    margin: 14px 0 !important;
    font-family: 'SimSun', 'STSong', serif !important;
}
#editor.style-academic ul,
#editor.style-academic ol {
    padding-left: 28px !important;
    color: #333333 !important;
}
#editor.style-academic img {
    margin: 10px auto !important;
    border-radius: 2px !important;
}

/* ----- 7. 文艺风格（楷体 · 粉色暖调） ----- */
#editor.style-artistic h1 {
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #5d3a3a !important;
    margin: 30px 0 20px 0 !important;
    font-family: 'KaiTi', 'STKaiti', serif !important;
    letter-spacing: 4px !important;
}
#editor.style-artistic h1::before {
    content: '✦ ' !important;
    color: #d4a0a0 !important;
}
#editor.style-artistic h1::after {
    content: ' ✦' !important;
    color: #d4a0a0 !important;
}
#editor.style-artistic h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #5d3a3a !important;
    margin: 24px 0 16px 0 !important;
    font-family: 'KaiTi', 'STKaiti', serif !important;
    border-bottom: 2px solid #f0d0d0 !important;
    padding-bottom: 6px !important;
}
#editor.style-artistic h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #5d3a3a !important;
    margin: 20px 0 12px 0 !important;
    font-family: 'KaiTi', 'STKaiti', serif !important;
}
#editor.style-artistic p,
#editor.style-artistic div,
#editor.style-artistic section,
#editor.style-artistic article,
#editor.style-artistic li {
    font-size: 16px !important;
    color: #4a3a3a !important;
    line-height: 2.0 !important;
    text-align: center !important;
    margin: 0 0 16px 0 !important;
    font-family: 'KaiTi', 'STKaiti', serif !important;
}
#editor.style-artistic blockquote {
    font-size: 15px !important;
    color: #7a5a5a !important;
    border-left: 4px solid #d4a0a0 !important;
    background: #fcf8f8 !important;
    padding: 12px 24px !important;
    margin: 16px 0 !important;
    text-align: center !important;
    border-radius: 0 8px 8px 0 !important;
}
#editor.style-artistic ul,
#editor.style-artistic ol {
    padding-left: 28px !important;
    color: #4a3a3a !important;
}
#editor.style-artistic img {
    margin: 20px auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

/* ----- 8. 科技风格（等宽 · 蓝色系） ----- */
#editor.style-tech h1 {
    font-size: 23px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #0a1628 !important;
    margin: 24px 0 14px 0 !important;
    border-bottom: 3px solid #4a90d9 !important;
    padding-bottom: 6px !important;
}
#editor.style-tech h2 {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #0a1628 !important;
    margin: 20px 0 10px 0 !important;
    border-bottom: 2px solid #4a90d9 !important;
    padding-bottom: 4px !important;
}
#editor.style-tech h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #0a1628 !important;
    margin: 16px 0 8px 0 !important;
}
#editor.style-tech p,
#editor.style-tech div,
#editor.style-tech section,
#editor.style-tech article,
#editor.style-tech li {
    font-size: 15px !important;
    color: #1a2a3a !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    margin: 0 0 6px 0 !important;
    font-family: 'SF Mono', 'Courier New', monospace !important;
}
#editor.style-tech blockquote {
    font-size: 14px !important;
    color: #2a4a6a !important;
    border-left: 4px solid #4a90d9 !important;
    background: #f0f5fa !important;
    padding: 10px 16px !important;
    margin: 12px 0 !important;
    font-family: 'SF Mono', 'Courier New', monospace !important;
    border-radius: 0 4px 4px 0 !important;
}
#editor.style-tech ul,
#editor.style-tech ol {
    padding-left: 28px !important;
    color: #1a2a3a !important;
}
#editor.style-tech img {
    margin: 10px auto !important;
    border-radius: 4px !important;
    border: 1px solid #d0d8e0 !important;
}

/* ----- 9. 节日风格（红金 · 喜庆） ----- */
#editor.style-festival h1 {
    font-size: 30px !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #cc3333 !important;
    margin: 28px 0 18px 0 !important;
    letter-spacing: 4px !important;
    text-shadow: 0 2px 8px rgba(204,51,51,0.15) !important;
}
#editor.style-festival h1::before {
    content: '🎉 ' !important;
}
#editor.style-festival h1::after {
    content: ' 🎉' !important;
}
#editor.style-festival h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #cc3333 !important;
    margin: 22px 0 14px 0 !important;
    border-bottom: 3px solid #ffd700 !important;
    padding-bottom: 6px !important;
}
#editor.style-festival h3 {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #cc3333 !important;
    margin: 18px 0 10px 0 !important;
}
#editor.style-festival p,
#editor.style-festival div,
#editor.style-festival section,
#editor.style-festival article,
#editor.style-festival li {
    font-size: 16px !important;
    color: #4a2a2a !important;
    line-height: 1.8 !important;
    text-align: center !important;
    margin: 0 0 12px 0 !important;
}
#editor.style-festival blockquote {
    font-size: 15px !important;
    color: #8a4a4a !important;
    border-left: 4px solid #ff6b6b !important;
    background: #fff5f5 !important;
    padding: 12px 20px !important;
    margin: 16px 0 !important;
    text-align: center !important;
    border-radius: 8px !important;
}
#editor.style-festival ul,
#editor.style-festival ol {
    padding-left: 28px !important;
    color: #4a2a2a !important;
}
#editor.style-festival img {
    margin: 16px auto !important;
    border-radius: 12px !important;
    border: 2px solid #ffd700 !important;
}

/* ----- 10. 诗歌风格（淡紫 · 意境） ----- */
#editor.style-poetry h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #2a2a3a !important;
    margin: 32px 0 20px 0 !important;
    letter-spacing: 6px !important;
}
#editor.style-poetry h1::before {
    content: '◈ ' !important;
    color: #8a8aaa !important;
}
#editor.style-poetry h1::after {
    content: ' ◈' !important;
    color: #8a8aaa !important;
}
#editor.style-poetry h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #2a2a3a !important;
    margin: 24px 0 16px 0 !important;
}
#editor.style-poetry h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #2a2a3a !important;
    margin: 20px 0 12px 0 !important;
}
#editor.style-poetry p,
#editor.style-poetry div,
#editor.style-poetry section,
#editor.style-poetry article,
#editor.style-poetry li {
    font-size: 17px !important;
    color: #3a3a4a !important;
    line-height: 2.4 !important;
    text-align: center !important;
    margin: 0 0 20px 0 !important;
}
#editor.style-poetry blockquote {
    font-size: 16px !important;
    color: #6a6a8a !important;
    border-left: 4px solid #8a8aaa !important;
    background: #f8f8fc !important;
    padding: 12px 24px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    border-radius: 0 8px 8px 0 !important;
}
#editor.style-poetry ul,
#editor.style-poetry ol {
    padding-left: 28px !important;
    color: #3a3a4a !important;
}
#editor.style-poetry img {
    margin: 24px auto !important;
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
}

/* ----- 11. 商务风格（深蓝 · 专业） ----- */
#editor.style-business h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #1a2a3a !important;
    margin: 24px 0 14px 0 !important;
    border-bottom: 3px solid #2a4a6a !important;
    padding-bottom: 8px !important;
}
#editor.style-business h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2a4a6a !important;
    margin: 20px 0 10px 0 !important;
    border-left: 4px solid #2a4a6a !important;
    padding-left: 14px !important;
}
#editor.style-business h3 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a2a3a !important;
    margin: 16px 0 8px 0 !important;
}
#editor.style-business p,
#editor.style-business div,
#editor.style-business section,
#editor.style-business article,
#editor.style-business li {
    font-size: 15px !important;
    color: #2a3a4a !important;
    line-height: 1.7 !important;
    text-align: justify !important;
    margin: 0 0 10px 0 !important;
}
#editor.style-business blockquote {
    font-size: 14px !important;
    color: #4a6a8a !important;
    border-left: 4px solid #3a6a9a !important;
    background: #f0f4f8 !important;
    padding: 12px 18px !important;
    margin: 14px 0 !important;
    border-radius: 0 4px 4px 0 !important;
}
#editor.style-business ul,
#editor.style-business ol {
    padding-left: 28px !important;
    color: #2a3a4a !important;
}
#editor.style-business img {
    margin: 12px auto !important;
    border-radius: 4px !important;
    border: 1px solid #d0d8e0 !important;
}

/* 强制 H4 不加粗（覆盖浏览器默认样式） */
#editor h4 {
    font-weight: 400 !important;
}