/**
 * 促销信息合并样式
 * 
 * 合并 idc-style.css + idc-responsive.css + idc-compare-bar.css
 * 减少 HTTP 请求次数
 * 
 * @package RiPro_V5_TJ
 * @version 1.0.0
 */

/* ── idc-style.css ── */
/**
 * 服务器促销信息功能样式
 */

/* 促销信息详情页容器 */
.idc-product-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.idc-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.idc-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.idc-breadcrumb a:hover {
    color: var(--primary-color);
}

/* 促销信息头部 */
.idc-product-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.idc-product-icon {
    flex-shrink: 0;
}

.idc-product-main-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.idc-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.idc-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.idc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.idc-meta-item i {
    color: var(--primary-color);
}

/* 价格展示 */
.idc-product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--danger-color);
    margin: 20px 0;
}

.idc-product-price .price-unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

/* 优惠码 */
.idc-promo-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px dashed var(--warning-color);
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    transition: var(--transition);
}

.idc-promo-code:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.idc-promo-code i {
    color: var(--warning-color);
}

/* 评分 */
.idc-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
}

.idc-rating-star {
    color: #fbbf24;
    font-size: 18px;
}

.idc-rating-star.empty {
    color: var(--border-color);
}

.idc-rating-value {
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 促销信息内容 */
.idc-product-content {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.idc-content-section {
    margin-bottom: 30px;
}

.idc-content-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.idc-content-section p {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* 配置表格 */
.idc-config-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.idc-config-table th,
.idc-config-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.idc-config-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.idc-config-table tr:hover {
    background: var(--bg-hover);
}

/* 操作按钮 */
.idc-product-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.idc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.idc-btn-favorite {
    background: var(--bg-primary);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.idc-btn-favorite:hover,
.idc-btn-favorite.active {
    background: var(--danger-color);
    color: white;
}

.idc-btn-compare {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.idc-btn-compare:hover,
.idc-btn-compare.active {
    background: var(--primary-color);
    color: white;
}

.idc-btn-buy {
    background: var(--success-color);
    color: white;
}

.idc-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ── idc-responsive.css ── */
/**
 * 促销信息响应式样式
 */

@media (max-width: 768px) {
    .idc-product-detail-wrapper {
        padding: 10px;
    }

    .idc-product-header {
        flex-direction: column;
        padding: 20px;
    }

    .idc-product-icon {
        align-self: center;
    }

    .idc-product-main-icon {
        width: 100px;
        height: 100px;
    }

    .idc-product-title {
        font-size: 22px;
    }

    .idc-product-price {
        font-size: 26px;
    }

    .idc-product-meta {
        flex-direction: column;
        gap: 10px;
    }

    .idc-product-actions {
        flex-direction: column;
    }

    .idc-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .idc-product-title {
        font-size: 18px;
    }

    .idc-product-price {
        font-size: 22px;
    }

    .idc-promo-code {
        font-size: 15px;
        padding: 10px 15px;
    }

    .idc-content-section h2 {
        font-size: 18px;
    }
}

/* ── idc-compare-bar.css ── */
/**
 * 对比栏样式
 */

/* 对比栏容器 */
.idc-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.idc-compare-bar.active {
    transform: translateY(0);
}

/* 对比栏内容 */
.idc-compare-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.idc-compare-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* 对比产品列表 */
.idc-compare-products {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
}

.idc-compare-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
}

.idc-compare-product img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.idc-compare-product-name {
    font-size: 14px;
    color: var(--text-primary);
}

.idc-compare-product-remove {
    color: var(--danger-color);
    cursor: pointer;
    margin-left: 5px;
}

/* 对比按钮 */
.idc-compare-btn {
    padding: 10px 25px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.idc-compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.idc-compare-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* 关闭按钮 */
.idc-compare-close {
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.idc-compare-close:hover {
    color: var(--danger-color);
}

/* 响应式 */
@media (max-width: 768px) {
    .idc-compare-bar-inner {
        flex-wrap: wrap;
        padding: 10px;
    }

    .idc-compare-products {
        order: 3;
        width: 100%;
    }
}
