/* 内容生成器样式 */

.generator-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.generator-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* === AI文案生成模块样式 === */

.generator-module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
}

.generator-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.generator-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

/* 标题区 */
.generator-module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.generator-title-area {
    flex: 1;
}

.generator-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.generator-subtitle {
    font-size: 14px;
    color: #666;
}

/* 次数显示 */
.usage-counter {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-counter .count {
    font-size: 20px;
    font-weight: 700;
}

.usage-counter.warning {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 平台选择 */
.platform-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.platform-tab {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-tab:hover {
    background: rgba(102, 126, 234, 0.2);
}

.platform-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.platform-tab[data-platform="xiaohongshu"].active {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
}

.platform-tab[data-platform="wechat"].active {
    background: linear-gradient(135deg, #07c160, #2aae67);
}

.platform-tab[data-platform="douyin"].active {
    background: linear-gradient(135deg, #161823, #25f4ee);
    color: #25f4ee;
}

/* 输入表单 */
.content-form {
    margin-bottom: 25px;
}

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

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

.domain-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23667eea" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.domain-select:hover,
.domain-select:focus {
    border-color: #667eea;
    outline: none;
}

.core-input {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.core-input:hover,
.core-input:focus {
    border-color: #667eea;
    outline: none;
}

.core-input::placeholder {
    color: #999;
}

.generate-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.generate-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.generate-btn.loading {
    pointer-events: none;
}

.generate-btn .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

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

/* 结果区域 */
.result-area {
    margin-top: 30px;
    display: none;
}

.result-area.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .result-cards {
        grid-template-columns: 1fr;
    }
}

/* 文案卡片 */
.copy-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.copy-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

.copy-card.selected {
    border-color: #667eea;
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.copy-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-card.selected::before {
    opacity: 1;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.copy-card .card-badge {
    position: static;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
}

.card-style-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: #667eea;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.card-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.card-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.card-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.card-btn.save-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.card-btn.saved {
    background: rgba(7, 193, 96, 0.1);
    border-color: #07c160;
    color: #07c160;
}

.regenerate-btn {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #667eea;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regenerate-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Toast 提示动画 */
@keyframes toastFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==================== 移动端响应式 ==================== */
@media (max-width: 600px) {
    /* 模块容器缩小内边距 */
    .generator-module {
        padding: 20px;
        border-radius: 16px;
    }

    .generator-inner {
        padding: 20px;
        border-radius: 12px;
    }

    /* 标题区改为垂直布局 */
    .generator-module-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .generator-title-area {
        text-align: center;
    }

    .generator-title {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .generator-subtitle {
        font-size: 13px;
    }

    /* 次数显示紧凑化 */
    .usage-counter {
        align-self: center;
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }

    .usage-counter .count {
        font-size: 18px;
    }

    /* 平台Tab紧凑化 */
    .platform-selector {
        gap: 8px;
    }

    .platform-tab {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    /* 表单优化 */
    .form-label {
        font-size: 13px;
    }

    .domain-select {
        padding: 12px 14px;
        font-size: 14px;
    }

    .core-input {
        min-height: 100px;
        padding: 12px;
        font-size: 14px;
    }

    /* 生成按钮 */
    .generate-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    /* 卡片优化 */
    .copy-card {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
        padding-left: 0;
    }

    .card-content {
        font-size: 13px;
        max-height: 150px;
    }
}

/* ==================== 素材库样式 ==================== */
.saved-copies-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
}

.saved-copies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.saved-copies-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.saved-copies-count {
    font-size: 14px;
    color: #999;
}

/* 素材卡片 - 优化布局 */
.saved-card {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.saved-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.saved-card:last-child {
    margin-bottom: 0;
}

/* 卡片头部 - 平台和来源标记 */
.saved-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.saved-card-platform {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.saved-card-platform.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
}

.saved-card-platform.wechat {
    background: linear-gradient(135deg, #07c160, #2aae67);
}

.saved-card-platform.douyin {
    background: linear-gradient(135deg, #161823, #25f4ee);
    color: #25f4ee;
}

/* 来源标记 - ai-generated 风格 */
.saved-card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.saved-card-badge.generate {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
}

.saved-card-badge.analyze {
    background: rgba(245, 87, 108, 0.12);
    color: #f5576c;
    border-color: rgba(245, 87, 108, 0.2);
}

.saved-card-badge.convert {
    background: rgba(240, 147, 251, 0.12);
    color: #f093fb;
    border-color: rgba(240, 147, 251, 0.2);
}

.saved-card-style {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 卡片标题 */
.saved-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* 卡片摘要 */
.saved-card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* 卡片标签 */
.saved-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.saved-card-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* 卡片底部 */
.saved-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.saved-card-time {
    font-size: 12px;
    color: #999;
}

.saved-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.saved-card-btn {
    padding: 8px 14px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    background: transparent;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-card-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.saved-card-btn.ref-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: #667eea;
}

.saved-card-btn.ref-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.saved-card-btn.convert-btn {
    background: rgba(240, 147, 251, 0.1);
    border-color: rgba(240, 147, 251, 0.4);
    color: #f093fb;
}

.saved-card-btn.convert-btn:hover {
    background: rgba(240, 147, 251, 0.2);
    border-color: #f093fb;
}

.saved-card-btn.delete-btn {
    color: #f5576c;
    border-color: rgba(245, 87, 108, 0.3);
}

.saved-card-btn.delete-btn:hover {
    background: rgba(245, 87, 108, 0.1);
    border-color: #f5576c;
}

/* ==================== 平台选择弹窗样式 ==================== */
.platform-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.platform-modal {
    background: #fff;
    border-radius: 16px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.platform-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.platform-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.platform-modal-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.platform-modal-body {
    padding: 20px 24px;
}

.platform-modal-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.platform-modal-hint strong {
    color: #667eea;
}

.platform-options {
    display: flex;
    gap: 12px;
}

.platform-option {
    flex: 1;
    padding: 16px 12px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.platform-option:hover:not(.disabled) {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
}

.platform-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.platform-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.02);
}

.platform-option-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.platform-option-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.platform-option-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.platform-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.platform-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-modal-btn.cancel-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.platform-modal-btn.cancel-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}

.platform-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
}

.platform-modal-btn.confirm-btn:hover:not(.disabled) {
    filter: brightness(1.1);
}

.platform-modal-btn.confirm-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端弹窗适配 */
@media (max-width: 600px) {
    .platform-modal {
        width: 95vw;
        margin: 0 10px;
    }

    .platform-modal-header {
        padding: 16px 20px;
    }

    .platform-modal-title {
        font-size: 16px;
    }

    .platform-modal-body {
        padding: 16px 20px;
    }

    .platform-options {
        flex-direction: column;
        gap: 10px;
    }

    .platform-option {
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .platform-option-icon {
        font-size: 24px;
        margin-bottom: 0;
    }

    .platform-modal-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }

    .platform-modal-btn {
        width: 100%;
    }
}

/* ==================== 转换预览弹窗样式 ==================== */
.convert-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.2s ease;
}

.convert-preview-modal {
    background: #fff;
    border-radius: 16px;
    width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.convert-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.convert-preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.convert-preview-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.convert-preview-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.convert-preview-body {
    padding: 20px 24px;
}

.convert-preview-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
}

.convert-from,
.convert-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.convert-label {
    font-size: 12px;
    color: #999;
}

.convert-arrow {
    font-size: 24px;
    color: #667eea;
}

.convert-platform-tag {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.convert-platform-tag.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
}

.convert-platform-tag.wechat {
    background: linear-gradient(135deg, #07c160, #2aae67);
}

.convert-platform-tag.douyin {
    background: linear-gradient(135deg, #161823, #25f4ee);
    color: #25f4ee;
}

/* 预览卡片 */
.convert-preview-card {
    background: #fff;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.preview-card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-card-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.preview-card-badge.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
    color: #fff;
}

.preview-card-badge.wechat {
    background: linear-gradient(135deg, #07c160, #2aae67);
    color: #fff;
}

.preview-card-badge.douyin {
    background: linear-gradient(135deg, #161823, #25f4ee);
    color: #25f4ee;
}

.preview-card-badge.new {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-family: 'Consolas', 'Monaco', monospace;
}

.preview-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.preview-card-content {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.preview-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.preview-card-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.preview-card-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 87, 108, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.note-icon {
    font-size: 16px;
}

.note-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.preview-card-meta {
    font-size: 12px;
    color: #999;
}

.convert-preview-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.convert-preview-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.convert-preview-btn.cancel-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.convert-preview-btn.cancel-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}

.convert-preview-btn.copy-btn {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.convert-preview-btn.copy-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.convert-preview-btn.save-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
}

.convert-preview-btn.save-btn:hover {
    filter: brightness(1.1);
}

/* 移动端预览弹窗适配 */
@media (max-width: 600px) {
    .convert-preview-modal {
        width: 95vw;
        max-height: 90vh;
    }

    .convert-preview-header {
        padding: 16px 20px;
    }

    .convert-preview-body {
        padding: 16px 20px;
    }

    .convert-preview-info {
        flex-direction: column;
        gap: 12px;
    }

    .convert-arrow {
        transform: rotate(90deg);
    }

    .convert-preview-card {
        padding: 16px;
    }

    .preview-card-content {
        font-size: 13px;
    }

    .convert-preview-footer {
        flex-direction: column;
        padding: 12px 20px;
    }

    .convert-preview-btn {
        width: 100%;
    }
}

/* ==================== 朋友圈模块样式 ==================== */
.moments-module {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    position: relative;
}

.moments-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.moments-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.moments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(17, 153, 142, 0.2);
}

.moments-title-area {
    flex: 1;
}

.moments-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.moments-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.moments-form {
    margin-bottom: 20px;
}

.moments-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 场景选择器 */
.moments-mood-selector {
    margin-bottom: 20px;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mood-option {
    padding: 12px 16px;
    border: 2px solid rgba(17, 153, 142, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(17, 153, 142, 0.05);
}

.mood-option:hover {
    border-color: rgba(17, 153, 142, 0.4);
    background: rgba(17, 153, 142, 0.1);
}

.mood-option.active {
    border-color: #11998e;
    background: rgba(17, 153, 142, 0.15);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.2);
}

.mood-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.mood-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* 输入区域 */
.moments-input-area {
    margin-bottom: 20px;
}

.moments-input {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border: 2px solid rgba(17, 153, 142, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.moments-input:hover,
.moments-input:focus {
    border-color: #11998e;
    outline: none;
}

.moments-input::placeholder {
    color: #999;
}

/* 生成按钮 */
.moments-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.moments-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.moments-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.moments-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* 结果区域 */
.moments-result {
    margin-top: 20px;
}

.moments-results {
    animation: fadeIn 0.3s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.regenerate-moments-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(17, 153, 142, 0.3);
    border-radius: 8px;
    color: #11998e;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regenerate-moments-btn:hover {
    background: rgba(17, 153, 142, 0.1);
    border-color: #11998e;
}

.moments-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 朋友圈卡片 */
.moments-card {
    background: #fff;
    border: 1px solid rgba(17, 153, 142, 0.15);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.moments-card:hover {
    border-color: rgba(17, 153, 142, 0.3);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.1);
}

.moments-card-content {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.moments-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.moments-tag {
    background: rgba(17, 153, 142, 0.1);
    color: #11998e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.moments-card-actions {
    display: flex;
    justify-content: flex-end;
}

.moments-card-btn {
    padding: 8px 20px;
    border: 1px solid rgba(17, 153, 142, 0.3);
    border-radius: 8px;
    background: transparent;
    color: #11998e;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.moments-card-btn:hover {
    background: rgba(17, 153, 142, 0.1);
    border-color: #11998e;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .moments-module {
        padding: 20px;
        border-radius: 16px;
    }

    .moments-inner {
        padding: 20px;
        border-radius: 12px;
    }

    .moments-title {
        font-size: 22px;
    }

    .mood-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mood-option {
        padding: 10px 12px;
    }

    .mood-icon {
        font-size: 20px;
    }

    .mood-name {
        font-size: 12px;
    }

    .moments-input {
        min-height: 80px;
        padding: 12px;
    }

    .moments-btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .moments-card {
        padding: 14px;
    }

    .moments-card-content {
        font-size: 13px;
    }
}

/* 空状态 */
.saved-copies-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: #999;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .saved-copies-section {
        padding: 16px;
    }

    .saved-copies-title {
        font-size: 18px;
    }

    .saved-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .saved-card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .saved-card-title {
        font-size: 15px;
    }

    .saved-card-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .saved-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .saved-card-actions {
        width: 100%;
        justify-content: space-between;
    }

    .saved-card-btn {
        padding: 6px 10px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
}

/* ==================== 学习爆款模块样式 ==================== */
.analyzer-module {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    position: relative;
}

.analyzer-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.analyzer-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.analyzer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 87, 108, 0.2);
}

.analyzer-title-area {
    flex: 1;
}

.analyzer-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.analyzer-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.analyzer-form {
    margin-bottom: 20px;
}

.analyzer-input {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 2px solid rgba(245, 87, 108, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
    margin-bottom: 16px;
}

.analyzer-input:hover,
.analyzer-input:focus {
    border-color: #f5576c;
    outline: none;
}

.analyzer-input::placeholder {
    color: #999;
}

.analyze-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.analyze-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.analyze-btn .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* 分析结果区域 */
.analyzer-result {
    margin-top: 20px;
}

.analyzer-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: rgba(245, 87, 108, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(245, 87, 108, 0.2);
}

.analyzer-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.analyzer-placeholder .placeholder-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.analyzer-placeholder .placeholder-hint {
    font-size: 14px;
    color: #999;
}

/* 分析卡片 */
.analysis-card {
    background: #fff;
    border: 1px solid rgba(245, 87, 108, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.analysis-card:last-child {
    margin-bottom: 0;
}

.analysis-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f5576c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.analysis-highlight {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15));
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* 分析结果样式 */
.analysis-results {
    display: grid;
    gap: 16px;
}

.analysis-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.analysis-list li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.analysis-list.numbered {
    list-style: decimal;
}

.analysis-list.check {
    list-style: none;
    padding-left: 0;
}

.analysis-list.check li::before {
    content: '✓ ';
    color: #f5576c;
    font-weight: bold;
}

.analysis-quote {
    background: rgba(245, 87, 108, 0.08);
    border-left: 3px solid #f5576c;
    padding: 12px 16px;
    margin: 12px 0;
    font-style: italic;
    color: #666;
    border-radius: 0 8px 8px 0;
}

.analysis-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(245, 87, 108, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.analysis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.analysis-tag {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15), rgba(245, 87, 108, 0.15));
    color: #f5576c;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.analysis-card.highlight {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.08), rgba(245, 87, 108, 0.08));
    border: 2px solid rgba(245, 87, 108, 0.2);
}

/* 分析结果底部按钮 */
.analysis-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 87, 108, 0.15);
}

.generate-similar-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-similar-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 移动端适配 */
@media (max-width: 600px) {
    .analyzer-module {
        padding: 20px;
        border-radius: 16px;
    }

    .analyzer-inner {
        padding: 20px;
        border-radius: 12px;
    }

    .analyzer-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .analyzer-title {
        font-size: 22px;
    }

    .analyzer-subtitle {
        font-size: 13px;
    }

    .analyzer-input {
        min-height: 140px;
        padding: 12px;
        font-size: 14px;
    }

    .analyze-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .analysis-card {
        padding: 16px;
    }

    .analysis-card-title {
        font-size: 15px;
    }

    .analysis-card-content {
        font-size: 13px;
    }

    .analysis-footer {
        margin-top: 16px;
        padding-top: 16px;
    }

    .generate-similar-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================== 评分徽章样式 ==================== */
.score-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.score-badge.score-high {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.15), rgba(42, 174, 103, 0.15));
    color: #07c160;
}

.score-badge.score-medium {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    color: #f59e0b;
}

.score-badge.score-low {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.15), rgba(255, 82, 82, 0.15));
    color: #f5576c;
}

/* ==================== 历史记录模块样式 ==================== */
.history-module {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    position: relative;
}

.history-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.history-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.history-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.history-count {
    font-size: 14px;
    color: #999;
}

.history-clear-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: 6px;
    color: #f5576c;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-clear-btn:hover {
    background: rgba(245, 87, 108, 0.1);
    border-color: #f5576c;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 历史项 */
.history-item {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
}

.history-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.history-platform {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.history-domain {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.history-time {
    font-size: 13px;
    color: #999;
}

.history-item-actions {
    display: flex;
    gap: 8px;
}

.history-btn {
    padding: 6px 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    background: transparent;
    color: #667eea;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.history-btn.delete-btn {
    color: #f5576c;
    border-color: rgba(245, 87, 108, 0.3);
}

.history-btn.delete-btn:hover {
    background: rgba(245, 87, 108, 0.1);
}

.history-item-preview {
    padding: 0 16px 16px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.history-item-copies {
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .history-item-copies {
        grid-template-columns: 1fr;
    }
}

.history-copy-card {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    padding: 14px;
}

.history-copy-card .card-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.history-copy-card .card-content {
    font-size: 13px;
    max-height: 120px;
    margin-bottom: 10px;
}

.history-copy-card .card-actions {
    padding-top: 10px;
}

.history-copy-card .card-btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* ==================== 热门话题库模块样式 ==================== */
.topics-module {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    position: relative;
}

.topics-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.topics-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.topics-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 87, 108, 0.2);
}

.topics-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.topics-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.topics-form {
    margin-bottom: 20px;
}

.topics-platform-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.topics-platform-tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(245, 87, 108, 0.1);
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topics-platform-tab:hover {
    background: rgba(245, 87, 108, 0.15);
}

.topics-platform-tab.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.topics-domain-input {
    display: flex;
    gap: 12px;
}

.topics-domain-field {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(245, 87, 108, 0.2);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.topics-domain-field:focus {
    border-color: #f5576c;
    outline: none;
}

.topics-generate-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topics-generate-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* 话题结果 */
.topics-result {
    margin-top: 20px;
}

.topics-loading,
.topics-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(245, 87, 108, 0.2);
    border-top-color: #f5576c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .topics-list {
        grid-template-columns: 1fr;
    }
}

.topic-card {
    background: #fff;
    border: 1px solid rgba(245, 87, 108, 0.15);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-card:hover {
    border-color: rgba(245, 87, 108, 0.3);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.1);
    transform: translateY(-2px);
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.topic-heat {
    font-size: 14px;
}

.topic-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.topic-angles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.topic-angles-label {
    font-size: 12px;
    color: #999;
}

.topic-angle-btn {
    padding: 4px 10px;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.2);
    border-radius: 12px;
    color: #f5576c;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-angle-btn:hover {
    background: rgba(245, 87, 108, 0.2);
    border-color: #f5576c;
}

/* ==================== 导出弹窗样式 ==================== */
.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.export-modal {
    background: #fff;
    border-radius: 16px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.export-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.export-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.export-modal-close:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.export-modal-body {
    padding: 20px 24px;
}

.export-modal-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-option {
    padding: 16px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.export-option:hover {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
}

.export-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.export-option-icon {
    font-size: 24px;
}

.export-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.export-option-desc {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.export-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.export-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-modal-btn.cancel-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.export-modal-btn.cancel-btn:hover {
    background: rgba(102, 126, 234, 0.15);
}

.export-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
}

.export-modal-btn.confirm-btn:hover:not(.disabled) {
    filter: brightness(1.1);
}

.export-modal-btn.confirm-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 导出按钮样式 */
.saved-copies-export-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-copies-export-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.saved-card-btn.export-btn {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
}

.saved-card-btn.export-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .history-module,
    .topics-module {
        padding: 20px;
        border-radius: 16px;
    }

    .history-inner,
    .topics-inner {
        padding: 20px;
        border-radius: 12px;
    }

    .history-title,
    .topics-title {
        font-size: 22px;
    }

    .history-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .history-item-info {
        width: 100%;
    }

    .history-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .topics-domain-input {
        flex-direction: column;
    }

    .topics-generate-btn {
        width: 100%;
    }

    .export-modal {
        width: 95vw;
    }

    .export-option-desc {
        display: none;
    }
}