/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

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

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

.stats-cards {
    display: flex;
    gap: 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 1.5s; }
.floating-element:nth-child(3) { animation-delay: 3s; }
.floating-element:nth-child(4) { animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 导航样式 */
.nav {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 一级导航：板块切换 */
.board-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.board-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.board-btn:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

/* 二级导航：Competitor Study 子模块 */
#competitorNav {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 6px 0 8px;
    margin: 0;
    background: #f8f9fa;
}

#competitorNav li {
    margin: 0 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

/* 搜索区域 */
.search-section {
    margin: 3rem 0;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e1e5e9;
}

.search-icon {
    font-size: 1.2rem;
    padding: 0 1rem;
    color: #666;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 内容区域 */
.content-section {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: left;
    justify-content: center;
}

.section-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 2s infinite;
}

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

.content-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-desc {
    color: #888;
    margin: 0;
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 卡片样式 */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

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

.content-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.content-card:hover::after {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.content-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.content-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.card-date {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.card-type {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-summary {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-tags {
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
    color: #2c5aa0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
}

/* 搜索结果 */
#searchResults {
    margin-top: 2rem;
}

.search-result-header {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 2rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-cards {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 100px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 1rem;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

/* 隐藏元素 */
.hidden {
    display: none;
}
/* 实时资讯样式 */
.manage-sources-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.manage-sources-btn:hover {
    transform: translateY(-2px);
}

.news-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn.active, .filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

/* 紧凑单行资讯样式 */
.news-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
    font-size: 14px;
    line-height: 1.4;
}

.news-row:first-child {
    border-radius: 10px 10px 0 0;
}

.news-row:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
}

.news-row:hover {
    background: #f8f9ff;
}

.news-row-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    width: 78px;
    font-variant-numeric: tabular-nums;
}

.news-row .platform-tag {
    flex-shrink: 0;
    font-size: 11px;
    padding: 1px 7px;
    min-width: 52px;
    text-align: center;
}

.news-row .dimension-tag {
    flex-shrink: 0;
    font-size: 11px;
    padding: 1px 6px;
    white-space: nowrap;
}

.news-row-title {
    flex: 1;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-row-title:hover {
    color: #667eea;
}

.news-row-source {
    flex-shrink: 0;
    font-size: 11px;
    color: #aaa;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .news-row {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 8px 10px;
    }
    .news-row-title {
        width: 100%;
        order: 10;
        white-space: normal;
    }
    .news-row-source {
        display: none;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.add-source-form {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.add-source-form h4 {
    margin-bottom: 15px;
    color: #333;
}

.add-source-form input, .add-source-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.add-source-form button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.sources-list h4 {
    margin-bottom: 15px;
    color: #333;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.source-info {
    flex: 1;
}

.source-name {
    font-weight: 500;
    color: #333;
}

.source-url {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.source-type {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #1976d2;
    margin-left: 10px;
}

.delete-source {
    background: #ff4757;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* 平台标签样式 */
.platform-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-left: 8px;
}

.platform-temu {
    background: #ff6b35;
}

.platform-shein {
    background: #000000;
}

.platform-tiktok {
    background: #ff0050;
}

.platform-joybuy {
    background: #e60012;
}

.platform-aliexpress {
    background: #e43225;
    background: linear-gradient(135deg, #e43225, #ff6a00);
}

/* 资讯过滤器增强样式 */
.filter-divider {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 10px;
}

/* 资讯源管理样式增强 */
.source-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-source-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    background: white;
}

.add-source-form select:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.1);
}

/* 实时更新指示器 */
.news-item.new-update {
    border-left-color: #28a745;
    animation: newItemPulse 2s ease-in-out;
}

@keyframes newItemPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .news-filters {
        justify-content: center;
    }
    
    .filter-divider {
        display: none;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news-time {
        margin-left: 0;
    }
    
    .platform-tag {
        margin-left: 0;
    }
}
/* 更新通知样式 */
.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.notification-icon {
    font-size: 18px;
    animation: bounce 1s infinite;
}

.notification-content button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.notification-content button:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* 自动刷新控制按钮 */
.refresh-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.refresh-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.refresh-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.refresh-status {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
/* 时间过滤器样式 */
.time-filter {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-filter:hover {
    border-color: #ff9500;
}

.time-filter:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.1);
}

/* 资讯统计样式 */
.news-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.news-stats span:nth-child(2) {
    color: #ddd;
}


/* 内网访问标识 */
.internal-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 竞对对比仪表盘 */
.dashboard-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    font-size: 14px;
}

.dashboard-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.dashboard-table thead th {
    color: white;
    padding: 16px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.dashboard-table thead th:first-child {
    text-align: left;
    min-width: 130px;
}

.dashboard-table thead th .platform-tag {
    font-size: 13px;
    padding: 4px 12px;
}

.dashboard-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.dashboard-table tbody tr:hover {
    background: #f8f9ff;
}

.dashboard-table tbody tr:last-child {
    border-bottom: none;
}

.dashboard-table tbody td {
    padding: 14px;
    color: #444;
    line-height: 1.5;
    vertical-align: top;
}

.dashboard-table tbody td:not(:first-child) {
    text-align: center;
    font-size: 13px;
}

.dimension-cell {
    font-weight: 600;
    color: #2c3e50;
    background: #fafbfc;
    white-space: nowrap;
}

.dashboard-note {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .dashboard-table {
        font-size: 12px;
    }
    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding: 10px 8px;
    }
    .dimension-cell {
        white-space: normal;
    }
}


/* 资讯加载状态 */
.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}


/* 维度标签 */
.dimension-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    margin-left: 6px;
    white-space: nowrap;
}


/* 板块切换器 */
.board-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 6px;
}

.board-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.board-btn:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
}

#competitorNav {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 8px 0;
}

/* VOS From Social Media 样式 */
.vos-header {
    text-align: center;
    padding: 30px 20px 10px;
}

.vos-header h2 {
    font-size: 24px;
    color: #232f3e;
    margin-bottom: 8px;
}

.vos-header-desc {
    font-size: 13px;
    color: #888;
}

.vos-meta {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.vos-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.verify-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.verify-official {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.vos-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 0 20px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #ff9900;
}

.vos-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.vos-rank {
    background: linear-gradient(135deg, #232f3e, #ff9900);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.vos-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.vos-title {
    font-size: 17px;
    color: #232f3e;
    margin-bottom: 10px;
    line-height: 1.5;
}

.vos-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.vos-voices {
    background: #f8f9fa;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.vos-voices h4 {
    font-size: 14px;
    color: #232f3e;
    margin-bottom: 8px;
}

.vos-voices ul {
    list-style: none;
    padding: 0;
}

.vos-voices li {
    font-size: 13px;
    color: #444;
    margin: 6px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.vos-voices li::before {
    content: '"';
    position: absolute;
    left: 0;
    color: #ff9900;
    font-weight: bold;
}

.voice-source {
    font-weight: 600;
    color: #232f3e;
}

.vos-compare {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.vos-compare th {
    background: #232f3e;
    color: white;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
}

.vos-compare td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
}

.vos-compare tr:nth-child(even) {
    background: #f8f9fa;
}

.vos-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vos-link {
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.vos-link:hover {
    color: #ff9900;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .board-switcher {
        flex-direction: column;
        align-items: center;
    }
    .vos-card {
        padding: 16px;
    }
    .vos-compare {
        font-size: 12px;
    }
}


/* VOS 目录 */
.vos-toc {
    background: #f8f9fa;
    margin: 0 20px 24px;
    padding: 20px 24px;
    border-radius: 10px;
    border-bottom: 1px solid #eee;
}

.vos-toc h3 {
    font-size: 16px;
    color: #232f3e;
    margin-bottom: 12px;
}

.vos-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
}

.vos-toc li {
    counter-increment: toc-counter;
    margin: 8px 0;
}

.vos-toc li::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: #ff9900;
}

.vos-toc a {
    color: #007185;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
}

.vos-toc a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* VOS 卡片内部 */
.vos-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
}

.vos-compare-wrap {
    margin-bottom: 16px;
}

.vos-compare-wrap h4,
.vos-voices h4,
.vos-links h4 {
    font-size: 14px;
    color: #232f3e;
    margin-bottom: 10px;
}

.compare-dim {
    font-weight: 600;
    color: #232f3e;
    background: #f8f9fa;
}

.compare-after {
    color: #c0392b;
    font-weight: 500;
}

.vos-links {
    margin-top: 12px;
}

.vos-links a {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #007185;
    text-decoration: none;
}

.vos-links a:hover {
    color: #ff9900;
    text-decoration: underline;
}


/* 运费图表 */
.freight-charts {
    padding: 0 20px;
}

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

.chart-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chart-box canvas {
    min-height: 280px;
}

.chart-box h4 {
    font-size: 15px;
    color: #232f3e;
    margin-bottom: 12px;
}

.chart-note-box p {
    font-size: 13px;
    color: #666;
    margin: 6px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .chart-row {
        grid-template-columns: 1fr;
    }
}


/* PN15 税率摘要 */
.pn15-tax-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.tax-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid #ff9900;
}

.tax-box h4 {
    font-size: 15px;
    color: #232f3e;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .pn15-tax-summary {
        grid-template-columns: 1fr;
    }
}


/* VOS 引擎标签 */
.engine-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1565c0;
    margin-left: 6px;
    white-space: nowrap;
}

.vos-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.vos-topic-filters .filter-btn {
    font-size: 12px;
    padding: 4px 12px;
}


/* 提交文章 */
.submit-article-btn {
    background: #34a853;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
    transition: background 0.2s;
}

.submit-article-btn:hover {
    background: #2e7d32;
}

.submit-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submit-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.submit-input:focus {
    outline: none;
    border-color: #34a853;
}

.submit-btn {
    background: #34a853;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #2e7d32;
}

.submit-toggle-btn {
    background: #fff;
    color: #34a853;
    border: 1.5px solid #34a853;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.submit-toggle-btn:hover {
    background: #34a853;
    color: #fff;
}


/* VOS 筛选行 */
.vos-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* VOS 目录列头 */
.vos-toc-header {
    display: flex;
    padding: 6px 8px 6px 32px;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}
.toc-col-date { width: 90px; flex-shrink: 0; }
.toc-col-topic { flex: 1; }
.toc-col-tag { width: 70px; flex-shrink: 0; text-align: right; }

/* VOS 目录日期 */
.toc-date {
    display: inline-block;
    font-size: 12px;
    color: #999;
    width: 80px;
    font-variant-numeric: tabular-nums;
}

.toc-tag {
    float: right;
    font-size: 11px;
    color: #888;
    margin-left: 8px;
}


/* 确认度标签 */
.confirm-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #fff3e0;
    color: #e65100;
    margin-left: 6px;
}

/* ==================== VOS AI Insights Styles ==================== */

/* AI Disclaimer Banner */
.vos-disclaimer {
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 0 20px 16px;
    font-size: 13px;
    color: #e65100;
    line-height: 1.6;
    display: none;
}

/* AI Generated Badge */
.ai-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    color: #283593;
    margin-left: 6px;
    white-space: nowrap;
}

/* Layer Badges */
.layer-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
}

.layer-policy_impact {
    background: #e3f2fd;
    color: #1565c0;
}

.layer-macro_event {
    background: #e8f5e9;
    color: #2e7d32;
}

.layer-emerging_unknown {
    background: #fce4ec;
    color: #c62828;
}

/* Layer Filter Buttons */
.vos-layer-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.vos-layer-filters .filter-btn {
    font-size: 12px;
    padding: 4px 12px;
}

/* Sentiment Indicators */
.sentiment-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}

.sentiment-negative { background: #e53935; }
.sentiment-neutral { background: #9e9e9e; }
.sentiment-positive { background: #43a047; }

/* Alert Level Borders */
.vos-alert-critical {
    border-left: 5px solid #e53935 !important;
}

.vos-alert-high {
    border-left: 5px solid #ff9800 !important;
}

.alert-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    white-space: nowrap;
}

.alert-critical {
    background: #ffebee;
    color: #c62828;
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Source Badge */
.source-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    white-space: nowrap;
    background: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}

/* Confirmation Badge */
.confirm-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #fff3e0;
    color: #e65100;
    margin-left: 6px;
    white-space: nowrap;
}

/* Blind Spot Badge */
.blindspot-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #fce4ec;
    color: #c62828;
    margin-left: 6px;
    white-space: nowrap;
}

/* Unverified Badge */
.unverified-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: #fff3e0;
    color: #e65100;
    margin-left: 6px;
    white-space: nowrap;
}

/* Intelligence Briefing Card */
.vos-briefing-card {
    border: 2px solid #1565c0;
    background: linear-gradient(to bottom, #e3f2fd 0%, white 60px);
}

.briefing-header {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 700;
    margin: -20px -20px 16px;
}

/* Pain Points */
.vos-painpoints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.painpoint-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Source Breakdown (Collapsible) */
.source-breakdown {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}

.source-breakdown-toggle {
    cursor: pointer;
    font-size: 14px;
    color: #1565c0;
    margin: 0;
    user-select: none;
}

.source-breakdown-toggle:hover {
    color: #0d47a1;
}

.source-breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.source-breakdown.expanded .source-breakdown-list {
    max-height: 500px;
    margin-top: 10px;
}

.source-breakdown-list li {
    font-size: 13px;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.source-breakdown-list li:last-child {
    border-bottom: none;
}

/* Seller Consensus */
.seller-consensus {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 13px;
    color: #2e7d32;
    line-height: 1.5;
}

/* Link without URL */
.link-no-url {
    display: inline-block;
    margin-right: 16px;
    font-size: 13px;
    color: #999;
}
