/* 狐蒂云主题 - 产品选购页样式 */

/* 主题色变量 - 橙色主题 */
:root {
    --hdy-primary-color: #ff6a00;
    --hdy-primary-hover: #e55a00;
    --hdy-primary-light: rgba(255, 106, 0, 0.08);
    --hdy-price-color: #ff6a00;
}

/* 页面顶部 */
.hdy-page-header {
    background: #f5f6f7;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.page-header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.back-link {
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--hdy-primary-color);
}

.page-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 1px solid #ddd;
}

.page-desc {
    color: #ff4300;
    font-size: 12px;
    flex: 1;
    line-height: 1.6;
}

/* 主内容区域 */
.hdy-main {
    padding: 30px 0;
}

.main-layout {
    display: flex;
    gap: 24px;
}

/* 左侧区域筛选 */
.left-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.left-sidebar .search-box {
    position: relative;
    margin-bottom: 16px;
}

.left-sidebar .search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

.left-sidebar .search-input:focus {
    border-color: #1890ff;
    outline: none;
}

.left-sidebar .search-input::placeholder {
    color: #999;
}

.left-sidebar .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('/web/hudiyun/img/icon-search.png') center / contain no-repeat;
}

/* 区域菜单 */
.area-menu {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.area-group {
    border-bottom: 1px solid #e8e8e8;
}

.area-group:last-child {
    border-bottom: none;
}

.area-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1890ff;
    transition: background 0.3s;
}

.area-title:hover {
    background: #fafafa;
}

.area-title .arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: transform 0.3s;
}

.area-title .arrow.down {
    border-top: 5px solid #1890ff;
}

.area-title .arrow.up {
    border-bottom: 5px solid #1890ff;
}

.area-list {
    padding: 4px 0;
    background: #fff;
}

.area-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.area-item:hover {
    color: #1890ff;
    background: #f5f7fa;
}

.area-item.active {
    color: #1890ff;
    background: #e6f7ff;
    border-left-color: #1890ff;
}

.area-item .tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: middle;
}

.area-item .tag.new {
    background: #ff9800;
    color: #fff;
}

/* 右侧产品列表 */
.right-content {
    flex: 1;
    min-width: 0;
}

/* 登录提示 */
.login-tip {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #333;
}

.tip-icon {
    width: 18px;
    height: 18px;
    background: #1890ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: normal;
    margin-right: 8px;
    flex-shrink: 0;
}

.login-link {
    color: var(--hdy-primary-color);
    margin: 0 4px;
    font-weight: 500;
}

.login-tip .tip-arrow {
    color: var(--hdy-primary-color);
    font-style: normal;
    margin-right: 4px;
}

/* 产品卡片列表 - 横向 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.product-card-h {
    width: calc(33.333% - 11px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card-h:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--hdy-primary-color);
    transform: translateY(-2px);
}

.product-card-h .card-header {
    padding: 14px 16px;
    background: #f5f7fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.product-card-h .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-card-h .card-body {
    padding: 16px;
    min-height: 200px;
}

/* 产品描述样式 */
.product-card-h .product-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
}

/* 产品配置信息样式 */
.product-card-h .card-body .product-description {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.product-card-h .card-body .product-description p {
    margin: 0 0 4px 0;
}

.product-card-h .card-body .product-description p:first-child {
    color: var(--hdy-primary-color) !important;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 配置项样式 */
.config-item {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.6;
    padding: 4px 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.config-item:hover {
    background: linear-gradient(90deg, #1890ff 0%, #40a9ff 100%);
    color: #fff;
}

.config-item:hover .config-label,
.config-item:hover .config-value,
.config-item:hover .highlight,
.config-item:hover .label,
.config-item:hover .value,
.config-item:hover .note {
    color: #fff !important;
}

.config-item .config-label,
.config-item .label {
    color: #333;
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.config-item .config-value,
.config-item .value {
    color: #666;
}

.config-item .config-value .highlight,
.config-item .value.highlight,
.config-item .highlight {
    color: #1890ff;
}

.config-item .note {
    color: #999;
    margin-left: 4px;
}

/* 处理描述中的颜色标签 */
.product-card-h .card-body font[color] {
    font-size: 12px;
}

/* 塥套的 product-card-body 样式重置 */
.product-card-h .card-body .product-card-body {
    padding: 0;
    margin: 0;
}

.product-card-h .card-body .product-card-body .product-description {
    padding: 0;
    margin: 0;
}

/* 无商品提示 */
.no-product-tip {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    background: #fff;
    border-radius: 8px;
    width: 100%;
}

.no-product-tip p {
    margin: 0;
    font-size: 14px;
}

.product-card-h .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.product-card-h .price {
    color: var(--hdy-price-color);
    display: flex;
    align-items: baseline;
}

.product-card-h .price .symbol {
    font-size: 14px;
}

.product-card-h .price .amount {
    font-size: 26px;
    font-weight: 700;
}

.product-card-h .price .unit {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}

.buy-btn {
    display: inline-block;
    padding: 8px 32px;
    background: #1890ff;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.buy-btn:hover {
    background: #40a9ff;
    color: #fff;
}

/* 禁止声明 */
.right-content .notice-box {
    margin-top: 24px;
    padding: 12px 16px;
    background: #fff9f5;
    border: 1px solid #ffe0cc;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-box .notice-icon {
    width: 18px;
    height: 18px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: normal;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.notice-box .notice-content {
    font-size: 12px;
    color: #ff4d4f;
    line-height: 1.8;
}

.notice-box .notice-content strong {
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 1200px) {
    .product-card-h {
        width: calc(50% - 10px);
    }
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
    }
    
    .area-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .area-group {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .product-card-h {
        width: 100%;
    }
}
