/* Sway99 Editor 前台自定义块样式 */
.sway99-callout { border-left: 4px solid; border-radius: 6px; padding: 12px 16px; margin: 1em 0; }
.sway99-callout-info { border-color: #2271b1; background: #f0f6fb; }
.sway99-callout-success { border-color: #00a32a; background: #f0faf1; }
.sway99-callout-warning { border-color: #dba617; background: #fcf9e8; }
.sway99-callout-error { border-color: #d63638; background: #fcf0f1; }
.sway99-details { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: 10px 14px; margin: 1em 0; }
.sway99-details > summary { font-weight: 600; cursor: pointer; }
.sway99-details-body { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,.1); }
.wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-gallery.has-nested-images .wp-block-image { margin: 0; flex: 1 1 30%; }
.wp-block-gallery.has-nested-images .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
/* 核心块前台补位（WP 未带 block-library 样式时） */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.wp-block-cover { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 1em 0; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.wp-block-cover__background { position: absolute; inset: 0; background: #000; }
.wp-block-cover__inner-container { position: relative; z-index: 1; width: 80%; color: #fff; text-align: center; }
.wp-block-media-text { display: grid; grid-template-columns: 50% 50%; margin: 1em 0; }
.wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wp-block-media-text__content { padding: 2em; }
.wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 50% 50%; }
@media (max-width: 600px) { .wp-block-media-text.is-stacked-on-mobile { grid-template-columns: 100%; } }
.wp-block-pullquote { margin: 1.5em 0; padding: 3em 0; border-top: 4px solid currentColor; border-bottom: 4px solid currentColor; text-align: center; }
.wp-block-pullquote blockquote { margin: 0; border: none; padding: 0; }
.wp-block-pullquote p { font-size: 1.5em; font-weight: 300; }
.wp-block-pullquote cite { font-size: .8em; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.wp-block-verse { font-family: inherit; white-space: pre-wrap; font-style: italic; font-size: 1.15em; }
.wp-block-file { display: flex; align-items: center; gap: 1em; }
.wp-block-file__button { background: #1e1e1e; color: #fff; padding: .5em 1em; border-radius: 2em; text-decoration: none; font-size: .9em; }
.wp-block-group { padding: 1.5em; }
.wp-block-columns { display: flex; gap: 2em; margin: 1em 0; }
.wp-block-column { flex: 1; min-width: 0; }
@media (max-width: 600px) { .wp-block-columns { flex-direction: column; } }
/* 宽幅 / 全宽对齐兜底（主题未提供布局支持时） */
body { overflow-x: hidden; }
.alignwide { position: relative; left: 50%; transform: translateX(-50%); width: min(1200px, 96vw); max-width: 100vw; }
.alignfull { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; }
.alignwide img, .alignfull img { width: 100%; }
.wp-block-code { background: #f0f0f1; border-radius: 2px; padding: 16px; font-family: Consolas, monospace; font-size: .9em; }
.wp-block-code code { display: block; white-space: pre-wrap; overflow-wrap: break-word; background: none; padding: 0; }

/* ===== 区块样式变体（is-style-*） ===== */
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;border:2px solid currentColor}
.wp-block-separator.is-style-dots{background:none;border:none;text-align:center;width:auto;line-height:1;height:auto}
.wp-block-separator.is-style-dots::before{content:'···';color:inherit;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}
.wp-block-separator.is-style-wide{border-bottom-width:1px;width:100%}
.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:collapse}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}
.wp-block-table.is-style-stripes td{border-color:transparent}
.wp-block-image.is-style-rounded img,.wp-block-image.is-style-rounded{border-radius:9999px}
.wp-block-quote.is-style-plain{border:none;padding-left:0}
.wp-block-pullquote.is-style-plain blockquote{border:none}
p.has-drop-cap:not(:focus)::first-letter{float:left;font-size:4.4em;line-height:.74;margin:.06em .1em 0 0;font-weight:600}
.wp-block-cover.has-parallax{background-attachment:fixed;background-clip:padding-box}
.wp-block-cover.has-parallax .wp-block-cover__image-background{position:fixed}

/* ===== 新区块 ===== */
.wp-block-preformatted{white-space:pre-wrap;font-family:inherit;background:#f6f7f7;padding:16px;border-radius:4px;overflow-x:auto}
@media(max-width:600px){.wp-block-columns.is-not-stacked-on-mobile{flex-wrap:nowrap}}
