/* 
 * 第四行：一行两列科技股市布局
 * 科技前沿 + 股市行情
 * 作者：欧秘 (西北狼·狼眼世界 CTO)
 * 创建时间：2026-04-12
 */

/* 第四行容器 */
.fourth-row-tech-stocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f9f7ff 0%, #f0edff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e1ff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fourth-row-tech-stocks {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

/* 栏目通用样式 */
.tech-stocks-column {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0edff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-stocks-column:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* 科技前沿栏目 */
.tech-column {
    border-top: 4px solid #9b59b6;
}

.tech-column .column-title {
    color: #8e44ad;
}

.tech-column .column-title i {
    color: #9b59b6;
}

/* 股市行情栏目 */
.stocks-column {
    border-top: 4px solid #27ae60;
}

.stocks-column .column-title {
    color: #229954;
}

.stocks-column .column-title i {
    color: #27ae60;
}

/* 栏目标题 */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f9f7ff;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.column-title i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, currentColor, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 查看全部链接 */
.view-all {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    background: #9b59b6;
    color: white;
    transform: translateX(5px);
}

.stocks-column .view-all:hover {
    background: #27ae60;
}

/* 科技新闻列表 */
.tech-news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 限制科技前沿最多显示4条内容 */
.tech-news-item:nth-child(n+5) {
    display: none;
}

/* 科技新闻项 */
.tech-news-item {
    background: #faf9ff;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #9b59b6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-news-item:hover {
    background: #f5f3ff;
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.15);
}

/* 科技新闻标题 */
.tech-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-news-title:hover {
    color: #9b59b6;
}

/* 科技新闻元数据 */
.tech-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.tech-source {
    background: #f3e6f8;
    color: #8e44ad;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.tech-time {
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tech-time::before {
    content: "🕒";
    font-size: 0.9rem;
}

.tech-importance {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* 科技新闻摘要 */
.tech-news-excerpt {
    font-size: 0.95rem;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 科技标签 */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background: #f3e6f8;
    color: #9b59b6;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #9b59b6;
    color: white;
    transform: scale(1.05);
}

/* 股市行情内容 */
.market-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 市场状态 */
.market-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse 2s infinite;
}

.status-indicator.closed {
    background: #e74c3c;
    animation: none;
}

.status-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* 市场指数 */
.market-indices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f0f9f0;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    transition: all 0.3s ease;
}

.index-item:hover {
    background: #e8f6e8;
    transform: translateX(5px);
}

.index-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

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

.index-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.positive {
    background: #d5f4e6;
    color: #27ae60;
}

.negative {
    background: #fdeaea;
    color: #e74c3c;
}

/* 市场摘要 */
.market-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.summary-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

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

/* 热门板块 */
.hot-sectors {
    margin-top: 20px;
}

.sectors-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sector-item {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sector-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* 空状态 */
.empty-tech {
    text-align: center;
    padding: 40px 20px;
    color: #bdc3c7;
}

.empty-stocks {
    text-align: center;
    padding: 40px 20px;
    color: #bdc3c7;
}

/* 加载状态 */
.loading-tech {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-stocks {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .fourth-row-tech-stocks {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-color: #0f3460;
    }
    
    .tech-stocks-column {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .column-title {
        color: #e2e8f0;
    }
    
    .tech-news-item {
        background: #4a5568;
    }
    
    .tech-news-title {
        color: #e2e8f0;
    }
    
    .tech-news-excerpt {
        color: #cbd5e0;
    }
    
    .index-item {
        background: #4a5568;
    }
    
    .index-name, .index-value {
        color: #e2e8f0;
    }
    
    .summary-item {
        background: #4a5568;
    }
    
    .summary-value {
        color: #e2e8f0;
    }
}

/* 动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-news-item {
    animation: slideInRight 0.5s ease forwards;
}

.index-item {
    animation: slideInRight 0.5s ease forwards;
}

.tech-news-item:nth-child(1) { animation-delay: 0.1s; }
.tech-news-item:nth-child(2) { animation-delay: 0.2s; }
.tech-news-item:nth-child(3) { animation-delay: 0.3s; }

.index-item:nth-child(1) { animation-delay: 0.1s; }
.index-item:nth-child(2) { animation-delay: 0.2s; }
.index-item:nth-child(3) { animation-delay: 0.3s; }