/* ============================================
   套餐详情页专用样式
   ============================================ */

/* 面包屑导航 */
.breadcrumb-section {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #1890ff;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #40a9ff;
}

.breadcrumb .separator {
    color: #d1d5db;
}

.breadcrumb .current {
    color: #374151;
}

/* 详情区域 */
.package-detail-section {
    padding: 2rem 0;
    background: #F6FBFF;
    min-height: calc(100vh - 300px);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 22.5rem;
    gap: 1.5rem;
    align-items: start;
}

/* 左侧主内容 */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 套餐预览卡片 */
.package-preview-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-category {
    font-size: 0.875rem;
    color: #1890ff;
    font-weight: 600;
    background: #e6f7ff;
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-online {
    background: #dcfce7;
    color: #16a34a;
}

.status-offline {
    background: #fee2e2;
    color: #dc2626;
}

.detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 1.5rem;
}

.price-left {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.price-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.price-main {
    display: flex;
    align-items: baseline;
}

.price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%);
    color: #1e40af;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 1rem;
    border: 1px solid #bfdbfe;
    transition: all 0.3s;
}

.info-badge:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #c7d2fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.15);
}

.info-badge .layui-icon {
    font-size: 0.875rem;
}

.price-symbol {
    font-size: 1.5rem;
    color: #ef4444;
    font-weight: 700;
}

.price-value {
    font-size: 3rem;
    color: #ef4444;
    font-weight: 700;
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* 规格网格 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.spec-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #88bbff 0%, #006eff 100%);
    border-radius: 0.5rem;
}

.spec-icon .layui-icon {
    font-size: 1.5rem;
    color: #fff;
}

.spec-info {
    flex: 1;
}

.spec-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 600;
}

/* 办理按钮 */
.action-section {
    margin-top: 1rem;
}

.btn-apply {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #068ED1;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.btn-apply .layui-icon {
    font-size: 1.25rem;
}

/* 下架状态按钮 */
.btn-apply-disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-apply-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 信息卡片 */
.info-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
    border-bottom: 2px solid #e0e7ff;
}

.info-card-header .layui-icon {
    font-size: 1.25rem;
    color: #1890ff;
}

.info-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.info-card-body {
    padding: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
}

/* 资费说明列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    padding: 0.875rem 1.25rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.info-label {
    width: 8rem;
    font-weight: 600;
    color: #6b7280;
}

.info-value {
    flex: 1;
    color: #1f2937;
    font-weight: 500;
}

/* 右侧边栏 */
.detail-sidebar {
    position: sticky;
    top: 4.8rem;
}

.sidebar-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-title .layui-icon {
    font-size: 1.25rem;
    color: #fbbf24;
}

/* 推荐列表 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommend-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.recommend-item:hover {
    border-color: #1890ff;
    background: #f0f9ff;
    transform: translateX(4px);
}

.recommend-name {
    font-size: 0.9375rem;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
}

.recommend-specs {
    font-size: 0.8125rem;
    color: #6b7280;
}

.recommend-specs .sep {
    margin: 0 0.5rem;
    color: #d1d5db;
}

.recommend-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-num {
    font-size: 1.25rem;
    color: #ef4444;
    font-weight: 700;
}

.price-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.recommend-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 文章详情卡片 */
.article-detail-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.meta-item .layui-icon {
    font-size: 1rem;
}

.meta-category {
    color: #1890ff;
    background: #e6f7ff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.article-cover-wrap {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.article-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 1.5rem 0 1rem 0;
    color: #1f2937;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-left: 4px solid #1890ff;
    color: #6b7280;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.article-content pre {
    background: #1f2937;
    color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-tags .layui-icon {
    font-size: 1rem;
}

.tag-item {
    background: #f3f4f6;
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    color: #4b5563;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #e5e7eb;
}

/* 客服卡片 */
.service-card {
    margin-top: 1.5rem;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-qrcode {
    width: 100%;
    background: #f9fafb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-qrcode img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0.5rem;
    display: block;
}

.service-buttons {
    display: flex;
    gap: 0.5rem;
}

.service-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.service-btn .layui-icon {
    font-size: 1rem;
}

.service-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   响应式设计
   ============================================ */

/* 平板端 */
@media (max-width: 75rem) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-sidebar {
        position: static;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .price-section {
        flex-wrap: wrap;
    }
    
    .price-badges {
        max-width: 100%;
    }
}

/* 手机端 */
@media (max-width: 48rem) {
    .package-detail-section {
        padding: 1rem 0;
    }
    
    .package-preview-card {
        padding: 1.5rem;
    }
    
    .detail-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .price-section {
        gap: 0.75rem;
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .price-left {
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .price-label {
        font-size: 0.875rem;
    }
    
    .price-main {
        gap: 0.125rem;
    }
    
    .price-symbol {
        font-size: 1.25rem;
    }
    
    .price-unit {
        font-size: 0.875rem;
    }
    
    .price-badges {
        flex-shrink: 1;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .info-badge {
  
        padding: 0.3125rem 0.625rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-box {
        padding: 0.75rem;
    }
    
    .info-card-header {
        padding: 1rem 1.25rem;
    }
    
    .info-card-header h3 {
        font-size: 1rem;
    }
    
    .info-card-body {
        padding: 1.25rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .info-label {
        width: 100%;
    }
    
    .article-detail-card {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        gap: 1rem;
        font-size: 0.8125rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-content h3 {
        font-size: 1.125rem;
    }
    
    .service-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        gap: 0.25rem;
    }
    
    .service-btn .layui-icon {
        font-size: 0.875rem;
    }
}

/* ============================================
   富文本表格样式
   ============================================ */

/* 文章内容和信息卡片中的表格 */
.article-content table,
.info-card-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.article-content table th,
.article-content table td,
.info-card-body table th,
.info-card-body table td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
}

.article-content table th,
.info-card-body table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.article-content table tr:hover,
.info-card-body table tr:hover {
    background-color: #fafafa;
}

/* 富文本图片居中样式 */
.article-content img[style*="margin-left: auto"],
.article-content img[style*="margin: auto"],
.info-card-body img[style*="margin-left: auto"],
.info-card-body img[style*="margin: auto"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

/* 富文本图片居中（通过 text-align 方式）*/
.article-content p[style*="text-align: center"] img,
.article-content div[style*="text-align: center"] img,
.info-card-body p[style*="text-align: center"] img,
.info-card-body div[style*="text-align: center"] img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 富文本图片右对齐样式 */
.article-content img[style*="float: right"],
.info-card-body img[style*="float: right"] {
    float: right !important;
    margin-left: 1rem !important;
}

/* 富文本图片左对齐样式 */
.article-content img[style*="float: left"],
.info-card-body img[style*="float: left"] {
    float: left !important;
    margin-right: 1rem !important;
}
