/* ========================================
   积分商城详情页样式 - 与商品详情页风格统一
   ======================================== */

/* 主体容器样式 */
.body-content-container {
    background-color: #f7f7f7;
    min-height: 100vh;
}

.body-content-formal-container {
    background-color: #f7f7f7;
}

/* 主要内容区域 */
.my-content {
    padding: 20px 0 40px;
}

.integral-detail-page {
    min-height: 500px;
}

/* 面包屑导航 */
.integral-mall-crumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.integral-mall-crumb a {
    color: #666;
    text-decoration: none;
}

.integral-mall-crumb a:hover {
    color: #C9151E;
}

.integral-crumb-sep {
    margin: 0 8px;
    color: #ccc;
}

/* 商品详情卡片 - 类似商品详情页的左右布局 */
.integral-detail-card {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(50, 55, 58, 0.08);
    overflow: hidden;
}

/* 左侧图片区域 */
.integral-detail-gallery {
    width: 100%;
    max-width: 380px;
    min-width: 0;
}

.integral-detail-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integral-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.integral-detail-main-image img:hover {
    transform: scale(1.02);
}

.integral-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.integral-detail-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.integral-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.integral-detail-thumb.active {
    border-color: #C9151E;
}

/* 右侧信息区域 */
.integral-detail-summary {
    width: 100%;
    min-width: 0;
}

/* 标签 */
.integral-detail-tag {
    display: inline-block;
    background: linear-gradient(135deg, #C9151E 0%, #EA6B52 100%);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 标题 */
.integral-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* 高亮区域 - 积分和价格 */
.integral-detail-highlight {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ffe0d6;
}

.integral-detail-integral {
    margin-bottom: 12px;
}

.integral-detail-label {
    font-size: 14px;
    color: #999;
    margin-right: 15px;
}

.integral-detail-current-integral {
    font-size: 28px;
    font-weight: bold;
    color: #C9151E;
}

.integral-detail-unit {
    font-size: 14px;
    color: #C9151E;
    margin-left: 4px;
}

.integral-detail-price {
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.integral-detail-price strong {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

/* 元数据区域 */
.integral-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #fafafa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.integral-detail-meta-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.integral-detail-meta-item span {
    font-size: 13px;
    color: #999;
}

.integral-detail-meta-item strong {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 未登录面板 */
.integral-detail-side-panel {
    background: #fff7e6;
    border: 1px solid #ffe6b3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.integral-login-entry {
    display: inline-block;
    background: #C9151E;
    color: #fff;
    padding: 8px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.integral-login-entry:hover {
    background: #EA6B52;
    color: #fff;
    text-decoration: none;
}

/* 规格选择区域 */
.integral-detail-select {
    margin-bottom: 20px;
}

.integral-detail-select label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.integral-detail-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.integral-spec-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 100px;
    max-width: 100%;
    box-sizing: border-box;
}

.integral-spec-item .spec-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.integral-spec-item .spec-integral {
    font-size: 12px;
    color: #C9151E;
    margin-top: 4px;
}

.integral-spec-item .spec-stock {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.integral-spec-item.active {
    border-color: #C9151E;
    background: #fff5f0;
    box-shadow: 0 0 0 1px #C9151E;
}

.integral-spec-item:hover:not(.active) {
    border-color: #C9151E;
}

/* 数量选择器 */
.integral-exchange-number {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}

.integral-num-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.integral-num-btn:hover {
    background: #e0e0e0;
}

.integral-num-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    padding: 0;
}

.integral-num-input:focus {
    outline: none;
}

/* 合计面板 */
.integral-detail-total-panel {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.integral-detail-total-panel > div:first-child span {
    font-size: 14px;
    color: #666;
}

.integral-detail-total-panel .integral-detail-total {
    font-size: 24px;
    font-weight: bold;
    color: #C9151E;
    margin-left: 10px;
}

.integral-detail-total-user {
    font-size: 14px;
    color: #666;
}

.integral-detail-total-user strong {
    color: #C9151E;
    font-size: 18px;
}

/* 按钮区域 */
.integral-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.integral-detail-exchange-btn {
    background: #C9151E !important;
    border-color: #C9151E !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.integral-detail-exchange-btn:hover {
    background: #EA6B52 !important;
    border-color: #EA6B52 !important;
}

.integral-detail-actions .am-btn-default {
    padding: 12px 25px !important;
    font-size: 16px !important;
    border-color: #ddd !important;
    color: #666 !important;
}

.integral-detail-actions .am-btn-default:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
    color: #333 !important;
}

/* 商品详情内容区域 */
.integral-detail-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(50, 55, 58, 0.08);
}

.integral-detail-content-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.integral-detail-content-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.integral-detail-content-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: #C9151E;
    border-radius: 2px;
}

.integral-detail-content-header span {
    font-size: 12px;
    color: #999;
}

.integral-detail-content-body {
    padding: 30px;
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

.integral-detail-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

/* ========================================
   响应式适配 - 与商品详情页保持一致
   ======================================== */

@media (max-width: 768px) {
    .integral-detail-card {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .integral-detail-gallery {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .integral-detail-summary {
        width: 100%;
    }

    .integral-detail-title {
        font-size: 20px;
    }

    .integral-detail-current-integral {
        font-size: 24px;
    }

    .integral-detail-meta {
        gap: 15px;
    }

    .integral-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

    .integral-detail-actions .am-btn,
    .integral-detail-exchange-btn {
        width: 100%;
        text-align: center;
    }

    .integral-detail-content-header {
        padding: 15px 20px;
    }

    .integral-detail-content-body {
        padding: 20px;
    }

    .integral-detail-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

    .integral-spec-item {
        padding: 8px 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .integral-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .integral-detail-total-panel {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

    .integral-detail-highlight {
        padding: 15px;
    }
}

/* ========================================
   移动端底部导航栏样式 (与商品详情页一致)
   ======================================== */

.mobile-navigation {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    justify-content: space-around;
}

.mobile-navigation li {
    flex: 1;
    text-align: center;
}

.mobile-navigation li a {
    display: block;
    padding: 6px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-navigation li a i {
    font-size: 22px;
    display: block;
}

.mobile-navigation li a p {
    font-size: 11px;
    margin: 4px 0 0;
}

.mobile-navigation li a.active,
.mobile-navigation li a:hover {
    color: #C9151E;
}

@media (max-width: 768px) {
    .mobile-navigation {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

/* ========================================
   未登录状态样式
   ======================================== */

.integral-not-login .integral-detail-exchange-btn {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 规格选择器不可用状态 */
.integral-detail-spec-item.disabled,
.integral-spec-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   加载动画
   ======================================== */

.integral-detail-loading {
    text-align: center;
    padding: 50px;
    color: #999;
}

.integral-detail-loading i {
    font-size: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}