/* ========== 话题卡片工具 ========== */
@font-face {
    font-family: 'TencentSans';
    src: url('../../resources/fonts/腾讯体W7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.topic-card-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.topic-card-controls {
    flex: 0 0 350px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
}

.topic-card-controls h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.topic-card-controls .form-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.topic-card-controls .form-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.topic-card-controls .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.topic-card-controls .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.topic-card-controls .form-input::placeholder {
    color: #999;
}

.topic-card-controls textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.topic-card-preview {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.topic-card-preview h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    min-height: 300px;
    position: relative;
    overflow: visible;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

/* 导出层：强制块级布局，确保垂直堆叠 */
.export-layer {
    display: block;
    background: transparent;
    width: fit-content; /* 宽度适应内容 */
}

.topic-box {
    white-space: nowrap;
    font-weight: 800;
    font-size: 24px;
    font-family: 'TencentSans', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.2;
    padding: 12px 15px;
    border-radius: 16px;
    border: 5px solid;
    display: block; /* 改为 block，确保垂直堆叠 */
    width: fit-content; /* 宽度自适应内容 */
    align-items: center;
    letter-spacing: 1px;
}

.topic-box.top-box {
    background: #FFFFFF;
    border-color: #FFD17D;
    color: #1761C0;
    border-radius: 15px;
    padding: 0px 10px 6px;
    margin-bottom: -10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.topic-box.bottom-box {
    background: #1861C0;
    border-color: #FFFFFF;
    color: #E0F6FF;
    padding: 10px 15px 14px;
    margin-top: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    overflow: visible;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(to top, #E0F6FF 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mode-toggle {
    display: flex;
    gap: 10px;
}

.topic-count {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
    text-align: center;
}

.progress-indicator {
    margin-top: 20px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    font-weight: 500;
}

