/* 内容详情页专用样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: white;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
}

.breadcrumb li {
    font-size: 14px;
    color: #666;
}

.breadcrumb li a {
    color: var(--primary-color);
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
    color: #999;
}

/* 内容区布局 */
.detail-content {
    padding: 0 0 40px;
}

.detail-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-main {
    flex: 0 0 70%;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.detail-sidebar {
    flex: 0 0 30%;
}

/* 内容标题区 */
.detail-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header h1 {
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.meta-category, .meta-date, .meta-id {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-category {
    color: var(--primary-color);
}

.detail-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 13px;
    transition: var(--transition);
}

.btn-action:hover {
    color: var(--primary-color);
}

/* 内容详情区 */
.detail-info {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9ff;
}

.info-section {
    display: flex;
    margin-bottom: 15px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 100px;
    color: #666;
    font-size: 15px;
}

.info-value {
    flex: 1;
    color: var(--dark-color);
    font-size: 15px;
}

.user-level {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.level-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: white;
}

.level-tag.gold {
    background-color: #f0c14b;
}

.level-tag.verified {
    background-color: var(--primary-color);
}

.level-tag.vip {
    background-color: #ff6b6b;
}

.level-upgrade {
    color: var(--primary-color);
    font-size: 13px;
    margin-left: 10px;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
    font-size: 14px;
}

.auth-tag.unverified {
    color: #ff6b6b;
}

.auth-tag.verified {
    color: #4caf50;
}

.contact-phone {
    margin-right: 15px;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--secondary-color);
}

/* 内容主体区 */
.detail-body {
    padding: 30px;
}

.detail-image {
    margin-bottom: 30px;
    text-align: center;
}

.main-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-description {
    color: #333;
    line-height: 1.8;
    text-align: left;
}

.detail-description h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.detail-description h2:first-child {
    margin-top: 0;
}

.detail-description p {
    margin-bottom: 15px;
    font-size: 15px;
}

.feature-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.feature-list i {
    color: var(--accent-color-3);
    font-size: 16px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.price-table th, .price-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #eee;
}

.price-table th {
    background-color: #f9f9ff;
    font-weight: 600;
    color: var(--dark-color);
}

.price-table tr:nth-child(even) {
    background-color: #f9f9ff;
}

.contact-box {
    background-color: #f9f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.contact-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-box p {
    margin-bottom: 15px;
}

.contact-btns {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.detail-notice {
    margin-top: 30px;
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
}

.notice-icon {
    font-size: 24px;
    color: #ffc107;
}

.notice-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.notice-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 侧边栏 */
.sidebar-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-header h3 {
    font-size: 18px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.sidebar-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.sidebar-content {
    padding: 15px;
}

/* 商家信息 */
.merchant-profile {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.merchant-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.merchant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-info {
    flex: 1;
}

.merchant-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.merchant-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.merchant-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.merchant-actions .btn-view-merchant,
.merchant-actions .btn-message {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.btn-follow, .btn-message {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-follow {
    background-color: #f0f0f0;
    color: var(--dark-color);
}

.btn-follow:hover {
    background-color: #e0e0e0;
}

.btn-message {
    background-color: var(--primary-color);
    color: white;
}

.btn-message:hover {
    background-color: var(--secondary-color);
}

/* VIP信息推荐 */
.vip-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vip-item {
    display: flex;
    gap: 10px;
}

.vip-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.vip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vip-item:hover .vip-img img {
    transform: scale(1.1);
}

.vip-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color-1);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-bottom-left-radius: 4px;
}

.vip-info {
    flex: 1;
}

.vip-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vip-info p {
    font-size: 12px;
    color: #999;
}

/* 相关分类 */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #666;
    font-size: 13px;
    transition: var(--transition);
}

.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 联系我们 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* 相关推荐 */
.related-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
    font-size: 20px;
    color: var(--dark-color);
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.view-more {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-more:hover {
    color: var(--primary-color);
}

.related-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-img {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-item:hover .related-img img {
    transform: scale(1.1);
}

.related-info h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-info h3 a {
    color: var(--dark-color);
    transition: var(--transition);
}

.related-info h3 a:hover {
    color: var(--primary-color);
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .detail-layout {
        flex-direction: column;
    }
    
    .detail-main, .detail-sidebar {
        flex: 0 0 100%;
    }
    
    .related-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-header h1 {
        font-size: 20px;
    }
    
    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .info-section {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .contact-btns {
        flex-direction: column;
    }
    
    .related-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .detail-header, .detail-info, .detail-body {
        padding: 15px;
    }
    
    .merchant-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .merchant-stats {
        justify-content: center;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color-1);
}

.modal h2 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

.modal-desc {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-login {
    background-color: var(--primary-color);
    color: white;
}

.modal-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modal-join {
    background-color: var(--accent-color-3);
    color: white;
}

.modal-join:hover {
    background-color: #0fb88a;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.detail-info-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-thumbnail {
    flex: 0 0 200px;
}

.detail-thumbnail .thumbnail-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-thumbnail .thumbnail-wrapper:hover {
    transform: translateY(-5px);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-content {
    flex: 1;
}

.merchant-info {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 15px;
}

.merchant-type {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 12px;
}

.merchant-type i {
    color: var(--primary-color);
}

.merchant-auth-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.merchant-auth-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success-color);
}

.auth-status i {
    font-size: 16px;
}

.btn-view-merchant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-view-merchant:hover {
    background: #0056b3;
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.level-tag.verified i,
.auth-tag.verified i {
    margin-right: 5px;
} 