/**
 * 高级数据模块样式
 */

/* 价格指数滚动条 */
.price-ticker-wrapper {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #ffd700;
}

.price-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
}

.price-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    color: white;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.price-ticker-item:last-child {
    border-right: none;
}

.price-ticker-name {
    font-weight: 600;
    margin-right: 0.5rem;
}

.price-ticker-value {
    font-size: 1.1rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.price-ticker-change {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.price-ticker:hover {
    animation-play-state: paused;
}

/* VIP标签 */
.vip-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.vip-badge-inline {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0.5rem;
}

/* 限时标签 */
.limited-badge {
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    animation: pulse 1.5s infinite;
}

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

/* 报告卡片 */
.premium-report-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.premium-report-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.premium-report-card.hot {
    border-color: #ff9800;
}

.report-icon-wrapper {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.report-icon-wrapper.blurred {
    filter: blur(3px);
}

.report-icon {
    font-size: 4rem;
    color: white;
}

.report-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.premium-report-card:hover .report-lock-overlay {
    opacity: 1;
}

.report-lock-icon {
    font-size: 2rem;
    color: #ffd700;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

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

/* 价格对比表 */
.price-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.price-comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.price-comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.price-comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.price-comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.price-blur {
    position: relative;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.price-blur::after {
    content: attr(data-blur);
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

.price-unlock-btn {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #8b4513;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.price-unlock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
}

/* 悬浮VIP入口 */
.floating-vip-entry {
    position: fixed;
    right: 20px;
    bottom: 180px;
    z-index: 999;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

.floating-vip-entry:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

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

.vip-entry-icon {
    font-size: 2rem;
    color: #8b4513;
    text-align: center;
    margin-bottom: 0.5rem;
}

.vip-entry-text {
    font-size: 0.85rem;
    color: #8b4513;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
}

.vip-entry-menu {
    position: absolute;
    right: 100%;
    top: 0;
    margin-right: 1rem;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
}

.floating-vip-entry:hover .vip-entry-menu {
    opacity: 1;
    visibility: visible;
}

.vip-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.vip-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.vip-menu-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* 行业指标卡片 */
.indicator-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

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

.indicator-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    filter: blur(3px);
    margin: 1rem 0;
}

.indicator-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.indicator-change.up {
    color: #52c41a;
}

.indicator-change.down {
    color: #ff4d4f;
}

/* 数据更新时间 */
.data-update-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.data-update-time i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

/* 技术资料卡片 */
.technical-doc-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

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

.doc-thumbnail {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.doc-thumbnail.blurred {
    filter: blur(5px);
}

.doc-thumbnail::after {
    content: '🔒';
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.technical-doc-card:hover .doc-thumbnail::after {
    opacity: 0.8;
}

/* 社会证明标签 */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.social-proof i {
    color: var(--primary-color);
}

/* 用户活动动态卡片 */
.user-activity-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.activity-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

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

.activity-item:hover {
    background: var(--bg-light);
}

.activity-item-small {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* 采购记录 */
.purchase-record-item {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.purchase-record-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

/* 底价查询提示卡 */
.price-alert-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe5a1 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

/* 隐藏联系方式样式 */
.contact-hidden .text-muted {
    filter: blur(3px);
    user-select: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .price-ticker-item {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
    
    .floating-vip-entry {
        right: 10px;
        bottom: 160px;
        padding: 0.75rem;
    }
    
    .vip-entry-icon {
        font-size: 1.5rem;
    }
    
    .vip-entry-menu {
        display: none;
    }
    
    .premium-report-card {
        padding: 1rem;
    }
    
    .report-icon-wrapper {
        height: 120px;
    }
    
    .report-icon {
        font-size: 3rem;
    }
    
    .price-alert-card {
        padding: 1.5rem;
    }
    
    .price-alert-card .text-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .price-alert-card .btn-lg {
        width: 100%;
    }
}

/* 企业工商信息模块 */
.company-business-info {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.business-info-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.business-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.business-tab:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.business-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.business-info-section {
    display: none;
    animation: fadeIn 0.3s;
}

.business-info-section.active {
    display: block;
}

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

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* 模糊内容包装器 */
.business-blur-wrapper {
    position: relative;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.business-blur-img {
    width: 100%;
    height: auto;
    filter: blur(8px);
}

.business-blur-placeholder {
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模糊表格 */
.blur-table {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.blur-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #dee2e6;
    min-height: 45px;
}

.blur-row:last-child {
    border-bottom: none;
}

.blur-row:first-child {
    background: #e9ecef;
    font-weight: 600;
}

.blur-cell {
    flex: 1;
    padding: 1rem;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    word-break: break-word;
    min-width: 0; /* 防止flex子项溢出 */
}

.blur-cell:last-child {
    border-right: none;
}

.blur-content .blur-cell {
    filter: blur(5px);
    user-select: none;
    color: #adb5bd;
}

/* 变更信息表格（4列）特殊处理 */
#changes .blur-row {
    font-size: 0.9rem;
}

#changes .blur-cell {
    padding: 0.75rem 0.5rem;
}

/* 确保所有列等宽 */
.blur-row .blur-cell {
    flex-basis: 0;
    flex-grow: 1;
}

/* 解锁遮罩层 */
.business-unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.business-unlock-overlay .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.business-unlock-overlay .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.6);
}

/* 响应式 - 工商信息 */
@media (max-width: 768px) {
    .business-info-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .business-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .company-business-info {
        padding: 1rem;
    }
    
    .business-blur-wrapper {
        min-height: 250px;
    }
    
    .business-blur-placeholder {
        padding: 1rem;
    }
    
    .blur-table {
        font-size: 0.85rem;
    }
    
    .blur-row {
        min-height: 40px;
        flex-wrap: nowrap; /* 确保不换行 */
    }
    
    .blur-cell {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* 变更信息（4列）在小屏幕上进一步缩小 */
    #changes .blur-cell {
        padding: 0.4rem 0.15rem;
        font-size: 0.7rem;
    }
    
    .business-unlock-overlay .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .business-unlock-overlay p {
        font-size: 0.85rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .blur-table {
        font-size: 0.75rem;
    }
    
    .blur-cell {
        padding: 0.4rem 0.15rem !important;
        font-size: 0.7rem !important;
    }
    
    #changes .blur-cell {
        padding: 0.3rem 0.1rem !important;
        font-size: 0.65rem !important;
    }
    
    .business-unlock-overlay .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

