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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #1f2329;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 头部横条样式 */
.header-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e6e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    width: 100%;
}

.header-bar-content {
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2329;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #1f2329;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #3370ff;
}

.cta-button {
    background: #3370ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(51, 112, 255, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* 搜索区域 */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e6e8;
}

.search-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input, .fresh-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input:focus, .fresh-input:focus {
    outline: none;
    border-color: #3370ff;
    box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.1);
}

.fresh-input {
    max-width: 200px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        padding: 25px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .search-inputs {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .search-input, .fresh-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 8px;
    }
    
    .fresh-input {
        max-width: none;
}

.search-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .platform-tags {
        gap: 8px;
    }
    
    .platform-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-column {
        width: 100%;
        position: static;
    }
    
    .stats-panel {
        gap: 12px;
    }
    
    .stats-card {
        padding: 14px 16px;
        min-height: 50px;
    }
    
    .stats-number {
        font-size: 24px;
        min-width: 50px;
    }
    
    .stats-label {
        font-size: 13px;
        margin-right: 12px;
    }
    
    .platform-icon, .website-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .more-indicator {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .result-card {
        padding: 16px;
    }
    
    .summary-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 13px;
        min-width: 70px;
    }
    
    .summary-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .stats-detail-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .stats-detail-item {
        padding: 12px;
    }
    
    .item-logo {
        width: 32px;
        height: 32px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-url {
        font-size: 11px;
    }
    
    .visit-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .source-item {
        padding: 12px 0;
    }
    
    .source-logo {
        width: 28px;
        height: 28px;
    }
    
    .source-name {
        font-size: 14px;
    }
    
    .source-domain {
        font-size: 11px;
    }
    
    .source-visit-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .search-input, .fresh-input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .platform-tag {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .result-card {
        padding: 12px;
    }
    
    .summary-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
        min-width: 60px;
    }
    
    .summary-btn i {
        font-size: 16px;
    }
    
    .summary-hint {
        font-size: 10px;
    }
    
    .source-item {
        padding: 10px 0;
    }
    
    .source-logo {
        width: 24px;
        height: 24px;
    }
    
    .source-name {
        font-size: 13px;
    }
    
    .source-domain {
        font-size: 10px;
    }
    
    .platform-tag-mini {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .source-visit-btn {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .clickable-count:hover {
        transform: none;
        background: #3370ff;
        box-shadow: 0 2px 4px rgba(51, 112, 255, 0.2);
    }
    
    .platform-icon, .website-icon {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    
    .more-indicator {
        font-size: 8px;
        padding: 1px 3px;
    }
    
    .stats-card {
        padding: 12px 14px;
        min-height: 45px;
    }
    
    .stats-number {
        font-size: 22px;
        min-width: 45px;
    }
    
    .stats-label {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .stats-detail-item {
        padding: 10px;
    }
    
    .item-logo {
        width: 28px;
        height: 28px;
    }
    
    .item-title {
        font-size: 13px;
    }
    
    .item-url {
        font-size: 10px;
    }
    
    .visit-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .search-btn, .platform-tag, .summary-btn {
        min-height: 44px; /* iOS推荐的最小触摸目标 */
    }
    
    .search-input, .fresh-input {
        min-height: 44px;
    }
    
    .platform-tag {
        padding: 10px 14px;
    }
    
    .result-card:hover {
        transform: none; /* 禁用悬停效果 */
    }
    
    .summary-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .source-visit-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .source-item:hover {
        background: none;
        border-radius: 0;
        padding: 16px 0;
        margin: 0;
    }
    
    .platform-icon, .website-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .platform-icon:hover, .website-icon:hover {
        transform: none;
    }
    
    .stats-card:hover {
        transform: none;
        background: #f8f9fa;
        border-color: #e5e6e8;
        box-shadow: none;
    }
    
    .stats-detail-item:hover {
        transform: none;
        background: #f8f9fa;
        border-color: #e5e6e8;
        box-shadow: none;
    }
    
    .visit-btn:hover {
        transform: none;
        background: #f5f5f5;
        color: #646a73;
        box-shadow: none;
    }
    
    .clickable-count:hover {
        transform: none;
        background: #3370ff;
        box-shadow: 0 2px 4px rgba(51, 112, 255, 0.2);
    }
}

.search-btn {
    padding: 12px 20px;
    background: #3370ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.search-btn:hover {
    background: #1e5bff;
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.3);
}

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

/* 平台标签 */
.platform-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-tag {
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #646a73;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.platform-tag:hover {
    border-color: #3370ff;
    color: #3370ff;
}

.platform-tag.active {
    background: #3370ff;
    color: white;
    border-color: #3370ff;
}

/* 结果区域 */
.results-section {
    display: none;
}

.results-section.show {
    display: block;
}

/* 主内容区域 - 左右分栏 */
.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧结果列 */
.results-column {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

/* 右侧统计列 */
.stats-column {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* 统计面板 */
.stats-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e6e8;
}

.stats-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e6e8;
    transition: all 0.2s ease;
    min-height: 60px;
}

.stats-card:hover {
    background: #f0f2f5;
    border-color: #d9d9d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2329;
    line-height: 1;
    text-align: right;
    min-width: 60px;
}

.stats-label {
    font-size: 14px;
    color: #646a73;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    margin-right: 16px;
}

/* 平台图标样式 */
.platform-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.platform-icon:hover {
    transform: scale(1.1);
}

/* 网站图标样式 */
.website-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.website-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.website-icon:hover {
    transform: scale(1.1);
}

.website-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3370ff;
    color: white;
    font-size: 10px;
    font-weight: 600;
}

.more-indicator {
    font-size: 10px;
    color: #646a73;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* 引用源统计 */
.source-stats {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e6e8;
}

.source-stats h3 {
    color: #1f2329;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-stats h3 i {
    color: #3370ff;
}

.no-sources {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
    font-style: italic;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.source-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 12px;
    margin: 0 -12px;
}

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

.source-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.source-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3370ff;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.site-icon {
    font-size: 14px;
    font-weight: 600;
}

.source-details {
    flex: 1;
    min-width: 0;
}

.source-name-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.source-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2329;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.2s ease;
}

.source-name:hover {
    color: #3370ff;
}

.source-domain {
    font-size: 12px;
    color: #646a73;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    cursor: pointer;
    transition: color 0.2s ease;
}

.source-domain:hover {
    color: #3370ff;
}

.source-platforms {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.platform-tag-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.platform-tag-mini:hover {
    transform: scale(1.1);
}

.source-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.source-status.verified {
    background: #52c41a;
    color: white;
    box-shadow: 0 2px 4px rgba(82, 196, 26, 0.3);
}

.source-status.unverified {
    background: #ff4d4f;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 77, 79, 0.3);
}

.source-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.source-count {
    background: #3370ff;
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(51, 112, 255, 0.2);
}

.clickable-count {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-count:hover {
    background: #1e5bff;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(51, 112, 255, 0.3);
}

.source-visit-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
    color: #646a73;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.source-visit-btn:hover {
    background: #3370ff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(51, 112, 255, 0.3);
}

.stats-summary {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

/* 搜索结果列表 */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e6e8;
    transition: all 0.2s ease;
}

.result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading卡片样式 */
.result-card.loading-card {
    background: #f8f9fa;
    border: 1px dashed #d9d9d9;
}

.loading-content {
    padding: 40px 20px;
    text-align: center;
    color: #646a73;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner i {
    font-size: 24px;
    color: #6c5ce7;
}

.loading-spinner span {
    font-size: 14px;
    font-weight: 500;
}

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

.platform-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.platform-icon.alibaba { background: #ff6900; }
.platform-icon.baidu { background: #2932e1; }
.platform-icon.tencent { background: #00d4aa; }
.platform-icon.metaso { background: #6c5ce7; }
.platform-icon.zhipu { background: #4285f4; }
.platform-icon.doubao { background: #1890ff; }
.platform-icon.kimi { background: #52c41a; }
.platform-icon.kimi2 { background: #722ed1; }

.platform-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.result-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.result-status.success {
    background: #e8f5e8;
    color: #4CAF50;
}

.result-status.error {
    background: #ffeaea;
    color: #f44336;
}


.result-content {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Markdown内容样式 */
.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4,
.result-content h5,
.result-content h6 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-weight: 600;
}

.result-content h1 { font-size: 1.5em; }
.result-content h2 { font-size: 1.3em; }
.result-content h3 { font-size: 1.2em; }

.result-content p {
    margin: 10px 0;
}

.result-content ul,
.result-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.result-content li {
    margin: 5px 0;
}

.result-content blockquote {
    margin: 15px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 4px solid #6c5ce7;
    border-radius: 4px;
}

.result-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.result-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.result-content pre code {
    background: none;
    padding: 0;
}

.result-content a {
    color: #6c5ce7;
    text-decoration: none;
}

.result-content a:hover {
    text-decoration: underline;
}

.result-content strong,
.result-content b {
    font-weight: 600;
    color: #2c3e50;
}

.result-content em,
.result-content i {
    font-style: italic;
    color: #5a6c7d;
}

.result-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: #667eea;
    font-size: 13px;
    transition: all 0.3s ease;
}

.source-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.source-link i {
    font-size: 12px;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

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


/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.modal-header h3 {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.modal-header h3 i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.reference-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item.full-width {
    flex-direction: column;
    gap: 10px;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    flex-shrink: 0;
}

.detail-item span,
.detail-item a {
    color: #333;
    word-break: break-all;
}

.detail-item a {
    color: #6c5ce7;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.detail-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #6c5ce7;
    line-height: 1.6;
    color: #495057;
}

/* 平台引用网页链接样式 */
.platform-references {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c5ce7;
}

.platform-references h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.references-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    justify-content: space-between;
    margin-bottom: 0 !important;
}

.references-header:hover {
    color: #6c5ce7;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.references-links {
    transition: all 0.3s ease;
    overflow: hidden;
}

.references-links.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.references-links.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.platform-references h4 i {
    color: #6c5ce7;
}

.references-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reference-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.reference-link:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateX(2px);
}

.reference-link i {
    color: #6c5ce7;
    font-size: 12px;
    flex-shrink: 0;
}

.ref-url {
    font-size: 13px;
    color: #495057;
    word-break: break-all;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .search-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .fresh-input {
        max-width: none;
    }
    
    .reference-tabs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .stats-column {
        position: static;
        width: 100%;
        margin-top: 30px;
    }
    
    .stats-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-card {
        min-width: auto;
    }
    
    .platform-tags {
        justify-content: center;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 高亮关键词 */
.highlight {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.match-highlight {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    animation: fadeInUp 0.6s ease forwards;
}

.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.2s; }
.result-card:nth-child(4) { animation-delay: 0.3s; }

/* 总结按钮样式 - 固定在右下角 */
.summary-section {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    text-align: center;
}

.summary-btn {
    background: #3370ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(51, 112, 255, 0.2);
}

.summary-btn:hover:not(:disabled) {
    background: #1e5bff;
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.3);
}

.summary-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    box-shadow: none;
}

.summary-btn i {
    font-size: 18px;
}

.summary-hint {
    color: #646a73;
    font-size: 12px;
    margin: 0;
    margin-top: 5px;
}

/* 总结模态框样式 */
.summary-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e6e8;
}

/* 统计详情模态框 */
.stats-detail-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e6e8;
}

.stats-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e6e8;
    transition: all 0.2s ease;
}

.stats-detail-item:hover {
    background: #f0f2f5;
    border-color: #d9d9d9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3370ff;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-url {
    font-size: 13px;
    color: #646a73;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-bottom: 4px;
    word-break: break-all;
}

.item-platform {
    font-size: 12px;
    color: #8c8c8c;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.item-ai-response {
    font-size: 13px;
    color: #646a73;
    line-height: 1.4;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #3370ff;
}

.item-content-preview {
    font-size: 13px;
    color: #646a73;
    line-height: 1.4;
    margin-top: 4px;
}

.item-actions {
    flex-shrink: 0;
}

.visit-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f5f5f5;
    color: #646a73;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.visit-btn:hover {
    background: #3370ff;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(51, 112, 255, 0.3);
}

.platform-item .item-logo {
    background: transparent;
}

.platform-item .platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.no-data {
    text-align: center;
    color: #8c8c8c;
    font-size: 14px;
    padding: 40px 20px;
}

.summary-content {
    padding: 0;
}

.summary-loading {
    text-align: center;
    padding: 60px 40px;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-loading i {
    font-size: 32px;
    margin-bottom: 20px;
    color: #667eea;
    animation: pulse 2s infinite;
}

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

.summary-result {
    padding: 30px;
}

.summary-analysis-section {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-analysis-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.summary-analysis-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.summary-analysis-section h4 i {
    color: #667eea;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.summary-text {
    line-height: 1.8;
    color: #495057;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Markdown 样式 */
.summary-text h1,
.summary-text h2,
.summary-text h3,
.summary-text h4 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.summary-text h1 { font-size: 24px; }
.summary-text h2 { font-size: 20px; }
.summary-text h3 { font-size: 18px; }
.summary-text h4 { font-size: 16px; }

.summary-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.summary-text em {
    color: #6c757d;
    font-style: italic;
}

.summary-text code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e83e8c;
}

.summary-text pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    margin: 15px 0;
}

.summary-text pre code {
    background: none;
    padding: 0;
    color: #495057;
}

.summary-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.summary-text li {
    margin: 5px 0;
    line-height: 1.6;
}

.summary-text a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.summary-text a:hover {
    border-bottom: 1px solid #007bff;
}

/* 相似问题建议样式 */
.suggestions-panel {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

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

.suggestions-title {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestions-title::before {
    content: "💡";
    font-size: 14px;
}

.suggestions-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
}

.suggestions-loading i {
    color: #007bff;
    font-size: 12px;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 80px;
    overflow-y: auto;
}

.suggestions-placeholder {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

.suggestion-tag {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-tag:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.15);
}

.suggestion-tag:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(33, 150, 243, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-bar-content {
        padding: 0 16px;
        height: 56px;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .brand-text h1 {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 16px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .cta-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .suggestions-panel {
        margin-bottom: 15px;
        padding: 12px 16px;
    }
    
    .suggestions-title {
        font-size: 13px;
    }
    
    .suggestion-tag {
        padding: 5px 10px;
        font-size: 12px;
        max-width: 250px;
    }
    
    .suggestions-tags {
        max-height: 60px;
        gap: 6px;
    }
}

/* 认证相关样式 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid #e5e6e8;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
}

.user-experience {
    font-size: 12px;
    color: #6c757d;
}

.experience-count {
    color: #007bff;
    font-weight: 600;
}

.logout-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #e9ecef;
    color: #dc3545;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn, .register-btn {
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover, .register-btn:hover {
    background: #007bff;
    color: white;
}

.register-btn {
    background: #007bff;
    color: white;
}

.register-btn:hover {
    background: #0056b3;
}

/* 认证模态框样式 */
.auth-modal {
    max-width: 480px;
    width: 90%;
}

/* 认证步骤样式 */
.auth-step {
    transition: all 0.3s ease;
}

.verification-info {
    text-align: center;
    margin-bottom: 30px;
}

.verification-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.verification-info h4 {
    color: #333;
    margin-bottom: 10px;
}

.verification-info p {
    color: #666;
    margin-bottom: 5px;
}

.verification-info span {
    font-weight: bold;
    color: #007bff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #e5e6e8;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

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

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

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.auth-switch {
    font-size: 14px;
    color: #6c757d;
}

.auth-switch a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 邮箱验证样式 */
.verification-content {
    text-align: center;
    padding: 20px 0;
}

.verification-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.verification-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 15px;
}

.verification-content p {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.6;
}

.verification-actions {
    margin-top: 25px;
}

/* 搜索限制提示 */
.search-limit-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-limit-notice i {
    font-size: 18px;
}

.search-limit-notice .notice-content {
    flex: 1;
}

.search-limit-notice .notice-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.search-limit-notice .notice-text {
    font-size: 14px;
}

/* 平台分析样式 */
.analysis-section {
    margin: 20px 0;
    text-align: center;
}

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

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.analyze-btn:disabled {
    background: #e5e6e8;
    color: #8c8c8c;
    cursor: not-allowed;
    box-shadow: none;
}

.analysis-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #8c8c8c;
}

/* 分析模态框样式 */

.analysis-content {
    min-height: 400px;
}

.analysis-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8c8c8c;
}

.analysis-loading i {
    font-size: 24px;
    margin-bottom: 16px;
    color: #667eea;
}

.analysis-result {
    display: none;
}

.analysis-result.active {
    display: block;
}

/* 分析标签页样式 */
.analysis-tabs {
    display: flex;
    border-bottom: 1px solid #e5e6e8;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #8c8c8c;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #1f2329;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.analysis-text {
    line-height: 1.8;
    color: #1f2329;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.analysis-text h1, .analysis-text h2, .analysis-text h3, .analysis-text h4 {
    margin: 20px 0 10px 0;
    color: #1f2329;
}

.analysis-text h1 {
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.analysis-text h2 {
    font-size: 20px;
    color: #667eea;
}

.analysis-text h3 {
    font-size: 18px;
    color: #4a5568;
}

.analysis-text h4 {
    font-size: 16px;
    color: #667eea;
}

.analysis-text ul, .analysis-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.analysis-text li {
    margin: 5px 0;
}

.analysis-text strong {
    color: #667eea;
    font-weight: 600;
}

.analysis-text code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.analysis-text blockquote {
    border-left: 4px solid #667eea;
    padding-left: 16px;
    margin: 16px 0;
    color: #4a5568;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
}

/* 分析卡片样式 */
.analysis-card {
    background: white;
    border: 1px solid #e5e6e8;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.analysis-card h4 {
    color: #667eea;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card p {
    margin: 8px 0;
    line-height: 1.6;
}

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

.analysis-card li {
    margin: 4px 0;
}

/* 平台对比样式 */
.platform-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.platform-card {
    background: white;
    border: 1px solid #e5e6e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.platform-card h5 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 16px;
}

.platform-card .platform-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.platform-stat {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.platform-stat .stat-number {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.platform-stat .stat-label {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: 4px;
}

/* 分析按钮样式 */
.result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-btn {
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.analysis-btn:hover {
    background: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

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

/* 分析弹窗样式 */
.analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.analysis-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
    position: relative;
    margin: 0 auto;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e5e6e8;
}

.analysis-platform {
    display: flex;
    align-items: center;
    gap: 16px;
}

.analysis-platform .platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platform-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2329;
}

.platform-info p {
    margin: 0;
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
}

.close-btn {
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    color: #8c8c8c;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e5e6e8;
    color: #1f2329;
    transform: scale(1.05);
}

.analysis-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.analysis-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e5e6e8;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1890ff, #40a9ff);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 144, 255, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1f2329;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #8c8c8c;
    font-weight: 500;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e6e8;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e6e8;
}

.section-header i {
    color: #1890ff;
    font-size: 18px;
}

.section-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
}

.content-guidance,
.analysis-summary {
    background: white;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.7;
    color: #1f2329;
    border: 1px solid #e5e6e8;
    font-size: 15px;
}

/* Markdown内容样式 */
.content-guidance h1,
.content-guidance h2,
.content-guidance h3,
.content-guidance h4,
.analysis-summary h1,
.analysis-summary h2,
.analysis-summary h3,
.analysis-summary h4 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #1f2329;
}

.content-guidance h1,
.analysis-summary h1 {
    font-size: 20px;
    border-bottom: 2px solid #e5e6e8;
    padding-bottom: 8px;
}

.content-guidance h2,
.analysis-summary h2 {
    font-size: 18px;
    color: #1890ff;
}

.content-guidance h3,
.analysis-summary h3 {
    font-size: 16px;
    color: #1890ff;
}

.content-guidance h4,
.analysis-summary h4 {
    font-size: 15px;
    color: #8c8c8c;
}

.content-guidance p,
.analysis-summary p {
    margin: 8px 0;
}

.content-guidance ul,
.content-guidance ol,
.analysis-summary ul,
.analysis-summary ol {
    margin: 8px 0;
    padding-left: 20px;
}

.content-guidance li,
.analysis-summary li {
    margin: 4px 0;
}

.content-guidance strong,
.analysis-summary strong {
    font-weight: 600;
    color: #1f2329;
}

.content-guidance em,
.analysis-summary em {
    font-style: italic;
    color: #8c8c8c;
}

.content-guidance code,
.analysis-summary code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #e74c3c;
}

.content-guidance pre,
.analysis-summary pre {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    border: 1px solid #e5e6e8;
}

.content-guidance pre code,
.analysis-summary pre code {
    background: none;
    padding: 0;
    color: #1f2329;
    font-size: 14px;
}

.content-guidance a,
.analysis-summary a {
    color: #1890ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.content-guidance a:hover,
.analysis-summary a:hover {
    border-bottom-color: #1890ff;
}

.content-guidance:last-child,
.analysis-summary:last-child {
    margin-bottom: 0;
}

/* 加载状态样式 */
.loading-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 0;
}

.loading-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    /* max-width: 400px; */
    width: 98%;
    animation: slideUp 0.4s ease;
}

.loading-animation {
    position: relative;
    margin-bottom: 24px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #1890ff;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

.loading-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
}

.loading-text p {
    margin: 0;
    font-size: 14px;
    color: #8c8c8c;
}

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

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        transform: scale(1);
    }
    to { 
        opacity: 0;
        transform: scale(0.95);
    }
}



.loading-toast {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
