/* styles.css */

/* 查看网址卡片样式 */
.content-thumbnail {
    --lightning: #e3f2fd;
    width: min(90vw, 280px);
    margin: 40px auto;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 8px 2px #000;
    transform: perspective(1000px) rotateX(-10deg);
    transition: all .4s;
    overflow: hidden;
}

.content-thumbnail:hover {
    transform: perspective(1000px) rotateX(0) scale(1.1);
}

.thumbnail-image {
    width: calc(100% - 16px);
    height: auto;
    aspect-ratio: 1/0.99;
    object-fit: cover;
    object-position: center 52.8%;
    /* 🔻 关键：下移镜头！默认50%，越大越往下 */
    margin: 4px 8px 0;
    /* 🔻 上间距从 10px 改为 6px */
    border-radius: 50%;
    border: 2px solid rgba(25, 118, 210, 0.25);
    /* 预览图边缘透明度 */
    filter: none;
}


.thumbnail-title {
    transform: translateY(8px);
    /* 🔻 向下移动 12px，可改 */
    margin: 4px 0 8px;
    /* 保持原有上下边距 */
    font-size: 14px;
    font-weight: 700;
    color: var(--lightning);
    text-align: center;
    text-shadow: 0 0 10px var(--lightning);
}

/* 逐字跳动 · 一跳一停 1.5s */
.thumbnail-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.08em;
    margin: 4px auto 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lightning);
}

.thumbnail-title span {
    display: inline-block;
    color: #fff;
    /* 纯白字 */
    text-shadow: 0 0 2px rgba(255, 0, 0, 0.35),
        0 0 4px rgba(255, 0, 0, 0.25);
    /* 微微红色外发光 */
    animation: bounce-once 1.5s infinite;
    /* 改为 1.5s 或其他更短时间 */
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes bounce-once {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-6px);
    }

    40% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }

}

/* ===== 卡片顶部间距收紧 ===== */
.content-thumbnail {
    margin: 22px auto 22px;
}

/* ========= 点击图片放大模态框（通用） ========== */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.modal-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    cursor: default;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .9);
    animation: modalAppear .5s cubic-bezier(.175, .885, .32, 1.275);
}

.modal-video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .9);
    animation: modalAppear .5s cubic-bezier(.175, .885, .32, 1.275);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-hint {
    color: rgba(255, 255, 255, .95);
    font-size: 16px;
    margin-top: 25px;
    text-align: center;
    animation: hintPulse 1.2s infinite;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: .3;
        transform: translateY(-3px);
    }
}


/* ===== 柔和三段进度条提示（白线分隔） ===== */
#comment-progress {
    margin: 12px 0;
    font-size: 13px;
    color: #718096;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* 进度条和文字之间的间距 */
}

#comment-progress progress {
    width: 85%;
    height: 7.5px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* 进度文字单独样式 */
#progress-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* 背景：整条浅灰 + 两段 2px 白线分隔成 3 格 */
#comment-progress progress::-webkit-progress-bar {
    background: #e2e8f0;
    border-radius: 5px;
    background-image: repeating-linear-gradient(90deg,
            transparent 0,
            transparent 33.1%,
            #ffffff 33.1%,
            #ffffff 33.9%,
            transparent 33.9%,
            transparent 66.5%,
            #ffffff 66.5%,
            #ffffff 67.25%,
            transparent 67.25%);
}

/* 已传部分：柔和渐变绿，覆盖白线 */
#comment-progress progress::-webkit-progress-value {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 4px;
    transition: width .3s ease;
}

/* Firefox 兼容 */
#comment-progress progress::-moz-progress-bar {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    border-radius: 4px;
}

/* 单条记录 */
.rolling-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 12px;
    color: #2d3748;
}

/* 轻微呼吸光 */
.rolling-item {
    animation: breath 4s ease-in-out infinite;
}

@keyframes breath {
    50% {
        background: rgba(25, 118, 210, .03);
    }
}

/* 全局基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 关掉点击高亮闪屏 */
*,
.btn,
img {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* 页面背景与基础文字样式 */
/* 1️⃣ 边条色：真正的背景，始终铺满 */
html {
    /* ✅ 基底：深棕（像皮革底层） */
    background: #1c1308;
    /* ✅ 背景尺寸：15px内精确显示1条竖纹 */
    background-size: 15px 15px;
    background-position: 0 0;

    position: relative;
    z-index: 1;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* 皮革纹理 - 条纹效果 */
        linear-gradient(90deg, transparent 96%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(0deg, transparent 96%, rgba(0, 0, 0, 0.2) 100%),
        /* 皮革纹理 - 颗粒感 */
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.12) 1.5px, transparent 1.5px),
        /* 皮革纹理 - 轻微斑点 */
        radial-gradient(circle at 10% 20%, rgba(40, 20, 10, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 40%, rgba(40, 20, 10, 0.15) 2px, transparent 2px);
    background-size:
        15px 15px,
        /* 条纹大小 */
        15px 15px,
        /* 条纹大小 */
        30px 30px,
        /* 颗粒纹理大小 */
        40px 40px,
        /* 颗粒纹理大小 */
        120px 120px,
        /* 斑点大小 */
        150px 150px;
    /* 斑点大小 */
    z-index: -1;
    pointer-events: none;
}


/* 2️⃣ 中间色：用伪元素做一块“画布” */
body {
    margin: 15px;
    /* 四边留 15px 边条 */
    padding: 0;
    background: transparent;
    /* 透明，露出 html 的背景 */
    min-height: auto;
    /* 让内容撑开高度，允许滚动 */
    border-radius: 16px;
    /* 四角弧度 */
    position: relative;
    /* 作为 ::before 的包含块 */
    overflow: visible;
    /* ✅ 关键：允许滚动 */
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    /* 完全铺满 body 内容区 */
    background: linear-gradient(135deg, #e3f2fd 0%, #e3f2fd 100%);
    border-radius: 16px;
    /* 与 body 同步圆角 */
    z-index: -1;
    /* 沉到最底 */
}

/* 3️⃣ 其余原有样式保持不变 */
body {
    color: #2d3748;
    line-height: 1.5;
    font-size: 14px;
}

/* 自定义图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -0.125em;
}

.icon-cloud-upload {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a6cf7' d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5c0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5l5 5h-3z'/%3E%3C/svg%3E");
}

.icon-plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
}

.icon-exclamation {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c53030' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.icon-check2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2348bb78' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

/* 红色感叹号图标 */
.icon-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f44336' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.icon-link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}

/* 主容器样式 */
.container {
    max-width: 800px;
    margin: 15px auto;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* 页面头部样式 */
header {
    position: relative;
    /* 给伪元素做包含块 */
    overflow: hidden;
    /* 切掉多余部分 */
    background: transparent;
    padding: 50px 10px;
    /* 想多高就调这里，比如 100px 20px … */
    text-align: center;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. 背景图：改用 inset:0 自动铺满，而不是 height:100% */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 等价于 top:0;left:0;right:0;bottom:0; */
    background: url("https://cdn.yopngs.com/2026/02/16/31a73f6b-cca2-454d-b967-21b56a3ec1fd.png") center/cover no-repeat;
    z-index: -1;
}

/* 主标题：flex 居中，图标与文字左右排列 */
/* 1. 主标题文字整体缩小一号 */
header h1 {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px 0;
    transform: translateY(18px);
    font-size: 25px;
    /* 原来 26px → 22px */
    font-weight: 600;
    letter-spacing: 1px;
}

/* 01 图标保持原尺寸 32px */
header h1 .local-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 2. 副标题文字 & 小星星一起缩小 */
.premium-badge {
    position: relative;
    top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* 间距也略收一点 */

    font-size: 13px;
    /* 原来 15px → 13px */
    font-weight: 700;
    font-style: italic;
    color: #000;
    background: #42a5f5;
    padding: 6px 12px;
    /* padding 同比例收一点 */
    border-radius: 12px;
    /* 圆角略小更精致 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 小星星图标缩小 */
.premium-badge .local-icon-wjx {
    width: 15px;
    /* 原来 18px → 15px */
    height: 15px;
}


/* 主标题样式 */
h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* 副标题样式 */
.subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.95;
}

/* 内容区样式 */
.content {
    padding: 15px;
}

/* 区块样式 */
.section {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

/* 区块标题样式 - 分离横线和文字 */
.section-title {
    font-size: 1.1rem;
    color: #1565c0;
    margin: 20px 0 10px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题文字部分 */
.section-title-text {
    padding: 0 14px;
    background: #e3f2fd;
    z-index: 2;
    position: relative;
}

/* 横线部分 */
.section-title-line {
    height: 1.7px;
    background: #1565c0;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* 步骤容器样式 */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 15px 0 0px 0;
}

/* 单个步骤样式 */
.step {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 15px;
    border-left: 5px solid #1565c0;
    text-align: center;
}

/* 步骤头部样式 */
.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* 步骤序号样式 */
.step-number {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #1565c0 0%, #1565c0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(21, 101, 192, 0.3);
}

/* 步骤标题文字样式 */
.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
}


/* 步骤3文字样式 */
.highlight {
    color: #1565c0;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1565c0;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-2px);
}

/* 按钮成功状态样式 */
.btn-success {
    background: linear-gradient(135deg, #2ed573 100%, #7bed9f 0%) !important;
}

/* 关键词样式 */
.keyword {
    font-size: 1.0rem;
    font-weight: 400;
    color: #0000FF;
    margin: 15px 0;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-block;
}

/* 提示框样式 */
.note-box {
    background: #f0f7ff;
    border-left: 4px solid #0d47a1;
    padding: 12px;
    border-radius: 14px;
    margin: 12px 0;
    font-size: 0.85rem;
}

/* 提示框加粗文字样式 */
.note-box strong {
    color: #0d47a1;
}

.STYLE3 {
    font-size: medium
}

.STYLE4 {
    font-size: medium;
    color: #FF0000;
    font-weight: bold;
}

.STYLE5 {
    color: #0000FF
}

/* 蓝色文本样式 */
.STYLE6 {
    color: #660000
}

/* 深红棕色文本样式 */
.STYLE7 {
    color: #FF0000
}

/* 红色文本样式 */
.STYLE9 {
    color: #FF00FF
}

/* 洋红色文本样式 */
.STYLE31 {
    font-size: 16px
}

/* 16像素字号文本样式 */
.STYLE35 {
    color: #FF00FF
}

/* 洋红色文本样式 */
.STYLE48 {
    color: #660000;
    font-size: 18px;
    font-weight: bold;
}

/* 深红棕色加粗文本，18像素字号样式 */
.STYLE58 {
    color: #006600;
    font-size: 16px;
    font-weight: bold;
}

/* 深绿色加粗文本，16像素字号样式 */

/* 上传图片功能区域样式 - 优化适配 */
.upload-container {
    margin: 10px 0;
    text-align: center;
}

.upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 8px 15px;
    /* 减少上下内边距 */
    margin-bottom: 10px;
    transition: all 0.3s;
    background: #FFFFFF;
}

.upload-box:hover {
    border-color: #4a6cf7;
    background: #FFFFFF;
}

.upload-icon {
    font-size: 35px;
    /* 稍微缩小图标 */
    color: #4a6cf7;
    margin-bottom: 6px;
    /* 大幅减少图标下方的空白 */
}

.upload-text {
    margin-bottom: 8px;
    /* 减少文字下方的空白 */
    color: #4a5568;
    font-size: 0.85rem;
}

.upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(45deg, #4a6cf7, #6c8dfa);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 108, 247, 0.4);
}

#file-input {
    display: none;
}

.upload-status {
    margin-top: 10px;
    /* 减少状态信息上方的空白 */
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
}

.upload-status .remaining {
    color: #18B81D !important;
}

.preview-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    /* 减少预览容器上方的空白 */
    flex-wrap: wrap;

}

/* 有图时才顶开距离，空着的时候不占位 */
.preview-container:not(:empty) {
    margin-top: 20px;
}

.preview-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: #1565c0;
}

.result-btn-container {
    display: none;
    margin-top: 12px;
    /* 减少结果按钮上方的空白 */
}

.result-btn {
    display: inline-block;
    padding: 11px 22px;
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 52px;
    font-size: 1.00rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(72, 187, 120, 0.3);
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(72, 187, 120, 0.4);
}

.alert-message {
    display: none;
    padding: 8px 12px;
    background-color: #fed7d7;
    color: #c53030;
    border-radius: 6px;
    margin-top: 8px;
    /* 减少警告信息上方的空白 */
    font-weight: 500;
    font-size: 0.8rem;
}

/* 成功提示框 - 模态框容器样式 */
.success-modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    /* 固定定位，覆盖整个视口 */
    top: 0;
    /* 顶部对齐 */
    left: 0;
    /* 左侧对齐 */
    width: 100%;
    /* 全宽 */
    height: 100%;
    /* 全高 */
    background: rgba(0, 0, 0, 0.7);
    /* 半透明黑色背景，70%不透明度 */
    z-index: 1000;
    /* 高z-index确保显示在最上层 */
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
}

/* 模态框内容区域样式 */
.modal-content {
    background: white;
    /* 白色背景 */
    border-radius: 16px;
    /* 16像素圆角 */
    padding: 25px;
    /* 内边距25像素 */
    width: 90%;
    /* 宽度为父元素的90% */
    max-width: 450px;
    /* 最大宽度450像素 */
    text-align: center;
    /* 文本居中 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* 阴影效果，X偏移0，Y偏移15px，模糊30px，20%不透明度黑色 */
    animation: modalFade 0.5s;
    /* 应用modalFade动画，持续0.5秒 */
}

/* 模态框淡入动画定义 */
@keyframes modalFade {
    from {
        opacity: 0;
        /* 起始状态：完全透明 */
        transform: translateY(-30px);
        /* 起始状态：向上偏移30像素 */
    }

    to {
        opacity: 1;
        /* 结束状态：完全不透明 */
        transform: translateY(0);
        /* 结束状态：回到原始位置 */
    }
}

/* 拼贴图加载动画 */
.collage-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 170px;
    margin: 18px auto 26px;
    border-radius: 12px;
    background: #f8f9fa;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1565c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}





/* ===== 结果上传区 ===== */
.upload-area {
    margin: 28px auto 15px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #e8f4fd 0%, #fff 100%);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    text-align: center;
    max-width: 92%;
}

.upload-header h3 {
    margin: 1px 0 4px;
    font-size: 17px;
    color: #1565c0;
}

.upload-sub {
    margin: 0 0 15px;
    font-size: 13px;
    color: #718096;
}

.upload-icon {
    font-size: 32px;
}

/* 上传按钮保持原色，但加大圆角 */
.upload-box .upload-btn {
    border-radius: 50px;
    padding: 10px 22px;
}

/* ===== 糖瓷奶油布丁 · 上传区皮肤 ===== */
#upload-section {
    background: #ffffff;
    border: 2px solid #90caf9;
    /* 浅蓝细线 */
    border-radius: 50px;
    /* 超圆布丁边 */
    padding: 5px 20px;
}

/* 预览图 → 布丁白框 */
.preview-item {
    border: 2px solid #bbdefb;
    border-radius: 20px;
}



/* 跳转图标样式 - 白底红标 */
.play-icon {
    margin-right: 8px;
    vertical-align: middle;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 确保按钮内容垂直居中 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 如果按钮已经有固定样式，确保图标不扭曲 */
.btn svg {
    flex-shrink: 0;
    fill: #1565c0;
    /* 红色图标 */
}



/* 成功图标样式 */
.success-icon {
    font-size: 35px;
    /* 图标大小50像素 */
    color: #48bb78;
    /* 成功绿色 */
    margin-bottom: 8px;
    /* 底部外边距12像素 */
}

/* 模态框标题样式 */
.modal-title {
    font-size: 1.2rem;
    /* 字体大小1rem（约16像素） */
    color: #2d3748;
    /* 深灰色文字颜色 */
    margin-bottom: 12px;
    /* 底部外边距8像素 */
}

/* 模态框正文文本样式 */
.modal-text {
    color: #718096;
    /* 中灰色文字颜色 */
    margin-bottom: 20px;
    /* 底部外边距20像素 */
    font-size: 0.9rem;
    /* 字体大小0.9rem（约14.4像素） */
}

/* 链接按钮容器样式 */
.link-buttons {
    display: grid;
    /* 使用网格布局 */
    grid-template-columns: 1fr;
    /* 单列布局 */
    gap: 10px;
    /* 网格项之间的间距10像素 */
    margin-top: 15px;
    /* 顶部外边距15像素 */
}

/* 单个链接按钮样式 */
.link-btn {
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    padding: 12px;
    /* 内边距12像素 */
    background: linear-gradient(45deg, #4a6cf7, #6c8dfa);
    /* 蓝色渐变背景，45度角 */
    color: white;
    /* 白色文字 */
    border: none;
    /* 无边框 */
    border-radius: 10px;
    /* 10像素圆角 */
    font-size: 0.9rem;
    /* 字体大小0.9rem（约14.4像素） */
    font-weight: 600;
    /* 字体粗细600（半粗体） */
    cursor: pointer;
    /* 鼠标指针为手型 */
    transition: all 0.3s;
    /* 所有属性变化过渡效果，持续0.3秒 */
    text-decoration: none;
    /* 无文本装饰（如下划线） */
}

/* 链接按钮悬停效果 */
.link-btn:hover {
    transform: translateY(-2px);
    /* 向上移动2像素 */
    box-shadow: 0 6px 15px rgba(74, 108, 247, 0.4);
    /* 添加阴影效果，40%不透明度的蓝色 */
}

/* 链接按钮内图标样式 */
.link-btn i {
    margin-right: 8px;
    /* 图标右侧外边距8像素 */
}

/* 响应式设计 */
@media (min-width: 640px) {
    .link-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        margin: 8px auto;
        border-radius: 16px;
    }

    header {
        padding: 15px 12px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .content {
        padding: 12px;
    }

    .step {
        padding: 12px;
    }

    .upload-box {
        padding: 15px;
    }

    .preview-item {
        width: 70px;
        height: 70px;
    }
}

.icon-check2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2348bb78' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.success-icon {
    font-size: 35px;
    /* 控制图标大小 */
    color: #48bb78;
    /* 绿色（备用，实际用 SVG 填色） */
    margin-bottom: 8px;
}

/* 自定义小图标尺寸、位置 */
.link-icon-img {
    width: 16px;
    /* 按需调整 */
    height: 16px;
    margin-right: 6px;
    /* 图标与文字间距 */
    vertical-align: middle;
}

/* 如果希望图标与文字颜色一致，可加滤镜（可选） */
.link-icon-img {
    filter: brightness(0) invert(1);
    /* 把图标变成白色，与按钮文字同色 */
}


/* 原图标与文字间距保持 */
.link-icon-img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* 强制可见，必须放在所有 CSS 最下面 */
.link-icon-img {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    visibility: visible !important;
    filter: none !important;
    /* 先去掉漂白 */
    vertical-align: middle;
}

/* 线性渐变小箭头 - 已移除箭头图标 */
.link-btn {
    position: relative;
}

.link-icon-img {
    border-radius: 6px;
    /* 四角弧度，想要正圆写 50% */
    object-fit: cover;
    /* 防止图片被压扁 */
}

/* ===== 成功提示框皮肤补丁 ===== */
#success-only .modal-content {
    background: #ffffff;
    border: 2px solid #90caf9;
    /* 浅蓝描边 */
    border-radius: 50px;
    /* 超圆布丁边 */
    padding: 10px 25px 20px;
    /* 增加底部内边距从2px改为20px，让按钮与弹窗底部有足够间距 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* 按钮区域保持原样，只继承圆角，不覆盖背景/边框 */
#success-only .link-buttons {
    border-radius: inherit;
    /* 让按钮区也带圆角，不影响内部样式 */
}

/* 禁止布丁皮肤污染按钮本身 */
#success-only .link-buttons .link-btn {
    border: none;
    /* 去掉刚才多余的布丁边框 */
    border-radius: 10px;
    /* 保持原来按钮的小圆角 */
    background: linear-gradient(45deg, #4a6cf7, #6c8dfa);
    /* 恢复原有渐变 */
}

/* 恢复头部高度 */
header {
    padding: 50px 10px !important;
}

/* Safari 圆角修复 */
.content-thumbnail {
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
    mask-image: radial-gradient(circle, white 100%, black 100%);
}

.thumbnail-image {
    border-radius: 50%;
    /* 让 img 自己也是圆的 */
}

/* 仅缩小这段文字并加上下边距 */
.step-tips {
    font-size: 1.25em;
    margin: 25px 0 32px 0;
    /* 上/下边距 ，自行微调 */
    font-weight: 600;
    color: #00d4ff;
    display: inline-block;
    padding: 0 6px 4px 0;
    border-bottom: 2px solid rgba(0, 212, 255, .3);
    background-image: linear-gradient(90deg, #00d4ff 0%, #0099ff 100%);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size .4s ease, color .3s ease;
}

.step-tips:hover {
    color: #fff;
    background-size: 100% 100%;
}

/* 失败原因文字框样式 */
.fail-reason-box {
    background-color: #fff3f3;
    /* 淡红背景 */
    border: 1px solid #ffcdd2;
    /* 边框 */
    border-radius: 8px;
    /* 圆角 */
    padding: 12px 16px;
    /* 内边距 */
    margin: 16px 0;
    /* 上下间距 */
    text-align: left;
    /* 文字左对齐 */
}

.fail-reason-box .modal-text {
    margin: 0;
    /* 去掉默认段落间距 */
    color: #c62828;
    /* 深红文字 */
    font-size: 14px;
    /* 字号 */
    line-height: 1.6;
    /* 行高 */
}

/* 快手作品按钮样式 */
.btn-kwai {
    background-color: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 160px;
}

.btn-kwai:hover {
    background-color: #3a5be0;
}

.btn-kwai.btn-success {
    background-color: #48bb78;
}

/* 新增的关键词说明样式 */
.keyword-instructions {
    font-size: 12px;
    color: #666;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4a6cf7;
    line-height: 1.5;
    text-align: left; /* 左对齐 */
}

.highlight-keyword {
    color: #1565c0;
    font-weight: bold;
}

/* 步骤说明文字左对齐 */
.keyword.step-tips {
    text-align: left;
    font-size: 16px;
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

/* 示例图片容器 */
.example-image-container {
    text-align: center;
    margin: 15px 0;
    width: 100%;
}

/* 示例图片样式 */
.example-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* 确保图片与文字宽度相同 */
.step .example-image {
    width: 100%;
    max-width: 300px; /* 可根据需要调整最大宽度 */
}

/* 复制成功提示框样式 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.toast-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    font-size: 15px;
    font-weight: 500;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.toast-text {
    flex: 1;
    text-align: left;
    letter-spacing: 0.3px;
}

/* ===== 步骤区域微信UI样式 ===== */
/* 仅步骤区域使用微信UI样式，其他区域保持原样式（使用pass.css） */

/* 步骤卡片 */
.step {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-header {
    padding: 15px 16px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-number {
    width: 24px;
    height: 24px;
    background-color: #07C160;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.step-content {
    padding: 15px 16px;
    text-align: left;
}

.step-tips {
    font-size: 14px;
    color: #333333;
    margin-bottom: 12px;
    text-align: left;
}

.comment-instructions {
    text-align: left;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.comment-instructions p {
    text-align: left;
}

.step-tips strong {
    color: #333333;
}

.step-tips span {
    color: #07C160;
}

/* 按钮样式 - 微信绿色 */
.step1-container > div,
.step2-container > span {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    color: #333333;
    box-sizing: border-box;
}

/* 步骤二关键词容器 - 每行显示两个，宽度自适应 */
.step2-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.step2-container > span {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
}

.step1-container > div:hover,
.step2-container > span:hover {
    background-color: #F0F0F0;
    border-color: #07C160;
}

.step1-container > div:active,
.step2-container > span:active {
    background-color: #EBEBEB;
}

/* 警告提示 - 微信风格 */
.important-notice {
    background-color: #FFF7E6;
    border: 1px solid #FFE58F;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
}

.warning-highlight {
    color: #ED6A0C;
    font-size: 14px;
    line-height: 1.5;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.douyin-tip {
    color: #999999;
    font-size: 12px;
    margin-top: 10px;
}

.douyin-tip i {
    color: #576B95;
}

/* Font Awesome 图标样式 - 从 all.min.css 提取 */
.fa {
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: var(--fa-display, inline-block);
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

.fa-info-circle:before {
    content: "\f05a";
}

/* 提示横幅样式 */
.notice-banner {
    background: #ffffff;
    border: 2px solid #1565c0;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 8px 0 10px 0;
    text-align: left;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}

.notice-banner p {
    margin: 0;
    font-weight: bold;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}