@font-face {
  font-family: 'AlimamaShuHeiTi';
  src: url('https://st0.dancf.com/02/cms/202303241038-b829.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '得意黑';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/2269/30ef0b3650014d54a379feab2c95f286.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '抖音美好体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/740/72e3f7e1cfac402c98f50c0a5e87523a.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '二字元';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20221222-202450-hcicb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '海派体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20231222-150110-egcce.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '励志粗体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/740/88a92d8dbbbd42f29600a48cc8713574.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '锐志云行楷';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20221222-202556-fafcf.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '三极宋体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240121-185256-bhakk.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '三极春联';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240121-185251-ejfgi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '生马路圆体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/3811/a7a01f9cf66044099901f0ee8ed60c66.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '手写意体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/3811/405b673b909d4a00a2947cd418353eae.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '传奇南安体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240121-185033-kgeka.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '字语青梅硬笔';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240619-152515-hgbac.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '喜脉体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/740/eafff99fc8814f3f957a558b8fdecb16.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '猫啃什锦黑';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/3811/bdaaf2456a674784829f643f5cb4e434.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '锐字云字库大标宋';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20221222-202543-kbfbc.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '手书体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240122-174820-ahehj.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '思源宋体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20231222-172825-iahif.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '写意体';
  src: url('https://gd-filems.dancf.com/xi19e5/xi19e5/3811/405b673b909d4a00a2947cd418353eae.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '演示秋鸿楷';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20230315-110132-haheb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '杨任东竹石体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20240125-181939-fcaik.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '字由点字墩墩体';
  src: url('https://gd-filems.dancf.com/gaoding/editor/20250328-112832-hjgbh.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* ===== 小红书复刻页专属：Banner样式（覆盖全局style.css，仅限PC≥1200px） ===== */
@media (min-width: 1200px) {
    .banner {
        padding: 32px 24px 48px;
    }
    .banner h1 {
        font-size: 36px;
        line-height: 1.25;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }
    .banner p {
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.5px;
    }
}
.workbench{
    padding: 5px;
}
/* ===== 小红书复刻页专属：PC≥1200px 整体字号/间距收敛（Pad/手机不生效）===== */
@media (min-width: 1200px) {
    /* 主体内容容器：限制最大宽度，避免宽屏下内容过于分散 */
    .workbench-container {
        max-width: 1080px;
        margin: 0 auto;
    }
    .banner-content {
        max-width: 1080px;
        margin: 0 auto;
    }
    .step-header {
        margin-bottom: 16px;
    }
    .step-number {
        font-size: 15px;
    }
    .step-title {
        font-size: 17px;
    }
    .primary-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    .secondary-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    .xhs-step-container-mb-30 {
        margin-bottom: 24px;
    }
    .xhs-step-header-padding-bottom {
        padding-bottom: 12px;
    }
    .xhs-step-number-lg {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .xhs-step-content-padding-lg {
        padding: 16px;
    }
    .xhs-text-sm-opacity {
        font-size: 13px;
    }
    .xhs-text-xl-bold {
        font-size: 22px;
    }
}

/* ===== 工作台步骤区块 ===== */
.step-container {
    margin-bottom: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;     /* 原值：Pad/默认fallback用 */
    padding: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;        /* 原值：Pad/默认fallback用 */
}

.step-title {
    font-size: 20px;        /* 原值：Pad/默认fallback用 */
    font-weight: 600;
    color: #333;
}

.step-content {
    padding: 10px;
    background: #fafafa;
    border-radius: 12px;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.link-input-group input:focus {
    outline: none;
    border-color: #FF2442;
}

.primary-btn {
    padding: 15px 30px;      /* 原值：Pad/默认fallback用 */
    background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;        /* 原值：Pad/默认fallback用 */
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-image:hover {
    transform: scale(1.05);
}

.note-content {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    font-family: inherit;
}

.note-content:focus {
    outline: none;
    border-color: #FF2442;
}

.background-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
}

.background-grid-single-row {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    grid-auto-flow: column;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 200px;
    padding-bottom: 10px;
}

.background-grid-single-row::-webkit-scrollbar {
    height: 6px;
}

.background-grid-single-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.background-grid-single-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.background-grid-single-row::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.background-item {
    position: relative;
    cursor: pointer;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.background-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.background-item.selected {
    border-color: #FF2442;
}

.background-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 14px;
}

.selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FF2442;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.result-container {
    text-align: center;
}

.result-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.secondary-btn {
    padding: 15px 30px;      /* 原值：Pad/默认fallback用 */
    background: white;
    color: #FF2442;
    border: 2px solid #FF2442;
    border-radius: 8px;
    font-size: 16px;        /* 原值：Pad/默认fallback用 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: #FFF0F2;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FF2442;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
}

.xhs-preview-item img {
    cursor: zoom-in;
}

.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
}

.image-preview-close:hover {
    color: #FF2442;
}

.style-controls {
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.style-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 20px 0 12px 0;
    padding-left: 12px;
    border-left: 4px solid #FF2442;
}

.style-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.style-item {
    flex: 1;
}

.style-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.style-item select,
.style-item input[type="number"],
.style-item input[type="color"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.style-item input[type="color"] {
    height: 42px;
    cursor: pointer;
}

.xhs-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    padding: 0 !important;
}

.xhs-preview-item {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.xhs-preview-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    display: block !important;
    margin: 0 auto !important;
}

.xhs-preview-page-num {
    margin-top: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

.xhs-preview-canvas-container {
    text-align: center !important;
    margin: 20px 0 !important;
}

#previewCanvas {
    max-width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.xhs-step-container-mb-30 {
    margin-bottom: 30px;   /* 原值：Pad/默认fallback用 */
}

.xhs-step-header-padding-bottom {
    padding-bottom: 15px;  /* 原值：Pad/默认fallback用 */
}

.xhs-step-number-lg {
    width: 40px;           /* 原值：Pad/默认fallback用 */
    height: 40px;
    font-size: 18px;       /* 原值：Pad/默认fallback用 */
}

.xhs-step-content-padding-lg {
    padding: 20px;         /* 原值：Pad/默认fallback用 */
}

.xhs-background-grid-gap-lg {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.xhs-background-item-border-thick {
    border: 3px solid transparent;
}

.xhs-flex-align-gap-15 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.xhs-icon-size-lg {
    font-size: 24px;
}

.xhs-text-sm-opacity {
    font-size: 14px;        /* 原值：Pad/默认fallback用 */
    opacity: 0.9;
}

.xhs-text-xl-bold {
    font-size: 28px;       /* 原值：Pad/默认fallback用 */
    font-weight: bold;
}

.xhs-flex-gap-12 {
    display: flex;
    gap: 12px;
}

.workbench-container > .ait-points-card {
    margin-top: 24px;
}

/* ===== 积分余额卡片（专属 xhs-points 命名空间，避免与 ai-tool.css 同名覆盖）===== */
.xhs-points-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 32px;
    margin: 0 auto 32px;
    max-width: 1080px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 60%, #2563EB 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
    position: relative;
    overflow: hidden;
}

.xhs-points-card::before,
.xhs-points-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.16;
    background: #fff;
    pointer-events: none;
}
.xhs-points-card::before { width: 180px; height: 180px; right: -50px; top: -60px; }
.xhs-points-card::after  { width: 120px; height: 120px; right: 120px; bottom: -70px; }

.xhs-points-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.xhs-points-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    font-size: 26px;
    line-height: 1;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.xhs-points-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xhs-points-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 1;
}

.xhs-points-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.xhs-points-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-left: 0;
    color: #fff;
}

.xhs-points-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.xhs-points-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 2px;
}
.xhs-points-sub span { color: #fff; font-weight: 600; }

.xhs-points-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    color: #3B82F6;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.xhs-points-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
    background: #F0F9FF;
    color: #1D4ED8;
}

/* 积分卡片 - 移动端适配 */
@media (max-width: 768px) {
    .xhs-points-card {
        padding: 18px 20px;
        gap: 16px;
        border-radius: 14px;
        margin-bottom: 16px;
        margin-left: 0;
        margin-right: 0;
        width: calc(100% - 20px);
    }
    .xhs-points-left {
        gap: 14px;
        flex: 1 0 100%;
    }
    .xhs-points-icon-box {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 22px;
    }
    .xhs-points-label { font-size: 12px; }
    .xhs-points-value { font-size: 22px; }
    .xhs-points-unit  { font-size: 13px; }
    .xhs-points-sub   { font-size: 12px; }
    .xhs-points-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: 14px;
        gap: 6px;
    }
}

/* 遗留兼容：旧类名不再参与积分卡渲染，但保留不报错 */
.xhs-recharge-btn { display: none; }

.hidden-init {
    display: none;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-15 {
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

.xhs-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.xhs-input-title {
    min-height: auto;
    height: 50px;
}

.xhs-flex-between {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xhs-form-label-inline {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: #333;
}

.xhs-flex-gap-10 {
    display: flex;
    gap: 10px;
}

.xhs-center-mt-15 {
    text-align: center;
    margin-top: 15px;
}

.xhs-center-mb-20 {
    margin-bottom: 20px;
    text-align: center;
}

.xhs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.xhs-modal-content-sm {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
}

.xhs-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.xhs-form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.xhs-form-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.xhs-flex-end-gap-10 {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.xhs-modal-content-lg {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.xhs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.xhs-modal-title-no-mb {
    margin: 0;
    color: #333;
}

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

.cursor-pointer {
    cursor: pointer;
}

.xhs-bg-template-img {
    width: 100%;
    aspect-ratio: 3/4;
}

/* =========================================================
   自定义按钮体系（统一替代 Layui 原生蓝/绿按钮）
   主色 token：#FF2442 / 渐变粉红 #FF6B81 / hover浅底 #FFF0F2
   ========================================================= */

/* 幽灵描边按钮：红边白底红字 — 辅助操作（插入图片） */
.xhs-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    height: 32px;
    background: #ffffff;
    color: #FF2442;
    border: 1px solid #FF2442;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
}
.xhs-btn-ghost:hover {
    background: #FFF0F2;
    box-shadow: 0 2px 8px rgba(255, 36, 66, 0.15);
    transform: translateY(-1px);
}
.xhs-btn-ghost:active {
    transform: translateY(0);
}
.xhs-btn-ghost i {
    font-size: 13px;
}
/* 新用户引导红点 */
.xhs-btn-ghost .xhs-new-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF2442;
    box-shadow: 0 0 0 2px #fff;
}

/* 软质中性按钮：灰底 + hover变红 — 补充入口（更多背景、上传图片） */
.xhs-btn-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f7f5f8;
    color: #2b2530;
    border: 1px solid #e8e4ea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.xhs-btn-soft:hover {
    background: #FFF0F2;
    color: #FF2442;
    border-color: #FF2442;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 36, 66, 0.18);
}
.xhs-btn-soft:active {
    transform: translateY(0);
}
.xhs-btn-soft i {
    font-size: 14px;
    color: #7a7280;
    transition: color 0.15s ease;
}
.xhs-btn-soft:hover i {
    color: #FF2442;
}
.xhs-btn-soft .xhs-soft-arrow {
    font-size: 12px;
    color: #7a7280;
    transition: all 0.15s ease;
    margin-left: 2px;
}
.xhs-btn-soft:hover .xhs-soft-arrow {
    color: #FF2442;
    transform: translateX(2px);
}

/* 小型主按钮 — 弹窗内确认操作（确认插入） */
.xhs-btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.xhs-btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
}
.xhs-btn-primary-sm:active {
    transform: translateY(0);
}

/* 纯文字弱化按钮 — 取消/关闭（无边框无背景） */
.xhs-btn-plain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: #7a7280;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.xhs-btn-plain:hover {
    background: #f7f5f8;
    color: #2b2530;
}
.xhs-btn-plain-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: transparent;
    color: #7a7280;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.xhs-btn-plain-sm:hover {
    background: #f7f5f8;
    color: #2b2530;
}

/* =========================================================
   新用户引导：内嵌横幅
   ========================================================= */
.xhs-onboard-banner {
    background: linear-gradient(135deg, #FFF5F6 0%, #fff 60%, #F3F0FF 100%);
    border: 1px solid #FFD3DA;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}
.xhs-onboard-banner[hidden] {
    display: none;
}
.xhs-onboard-banner-icon {
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
}
.xhs-onboard-banner-body {
    flex: 1;
    min-width: 0;
}
.xhs-onboard-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #2b2530;
    margin: 0 0 6px 0;
}
.xhs-onboard-banner-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #554c5c;
    line-height: 1.7;
}
.xhs-onboard-banner-list li {
    padding-left: 18px;
    position: relative;
}
.xhs-onboard-banner-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #FF2442;
    font-weight: bold;
}
.xhs-onboard-banner-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.xhs-onboard-banner-start,
.xhs-onboard-banner-close {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid #FF2442;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    margin-top: 2px;
    white-space: nowrap;
}
.xhs-onboard-banner-start {
    background: #FF2442;
    color: #fff;
}
.xhs-onboard-banner-close {
    background: #fff;
    color: #FF2442;
}
.xhs-onboard-banner-start:hover {
    background: #e61e3a;
}
.xhs-onboard-banner-close:hover {
    background: #FF2442;
    color: #fff;
}

/* 右上角帮助按钮（随时重放引导） */
.xhs-help-btn {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FF2442;
    color: #fff;
    border: 1px solid #FF2442;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 36, 66, 0.1);
    transition: all 0.2s ease;
    font-family: inherit;
}
.xhs-help-btn:hover {
    background: #e61e3a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 36, 66, 0.25);
}
.xhs-help-btn:active {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .xhs-help-btn {
        top: auto;
        bottom: 24px;
        right: 16px;
        font-size: 12px;
        padding: 8px 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

/* =========================================================
   新用户引导：Spotlight 遮罩 + tooltip
   —— 采用 4 块 masks 围洞法，中间高亮区完全透明不遮挡真实内容
   ========================================================= */
.xhs-spotlight-overlay {
    position: fixed;
    inset: 0;
    /* 不设整体背景：中间洞区域要透明看真实内容，由 4 块 mask 单独给半透明色 */
    background: transparent;
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none; /* 关闭时穿透 */
}
.xhs-spotlight-overlay[data-open="1"] {
    opacity: 1;
    pointer-events: auto;
}

/* 4 块遮罩：上 / 右 / 下 / 左，围出中间透明洞 */
.xhs-spotlight-mask {
    position: absolute;
    background: rgba(20, 15, 28, 0.68);
    backdrop-filter: blur(1.5px);
    transition:
        top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        right 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.xhs-spotlight-mask--top    { top: 0; left: 0; right: 0; }
.xhs-spotlight-mask--bottom { left: 0; right: 0; bottom: 0; }
.xhs-spotlight-mask--left   { left: 0; }
.xhs-spotlight-mask--right  { right: 0; }

/* 高亮红框轮廓：纯视觉提示，pointer-events:none，不挡用户与目标元素交互 */
.xhs-spotlight-hole {
    position: absolute;
    border-radius: 10px;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 6px #FF2442,
        0 0 40px rgba(255, 36, 66, 0.55);
    background: transparent !important; /* 必须透明，不能盖住真实内容 */
    pointer-events: none;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.xhs-spotlight-tooltip {
    position: fixed;
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    color: #2b2530;
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 9991;
    transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease;
    font-size: 13.5px;
    line-height: 1.55;
}
.xhs-spotlight-tooltip::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}
.xhs-spotlight-tooltip[data-pos="bottom"]::after {
    top: -6px;
    left: 32px;
    border-left: 1px solid #f0ecf3;
    border-top: 1px solid #f0ecf3;
}
.xhs-spotlight-tooltip[data-pos="top"]::after {
    bottom: -6px;
    left: 32px;
    border-right: 1px solid #f0ecf3;
    border-bottom: 1px solid #f0ecf3;
}
.xhs-spotlight-tooltip[data-pos="right"]::after {
    left: -6px;
    top: 22px;
    border-bottom: 1px solid #f0ecf3;
    border-left: 1px solid #f0ecf3;
}
.xhs-spotlight-tooltip[data-pos="left"]::after {
    right: -6px;
    top: 22px;
    border-right: 1px solid #f0ecf3;
    border-top: 1px solid #f0ecf3;
}
.xhs-spotlight-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #FF2442;
    background: #FFF0F2;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.xhs-spotlight-title {
    font-size: 16px;
    font-weight: 600;
    color: #2b2530;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.xhs-spotlight-desc {
    font-size: 13.5px;
    color: #554c5c;
    margin: 0 0 14px 0;
    line-height: 1.65;
}
.xhs-spotlight-desc b {
    color: #FF2442;
    font-weight: 600;
}
.xhs-spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
}
.xhs-spotlight-tags li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f7f5f8;
    color: #554c5c;
    border: 1px solid #eee9f1;
}
.xhs-spotlight-tags li.is-hot {
    background: #FFF0F2;
    color: #FF2442;
    border-color: #FFD3DA;
}
.xhs-spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0ecf3;
}
.xhs-spotlight-counter {
    font-size: 12px;
    color: #7a7280;
    font-weight: 500;
}
.xhs-spotlight-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xhs-spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}
.xhs-spotlight-btn--prev {
    background: #fff;
    color: #554c5c;
    border-color: #e8e4ea;
}
.xhs-spotlight-btn--prev:hover {
    background: #f7f5f8;
}
.xhs-spotlight-btn--prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fff;
}
.xhs-spotlight-btn--next {
    background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
    color: #fff;
    border: none;
}
.xhs-spotlight-btn--next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 36, 66, 0.28);
}
.xhs-spotlight-skip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    color: #7a7280;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}
.xhs-spotlight-skip:hover {
    background: #f7f5f8;
    color: #2b2530;
}

@media (max-width: 768px) {
    .xhs-btn-ghost {
        padding: 5px 10px;
        height: 30px;
        font-size: 12px;
    }
    .xhs-btn-soft {
        padding: 9px 14px;
        font-size: 13px;
    }
    .xhs-btn-primary-sm {
        padding: 7px 14px;
        font-size: 13px;
    }
    .xhs-onboard-banner {
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
    }
    .xhs-onboard-banner-icon {
        display: none;
    }
    .xhs-onboard-banner-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
    .xhs-onboard-banner-list li {
        font-size: 12.5px;
    }
    .xhs-spotlight-tooltip {
        min-width: auto;
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        left: 16px !important;
        right: 16px;
        width: auto;
        padding: 14px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .xhs-spotlight-title {
        font-size: 15px;
    }
    .xhs-spotlight-desc {
        font-size: 13px;
    }
    .xhs-spotlight-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .xhs-spotlight-skip {
        align-self: flex-start;
    }
    .xhs-spotlight-actions {
        justify-content: flex-end;
    }
    .xhs-spotlight-counter {
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .step-container {
        margin-bottom: 0px;
    }

    .step-header {
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-top: 10px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .step-title {
        font-size: 16px;
    }

    .step-content {
        padding: 0px;
    }

    .link-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .link-input-group input {
        padding: 12px;
        font-size: 14px;
    }

    .primary-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .secondary-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .images-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .note-content {
        padding: 12px;
        font-size: 14px;
    }

    .background-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 2px;
    }

    .style-row {
        margin-bottom: 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .style-item {
        min-width: 0;
    }

    .style-item label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .style-item select,
    .style-item input[type="number"],
    .style-item input[type="color"] {
        padding: 8px;
        font-size: 13px;
    }

    .style-item input[type="color"] {
        height: 38px;
    }

    .style-item select,
    .style-item input {
        box-sizing: border-box;
        min-width: 0;
    }

    .xhs-preview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .xhs-preview-page-num {
        font-size: 12px !important;
        margin-top: 8px !important;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons .primary-btn,
    .action-buttons .secondary-btn {
        width: 100%;
    }

    .xhs-modal-content-sm {
        padding: 20px;
    }

    .xhs-modal-content-lg {
        padding: 20px;
    }
}
