:root {
    --theme-color: #007bff;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    padding: 2rem 0;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    text-align: left;
    flex: 1;
}

.header-right {
    flex-shrink: 0;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.admin-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
    
    .admin-btn {
        margin-top: 1rem;
    }
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mode-switcher-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: center;
    padding: 0.5rem;
    background: #f0f4f8;
    border-radius: 20px;
}

.mode-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3498db;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #9b59b6;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.mode-label {
    font-weight: 600;
    color: #2c3e50;
    transition: color .4s;
}

.model-selector, .language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.model-label-inline {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.model-select {
    min-width: 250px;
    padding: 0.5rem 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background-color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-box {
    display: flex;
    gap: 1rem;
}

.text-input {
    flex-grow: 1;
    min-height: 120px;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

#keywordInput {
    flex-grow: 1;
    height: 50px;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

#keywordInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-btn {
    min-width: 150px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#extractBtn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

#extractBtn:hover {
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-text {
    display: inline-block;
}

.loading-spinner {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-tips {
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-tips p {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* 思维导图区域 */
.mindmap-section {
    margin-bottom: 3rem;
}

.mindmap-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.mindmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mindmap-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.mindmap-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.control-group {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

.control-btn, .layout-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover, .layout-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #000;
}

.layout-btn.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

.layout-btn.active:hover {
    background-color: #0069d9;
    color: white;
}

.mindmap-content {
    position: relative;
    min-height: 500px;
}

.mindmap-svg-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.7;
}

/* 统计区域 */
.stats-section {
    margin-bottom: 3rem;
}

.stats-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* 关键词列表区域 */
.keywords-section {
    margin-bottom: 3rem;
}

.keywords-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.keywords-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    padding: 2rem 2rem 1rem 2rem;
}

.keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.keywords-header .keywords-title {
    padding: 0;
}

.action-btn-primary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.action-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.keywords-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.1);
}

.keywords-content {
    padding: 2rem;
}

.keyword-category {
    margin-bottom: 2.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.keyword-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.keyword-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    border-left: 4px solid transparent;
    gap: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.keyword-item:hover {
    background-color: #f8f9fa;
    border-left-color: inherit;
    transform: translateX(2px);
}

.keyword-item:last-child {
    border-bottom: none;
}

.keyword-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.keyword-text {
    font-size: 0.95rem;
    color: #343a40;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.keyword-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.keyword-item:hover .keyword-actions {
    opacity: 1;
}

.keyword-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.keyword-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.keyword-btn.analyze-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.keyword-btn.copy-btn:hover {
    background: #e8f5e8;
    color: #388e3c;
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.selection-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.selection-controls label:hover {
    color: #495057;
}

.selection-controls input[type="radio"],
.selection-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.keyword-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.intent-tags-container {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.keyword-metrics {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 320px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 70px;
}

.metric-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
}

.competition-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

/* 搜索意图相关样式 */
.intent-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.intent-badge {
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 18px;
    text-align: center;
    cursor: help;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.intent-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.keyword-intent-only {
    margin-top: 0.5rem;
}

.intent-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intent-metric .metric-label {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}

.keyword-actions, .selection-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-controls {
    border-left: 1px solid #dee2e6;
    padding-left: 15px;
    margin-left: 5px;
}

/* Intent Legend and Tag Styles (Refined) */
.intent-legend {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    border: 1px solid #e9ecef;
}
.legend-title {
    font-weight: 600;
    color: #343a40;
    margin-right: 10px;
}
.legend-item b {
    width: 22px;
    height: 22px;
    line-height: 22px;
}

/* Refined Intent Tag */
.intent-tag {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 13px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    cursor: help;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.intent-tag.intent-I { background-color: #0d6efd; }
.intent-tag.intent-N { background-color: #198754; }
.intent-tag.intent-C { background-color: #ffc107; color: #000; }
.intent-tag.intent-T { background-color: #dc3545; }

/* Remove previously added styles to avoid conflicts */
/* NOTE: The model should ensure the old .intent-legend, .legend-*, .intent-tag styles are removed/overwritten */
.legend-item[data-intent="I"] b,
.legend-item[data-intent="N"] b,
.legend-item[data-intent="C"] b,
.legend-item[data-intent="T"] b {
    /* These specific rules are fine, but ensure the general ones are updated */
    background-color: transparent; /* This will be overridden by the more specific class, just for reset */
}
.legend-item[data-intent="I"] b { background-color: #0d6efd; }
.legend-item[data-intent="N"] b { background-color: #198754; }
.legend-item[data-intent="C"] b { background-color: #ffc107; }
.legend-item[data-intent="T"] b { background-color: #dc3545; }

/* 分页功能样式 */
.pagination-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.pagination-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

.pagination-settings {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-settings label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.items-per-page-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.items-per-page-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-number-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-number-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.page-number-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-ellipsis {
    padding: 0 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.page-jump-input {
    width: 60px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-jump-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.page-jump-btn {
    padding: 0.375rem 0.75rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-jump-btn:hover {
    background: #2980b9;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
}

.error-toast {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.success-toast {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 思维导图样式 */
.mindmap-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.node:hover {
    transform: scale(1.05);
}

.node-root {
    fill: #333;
}

.node-category {
    stroke: white;
    stroke-width: 2;
}

.node-keyword {
    stroke: white;
    stroke-width: 1;
}

.node-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.node-text-root {
    fill: white;
    font-size: 14px;
    font-weight: 700;
}

.node-text-category {
    fill: white;
    font-size: 12px;
    font-weight: 600;
}

.node-text-keyword {
    fill: white;
    font-size: 10px;
}

.link {
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 1;
    fill: none;
}

.link-category {
    stroke-width: 2;
}

.link-keyword {
    stroke-width: 1;
}

/* Tooltip样式 */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 200px;
    text-align: center;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* SEO分析面板样式 */
.seo-analysis-section {
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.seo-analysis-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.seo-analysis-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-analysis-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-icon {
    font-size: 1.25rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 关键词基本信息卡片 */
.keyword-info-card {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.keyword-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.analyzed-keyword {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
}

.keyword-metrics {
    display: flex;
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #7f8c8d;
    font-weight: 500;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

/* SEO数据网格 */
.seo-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.seo-data-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    font-size: 1rem;
}

.card-content {
    padding: 1rem;
}

/* 搜索量数据 */
.volume-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.volume-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.volume-label {
    font-weight: 500;
    color: #5a6c7d;
}

.volume-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* 竞争度显示 */
.competition-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.competition-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.competition-text {
    position: relative;
    z-index: 2;
}

.competition-info {
    flex: 1;
}

.competition-level {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.competition-description {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 趋势图样式 */
.trend-card {
    grid-column: span 2;
}

.trend-chart {
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 地区分布 */
.region-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.region-item:hover {
    background: #e9ecef;
}

.region-flag {
    font-size: 1.2rem;
}

.region-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.region-name {
    font-weight: 500;
    color: #2c3e50;
}

.region-percentage {
    font-weight: 600;
    color: #3498db;
}

.region-bar {
    width: 60px;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    overflow: hidden;
}

.region-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.5s ease;
}

/* SEO建议样式 */
.suggestions-card {
    grid-column: span 2;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.suggestion-item.opportunity {
    background: #d4edda;
    border-left-color: #28a745;
}

.suggestion-item.challenge {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.suggestion-item.volume {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.suggestion-item.commercial {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.suggestion-item.trend {
    background: #e2e3e5;
    border-left-color: #6c757d;
}

.suggestion-icon {
    font-size: 1.2rem;
    margin-top: 0.125rem;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #2c3e50;
}

.suggestion-description {
    margin: 0;
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* SEO Suggestions Loading States */
.suggestions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.suggestions-loading .loading-spinner {
    margin-bottom: 15px;
}

.suggestions-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.suggestions-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    color: #e74c3c;
    background-color: #ffeaea;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.suggestions-error p {
    margin: 0;
    font-size: 14px;
}

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

/* Intent Tag Styles (Refined) */
.intent-tag {
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .mindmap-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mindmap-content {
        min-height: 400px;
    }
    
    .mindmap-svg-container {
        height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .keywords-tabs {
        justify-content: center;
    }
    
    .keyword-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .keyword-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .keyword-actions {
        align-self: flex-end;
    }
    
    .keyword-seo-data {
        gap: 0.5rem;
    }
    
    .seo-metric {
        min-width: 50px;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-jump {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .mindmap-header {
        padding: 1rem;
    }
    
    .mindmap-title {
        font-size: 1.2rem;
    }
    
    .stats-container,
    .keywords-container {
        padding: 1rem;
    }
    
    .stats-title,
    .keywords-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .trend-card,
    .suggestions-card {
        grid-column: span 1;
    }
    
    .seo-data-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .keyword-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .keyword-metrics {
        gap: 1rem;
    }
    
    .competition-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .seo-data-grid {
        padding: 1rem;
        gap: 1rem;
    }
}

/* Modal for In-Place Expansion */
.modal-wrapper {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    -webkit-animation: fadeIn 0.3s;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    -webkit-animation: slideIn 0.4s;
    animation: slideIn 0.4s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-body .modal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

.modal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-mindmap .mindmap-container {
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.modal-stats #inPlaceStatsContent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.in-place-stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--theme-color);
}

.in-place-stat-item .stat-name {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

.in-place-stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.modal-keywords .list-container {
    height: 230px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background-color: #fcfcfc;
}

.keyword-item-modal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.keyword-item-modal:last-child {
    border-bottom: none;
}

.keyword-main-modal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.keyword-text-modal {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.keyword-seo-data-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-metric-modal {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.metric-label-modal {
    font-size: 0.8rem;
    color: #666;
}

.metric-value-modal {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    background-color: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.keyword-actions-modal {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.keyword-btn-modal {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.keyword-btn-modal:hover {
    transform: scale(1.1);
}

.keyword-btn-modal.analyze-btn-modal:hover {
    background-color: #3498db;
    color: white;
}

.keyword-btn-modal.copy-btn-modal:hover {
    background-color: #27ae60;
    color: white;
}

@media (max-width: 992px) {
    .modal-body .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
    }
    #inPlaceExpansionTitle {
        font-size: 1.4rem;
    }
    .modal-stats #inPlaceStatsContent {
        grid-template-columns: 1fr;
    }
}

/* Keyframe animations for modal */
@-webkit-keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@-webkit-keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

.modal-content .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-content .layout-controls {
    display: flex;
    gap: 5px;
}

.modal-content .layout-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}

.modal-content .layout-btn:hover {
    background-color: #e0e0e0;
}

.modal-content .layout-btn.active {
    background-color: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

#outlineResultContainer {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}

.outline-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.outline-section h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.outline-section p, .outline-section pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #555;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
}

.outline-section ul {
    list-style-type: disc;
    padding-left: 20px;
}

.outline-section li {
    margin-bottom: 0.5rem;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: #555;
}

.keyword-item .selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.selection-controls label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.selection-controls input {
    cursor: pointer;
}

.modal-content.large {
    max-width: 900px;
}

/* -------------------------
 * Modal Styles
 * ------------------------- */
.modal-footer {
    padding: 15px 25px;
    background-color: #f7f8fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(118, 75, 162, 0.3);
}

.secondary-btn {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

.secondary-btn:hover {
    background-color: #dde1e5;
    border-color: #ced4da;
    transform: translateY(-1px);
}

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

.article-content-display {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    color: #343a40;
    white-space: pre-wrap; /* 保持换行和空格 */
}

.article-content-display h1,
.article-content-display h2,
.article-content-display h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #212529;
}

.article-content-display p {
    margin-bottom: 1em;
}

.article-content-display strong {
    color: #667eea;
}

/* -------------------------
 * Toast Notifications
 * ------------------------- */
/* ... existing code ... */

.controls-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.85rem;
    color: #f0f0f0;
    font-weight: 500;
    margin-left: 5px;
}

.styled-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #ffffff;
    color: #333333;
    font-size: 1rem;
    min-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.styled-select option {
    background-color: #ffffff;
    color: #333333;
}

.styled-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.mode-switch-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: #f0f4f8;
    border-radius: 20px;
}

.mode-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3498db;
    transition: .4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #9b59b6;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.mode-label {
    font-weight: 600;
    color: #2c3e50;
    transition: color .4s;
}

.model-selector, .language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.model-label-inline {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.model-select {
    min-width: 250px;
    padding: 0.5rem 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background-color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-box {
    display: flex;
    gap: 1rem;
}

.text-input {
    flex-grow: 1;
    min-height: 120px;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

#keywordInput {
    flex-grow: 1;
    height: 50px;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

#keywordInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-btn {
    min-width: 150px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#extractBtn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

#extractBtn:hover {
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.btn-text {
    display: inline-block;
}

.loading-spinner {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-tips {
    padding: 0.75rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-tips p {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* ... existing code ... */ 

/* Intent Legend Styles */
.intent-legend {
    margin: 15px 0 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.legend-title {
    font-weight: 600;
    color: #343a40;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #495057;
}

.legend-item b {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    color: #fff;
}

.legend-item[data-intent="I"] b { background-color: #007bff; }
.legend-item[data-intent="N"] b { background-color: #28a745; }
.legend-item[data-intent="C"] b { background-color: #ffc107; }
.legend-item[data-intent="T"] b { background-color: #dc3545; }


/* Intent Tag Styles */
.keyword-main {
    display: flex;
    align-items: center;
    gap: 8px; /* Gap between tag and text */
}

.intent-tag {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    flex-shrink: 0;
    cursor: help;
}

.intent-tag.intent-I { background-color: #007bff; }
.intent-tag.intent-N { background-color: #28a745; }
.intent-tag.intent-C { background-color: #ffc107; color: #212529; }
.intent-tag.intent-T { background-color: #dc3545; }

/* 多语言转换模式样式 */
.mode-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#multilingualInputContainer {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.multilingual-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.multilingual-header h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.mode-description {
    color: #6c7b7f;
    font-size: 0.95rem;
    margin: 0;
}

#articleInput {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

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

.multilingual-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-selectors {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-help {
    margin-top: 1rem;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.help-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.help-example {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #6c757d;
    font-size: 0.85rem;
}

.target-language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

#targetLanguageSelect {
    min-width: 200px;
}

#startConversionBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 120px;
}

#startConversionBtn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

/* 多语言转换结果区域 */
.multilingual-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.multilingual-container {
    max-width: 1200px;
    margin: 0 auto;
}

.multilingual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.multilingual-title {
    font-size: 1.5rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.multilingual-icon {
    font-size: 1.3rem;
}

/* 转换进度条 */
.conversion-progress {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e1e8ed;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e8ed;
    color: #8494a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6c7b7f;
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #2c3e50;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 33%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: #6c7b7f;
    font-size: 0.9rem;
}

/* 结果卡片 */
.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.result-card h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 关键词分析显示 */
.keywords-analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.analysis-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.analysis-item h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.analysis-item p {
    color: #6c7b7f;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.analysis-item .keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.analysis-keyword {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 大纲显示 */
.outline-content {
    line-height: 1.6;
}

.outline-content h5 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e1e8ed;
}

.outline-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.outline-content li {
    margin: 0.3rem 0;
    color: #5a6b73;
}

.outline-actions, .article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* 文章显示 */
.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.meta-item {
    color: #6c7b7f;
    font-size: 0.9rem;
}

.meta-item strong {
    color: #2c3e50;
}

.article-content {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    line-height: 1.6;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.article-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.4rem;
}

.article-content h3 {
    font-size: 1.2rem;
}

.article-content p {
    margin: 1rem 0;
    color: #4a5568;
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 2rem;
}

.article-content li {
    margin: 0.5rem 0;
}

.article-content strong {
    color: #2c3e50;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c7b7f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .multilingual-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .language-selectors {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .target-language-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .target-language-selector select {
        margin-top: 0.25rem;
        width: 100%;
    }

    .language-help {
        margin-top: 0.75rem;
    }

    .help-text {
        font-size: 0.85rem;
    }

    .help-example {
        font-size: 0.8rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .keywords-analysis-content {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .outline-actions, .article-actions {
        flex-direction: column;
    }
}

/* Markdown表格样式 */
.markdown-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.markdown-table th,
.markdown-table td {
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    text-align: left;
    vertical-align: top;
}

.markdown-table th {
    background-color: #f6f8fa;
    font-weight: 600;
    color: #24292f;
    font-size: 0.95em;
}

.markdown-table tr:nth-child(even) {
    background-color: #f6f8fa;
}

.markdown-table tr:hover {
    background-color: #f0f4f8;
}

/* 在文章内容区域的表格样式 */
.article-content .markdown-table {
    margin: 1rem 0 1.5rem 0;
}

.article-content .markdown-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.article-content .markdown-table tr:nth-child(even) {
    background-color: rgba(102, 126, 234, 0.05);
}

.article-content .markdown-table tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

/* 响应式表格 */
@media (max-width: 768px) {
    .markdown-table {
        font-size: 0.8em;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .markdown-table th,
    .markdown-table td {
        padding: 8px 12px;
    }
}

/* Mermaid图表样式 */
.mermaid-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    overflow-x: auto;
}

.mermaid-diagram,
.mermaid {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.mermaid-diagram svg,
.mermaid svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mermaid-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 0.9em;
}

/* 在文章内容中的Mermaid图表 */
.article-content .mermaid-container {
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e3e8ff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.article-content .mermaid-diagram svg,
.article-content .mermaid svg {
    border-radius: 8px;
    background: white;
    padding: 1rem;
}

/* 响应式Mermaid图表 */
@media (max-width: 768px) {
    .mermaid-container {
        margin: 1rem 0;
        padding: 1rem;
        overflow-x: scroll;
    }
    
    .mermaid-diagram,
    .mermaid {
        min-width: 300px;
    }
} 

/* 创作改变模式整体布局 */
.multilingual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e3e8ff;
    min-height: 600px;
}

/* 顶部模式选择区 */
.mode-selection-area {
    text-align: center;
}

.mode-header h3 {
    font-size: 24px;
    color: #2d3748;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.mode-header p {
    color: #718096;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.mode-tabs-container {
    display: flex;
    justify-content: center;
}

.mode-tabs {
    display: flex;
    gap: 20px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    position: relative;
}

.mode-tab:hover {
    background: #f7fafc;
    border-color: #e2e8f0;
}

.mode-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 8px;
    pointer-events: none;
}

.tab-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    pointer-events: none;
}

.tab-desc {
    font-size: 12px;
    opacity: 0.8;
    pointer-events: none;
}

/* 内容输入区域 */
.content-input-area {
    flex: 1;
}

.input-section {
    width: 100%;
}

/* 卡片样式 */
.section-card,
.form-card,
.settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.card-header h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
}

.card-header p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.card-content {
    padding: 24px;
}

/* 表单网格布局 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 文章输入框 */
.article-textarea {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.article-textarea::placeholder {
    color: #a0aec0;
    line-height: 1.6;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

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

.form-input::placeholder {
    color: #a0aec0;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* 语言设置区域 */
.language-settings-area {
    margin-top: 20px;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.language-item {
    display: flex;
    flex-direction: column;
}

.language-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 6px;
}

.language-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.language-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.language-example {
    text-align: center;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.example-text {
    font-size: 14px;
    color: #4a5568;
    font-style: italic;
}

/* 操作按钮区域 */
.action-area {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-icon {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .multilingual-wrapper {
        padding: 16px;
        gap: 20px;
    }
    
    .mode-tabs {
        flex-direction: column;
        gap: 12px;
    }
    
    .mode-tab {
        min-width: auto;
        padding: 16px 20px;
    }
    
    .form-grid,
    .language-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-textarea {
        min-height: 200px;
    }
    
    .card-header,
    .card-content {
        padding: 16px;
    }
}

/* 品牌链接样式 */
.article-content a[href*="talkme.ai"],
.article-content a[href*="listenleap.com"],
.article-content-display a[href*="talkme.ai"],
.article-content-display a[href*="listenleap.com"] {
    color: #667eea !important;
    text-decoration: none !important;
    border-bottom: 2px solid #667eea !important;
    transition: all 0.3s ease !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.article-content a[href*="talkme.ai"]:hover,
.article-content a[href*="listenleap.com"]:hover,
.article-content-display a[href*="talkme.ai"]:hover,
.article-content-display a[href*="listenleap.com"]:hover {
    background-color: #667eea !important;
    color: white !important;
    border-bottom-color: #667eea !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
}

.article-content a[href*="talkme.ai"] strong,
.article-content a[href*="listenleap.com"] strong,
.article-content-display a[href*="talkme.ai"] strong,
.article-content-display a[href*="listenleap.com"] strong {
    font-weight: 600 !important;
}

/* 关键词分析洞察卡片样式 */
.analysis-insights {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e6ed;
}

.insights-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.insights-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.insight-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #d0d7de;
}

.insight-card-wide {
    grid-column: span 2;
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.insight-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-content p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

.insight-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-card-wide {
        grid-column: span 1;
    }
    
    .insight-card {
        padding: 1.25rem;
    }
    
    .insights-header h3 {
        font-size: 1.3rem;
    }
    
    .insight-icon {
        font-size: 1.5rem;
    }
}

/* 文件上传组件样式 */
.file-upload-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-upload-label i {
    font-size: 16px;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #666;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    min-width: 150px;
}

.file-name.has-file {
    color: #28a745;
    background: #f8fff9;
    border-color: #28a745;
}

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

.clear-file-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.upload-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

@media (max-width: 768px) {
    .file-upload-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-name {
        min-width: 100%;
    }
    
    .file-upload-label {
        width: 100%;
        justify-content: center;
    }
}

/* 多语言转换进度 */
.conversion-progress {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.progress-step {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.progress-step.active {
    color: var(--primary-color);
    font-weight: 500;
}

.progress-step.completed {
    color: var(--success-color);
}

.progress-step.completed::before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
}

/* 预览链接模态框样式 */
.preview-link-modal {
    max-width: 600px;
    width: 90%;
}

.preview-link-modal .modal-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 18px;
}

.preview-link-modal .modal-message {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.slug-info {
    background: var(--bg-tertiary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

.slug-info code {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.preview-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.preview-link-btn, .copy-link-btn {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.preview-link-btn {
    background: var(--primary-color);
    color: white;
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.preview-link-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.copy-link-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    min-width: 120px;
    justify-content: center;
}

.copy-link-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.link-display {
    margin-top: 10px;
}

.link-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: text;
}

.link-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .preview-link-container {
        flex-direction: column;
    }
    
    .preview-link-btn, .copy-link-btn {
        width: 100%;
        min-width: auto;
    }
}

/* 语言选择弹窗样式 */
.language-selection-container {
    padding: 1rem;
}

.keywords-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.keywords-summary h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyword-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.keyword-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.keyword-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
    flex-shrink: 0;
}

.keyword-value {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sub-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sub-keyword-tag {
    background: #6c757d;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.language-settings {
    margin-bottom: 2rem;
}

.language-settings h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-form label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.language-form .form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

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

.language-example {
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.language-example h5 {
    color: #1976d2;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-example p {
    color: #424242;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 语言选择弹窗响应式 */
@media (max-width: 768px) {
    .language-selection-container {
        padding: 0.5rem;
    }
    
    .keywords-summary {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .keyword-display {
        gap: 0.75rem;
    }
    
    .keyword-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .keyword-label {
        min-width: auto;
    }
    
    .language-form {
        gap: 1rem;
    }
}

/* 焦点关键词样式 */
.focus-keyword-section {
    margin-bottom: 2rem;
}

.focus-keyword-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.focus-keyword-card:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.focus-keyword-card .card-header h4 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.focus-keyword-card .card-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.focus-keyword-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.focus-keyword-input-group {
    position: relative;
}

.focus-keyword-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.focus-keyword-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 500;
}

.focus-keyword-text {
    font-size: 1rem;
}

.clear-focus-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-focus-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.focus-metrics {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.focus-metrics .metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.focus-metrics .metric strong {
    color: #333;
    font-weight: 600;
}

/* SEO分析报告面板样式 */
.seo-analysis-fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.seo-analysis-fixed-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.seo-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.seo-analysis-modal.show {
    display: flex;
}

.seo-analysis-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.seo-analysis-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: between;
    align-items: center;
}

.seo-analysis-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-score-container {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.seo-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    position: relative;
}

.seo-score-circle.good {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.seo-score-circle.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.seo-score-circle.danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.seo-issues-list {
    padding: 2rem;
}

.seo-issue-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.seo-issue-item.error {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.seo-issue-item.warning {
    background: #fffbf0;
    border-left-color: #ffc107;
}

.seo-issue-item.success {
    background: #f0fff4;
    border-left-color: #28a745;
}

.seo-issue-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.seo-issue-item.error .seo-issue-icon {
    background: #dc3545;
}

.seo-issue-item.warning .seo-issue-icon {
    background: #ffc107;
    color: #212529;
}

.seo-issue-item.success .seo-issue-icon {
    background: #28a745;
}

.seo-issue-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.seo-issue-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .focus-keyword-card {
        padding: 1rem;
    }
    
    .focus-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .seo-analysis-fixed-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .seo-analysis-content {
        margin: 10px;
        max-height: 85vh;
    }
    
    .seo-analysis-header {
        padding: 1rem;
    }
    
    .seo-score-container {
        padding: 1.5rem;
    }
    
    .seo-score-circle {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }
    
    .seo-issues-list {
        padding: 1rem;
    }
    
    .seo-issue-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 模态框中的焦点关键词样式 */
.focus-keyword-section-modal {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.focus-keyword-section-modal h4 {
    margin: 0 0 8px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.focus-keyword-section-modal .focus-keyword-description {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.focus-keyword-section-modal .focus-keyword-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

#focusKeywordSelectModal {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 14px;
    min-height: 38px;
}

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

.focus-keyword-section-modal .clear-focus-btn {
    padding: 8px 10px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-keyword-section-modal .clear-focus-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

#focusKeywordMetricsModal {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
}

#focusKeywordMetricsModal .metrics-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}

#focusKeywordMetricsModal .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

#focusKeywordMetricsModal .metric-label {
    font-size: 0.8em;
    color: #1976d2;
    font-weight: 500;
}

#focusKeywordMetricsModal .metric-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #0d47a1;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .focus-keyword-section-modal {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .focus-keyword-section-modal h4 {
        font-size: 1rem;
    }
    
    #focusKeywordMetricsModal .metrics-row {
        gap: 15px;
    }
    
    #focusKeywordMetricsModal .metric-item {
        min-width: 70px;
    }
}

/* 多语言转换模式 - 焦点关键词选择样式 */
.focus-keyword-section-multilingual {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.focus-keyword-section-multilingual h5 {
    margin: 0 0 8px 0;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.focus-keyword-section-multilingual .focus-keyword-description {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.4;
}

.focus-keyword-section-multilingual .focus-keyword-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#focusKeywordSelectMultilingual {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 14px;
    min-width: 200px;
}

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

.focus-keyword-display {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.focus-keyword-text {
    color: #155724;
    font-weight: 500;
    font-size: 14px;
}

.focus-keyword-value {
    color: #155724;
    font-weight: 600;
    font-size: 14px;
}

.clear-focus-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.clear-focus-btn:hover {
    background: #c82333;
}

.focus-metrics {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
}

.focus-metrics .metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

.focus-metrics .metric label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

.focus-metrics .metric span {
    color: #495057;
    font-weight: 600;
    font-size: 13px;
}

/* 下一步按钮样式 */
.next-step-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

#generateOutlineStepBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#generateOutlineStepBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#generateOutlineStepBtn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#generateOutlineStepBtn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .focus-keyword-section-multilingual .focus-keyword-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .focus-keyword-section-multilingual #focusKeywordSelectMultilingual {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .focus-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .focus-metrics .metric {
        justify-content: space-between;
    }
}

/* 文章编辑器样式 */
.article-edit-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.edit-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
}

.edit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.edit-info i {
    font-size: 16px;
}

.edit-actions {
    display: flex;
    gap: 10px;
}

.save-edit-btn, .cancel-edit-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.save-edit-btn {
    background: #28a745;
    color: white;
}

.save-edit-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.cancel-edit-btn {
    background: #6c757d;
    color: white;
}

.cancel-edit-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.article-edit-textarea {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    border: none;
    background: white;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    resize: vertical;
    outline: none;
    border-radius: 0;
}

.article-edit-textarea:focus {
    background: #fdfdfd;
}

.edit-tips {
    background: #e9ecef;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
}

.edit-tips p {
    margin: 0 0 8px 0;
    color: #495057;
    font-weight: 600;
    font-size: 13px;
}

.edit-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.edit-tips li {
    margin-bottom: 4px;
}

/* 编辑状态下的按钮样式 */
.secondary-btn.editing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.secondary-btn.editing:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3d8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .edit-toolbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .edit-actions {
        width: 100%;
        justify-content: center;
    }
    
    .save-edit-btn, .cancel-edit-btn {
        flex: 1;
        max-width: 120px;
    }
    
    .article-edit-textarea {
        padding: 15px;
        font-size: 13px;
    }
    
    .edit-tips {
        padding: 12px 15px;
    }
}

/* 生成标签卡片样式 */
.tags-result-card {
    background: #f8f9ff;
    border: 1.5px solid #d0d7de;
    border-radius: 10px;
    padding: 18px 20px 12px 20px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.06);
    max-width: 600px;
}
.tags-title {
    font-weight: 600;
    color: #5A67D8;
    margin-bottom: 10px;
    font-size: 16px;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-label {
    background: #e3e8ff;
    color: #3b426a;
    border-radius: 16px;
    padding: 4px 14px;
    font-size: 14px;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

.tag-delete-btn {
    display: inline-block;
    margin-left: 6px;
    color: #b53a3a;
    background: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #e3e8ff;
    transition: background 0.2s, color 0.2s;
    vertical-align: middle;
}
.tag-delete-btn:hover {
    background: #ffebeb;
    color: #e53e3e;
    border-color: #e53e3e;
}

/* 自定义产品输入区域样式 */
.product-mode-container {
    position: relative;
}

.custom-product-inputs {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.custom-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.custom-input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.custom-input {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.custom-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.custom-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .custom-product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .custom-product-inputs {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .custom-input {
        padding: 0.625rem;
    }
}

/* 对比模式样式 */
.compare-mode-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* 添加按钮样式 */
.add-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.add-btn i {
    font-size: 0.8rem;
}

.compare-mode-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.compare-mode-icon {
    font-size: 1.2rem;
    color: #007bff;
}

.compare-mode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.compare-mode-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.main-app-section {
    margin-bottom: 1.5rem;
}

.main-app-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.compare-apps-section {
    margin-bottom: 1.5rem;
}

.compare-apps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.compare-apps-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.add-compare-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-compare-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.add-compare-btn i {
    font-size: 0.8rem;
}

.compare-apps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compare-app-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.compare-app-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.compare-app-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.compare-app-select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    background-color: white;
}

.compare-app-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.compare-app-select option:disabled {
    color: #6c757d;
    font-style: italic;
}



/* 对比模式中的提示文字样式 */
#compareMode .form-hint {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* 主要产品APP显示框样式 */
.main-app-display {
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
}

.main-app-display::before {
    content: "📱";
    margin-right: 0.5rem;
    font-size: 1rem;
}

.main-app-display span {
    color: #007bff;
    font-weight: 600;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.remove-btn i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .compare-mode-container {
        padding: 1rem;
        margin-top: 0.75rem;
    }
    
    .compare-app-selector {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .compare-app-select {
        width: 100%;
    }
    
    .remove-btn {
        align-self: flex-end;
    }
    
    .add-compare-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* 博客首页分页条样式 */
.blog-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
}

.blog-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.blog-pagination-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.blog-pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-pagination-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.blog-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-page-number-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.blog-page-number-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.blog-page-number-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-page-ellipsis {
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-pagination-controls {
        gap: 6px;
        padding: 6px;
    }
    
    .blog-pagination-btn,
    .blog-page-number-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .blog-page-numbers {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .blog-pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 12px;
    }
    
    .blog-pagination-btn,
    .blog-page-number-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}