/* ============ 下标电话生成器 - 工具特有样式 ============ */
/* 通用样式（卡片,按钮,分隔线,info-box,form-textarea,tabs 等）已由 common.css 统一提供 */

/* ---- 容器 ---- */
#xiabiao-container {
    margin-bottom: 15px;
}

/* ---- 左右两栏 flex 布局 ---- */
#xiabiao-container > .section-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#xiabiao-container > .section-row > .settings-card,
#xiabiao-container > .section-row > .preview-card {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- 按钮居中容器 ---- */
.btn-container-center {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* ---- 字符统计 ---- */
.sort-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.sort-stats strong {
    color: #374151;
    font-weight: 600;
}

/* ---- 结果区 ---- */
.result-area {
    padding: 12px 0;
}

/* ---- 结果文本输出 ---- */
.result-text-output {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fafbfc;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.result-text-output:hover {
    border-color: #c4b5fd;
}

.result-content {
    font-size: 18px;
    line-height: 2;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ---- 示例展示区 ---- */
.examples-section {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.examples-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.examples-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.example-item {
    margin-bottom: 16px;
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.example-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.example-box {
    flex: 1;
    padding: 12px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    min-width: 0;
}

.example-box.result {
    background: #f3e8ff;
    border-color: #e9d5ff;
}

.example-box-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 4px;
}

.example-box-text {
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #374151;
    word-break: break-all;
}

.example-box.result .example-box-text {
    color: #7c3aed;
}

.example-arrow {
    font-size: 20px;
    color: #8b5cf6;
    font-weight: bold;
    flex-shrink: 0;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    #xiabiao-container > .section-row {
        flex-direction: column;
    }

    .example-row {
        flex-direction: column;
    }

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

    .example-box {
        width: 100%;
    }
}
