/* ==============================================
   装修建议 - decoration_advice.css
   三栏布局：历史 | 输入 | 结果
   主色调：暖棕木色系
   ============================================== */

/* ========== 主容器 ========== */
.da-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #faf7f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.da-container.fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    min-height: unset;
}

/* ========== 工具栏 ========== */
.da-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    min-height: 36px;
    background: linear-gradient(135deg, #7b5e45 0%, #5a4030 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(123, 94, 69, 0.35);
    flex-shrink: 0;
}

.da-toolbar .toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.da-toolbar .toolbar-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.90);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #7b5e45;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.da-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.da-toolbar .toolbar-btn:active:not(:disabled) { transform: translateY(0); }

.da-toolbar .toolbar-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.da-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.45);
}

.da-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.55);
}

.da-toolbar .toolbar-btn-primary.da-btn-loading {
    background: linear-gradient(90deg, #e67e22 0%, #f5b942 35%, #e67e22 65%, #d35400 100%);
    background-size: 200% 100%;
    animation: daBtnShimmer 1.4s ease-in-out infinite;
    cursor: not-allowed;
}

@keyframes daBtnShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.da-toolbar .toolbar-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* ========== 三栏主内容 ========== */
.da-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #faf7f3;
}

/* ========== 左栏：历史 ========== */
.da-history-panel {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8ddd0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.da-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(to bottom, #fdfaf7 0%, #f7efe8 100%);
    border-bottom: 1px solid #e8ddd0;
    flex-shrink: 0;
}

.da-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5a4030;
}

.da-history-count {
    font-size: 11px;
    color: #a89070;
}

.da-history-clear-btn {
    background: #fff0ee;
    border: none;
    color: #c0392b;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}
.da-history-clear-btn:hover { background: #fde8e6; }

.da-history-search {
    padding: 7px;
    border-bottom: 1px solid #e8ddd0;
    flex-shrink: 0;
}

.da-history-search input {
    width: 100%;
    padding: 5px 9px;
    border: 1px solid #ddd0c0;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #4a3020;
    background: #fdfaf7;
}

.da-history-search input:focus {
    border-color: #7b5e45;
    box-shadow: 0 0 0 2px rgba(123, 94, 69, 0.1);
}

.da-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.da-history-list::-webkit-scrollbar { width: 4px; }
.da-history-list::-webkit-scrollbar-track { background: transparent; }
.da-history-list::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 2px; }
.da-history-list::-webkit-scrollbar-thumb:hover { background: #f97316; }

.da-history-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 3px;
    border: 1px solid transparent;
}

.da-history-item-main { flex: 1; min-width: 0; }

.da-history-item:hover { background: #fdf3ee; border-color: #f5d0b5; }
.da-history-item.active { background: #fce8d8; border-color: #e8a878; }

.da-history-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #5a2e0a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.da-history-item-meta {
    font-size: 10px;
    color: #a89070;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.da-history-item-badge {
    background: #fce8d8;
    color: #7b5e45;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.da-history-item-del {
    background: none;
    border: none;
    color: #e8a090;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0;
}

.da-history-item:hover .da-history-item-del { opacity: 1; }
.da-history-item:hover .da-history-item-del:hover { color: #c0392b; background: #fce4e1; }

.da-history-empty {
    text-align: center;
    color: #c4a890;
    font-size: 12px;
    padding: 24px 8px;
    line-height: 1.7;
}

/* ========== 中栏：输入面板 ========== */
.da-input-panel {
    width: 290px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e8ddd0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.da-input-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e8ddd0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fdfaf7 0%, #f7efe8 100%);
}

.da-input-header h3 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #5a4030;
}

.da-input-header .panel-tip {
    font-size: 11px;
    color: #a89070;
    display: block;
}

.da-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

.da-input-body::-webkit-scrollbar { width: 4px; }
.da-input-body::-webkit-scrollbar-track { background: transparent; }
.da-input-body::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 2px; }
.da-input-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

.da-field-group { margin-bottom: 11px; }

.da-field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #5a4030;
    margin-bottom: 5px;
}

.da-field-icon { font-size: 13px; }
.da-field-required { color: #c0392b; font-size: 12px; }

.da-select {
    width: 100%;
    padding: 7px 28px 7px 10px;
    border: 1.5px solid #ddd0c0;
    border-radius: 5px;
    font-size: 12px;
    color: #4a3020;
    background: #fdfaf7;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b5e45' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.da-select:focus {
    border-color: #7b5e45;
    box-shadow: 0 0 0 2px rgba(123, 94, 69, 0.12);
    background-color: #fff;
}

.da-input-number {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #ddd0c0;
    border-radius: 5px;
    font-size: 12px;
    color: #4a3020;
    background: #fdfaf7;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.da-input-number:focus {
    border-color: #7b5e45;
    box-shadow: 0 0 0 2px rgba(123, 94, 69, 0.12);
    background-color: #fff;
}

/* 隐藏数字输入框的浏览器原生增减箭头 */
.da-input-number::-webkit-outer-spin-button,
.da-input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.da-input-number.shake {
    animation: daShake 0.4s ease;
    border-color: #c0392b;
}

@keyframes daShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* 风格卡片 */
.da-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.da-style-card {
    padding: 7px 6px;
    border: 1.5px solid #ddd0c0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s;
    text-align: center;
    user-select: none;
    background: #fdfaf7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.da-style-card:hover { border-color: #7b5e45; color: #7b5e45; background: #f7efe8; }

.da-style-card.selected {
    border-color: #7b5e45;
    background: linear-gradient(135deg, #7b5e45 0%, #5a4030 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(123, 94, 69, 0.3);
}

.da-style-card .style-icon { font-size: 18px; }
.da-style-card .style-name { font-size: 11px; font-weight: 500; color: inherit; }

/* 文本区域 */
.da-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #ddd0c0;
    border-radius: 5px;
    font-size: 12px;
    color: #4a3020;
    background: #fdfaf7;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.6;
    min-height: 70px;
    word-break: break-word;
}

.da-textarea:focus {
    border-color: #7b5e45;
    box-shadow: 0 0 0 2px rgba(123, 94, 69, 0.12);
    background-color: #fff;
}

.da-textarea::-webkit-scrollbar { width: 4px; }
.da-textarea::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 2px; }
.da-textarea::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 字数统计（多级色标预警） */
.da-char-counter {
    text-align: right;
    font-size: 11px;
    color: #3b82f6;
    margin-top: 3px;
    transition: color 0.2s;
}
.da-char-counter.warning { color: #e67e22; }
.da-char-counter.over { color: #c0392b; font-weight: 600; }

.da-divider { height: 1px; background: #e8ddd0; margin: 10px 0; }

/* 生成按钮（中栏内嵌） */
/* 输入面板底部操作区（固定，始终可见） */
.da-input-action {
    padding: 10px 14px 12px;
    border-top: 1px solid #e8ddd0;
    flex-shrink: 0;
    background: linear-gradient(to top, #f5ede3 0%, #fff 100%);
}

.da-generate-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #7b5e45 0%, #5a4030 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(123, 94, 69, 0.35);
    letter-spacing: 0.5px;
    margin-top: 0;
}

.da-generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #9a7358 0%, #7b5e45 100%);
    box-shadow: 0 4px 14px rgba(123, 94, 69, 0.45);
    transform: translateY(-1px);
}

.da-generate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.da-generate-btn.da-btn-loading {
    background: linear-gradient(90deg, #7b5e45 0%, #c4a060 35%, #7b5e45 65%, #5a4030 100%);
    background-size: 200% 100%;
    animation: daBtnShimmer 1.4s ease-in-out infinite;
    cursor: not-allowed;
}

/* ========== 右栏：结果面板 ========== */
.da-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fdfaf7;
    min-width: 0;
}

.da-result-header {
    padding: 10px 16px;
    border-bottom: 1px solid #e8ddd0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fdfaf7 0%, #f7efe8 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.da-result-header h3 { margin: 0; font-size: 13px; font-weight: 600; color: #5a4030; }

.da-result-meta { display: flex; align-items: center; gap: 8px; }

.da-result-title-label {
    font-size: 13px;
    font-weight: 700;
    color: #5a2e0a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    flex-shrink: 1;
}

.da-result-style-badge {
    background: #fce8d8;
    color: #7b5e45;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.da-result-time {
    font-size: 11px;
    color: #a89070;
    white-space: nowrap;
}

.da-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    word-break: break-word;
}

.da-result-body::-webkit-scrollbar { width: 4px; }
.da-result-body::-webkit-scrollbar-track { background: transparent; }
.da-result-body::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 3px; }
.da-result-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 占位提示 */
.da-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c4a890;
    text-align: center;
    padding: 40px;
    min-height: 180px;
}

.da-placeholder-icon { font-size: 52px; margin-bottom: 14px; opacity: 0.7; }
.da-placeholder-title { font-size: 16px; font-weight: 600; color: #a18070; margin: 0 0 8px; }
.da-placeholder-desc { font-size: 13px; color: #c4a890; margin: 3px 0; line-height: 1.6; }

.da-placeholder-shortcut {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    color: #b8a898;
    background: #f5ede5;
    border: 1px solid #e8d8c8;
    border-radius: 4px;
    padding: 3px 10px;
    letter-spacing: 0.3px;
}

/* 加载中 */
.da-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 180px;
}

.da-loading-dots { display: flex; gap: 8px; }

.da-loading-dots span {
    width: 11px; height: 11px;
    background: #e67e22;
    border-radius: 50%;
    animation: daDotBounce 1.2s ease-in-out infinite;
}

.da-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.da-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes daDotBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

.da-loading-text {
    font-size: 13px;
    color: #a18070;
    margin: 0;
    min-height: 20px;
    transition: opacity 0.3s ease;
    text-align: center;
}

/* ========== 结果内容样式 ========== */
.da-result-content {
    animation: daFadeIn 0.35s ease;
    min-height: 0;
    border-left: 3px solid #e67e22;
    padding-left: 14px;
}

@keyframes daFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.da-result-content .da-advice-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.da-result-content .da-advice-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, #5a2e0a 0%, #7b5e45 50%, #9a7358 100%);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.da-result-content .da-advice-head .advice-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.da-result-content .da-advice-head .advice-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

.da-result-content .da-advice-head .advice-badge {
    font-size: 11px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.da-result-content .da-section {
    padding: 14px 20px;
    border-bottom: 1px solid #f0e8dc;
    word-break: break-word;
}

.da-result-content .da-section:last-child { border-bottom: none; }

.da-result-content .da-section h4 {
    margin: 0 0 9px;
    font-size: 13px;
    font-weight: 700;
    color: #5a2e0a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.da-result-content .da-section h4::before {
    content: '';
    display: inline-block;
    width: 3px; height: 14px;
    background: #e67e22;
    border-radius: 2px;
    flex-shrink: 0;
}

.da-result-content .da-section p {
    margin: 0 0 7px;
    font-size: 13px;
    color: #4a3020;
    line-height: 1.8;
}

.da-result-content .da-section ul,
.da-result-content .da-section ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4a3020;
    line-height: 1.8;
}

.da-result-content .da-section li { margin-bottom: 4px; }
.da-result-content .da-section ul li::marker { color: #7b5e45; }
.da-result-content .da-section ol li::marker { color: #7b5e45; font-weight: 700; }

.da-result-content .da-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 8px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.da-result-content .da-section table th {
    background: linear-gradient(135deg, #5a2e0a 0%, #7b5e45 100%);
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}

.da-result-content .da-section table td {
    padding: 7px 12px;
    color: #4a3020;
    border-bottom: 1px solid #f0e0d0;
    line-height: 1.6;
}

.da-result-content .da-section table tr:nth-child(even) td { background: #fdf8f3; }
.da-result-content .da-section table tr:hover td { background: #fceee0; }

.da-result-content strong { color: #5a2e0a; font-weight: 700; }
.da-result-content em { color: #7b5e45; font-style: italic; }

.da-result-content .da-section blockquote {
    margin: 8px 0;
    padding: 8px 14px;
    border-left: 4px solid #7b5e45;
    background: #fdf8f3;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #5a3a2a;
    line-height: 1.75;
}

/* 错误 */
#daResultError {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.da-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}
.da-error .error-icon { font-size: 36px; margin-bottom: 10px; }
.da-error .error-msg { font-size: 14px; color: #c0392b; margin: 0 0 6px; font-weight: 600; }
.da-error .error-tip { font-size: 12px; color: #a89070; margin: 0; }

.da-error .da-error-retry-btn {
    margin-top: 14px;
    padding: 7px 22px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.3);
    letter-spacing: 0.3px;
}
.da-error .da-error-retry-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.45);
}

/* ========== 示例导入模态框 ========== */
.da-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.da-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.da-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #5a2e0a 0%, #7b5e45 100%);
    color: #fff;
    flex-shrink: 0;
}

.da-modal-header h3 { margin: 0; font-size: 15px; font-weight: 700; }

.da-modal-close {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.da-modal-close:hover { background: rgba(255,255,255,0.35); }

.da-modal-body {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}

.da-modal-body::-webkit-scrollbar { width: 4px; }
.da-modal-body::-webkit-scrollbar-thumb { background: #d7c4b0; border-radius: 2px; }
.da-modal-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

.da-example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.da-example-card {
    padding: 12px 14px;
    border: 1.5px solid #e8ddd0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s;
    background: #fdfaf7;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.da-example-card:hover {
    border-color: #7b5e45;
    background: #f7efe8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 94, 69, 0.15);
}

.da-example-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.da-example-info { flex: 1; min-width: 0; }

.da-example-title {
    font-size: 13px;
    font-weight: 700;
    color: #5a2e0a;
    margin-bottom: 4px;
}

.da-example-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }

.da-example-tag {
    background: #fce8d8;
    color: #7b5e45;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.da-example-desc { font-size: 11px; color: #a89070; line-height: 1.5; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .da-history-panel { width: 160px; }
    .da-input-panel { width: 250px; }
}

@media (max-width: 650px) {
    .da-main-content { flex-direction: column; }
    .da-history-panel { width: 100%; height: 150px; border-right: none; border-bottom: 1px solid #e8ddd0; }
    .da-input-panel { width: 100%; border-right: none; border-bottom: 1px solid #e8ddd0; }
    .da-example-grid { grid-template-columns: 1fr; }
}

/* ========== 打印样式 ========== */
@media print {
    .da-toolbar,
    .da-history-panel,
    .da-input-panel,
    .da-modal-overlay,
    .da-modal { display: none !important; }

    #daPlaceholder,
    #daLoading { display: none !important; }

    .da-container,
    .da-container.fullscreen {
        position: static !important;
        height: auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .da-main-content { display: block !important; }

    .da-result-panel {
        width: 100% !important;
        overflow: visible !important;
    }

    .da-result-body {
        overflow: visible !important;
        padding: 0 !important;
        height: auto !important;
    }

    .da-result-content {
        display: block !important;
        border-left: none !important;
    }

    .da-result-header {
        padding: 8px 0 !important;
        border-bottom: 1px solid #ccc !important;
        background: none !important;
    }

    .da-advice-wrap {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
