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

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 85px;
    color: #333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 顶部栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.flag {
    font-size: 20px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-telegram-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-telegram-link:hover {
    color: #2563eb;
}

.btn-telegram-link .telegram-text {
    white-space: nowrap;
}

.btn-login {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-signup {
    padding: 8px 20px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* 搜索栏 */
.search-bar {
    padding: 12px 16px;
    background-color: white;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.search-input input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
}

/* 话题标签 */
.topic-chips {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f5f5f5;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 99;
}

.topic-chips::-webkit-scrollbar {
    height: 6px;
}

.topic-chips::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.topic-chips::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.topic-chips::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.chip {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    color: #666;
}

.chip.active {
    background: #e0e7ff;
    color: #3b82f6;
    font-weight: 500;
}

/* 事件列表 */
.event-list {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 120px;
}

/* 事件卡片 */
.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s;
    position: relative;
}

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

/* 卡片内容区 */
.card-content {
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.event-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-icon-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-shrink: 0;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.card-header h3 {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

/* 选项行 */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.option-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 8px;
}

.option-label {
    font-size: 14px;
    color: #666;
}

.percentage {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 45px;
    text-align: right;
}

.vote-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.vote-btn.yes {
    background: #d1fae5;
    color: #059669;
}

.vote-btn.no {
    background: #fee2e2;
    color: #dc2626;
}

/* 格斗卡片特殊样式 */
.option-row-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fighter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fighter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.vote-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}

.vote-btn-large {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.vote-btn-large.islam {
    background: #dbeafe;
    color: #1e40af;
}

.vote-btn-large.jack {
    background: #e0e7ff;
    color: #4338ca;
}

/* 卡片底部 */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.volume {
    font-weight: 500;
}

.badge {
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
}

.time {
    font-size: 12px;
}

.card-footer .actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.card-footer .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

/* 简化的事件卡片样式 */
.card-description {
    margin: 12px 0 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.card-description p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 加载和错误状态 */
.loading, .error, .empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.error {
    color: #dc2626;
}

/* 加载动画容器 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
}

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

/* 旋转动画 */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 加载更多提示 */
.load-more-indicator {
    padding: 20px;
    text-align: center;
}

.load-more-indicator .loading {
    padding: 20px;
    color: #3b82f6;
}

.load-more-indicator .no-more {
    padding: 20px;
    color: #999;
    font-size: 14px;
}



/* 底部 TabBar */
/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.back-to-top:active {
    transform: translateY(0);
}

/* 市场详情弹窗 */
.market-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 2;
}

.modal-close:hover {
    background: #e5e5e5;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.modal-header h2 {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

/* 详情弹窗中的收藏按钮 */
.btn-bookmark-modal {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #d1d5db;
    padding: 0;
    flex-shrink: 0;
}

.btn-bookmark-modal:hover {
    color: #9ca3af;
}

.btn-bookmark-modal.bookmarked {
    color: #3b82f6;
}

.btn-bookmark-modal .bookmark-icon path {
    stroke: currentColor;
    fill: none;
    transition: all 0.2s;
}

.btn-bookmark-modal.bookmarked .bookmark-icon path {
    fill: currentColor;
    stroke: currentColor;
}

.btn-bookmark-modal:active {
    transform: scale(0.9);
}

.modal-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.detail-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 交易数据板块 */
.trading-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.trading-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.trading-data-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.trading-data-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.polymarket-link {
    color: #3b82f6;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.polymarket-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.polymarket-btn {
    padding: 10px 20px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 8px;
}

.polymarket-btn:hover {
    background: #2563eb;
}

.polymarket-btn:active {
    background: #1d4ed8;
}

/* 确认对话框 */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.confirm-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirm-message {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-cancel {
    background: #f5f5f5;
    color: #666;
}

.confirm-cancel:hover {
    background: #e5e5e5;
}

.confirm-ok {
    background: #3b82f6;
    color: white;
}

.confirm-ok:hover {
    background: #2563eb;
}

.confirm-btn:active {
    transform: scale(0.98);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-label {
    font-size: 12px;
    color: #999;
}

.data-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.outcomes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outcome-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.outcome-price {
    font-weight: 600;
    color: #3b82f6;
}

/* 市场列表 */
.markets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-item {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
}

.market-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.outcomes-small {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.outcome-item-small {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.market-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

/* Up/Down 按钮 */
.outcome-buttons {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.outcome-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

.outcome-btn:first-child {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.outcome-btn:last-child {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* 标签列表 */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    padding: 4px 12px;
    background: #e0e7ff;
    color: #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.info-note {
    padding: 12px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
}

nav.bottom-tab-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    background: #ffffff !important;
    border-top: 3px solid #3b82f6 !important;
    padding: 10px 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item.active {
    color: #3b82f6;
}

.tab-item span {
    font-size: 11px;
}

.tab-item svg {
    width: 24px;
    height: 24px;
}

/* 通用弹窗样式 */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 10000;
    animation: toastShow 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    text-align: center;
}

.toast-notification.hide {
    animation: toastHide 0.3s ease-out forwards;
}

@keyframes toastShow {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes toastHide {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* AI 事件分析模块样式 */
.ai-analysis-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.ai-analysis-section h3 {
    color: #1e40af;
    font-size: 17px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-analysis-section h3::before {
    content: "✨";
    font-size: 18px;
}

/* AI 加载状态 */
.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
}

.ai-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dbeafe;
    border-top-color: #3b82f6;
}

.ai-loading p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* AI 加载触发器 */
.ai-load-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 12px;
}

.btn-load-ai {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-load-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-load-ai:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-load-ai svg {
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

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

.ai-load-hint {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* AI 新闻部分 */
.ai-news-section {
    margin-bottom: 20px;
    position: relative;
}

.ai-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.ai-news-header:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ai-news-header:active {
    transform: scale(0.98);
}

.ai-news-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.news-main-text {
    font-weight: 600;
    color: #334155;
    font-size: 15px;
}

.news-toggle-hint {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

.ai-news-header .expand-icon {
    transition: transform 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
}

/* 新闻内容区域包装器 */
.ai-news-content-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 400px;
    opacity: 1;
    margin-top: 12px;
}

.ai-news-content-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

/* 新闻内容区域 */
.ai-news-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 美化滚动条 - Webkit 浏览器 (Chrome, Safari, Edge) */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    /* 添加内边距，为滚动条留出空间 */
    padding-right: 8px;
}

/* Webkit 浏览器滚动条样式 */
.ai-news-content::-webkit-scrollbar {
    width: 8px;
}

.ai-news-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ai-news-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ai-news-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 底部渐变提示 - 固定在可视区域底部 */
.ai-news-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.95));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 当内容可滚动但未滚动到底部时显示渐变 */
.ai-news-content-wrapper.has-more::after {
    opacity: 1;
}

/* 新闻项 */
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    transform: translateX(4px);
}

.news-index {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.news-link {
    flex: 1;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #3b82f6;
}

/* AI 评论部分 */
.ai-comment-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.ai-comment-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-comment-section h4::before {
    content: "💡";
    font-size: 16px;
}

.ai-comment-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    padding: 16px;
    background: white;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    margin: 0;
}

/* AI 消息/错误/空状态 */
.ai-message,
.ai-error,
.ai-empty {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.ai-message {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.ai-message p {
    color: #92400e;
    font-size: 14px;
    margin: 0;
}

.ai-error {
    background: #fee2e2;
    border: 1px solid #f87171;
}

.ai-error p {
    color: #991b1b;
    font-size: 14px;
    margin: 0;
}

.ai-empty {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.ai-empty p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* AI 分析标题栏 - 支持折叠/展开 */
.ai-analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-analysis-header h3 {
    flex: 1;
    margin: 0;
}

/* 折叠/展开按钮 */
.btn-toggle-ai-analysis {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
    margin-left: 12px;
}

.btn-toggle-ai-analysis:hover {
    background: #e2e8f0;
    color: #3b82f6;
}

.btn-toggle-ai-analysis:active {
    transform: scale(0.95);
}

.btn-toggle-ai-analysis .toggle-icon {
    transition: transform 0.3s ease;
}

/* 折叠状态 - 按钮旋转180度 */
.btn-toggle-ai-analysis.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* AI 分析内容区 - 支持折叠动画 */
.ai-analysis-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.ai-analysis-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* AI 市场分析触发器 */
.ai-market-analysis-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: 16px;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed #f59e0b;
    border-radius: 8px;
}

/* 查看AI市场分析按钮 */
.btn-load-market-analysis {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-load-market-analysis:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-load-market-analysis:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-load-market-analysis svg {
    flex-shrink: 0;
    animation: chartPulse 2s ease-in-out infinite;
}

@keyframes chartPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.market-analysis-hint {
    color: #92400e;
    font-size: 13px;
    text-align: center;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-analysis-hint::before {
    content: "📊";
    font-size: 14px;
}

/* AI 市场分析内容区 */
.ai-market-analysis-section {
    margin-top: 0;
    padding-top: 0;
}

.ai-market-analysis-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #c2410c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-market-analysis-section h4::before {
    content: "📈";
    font-size: 16px;
}

.ai-market-analysis-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    padding: 16px;
    background: white;
    border-left: 3px solid #f97316;
    border-radius: 6px;
    margin: 0;
}

/* 重试按钮 */
.btn-retry {
    margin-top: 12px;
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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