/* ========================================
   产品详情页样式
======================================== */

/* 导航标签激活状态 - 期货 */
.nav-tab.active.futures {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 导航标签激活状态 - B圈 */
.nav-tab.active.crypto {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

/* 标题颜色变体 */
.section-title.futures-title {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.crypto-title {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 核心亮点区块 */
.highlights-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 亮点卡片 */
.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.highlight-card.futures:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.highlight-card.crypto:hover {
    border-color: var(--success-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.highlight-icon.stock {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

.highlight-icon.futures {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}

.highlight-icon.crypto {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

.highlight-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* 功能详情区块 */
.features-detail-section {
    padding: 5rem 0;
}

.feature-block {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-content {
    padding-right: 2rem;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-tag.stock {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

.feature-tag.futures {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-color);
}

.feature-tag.crypto {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list.futures li i {
    color: var(--accent-color);
}

.feature-list.crypto li i {
    color: var(--success-color);
}

/* 功能展示盒子 */
.feature-showcase {
    padding: 1rem;
}

.showcase-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.showcase-box.futures {
    border-color: rgba(255, 215, 0, 0.3);
}

.showcase-box.crypto {
    border-color: rgba(0, 255, 136, 0.3);
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.showcase-header i {
    color: var(--primary-color);
}

.showcase-box.futures .showcase-header i {
    color: var(--accent-color);
}

.showcase-box.crypto .showcase-header i {
    color: var(--success-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-dot.offline {
    background: var(--text-muted);
}

/* 交易列表 */
.showcase-content {
    padding: 1rem 1.5rem;
}

.trade-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.trade-item:last-child {
    border-bottom: none;
}

.trade-time {
    color: var(--text-muted);
    font-family: monospace;
}

.trade-action {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trade-action.buy {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

.trade-action.sell {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

.trade-stock {
    flex: 1;
}

.trade-status {
    font-size: 0.8rem;
}

.trade-status.success {
    color: var(--success-color);
}

.trade-status.pending {
    color: var(--accent-color);
}

/* AI聊天展示 */
.showcase-box.ai-chat .showcase-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
}

.chat-content {
    padding: 1rem 1.5rem;
}

.chat-message {
    margin-bottom: 1rem;
}

.chat-message.user p {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 12px 0;
    display: inline-block;
    margin: 0;
}

.chat-message.ai p {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 12px 12px 0 12px;
    margin: 0 0 0.5rem 0;
}

.code-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.code-preview code {
    display: block;
    color: var(--primary-color);
    line-height: 1.6;
}

/* 回测统计 */
.showcase-box.backtest .showcase-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
}

.backtest-stats {
    padding: 1rem 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    font-weight: 600;
}

.stat-value.up {
    color: #ff4d4f;
}

/* 策略商城展示 */
.showcase-box.strategy-market .showcase-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
}

.strategy-list {
    padding: 1rem 1.5rem;
}

.strategy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.strategy-item:last-child {
    border-bottom: none;
}

.strategy-name {
    font-weight: 500;
}

.strategy-return {
    font-weight: 600;
}

.strategy-return.up {
    color: #ff4d4f;
}

/* 策略标签（小） */
.strategy-tag-small {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
}

/* 系统状态展示 */
.showcase-box.system-status .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.showcase-box.system-status .showcase-header i {
    color: var(--success-color);
}

.status-content {
    padding: 1rem 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-item:last-child {
    border-bottom: none;
}

.status-name {
    flex: 1;
}

.status-text {
    color: var(--success-color);
    font-weight: 500;
}

/* 消息通知展示 */
.showcase-box.notify .showcase-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
}

.notify-channels {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
}

.channel-item i {
    color: var(--primary-color);
}

.notify-preview {
    padding: 1rem 1.5rem;
}

.notify-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* 更多功能区块 */
.more-features-section {
    padding: 5rem 0;
}

.more-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.more-feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.more-feature-card.futures:hover {
    border-color: var(--accent-color);
}

.more-feature-card.crypto:hover {
    border-color: var(--success-color);
}

.more-feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.more-feature-card.futures i {
    color: var(--accent-color);
}

.more-feature-card.crypto i {
    color: var(--success-color);
}

.more-feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.more-feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* CTA区块变体 */
.cta-box.stock,
.cta-box.futures,
.cta-box.crypto {
    padding: 2.5rem 3rem;
    border-radius: 16px;
    border: 1px solid;
}

.cta-box.stock {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 136, 255, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.cta-box.futures {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(200, 170, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.cta-box.crypto {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
    border-color: rgba(0, 255, 136, 0.3);
}

/* 期货特有样式 */
.showcase-box.futures.arbitrage .showcase-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(200, 170, 0, 0.1) 100%);
}

.arbitrage-content {
    padding: 1.5rem;
}

.arbitrage-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pair-item {
    text-align: center;
}

.pair-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.pair-price {
    font-size: 1.3rem;
    font-weight: 600;
}

.pair-spread {
    text-align: center;
}

.spread-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spread-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.spread-value.up {
    color: #ff4d4f;
}

.arbitrage-status {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.status-text {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* 品种网格 */
.showcase-box.futures.varieties .showcase-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(200, 170, 0, 0.1) 100%);
}

.varieties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}

.variety-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.variety-name {
    font-size: 0.9rem;
}

.variety-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.variety-change.up {
    color: #ff4d4f;
}

.variety-change.down {
    color: var(--success-color);
}

/* 风控展示 */
.showcase-box.futures.risk .showcase-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(200, 170, 0, 0.1) 100%);
}

.risk-content {
    padding: 1rem 1.5rem;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.risk-item:last-child {
    border-bottom: none;
}

.risk-label {
    width: 80px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.risk-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.risk-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
}

.risk-value {
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.risk-value.up {
    color: #ff4d4f;
}

.risk-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.risk-status.normal {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
}

/* B圈特有样式 */
.showcase-box.crypto.grid .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.grid-content {
    padding: 1.5rem;
}

.grid-visual {
    position: relative;
    height: 150px;
    margin-bottom: 1rem;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 255, 136, 0.2);
}

.grid-line span {
    position: absolute;
    right: 0;
    top: -10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.grid-line.current {
    background: var(--success-color);
}

.price-marker {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--success-color);
}

.grid-stats {
    display: flex;
    justify-content: space-between;
}

.grid-stat {
    text-align: center;
}

.grid-stat .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.grid-stat .value {
    font-weight: 600;
}

.grid-stat .value.up {
    color: var(--success-color);
}

/* 跨所套利 */
.showcase-box.crypto.arbitrage .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.crypto-arbitrage-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.exchange-price {
    text-align: center;
}

.exchange-name {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.exchange-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.spread-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.spread-indicator i {
    color: var(--success-color);
}

/* 交易所列表 */
.showcase-box.crypto.exchanges .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.exchanges-list {
    padding: 1rem 1.5rem;
}

.exchange-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.exchange-item:last-child {
    border-bottom: none;
}

.exchange-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.exchange-item .exchange-name {
    flex: 1;
    display: block;
    margin: 0;
    color: var(--text-primary);
}

.exchange-status {
    font-size: 0.85rem;
}

.exchange-status.online {
    color: var(--success-color);
}

.exchange-status.offline {
    color: var(--text-muted);
}

/* 趋势展示 */
.showcase-box.crypto.trend .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.trend-content {
    padding: 1.5rem;
}

.trend-chart {
    position: relative;
    height: 100px;
    margin-bottom: 1rem;
}

.trend-line {
    width: 100%;
    height: 100%;
}

.trend-signal {
    position: absolute;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-signal.buy {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.trend-signal.hold {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
}

.trend-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
}

.trend-label {
    color: var(--text-muted);
}

.trend-value {
    font-weight: 600;
}

.trend-value.up {
    color: var(--success-color);
}

/* 资产展示 */
.showcase-box.crypto.assets .showcase-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.1) 100%);
}

.assets-content {
    padding: 1.5rem;
}

.total-assets {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.assets-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.assets-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.assets-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.assets-change.up {
    color: var(--success-color);
}

.assets-distribution {
    display: flex;
    justify-content: space-around;
}

.asset-item {
    text-align: center;
}

.asset-name {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.asset-percent {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-color);
}

/* 响应式 */
@media (max-width: 991px) {
    .feature-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-content h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .highlights-section,
    .features-detail-section,
    .more-features-section {
        padding: 3rem 0;
    }
    
    .feature-block {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .highlight-card {
        padding: 1.5rem;
    }
    
    .notify-channels {
        flex-wrap: wrap;
    }
    
    .varieties-grid {
        grid-template-columns: 1fr;
    }
    
    .crypto-arbitrage-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .assets-distribution {
        flex-direction: column;
        gap: 1rem;
    }
}
