* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
}

.layout-wrapper {
    display: flex;
    height: calc(100vh - 40px);
    gap: 20px;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.right-panel {
    flex: 1;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
    gap: 15px;
    padding: 15px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-info {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.header-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.search-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.search-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff2442;
    box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b7a 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 36, 66, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.clear-inputs-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.clear-inputs-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.loading-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff2442;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-section p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-info {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.load-more-indicator {
    text-align: center;
    padding: 20px 0;
    color: #666;
    grid-column: 1 / -1;
    margin-top: 10px;
}

.load-more-indicator .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff2442;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.load-more-indicator p {
    margin: 0;
    font-size: 12px;
}

.clear-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.clear-btn:hover {
    background: #ff3742;
}

/* 右上部分布局 */
.top-section {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.detail-section h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.note-detail {
    flex: 1;
    overflow-y: auto;
    min-height: 80px;
}

.no-selection {
    text-align: center;
    color: #666;
    padding: 40px;
}

.no-selection p {
    font-size: 16px;
    margin: 0;
}

/* 选中状态 */
.note-card.selected {
    border-color: #ff2442;
    box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.2);
}

/* 详情页面样式 */
.note-detail-content {
    padding: 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #666;
    overflow: hidden;
}

.detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-user-text h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.detail-user-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.detail-publish-time {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.detail-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.detail-content {
    margin-bottom: 20px;
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.detail-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.stat-icon.likes {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff2442"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
}

.stat-icon.comments {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff2442"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h9c.55 0 1-.45 1-1z"/></svg>');
}

.stat-icon.shares {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff2442"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></svg>');
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    min-height: 0;
    align-items: start;
    grid-auto-rows: min-content;
}

.results-container::-webkit-scrollbar {
    width: 6px;
}

.results-container::-webkit-scrollbar-track {
    background: transparent;
}

.results-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.note-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.note-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.note-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publish-time {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.user-info h4 {
    margin: 0;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.user-info p {
    margin: 2px 0 0 0;
    color: #999;
    font-size: 10px;
    line-height: 1.2;
}

.note-content {
    margin-bottom: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.note-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-desc {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.note-stats {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 10px;
    margin-top: 8px;
    flex-shrink: 0;
}

.note-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-stats span:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.note-stats .likes:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
}

.note-stats .comments:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h9c.55 0 1-.45 1-1z"/></svg>');
}

.note-stats .shares:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92z"/></svg>');
}

.note-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f5f5f5;
    flex-shrink: 0;
    display: block;
}

.history-section {
    margin-top: 15px;
}

.history-section h4 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.history-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #ff2442;
    color: white;
    border-color: #ff2442;
    transform: translateY(-1px);
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px;
}

.error-message {
    background: #ffe6e6;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        height: auto;
    }
    
    .layout-wrapper {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .left-panel {
        gap: 15px;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .results-section {
        padding: 20px;
    }
    
    .history-section {
        margin-top: 12px;
    }
    
    .history-container {
        gap: 6px;
    }
    
    .history-item {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        height: 300px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .right-panel {
        padding: 20px;
    }
    
    .note-detail {
        height: 300px;
    }
    
    .note-image {
        max-height: 120px;
    }
    
    .detail-image img {
        max-height: 250px;
    }
}

@media (min-width: 1400px) {
    .results-container {
        grid-template-columns: repeat(7, 1fr);
        height: 600px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .results-container {
        grid-template-columns: repeat(6, 1fr);
        height: 550px;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .results-container {
        grid-template-columns: repeat(5, 1fr);
        height: 500px;
    }
}

/* 图片解析功能样式 */
.image-analysis-section {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    color: white;
}

.image-analysis-section .form-group {
    margin-bottom: 15px;
}

.image-analysis-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.image-analysis-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: vertical;
    backdrop-filter: blur(10px);
}

.image-analysis-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.image-analysis-section textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.image-analysis-section h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.analysis-form {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.analysis-form .form-group {
    margin-bottom: 15px;
}

.analysis-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.analysis-form input:focus {
    outline: none;
    border-color: #ff2442;
    box-shadow: 0 0 0 2px rgba(255, 36, 66, 0.1);
}

.analyze-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.analyze-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.analyze-btn:active {
    transform: translateY(0);
}

/* 右下部分布局 */
.bottom-section {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

.analysis-result-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.image-generation-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.analysis-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.clear-analysis-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clear-analysis-btn:hover {
    background: #5a6268;
}

.result-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    min-height: 150px;
}

.analysis-loading {
    text-align: center;
    padding: 30px;
    color: white;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.analysis-loading p {
    margin-top: 10px;
    font-size: 14px;
    color: white;
}

/* 解析结果样式 */
.analysis-section {
    margin-bottom: 20px;
}

.analysis-section h4 {
    color: #ff2442;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.analysis-section p {
    margin: 8px 0;
    color: #555;
}

.analysis-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.analysis-section li {
    margin: 4px 0;
    color: #555;
}

.analysis-section .highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 提示词编辑器样式 */
.prompt-editor {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 180px;
}

.prompt-editor h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

#promptEditor {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: white;
    transition: border-color 0.3s ease;
}

#promptEditor:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.copy-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 图片生成结果样式 */
.image-generation-result {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clear-generation-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-generation-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.generated-image-container {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.generated-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.generated-image-container img:hover {
    transform: scale(1.02);
}

.generation-loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.generation-loading p {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
}

/* 分析内容样式 */
.analysis-content {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 10px;
}

.analysis-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.analysis-content p:last-child {
    margin-bottom: 0;
} 