/* ========== AI差评分析器 - 主容器 ========== */
.anra-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 640px;
    background: #fdf8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.anra-container:hover {
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.10);
}

/* ========== 顶部工具栏 ========== */
.anra-toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #f39c12 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.4);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 28px;
}

/* 工具栏分组竖线分隔（规范：rgba(255,255,255,0.22)） */
.toolbar-group + .toolbar-group {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 10px;
    margin-left: 2px;
}

.toolbar-btn {
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #c0392b;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toolbar-btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #1c1c1c;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.5);
}

.toolbar-btn.toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d68910 0%, #e2b90f 100%);
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.6);
    transform: translateY(-2px);
    color: #1c1c1c;
}

/* ========== 主内容区 ========== */
.anra-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #fdf8f8;
}

/* ========== 左侧历史面板 ========== */
.anra-history-panel {
    width: 200px;
    min-width: 160px;
    background: white;
    border-right: 1px solid #f0dede;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fff5f5, #fef0f0);
    border-bottom: 1px solid #f0dede;
    flex-shrink: 0;
}

.history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    background: none;
    border: none;
    padding: 0;
}

.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #e74c3c;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 3px;
    transition: all 0.2s;
}

.history-clear-btn:hover {
    background: #fdd;
}

.history-search {
    padding: 8px;
    border-bottom: 1px solid #f0dede;
    flex-shrink: 0;
}

.history-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #f0dede;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #333;
}

.history-search input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.12);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.history-empty {
    text-align: center;
    color: #c0a0a0;
    font-size: 12px;
    padding: 24px 10px;
}

/* 历史记录数量徽章 */
.history-count {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    text-align: center;
    vertical-align: middle;
    margin-left: 4px;
}

.history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 11px;
    margin-bottom: 5px;
    background: #fdf8f8;
    border: 1px solid #f0dede;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: fadeSlideIn 0.2s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.history-item:hover {
    background: #fff0f0;
    border-color: #f1a1a1;
    transform: translateX(2px);
}

.history-item.active {
    background: #fff0f0;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.history-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.history-item-meta {
    font-size: 10px;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.history-item-meta span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.history-item-meta span:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    color: #bbb;
    font-size: 9px;
}

.history-item-del {
    position: absolute;
    top: 5px;
    right: 6px;
    background: none;
    border: none;
    color: #ddd;
    font-size: 12px;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 3px;
    line-height: 1;
    transition: color 0.2s;
    display: none;
}

.history-item:hover .history-item-del {
    display: block;
    color: #e74c3c;
}

/* ========== 中间输入面板 ========== */
.anra-input-panel {
    width: 380px;
    min-width: 300px;
    background: white;
    border-right: 1px solid #f0dede;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 16px;
    gap: 10px;
    flex-shrink: 0;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #c0392b;
    background: none;
    border: none;
    padding: 0;
}

.review-stats {
    font-size: 11px;
    color: #e74c3c;
    background: #fff0f0;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

/* 字符数临近上限时警告 */
.review-stats.warn {
    color: #fff;
    background: #e74c3c;
    animation: statsPulse 1.2s ease infinite;
}

@keyframes statsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.optional {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

.data-textarea {
    width: 100%;
    border: 1px solid #f0dede;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #333;
    line-height: 1.5;
    min-height: 160px;
}

.data-textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.data-textarea::placeholder {
    color: #c0a0a0;
    font-size: 12px;
    line-height: 1.7;
}

.options-row {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.option-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.option-group label {
    font-size: 11px;
    font-weight: 600;
    color: #777;
}

.form-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #f0dede;
    border-radius: 5px;
    font-size: 12px;
    color: #444;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.form-select:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #f0dede;
    border-radius: 5px;
    font-size: 12px;
    color: #444;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-input::placeholder {
    color: #c0a0a0;
}

/* 快捷标签 */
.quick-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tag-label {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.quick-tag {
    padding: 4px 10px;
    background: #fff5f5;
    border: 1px solid #f0dede;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    color: #c0392b;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-tag:hover, .quick-tag.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

/* 操作按钮行 */
.action-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-primary {
    flex: 1;
    padding: 9px 14px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #a93226 0%, #cb4335 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.45);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    padding: 9px 12px;
    background: #f8f8f8;
    color: #888;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #fff0f0;
    color: #e74c3c;
    border-color: #f0c0c0;
}

.btn-secondary {
    padding: 9px 12px;
    background: #f8f8f8;
    color: #888;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #fff;
    border-color: #ccc;
    color: #555;
}

/* 状态栏 */
.status-bar {
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    animation: statusFadeIn 0.3s ease;
}

@keyframes statusFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-bar.info {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-bar.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-bar.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========== 右侧结果面板 ========== */
.anra-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    min-width: 0;
}

.result-tabs {
    display: flex;
    border-bottom: 2px solid #f0dede;
    background: #fdf8f8;
    flex-shrink: 0;
}

.result-tab {
    padding: 10px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #999;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.result-tab:hover {
    color: #e74c3c;
    background: #fff5f5;
}

.result-tab.active {
    color: #c0392b;
    font-weight: 700;
    border-bottom-color: #e74c3c;
    background: white;
}

.result-tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.result-tab-content.active {
    display: flex;
}

/* Tab 数量徽章 */
.tab-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    padding: 0 4px;
    margin-left: 4px;
    text-align: center;
    vertical-align: middle;
    transition: transform 0.2s;
}

.result-tab.active .tab-badge {
    background: #c0392b;
}

/* Tab徽章弹出动画 */
.tab-badge.pop {
    animation: badgePopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePopIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.result-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0dede;
    background: #fdf8f8;
    flex-shrink: 0;
}

.icon-btn {
    padding: 5px 10px;
    background: white;
    border: 1px solid #f0dede;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #777;
    transition: all 0.2s;
}

.icon-btn:hover:not(:disabled) {
    background: #fff5f5;
    border-color: #e74c3c;
    color: #c0392b;
}

.icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.result-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ========== 空占位提示 ========== */
.anra-empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: #c0a0a0;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.6;
}

.placeholder-title {
    font-size: 14px;
    color: #c0a0a0;
    font-weight: 600;
    margin-bottom: 12px;
}

.placeholder-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.placeholder-tips li {
    font-size: 12px;
    color: #c0a0a0;
    margin-bottom: 6px;
    padding-left: 4px;
}

/* ========== 摘要内容 ========== */
.summary-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeeed 100%);
    border: 1px solid #f5c0c0;
    border-left: 4px solid #e74c3c;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 12px;
    animation: cardIn 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s;
}

.summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.summary-card p {
    margin: 0;
    line-height: 1.8;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.summary-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border: 1px solid #f0dede;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 11px;
    color: #c0392b;
    font-weight: 600;
}

/* ========== 问题分类卡片 ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    background: white;
    border: 1px solid #f0dede;
    border-radius: 8px;
    padding: 12px 14px;
    animation: cardIn 0.35s ease both;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.category-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #f1a1a1;
    transform: translateY(-1px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.category-icon {
    font-size: 16px;
}

.category-count {
    font-size: 11px;
    color: #e74c3c;
    background: #fff0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.category-bar-wrapper {
    height: 8px;
    background: #f5eded;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.category-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-examples {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

/* ========== 核心痛点列表 ========== */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issue-item {
    background: white;
    border: 1px solid #f0dede;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: cardIn 0.35s ease both;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.issue-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #f1a1a1;
    transform: translateY(-1px);
}

.issue-urgency {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}

.urgency-high {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c0c0;
}

.urgency-mid {
    background: #fef3cd;
    color: #b8640a;
    border: 1px solid #fde8a8;
}

.urgency-low {
    background: #e8f4e8;
    color: #1e7e34;
    border: 1px solid #b8e0b8;
}

.issue-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    flex: 1;
}

.issue-title {
    font-weight: 700;
    color: #333;
}

.issue-detail {
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

/* ========== 改进建议列表 ========== */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-item {
    background: linear-gradient(135deg, #fffef0 0%, #fffbdc 100%);
    border: 1px solid #f5e8a0;
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    padding: 12px 14px;
    animation: cardIn 0.35s ease both;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.suggestion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #e0c060;
    transform: translateY(-1px);
}

.suggestion-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.suggestion-detail {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.suggestion-effect {
    font-size: 11px;
    color: #27ae60;
    margin-top: 5px;
    background: #e8f8f0;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ========== 弹窗通用样式 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: white;
    border-radius: 10px;
    width: 460px;
    max-width: 92vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.25s ease;
}

.modal-box-wide {
    width: 660px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0dede;
    background: linear-gradient(135deg, #fff5f5, #ffeeed);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 15px;
    color: #c0392b;
    background: none;
    border: none;
    padding: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #e74c3c;
    background: #fde8e8;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 快捷键表格 */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.shortcuts-table th {
    text-align: left;
    padding: 8px 12px;
    background: #fdf8f8;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid #f0dede;
}

.shortcuts-table td {
    padding: 9px 12px;
    color: #444;
    border-bottom: 1px solid #fdf0f0;
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
    font-family: monospace;
    color: #333;
}

/* 示例数据网格 */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.sample-card {
    background: #fdf8f8;
    border: 1px solid #f0dede;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sample-card:hover {
    background: #fff0f0;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
}

.sample-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sample-card-desc {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

.sample-card-count {
    display: inline-block;
    background: #fff0f0;
    color: #e74c3c;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 6px;
}

/* ========== 自定义细滚动条（规范 36631ea2） ========== */
.history-list::-webkit-scrollbar,
.result-content::-webkit-scrollbar,
.anra-input-panel::-webkit-scrollbar,
.modal-body::-webkit-scrollbar { width: 5px; }

.history-list::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track,
.anra-input-panel::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track { background: transparent; }

.history-list::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb,
.anra-input-panel::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(192, 57, 43, 0.18);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover,
.result-content::-webkit-scrollbar-thumb:hover,
.anra-input-panel::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 57, 43, 0.36);
}

/* ========== hg-anim-in 错落入场动画（规范 ef629238） ========== */
.hg-anim-in {
    animation: hgAnimIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes hgAnimIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== 暗黑模式适配（body.dark-mode） ========== */
body.dark-mode .anra-container { background: #1a1a1a; }
body.dark-mode .anra-main-content { background: #1a1a1a; }
body.dark-mode .anra-history-panel { background: #1e1e1e; border-right-color: #333; }
body.dark-mode .anra-input-panel { background: #1e1e1e; border-right-color: #333; }
body.dark-mode .anra-result-panel { background: #1e1e1e; }

/* 历史面板 */
body.dark-mode .history-header { background: #252525; border-color: #333; }
body.dark-mode .history-header h3 { color: #ff7070; }
body.dark-mode .history-count { background: #b03020; }
body.dark-mode .history-clear-btn { background: #2e1e1e; color: #ff7070; }
body.dark-mode .history-clear-btn:hover { background: #3a2020; }
body.dark-mode .history-search input { background: #2a2a2a; border-color: #3a3a3a; color: #ddd; }
body.dark-mode .history-search input:focus { border-color: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.18); }
body.dark-mode .history-search input::placeholder { color: #666; }
body.dark-mode .history-list::-webkit-scrollbar-thumb { background: rgba(255,120,100,0.22); }
body.dark-mode .history-list::-webkit-scrollbar-thumb:hover { background: rgba(255,120,100,0.44); }
body.dark-mode .history-item { background: #252525; border-color: #333; }
body.dark-mode .history-item:hover { background: #2e1e1e; border-color: #e74c3c; }
body.dark-mode .history-item.active { background: #2e1e1e; border-color: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.25); }
body.dark-mode .history-item-title { color: #ddd; }
body.dark-mode .history-item-meta { color: #888; }
body.dark-mode .history-empty { color: #666; }

/* 输入面板 */
body.dark-mode .panel-header h3 { color: #ff7070; }
body.dark-mode .review-stats { background: #2e1e1e; color: #ff9999; }
body.dark-mode .review-stats.warn { background: #c0392b; color: #fff; }
body.dark-mode .data-textarea { background: #2a2a2a; border-color: #3a3a3a; color: #ddd; }
body.dark-mode .data-textarea:focus { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }
body.dark-mode .data-textarea::placeholder { color: #555; }
body.dark-mode .anra-input-panel::-webkit-scrollbar-thumb { background: rgba(255,120,100,0.22); }
body.dark-mode .anra-input-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,120,100,0.44); }
body.dark-mode .form-select,
body.dark-mode .form-input { background: #2a2a2a; border-color: #3a3a3a; color: #ddd; }
body.dark-mode .form-select:focus,
body.dark-mode .form-input:focus { border-color: #e74c3c; box-shadow: 0 0 0 2px rgba(231,76,60,0.15); }
body.dark-mode .form-input::placeholder { color: #555; }
body.dark-mode .input-group label { color: #aaa; }
body.dark-mode .option-group label { color: #888; }
body.dark-mode .optional { color: #666; }
body.dark-mode .tag-label { color: #666; }
body.dark-mode .quick-tag { background: #2a2a2a; border-color: #3a3a3a; color: #ff9999; }
body.dark-mode .quick-tag:hover,
body.dark-mode .quick-tag.active { background: #c0392b; border-color: #c0392b; color: #fff; }
body.dark-mode .btn-cancel { background: #2a2a2a; border-color: #444; color: #aaa; }
body.dark-mode .btn-cancel:hover { background: #2e1e1e; color: #ff7070; border-color: #6a3030; }
body.dark-mode .btn-secondary { background: #2a2a2a; border-color: #444; color: #aaa; }
body.dark-mode .btn-secondary:hover { background: #333; border-color: #555; color: #ccc; }
body.dark-mode .status-bar.info { background: #3a3010; color: #e8c04a; border-color: #6a5518; }
body.dark-mode .status-bar.success { background: #103020; color: #6fd484; border-color: #1a5030; }
body.dark-mode .status-bar.error { background: #2e1010; color: #ff8080; border-color: #6a2020; }

/* 结果面板 */
body.dark-mode .result-tabs { background: #1e1e1e; border-color: #333; }
body.dark-mode .result-tab { color: #888; }
body.dark-mode .result-tab:hover { color: #ff7070; background: #2a1a1a; }
body.dark-mode .result-tab.active { background: #1e1e1e; color: #ff7070; border-bottom-color: #e74c3c; }
body.dark-mode .result-actions { background: #1e1e1e; border-color: #333; }
body.dark-mode .icon-btn { background: #2a2a2a; border-color: #3a3a3a; color: #aaa; }
body.dark-mode .icon-btn:hover:not(:disabled) { background: #2e1e1e; border-color: #e74c3c; color: #ff7070; }
body.dark-mode .result-content::-webkit-scrollbar-thumb { background: rgba(255,120,100,0.22); }
body.dark-mode .result-content::-webkit-scrollbar-thumb:hover { background: rgba(255,120,100,0.44); }

/* 空状态 */
body.dark-mode .anra-empty-hint { color: #666; }
body.dark-mode .placeholder-icon { opacity: 0.4; }
body.dark-mode .placeholder-title { color: #555; }
body.dark-mode .placeholder-tips li { color: #4a4a4a; }

/* 摘要卡 */
body.dark-mode .summary-card { background: linear-gradient(135deg, #2a1616 0%, #231212 100%); border-color: #5a2020; color: #ddd; }
body.dark-mode .summary-badge { background: #2a2a2a; border-color: #444; color: #ff9999; }

/* 问题分类 */
body.dark-mode .categories-list .category-item { background: #252525; border-color: #333; }
body.dark-mode .categories-list .category-item:hover { background: #2a2020; border-color: #553030; }
body.dark-mode .category-name { color: #ddd; }
body.dark-mode .category-bar-wrapper { background: #333; }
body.dark-mode .category-count { background: #2e1414; color: #ff9999; }
body.dark-mode .category-examples { color: #666; }

/* 核心痛点 */
body.dark-mode .issue-item { background: #252525; border-color: #333; }
body.dark-mode .issue-item:hover { background: #2a2020; border-color: #553030; }
body.dark-mode .issue-title { color: #ddd; }
body.dark-mode .issue-detail { color: #888; }
body.dark-mode .urgency-high { background: #2e1010; color: #ff8080; border-color: #6a2020; }
body.dark-mode .urgency-mid { background: #2e2510; color: #e8a04a; border-color: #6a5020; }
body.dark-mode .urgency-low { background: #102010; color: #6fd484; border-color: #204020; }

/* 改进建议 */
body.dark-mode .suggestion-item { background: linear-gradient(135deg, #222210 0%, #1e1c08 100%); border-color: #504520; border-left-color: #d08820; }
body.dark-mode .suggestion-item:hover { border-color: #706030; }
body.dark-mode .suggestion-title { color: #e8c060; }
body.dark-mode .suggestion-detail { color: #aaa; }
body.dark-mode .suggestion-effect { background: #102010; color: #6fd484; }

/* 弹窗 */
body.dark-mode .modal-box { background: #1e1e1e; }
body.dark-mode .modal-header { background: #252525; border-color: #333; }
body.dark-mode .modal-header h3 { color: #ff7070; }
body.dark-mode .modal-close { color: #888; }
body.dark-mode .modal-close:hover { color: #ff7070; background: #2e1e1e; }
body.dark-mode .modal-body::-webkit-scrollbar-thumb { background: rgba(255,120,100,0.22); }
body.dark-mode .modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,120,100,0.44); }
body.dark-mode .shortcuts-table th { background: #252525; color: #aaa; border-color: #3a3a3a; }
body.dark-mode .shortcuts-table td { border-color: #2a2a2a; color: #ddd; }
body.dark-mode kbd { background: #333; border-color: #555; color: #ddd; }
body.dark-mode .sample-card { background: #252525; border-color: #333; }
body.dark-mode .sample-card:hover { background: #2e1e1e; border-color: #e74c3c; }
body.dark-mode .sample-card-title { color: #ddd; }
body.dark-mode .sample-card-desc { color: #777; }
body.dark-mode .sample-card-count { background: #2e1414; color: #ff9999; }

/* ============================================================
   全屏模式
   ============================================================ */
.anra-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 9000;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.anra-container.fullscreen .anra-main-content {
    height: calc(100vh - 50px);
}

/* 全屏模式下工具栏边框调整 */
.anra-container.fullscreen .anra-toolbar {
    border-radius: 0;
}

/* 全屏模式下左侧面板适配 */
.anra-container.fullscreen .anra-history-panel {
    height: 100%;
}

/* 全屏模式下结果面板适配 */
.anra-container.fullscreen .anra-result-panel {
    height: 100%;
}

/* 全屏按钮激活状态 */
.anra-toolbar .toolbar-btn.fullscreen-active {
    background: #fde8e8;
    border-color: #e74c3c;
    color: #c0392b;
}

body.dark-mode .anra-toolbar .toolbar-btn.fullscreen-active {
    background: #3a2020;
    border-color: #e74c3c;
    color: #ff7070;
}
