/* Products 详情页面样式优化 */

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4f46e5;
}

.breadcrumb span:not(.current) {
    color: #d1d5db;
}

.breadcrumb .current {
    color: #1f2937;
    font-weight: 500;
}

/* 页面标题 */
.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 运营商徽章 */
.operator {
    margin: 12px 0 20px 0;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
}

/* 顶部布局 */
.detail-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-top > div:first-child {
    display: flex;
    align-items: flex-start;
}

.detail-top img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    padding: 20px 25px;
    border-bottom: 2px solid #e5e7eb;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* 列表组样式 */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #f9fafb;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item .text-muted {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.list-group-item .text-dark {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
}

.list-group-item .fw-bold {
    font-weight: 700;
    color: #ef4444;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* 链接样式 */
.text-warning {
    color: #f59e0b;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.85rem;
}

.text-warning:hover {
    color: #d97706;
    text-decoration: underline;
}

/* 行和列布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-12 {
    width: 100%;
    padding: 0 15px;
}

.col-10 {
    width: 100%;
    padding: 0 15px;
}

.g-4 {
    gap: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* 描述列表 */
dl.row {
    margin: 0;
}

dt {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

dt:first-child {
    margin-top: 0;
}

dd {
    color: #4b5563;
    line-height: 1.8;
    margin-left: 0;
    margin-bottom: 15px;
}

dd.text-muted {
    color: #6b7280;
}

/* 详情图片 */
.card-body img.img-fluid {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 分隔线 */
hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 30px 0;
}

/* 推荐列表 */
.recommend-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 0;
}

.recommend-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.recommend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.recommend-item .card-body {
    padding: 20px;
}

.recommend-item h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.recommend-item .card-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.recommend-item .card-link:hover {
    color: #4f46e5;
}

.recommend-item img {
    width: 100px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommend-item .operator {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.recommend-item .badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    font-size: 0.85rem;
    margin-left: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 20px;
    }
    
    .recommend-item img {
        width: 80px;
        height: 70px;
    }
    
    .recommend-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .detail-title {
        font-size: 1.4rem;
    }
    
    .card-header,
    .card-body {
        padding: 15px;
    }
    
    .list-group-item {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* 工具类 */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.fw-bold {
    font-weight: 700;
}

.rounded-2 {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.h-100 {
    height: 100%;
}
