* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    padding: 0;
}

/* 主容器 */
.container {
    max-width: 1600px;
    margin: 10px auto;
    padding: 0 10px;
    background: #16213e;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

/* ========== 统一头部样式 (与 desAnn 一致) ========== */
.header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    height: 50px;
}

.header h1 {
    font-size: 18px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.header h1 img.logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-dot.online,
.status-dot.status-ok {
    background: #4caf50;
}

.status-dot.offline,
.status-dot.status-error {
    background: #f44336;
}

.status-dot.status-warning {
    background: #ffc107;
}

/* 按钮样式 */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #4fc3f7;
    color: #000;
}

.btn-primary:hover {
    background: #29b6f6;
}

.btn-primary:disabled {
    background: #37474f;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary {
    background: #37474f;
    color: #fff;
}

.btn-secondary:hover {
    background: #455a64;
}

/* ========== 旧版头部样式（保留兼容） ========== */
.header {
    background: linear-gradient(135deg, #1f4068 0%, #16213e 100%);
    color: #eee;
    padding: 30px 40px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #4fc3f7;
}

.header p {
    font-size: 14px;
    opacity: 0.8;
    color: #aaa;
}

.header .version-info {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
}

/* 健康状态栏 */
.health-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
}

.health-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-ok {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-error {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-warning {
    background: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.rebuild-index-btn {
    background: #4fc3f7;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rebuild-index-btn:hover {
    background: #29b6f6;
    transform: translateY(-1px);
}

.rebuild-index-btn:active {
    transform: translateY(0);
}

.rebuild-index-btn:disabled {
    background: #37474f;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.rebuild-index-btn .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 主要内容区 */
.content {
    padding: 30px 40px;
}

/* 搜索模式切换 */
.search-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #4fc3f7;
}

.tab-btn.active {
    color: #4fc3f7;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4fc3f7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 区块样式 */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "▶";
    color: #4fc3f7;
    margin-right: 10px;
    font-size: 12px;
}

/* 文本搜索区域 */
.text-search-area {
    background: #0d1b2a;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #333;
}

.text-input-group {
    margin-bottom: 20px;
}

.text-input-label {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin-bottom: 10px;
    display: block;
}

.text-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
    background: #16213e;
    color: #eee;
}

.text-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.text-search-examples {
    margin-top: 15px;
    padding: 15px;
    background: #16213e;
    border-radius: 4px;
    border-left: 3px solid #4fc3f7;
}

.examples-title {
    font-size: 12px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.example-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 4px;
    background: #1f4068;
    border: 1px solid #4fc3f7;
    border-radius: 4px;
    font-size: 11px;
    color: #4fc3f7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-tag:hover {
    background: #4fc3f7;
    color: #000;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #4fc3f7;
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #0d1b2a;
    position: relative;
    z-index: 1;
    user-select: none;
}

.upload-area * {
    pointer-events: none;
}

.upload-area:hover {
    border-color: #29b6f6;
    background: #16213e;
    transform: translateY(-2px);
}

.upload-area.dragging {
    border-color: #29b6f6;
    background: #1f4068;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #4fc3f7;
    margin-bottom: 15px;
    display: block;
}

.upload-text {
    font-size: 16px;
    color: #eee;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* 查询模型预览 */
.query-model-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #0d1b2a;
    border-radius: 8px;
    border: 1px solid #4fc3f7;
}

.query-preview-label {
    font-size: 13px;
    font-weight: 600;
    color: #4fc3f7;
}

.query-preview-thumbnail {
    width: 100px;
    height: 100px;
    background: #0d1b2a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #4fc3f7;
}

.query-preview-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

.query-preview-thumbnail canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.query-preview-name {
    font-size: 11px;
    color: #888;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* 参数设置区域 */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.param-group {
    background: #0d1b2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.param-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 10px;
}

.param-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #16213e;
    color: #eee;
}

.param-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.param-hint {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.param-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #1a1a2e;
    outline: none;
    -webkit-appearance: none;
}

.param-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.param-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.range-value {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.current-value {
    color: #4fc3f7;
    font-weight: 600;
}

/* 按钮样式 */
.btn-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #000;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

.btn-primary:disabled {
    background: #37474f;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary {
    background: #37474f;
    color: #aaa;
    border: 1px solid #455a64;
}

.btn-secondary:hover {
    background: #455a64;
    color: #eee;
}

/* 进度条 */
.progress-container {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: #0d1b2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.progress-container.show {
    display: block;
}

.progress-text {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: #1a1a2e;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #29b6f6);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-animated {
    background: linear-gradient(90deg, #4fc3f7, #29b6f6, #4fc3f7);
    background-size: 200% 100%;
    animation: progressShine 1.5s linear infinite;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 消息提示 */
.message {
    display: none;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

.message.show {
    display: block;
}

.message-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #81c784;
}

.message-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #e57373;
}

.message-info {
    background: rgba(79, 195, 247, 0.15);
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
}

.message-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid #ffc107;
    color: #ffca28;
}

/* 搜索结果 */
.results-container {
    display: none;
    margin-top: 30px;
}

.results-container.show {
    display: block;
}

.results-header {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #0d1b2a;
    border-radius: 8px;
    border: 1px solid #333;
}

.results-stats {
    font-size: 14px;
    color: #aaa;
}

.results-stats span {
    color: #4fc3f7;
    font-weight: 600;
}

.results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: auto;
    font-size: 12px;
}

.meta-item {
    display: flex;
    gap: 5px;
}

.meta-label {
    color: #666;
}

.meta-value {
    color: #4fc3f7;
}

/* 结果表格 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #0d1b2a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.results-table th {
    background: #16213e;
    color: #4fc3f7;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    font-size: 13px;
    color: #ccc;
}

.results-table tbody tr:hover {
    background: #16213e;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* 模型名称列 */
.model-name {
    text-align: left !important;
    max-width: 300px;
}

.model-name-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #eee;
}

.model-path {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 相似度显示 */
.similarity-score {
    font-weight: 600;
    font-size: 15px;
}

.similarity-high {
    color: #4caf50;
}

.similarity-medium {
    color: #ffc107;
}

.similarity-low {
    color: #f44336;
}

.similarity-bar {
    width: 60px;
    height: 4px;
    background: #1a1a2e;
    border-radius: 2px;
    margin: 5px auto 0;
    overflow: hidden;
}

.similarity-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 3D模型缩略图 */
.model-thumbnail {
    width: 100px;
    height: 100px;
    background: #0d1b2a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #333;
    margin: 0 auto;
}

.model-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    border-color: #4fc3f7;
}

.model-thumbnail canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4fc3f7;
    font-size: 32px;
}

.thumbnail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.9);
    color: #888;
    font-size: 11px;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    padding: 5px;
    z-index: 2;
}

.thumbnail-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #4fc3f7;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 5px;
}

.thumbnail-error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    width: 100%;
    height: 100%;
}

.download-btn, .preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #4fc3f7;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover, .preview-btn:hover {
    background: #29b6f6;
    transform: translateY(-1px);
}

.download-btn-disabled, .preview-btn-disabled {
    background: #37474f;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

.preview-btn {
    background: #4caf50;
}

.preview-btn:hover {
    background: #43a047;
}

/* 3D模型查看器模态框 */
.model-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.model-viewer-modal.show {
    display: flex;
}

.model-viewer-container {
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 900px;
    background: #16213e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.model-viewer-header {
    background: linear-gradient(135deg, #1f4068 0%, #16213e 100%);
    color: #eee;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.model-viewer-title {
    font-size: 18px;
    font-weight: 600;
    color: #4fc3f7;
}

.model-viewer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.model-viewer-body {
    flex: 1;
    position: relative;
    background: #0d1b2a;
}

#modelCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.model-viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 33, 62, 0.95);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    border: 1px solid #333;
}

.control-btn {
    background: #37474f;
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #4fc3f7;
    color: #000;
}

.model-viewer-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(22, 33, 62, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 12px;
    max-width: 300px;
}

.info-item {
    margin-bottom: 8px;
    color: #aaa;
}

.info-label {
    font-weight: 600;
    color: #4fc3f7;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aaa;
    font-size: 16px;
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.viewer-error {
    background: rgba(22, 33, 62, 0.95);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    border: 1px solid #333;
}

.viewer-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.viewer-error-title {
    font-size: 16px;
    font-weight: 600;
    color: #f44336;
    margin-bottom: 10px;
}

.viewer-error-message {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: #888;
}

/* 统计信息卡片 */
.stats-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #16213e;
    border-radius: 4px;
    font-size: 12px;
    margin: 5px;
    border: 1px solid #333;
}

.stats-card-icon {
    font-size: 16px;
}

.stats-card-value {
    font-weight: 600;
    color: #4fc3f7;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 50%;
    border-top-color: #4fc3f7;
    animation: spin 1s ease-in-out infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #37474f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #455a64;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .header-bar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .status-indicators {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content {
        padding: 20px;
    }

    .header-bar {
        padding: 10px;
    }
    
    .header-title {
        font-size: 14px;
    }
    
    .status-indicators {
        display: none;
    }

    .params-grid {
        grid-template-columns: 1fr;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .model-viewer-container {
        width: 95%;
        height: 95%;
    }

    .model-thumbnail {
        width: 80px;
        height: 80px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 11px;
    }

    .health-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 零件类型标签 */
.semantic-part-type {
    display: inline-block;
    padding: 2px 10px;
    margin-top: 4px;
    margin-right: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 结果描述 */
.semantic-description {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
    max-width: 350px;
}

/* 匹配高亮 */
.semantic-highlights {
    color: #888;
    font-size: 11px;
    margin-top: 4px;
}

/* LLM解释 */
.semantic-explanation {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 0 6px 6px 0;
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
    max-width: 350px;
}

/* 模型名称文本 */
.model-name-text {
    font-weight: 600;
    color: #eee;
    font-size: 13px;
}

/* 信息消息样式增强 */
.message-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
}

/* 搜索按钮加载动画 */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}
