/*
 * 品牌详情页专用样式
 * 此文件独立于其他样式，只在使用品牌详情模板的文章页面加载
 */

/* 美妆主题配色 */
:root {
    --beauty-primary: #ff6b9d;
    --beauty-secondary: #ffa8c5;
    --beauty-accent: #ff8fab;
    --beauty-gold: #FFD700;
}

/* ========================================
   页面整体布局
   ======================================== */

.brand-detail-page {
    padding: 0 0 30px 0;
    background: #f5f7fa;
    min-height: 100vh;
    /* 确保没有overflow影响子元素的sticky定位 */
    overflow: visible;
}

/* ========================================
   面包屑导航
   ======================================== */

.breadcrumb-wrapper {
    /* background: #fff; */
    /* border-bottom: 1px solid #e9ecef; */
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item:hover {
    color: var(--beauty-primary);
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-separator {
    color: #ccc;
    user-select: none;
}

.breadcrumb-item i {
    font-size: 13px;
}

/* ========================================
   品牌详情主体区域
   ======================================== */

.brand-detail-wrapper {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    /* 确保grid容器支持sticky定位 */
    align-items: start;
}

/* ========================================
   左侧：图片展示区
   ======================================== */

.brand-detail-gallery {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    /* 防止内容溢出 */
    overflow: hidden;
}

/* 主图展示 */
.main-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

/* 缩略图轮播 */
.thumbnail-gallery {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    /* 确保不超出父容器 */
    width: 100%;
    max-width: 100%;
}

.gallery-nav {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.gallery-nav:hover {
    background: var(--beauty-primary);
    border-color: var(--beauty-primary);
    color: #fff;
}

.gallery-nav i {
    font-size: 12px;
}

.thumbnail-container {
    flex: 1;
    overflow: hidden;
    /* 确保容器不超出 */
    min-width: 0;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--beauty-secondary);
}

.thumbnail-item.active {
    border-color: var(--beauty-primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   右侧：品牌信息区
   ======================================== */

.brand-detail-info {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 动态sticky类 - 应用于较短的一侧 */
.sticky-column {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    max-height: calc(100vh - 40px) !important;
    align-self: flex-start !important;
}

/* 如果是info区域需要滚动 */
.brand-detail-info.sticky-column {
    overflow-y: auto;
}

/* 品牌标题 */
.brand-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.brand-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.certified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    font-size: 14px;
    border-radius: 20px;
    font-weight: normal;
}

.certified-badge i {
    font-size: 16px;
}

/* 未认证徽章 */
.uncertified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
    border-radius: 20px;
    font-weight: normal;
    border: 1px solid #e0e0e0;
}

.uncertified-badge i {
    font-size: 16px;
    color: #ccc;
}

/* 认证提示卡片 */
.certification-prompt-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #fff5f7 0%, #fff0f5 100%);
    border: 2px solid var(--beauty-secondary);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.25);
    }
}

.prompt-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.prompt-content {
    flex: 1;
}

.prompt-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.prompt-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.prompt-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.prompt-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.prompt-benefits li i {
    color: var(--beauty-primary);
    font-size: 14px;
}

.btn-get-certified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.btn-get-certified:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #ff6b9d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    color: #fff;
}

.btn-get-certified i {
    font-size: 16px;
}

.brand-company {
    font-size: 14px;
    color: #999;
    background: #f9f9f9;
    padding: 12px 6px;
    border-radius: 6px;
    /* border-left: 3px solid #FFB800; */
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-company i {
    /* color: #FFB800; */
    font-size: 16px;
}

/* 公司简介盒子 */
.brand-description {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.desc-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--beauty-primary);
}

.desc-title i {
    color: var(--beauty-primary);
    font-size: 18px;
}

.desc-content {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
}

/* 品牌信息表格 */
.brand-info-table {
    margin-bottom: 25px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 14px;
}

.info-label {
    color: #999;
    white-space: nowrap;
}

.info-value {
    color: #666;
    font-weight: 500;
}

/* 加盟扶持标签 */
.support-tags {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.tags-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags-label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--beauty-primary);
    border-radius: 2px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #fff0f5;
    color: var(--beauty-primary);
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--beauty-secondary);
    transition: all 0.3s ease;
}

.support-tag:hover {
    background: var(--beauty-primary);
    color: #fff;
    border-color: var(--beauty-primary);
}

.support-tag i {
    font-size: 12px;
}

/* 咨询按钮 */
.consult-button-wrapper {
    margin-top: 30px;
}

.btn-consult-main {
    display: inline-block;
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn-consult-main:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #ff6b9d 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
    color: #fff;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 992px) {
    .brand-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .brand-detail-gallery {
        order: 1;
    }
    
    .brand-detail-info {
        order: 2;
    }
    
    /* 移动端移除sticky效果 */
    .sticky-column {
        position: static !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
}

@media (max-width: 768px) {
    .brand-detail-page {
        padding: 0 0 15px 0;
    }
    
    .breadcrumb-wrapper {
        padding: 12px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb-container {
        padding: 0 10px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .breadcrumb-item.current {
        max-width: 200px;
    }
    
    .brand-detail-wrapper {
        padding: 0 10px;
    }
    
    .brand-detail-gallery,
    .brand-detail-info {
        padding: 20px 15px;
    }
    
    /* 手机端图片展示区优化 */
    .brand-detail-gallery {
        padding: 15px;
        /* 确保不超出屏幕 */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .main-image {
        height: 300px;
        /* 确保图片容器不超出 */
        max-width: 100%;
    }
    
    /* 缩略图区域手机端优化 */
    .thumbnail-gallery {
        gap: 8px;
    }
    
    .gallery-nav {
        width: 28px;
        height: 28px;
    }
    
    .thumbnail-container {
        /* 确保容器宽度正确计算 */
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .thumbnail-list {
        gap: 8px;
    }
    
    .brand-title {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 认证提示卡片响应式 */
    .certification-prompt-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .prompt-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .prompt-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .breadcrumb-wrapper {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        gap: 6px;
    }
    
    .breadcrumb-item.current {
        max-width: 150px;
    }
    
    .brand-detail-wrapper {
        padding: 0 5px;
    }
    
    .brand-detail-gallery,
    .brand-detail-info {
        padding: 15px 10px;
    }
    
    /* 小屏手机端图片展示区优化 */
    .brand-detail-gallery {
        padding: 12px;
        margin: 0;
        border-radius: 6px;
    }
    
    .main-image {
        height: 250px;
        margin-bottom: 12px;
    }
    
    /* 缩略图区域小屏优化 */
    .thumbnail-gallery {
        gap: 6px;
    }
    
    .gallery-nav {
        width: 26px;
        height: 26px;
    }
    
    .gallery-nav i {
        font-size: 10px;
    }
    
    .thumbnail-list {
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
    
    .brand-title {
        font-size: 20px;
    }
    
    .support-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .btn-consult-main {
        font-size: 18px;
        padding: 16px 30px;
    }
    
    /* 认证提示卡片小屏优化 */
    .certification-prompt-card {
        padding: 15px;
    }
    
    .prompt-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .prompt-title {
        font-size: 16px;
    }
    
    .prompt-desc {
        font-size: 13px;
    }
    
    .prompt-benefits li {
        font-size: 12px;
    }
    
    .btn-get-certified {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   新内容区域：标签导航 + 内容 + 侧边栏
   ======================================== */

.brand-content-section {
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 0 15px;
}

.brand-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    /* 移除 align-items: start，让两列自然对齐 */
    /* 确保没有overflow属性影响sticky定位 */
    overflow: visible;
    /* 确保wrapper有足够的高度 */
    position: relative;
}

/* ========================================
   左侧主内容区
   ======================================== */

.brand-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 标签导航 */
.brand-tabs-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.brand-tabs-nav .tab-item {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-tabs-nav .tab-item:hover {
    background: #fff0f5;
    color: var(--beauty-primary);
    border-color: var(--beauty-secondary);
}

.brand-tabs-nav .tab-item.active {
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    border-color: var(--beauty-primary);
}

/* 内容盒子 */
.content-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    scroll-margin-top: 100px;
}

.content-box .content-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    /* 移除整行的border-bottom */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* 添加底部边框，只到标题宽度 */
    border-bottom: 2px solid var(--beauty-primary);
    /* 让标题不占满整行 */
    width: auto;
}

/* 为了让标题下方有完整的分隔效果，在标题外层添加一个容器样式 */
.content-box .content-title-wrapper {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.content-box .content-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--beauty-primary);
    border-radius: 2px;
}

.content-box .content-body {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.content-box .content-body p {
    margin-bottom: 15px;
}

.content-box .content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* 相关文章列表 - 三列卡片布局 */
.related-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.related-articles-list li {
    padding: 0;
    border: none;
}

.related-articles-list li a {
    display: block;
    /* padding: 20px; */
    background: #fff;
    /* border: 2px solid #f0f0f0; */
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    padding-left: 35px;
}

.related-articles-list li a::before {
    content: '•';
    color: var(--beauty-primary);
    font-size: 24px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.related-articles-list li a:hover {
    color: var(--beauty-primary);
    border-color: var(--beauty-primary);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    transform: translateY(-2px);
}

/* 响应式：平板 */
@media (max-width: 992px) {
    .related-articles-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式：手机 */
@media (max-width: 576px) {
    .related-articles-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   右侧固定侧边栏
   ======================================== */

.brand-sidebar {
    /* 移除 position: relative 和 min-height */
    /* 让侧边栏自然高度，sticky会在整个页面范围内工作 */
}

.sidebar-sticky {
    position: -webkit-sticky !important; /* Safari兼容 */
    position: sticky !important;
    top: 80px !important;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    /* 添加z-index确保在其他元素之上 */
    z-index: 10;
    /* 设置最大高度，避免超出视口 */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    /* 添加will-change提升性能 */
    will-change: transform;
}

/* 加盟咨询表单 */
.consult-form-box {
    margin-bottom: 20px;
}

.form-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.brand-consult-form .form-group {
    margin-bottom: 15px;
}

/* 手机号组合输入框 */
.phone-group {
    display: flex;
    gap: 10px;
}

.country-code-select {
    flex: 0 0 120px;
    width: 120px !important;
}

.custom-code-input {
    flex: 0 0 80px;
    width: 80px !important;
}

.phone-number-input {
    flex: 1;
}

.brand-consult-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.brand-consult-form .form-input:focus {
    outline: none;
    border-color: var(--beauty-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.brand-consult-form .form-input::placeholder {
    color: #999;
}

.brand-consult-form .form-textarea {
    resize: vertical;
    min-height: 80px;
}

.brand-consult-form select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--beauty-primary);
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #ff6b9d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

.form-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.form-footer a {
    color: var(--beauty-primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 分隔线 */
.sidebar-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 20px 0;
}

/* 更多联络方式 */
.contact-box {
    text-align: center;
}

.contact-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    background: #fff;
    color: var(--beauty-primary);
    border: 2px solid var(--beauty-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: var(--beauty-primary);
    color: #fff;
}

.btn-phone i {
    font-size: 16px;
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .brand-content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .brand-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .brand-sidebar {
        order: -1;
    }
    
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .brand-content-section {
        padding: 0 10px;
    }
    
    .brand-tabs-nav {
        padding: 15px;
        gap: 10px;
    }
    
    .brand-tabs-nav .tab-item {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .content-box {
        padding: 20px 15px;
    }
    
    .content-box .content-title {
        font-size: 18px;
    }
    
    .sidebar-sticky {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .brand-tabs-nav {
        padding: 12px;
        gap: 8px;
    }
    
    .brand-tabs-nav .tab-item {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .content-box {
        padding: 15px;
    }
    
    .content-box .content-title {
        font-size: 16px;
    }
    
    .sidebar-sticky {
        padding: 15px;
    }
    
    .form-title {
        font-size: 16px;
    }
    
    .phone-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .country-code-select,
    .custom-code-input {
        flex: 1;
        width: 100% !important;
    }
}

/* ========================================
   推荐项目区域样式
   ======================================== */

.recommend-section {
    padding: 30px !important;
}

.recommend-section .content-title {
    margin-bottom: 25px;
}

/* 分类标签导航 */
.recommend-category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.category-tab {
    padding: 8px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: #fff0f5;
    color: var(--beauty-primary);
    border-color: var(--beauty-secondary);
}

.category-tab.active {
    background: var(--beauty-primary);
    color: #fff;
    border-color: var(--beauty-primary);
}

/* 推荐项目网格 */
.recommend-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 项目卡片 */
.project-card {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    border-color: var(--beauty-secondary);
    transform: translateY(-2px);
}

.project-card.hidden {
    display: none;
}

/* 项目图片 */
.project-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* 项目信息 */
.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.project-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-title a:hover {
    color: var(--beauty-primary);
}

/* 项目标签 */
.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fff0f5;
    color: var(--beauty-primary);
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid var(--beauty-secondary);
}

/* 项目底部 */
.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* 星级评分 */
.project-rating {
    display: flex;
    gap: 3px;
}

.project-rating i {
    color: var(--beauty-gold);
    font-size: 14px;
}

.project-rating i.far {
    color: #ddd;
}

/* 查看详情按钮 */
.btn-view-detail {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #ff5a8d 0%, #ff6b9d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 157, 0.3);
    color: #fff;
}

/* 无项目提示 */
.no-projects {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .recommend-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .recommend-section {
        padding: 20px 15px !important;
    }
    
    .recommend-category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .project-card {
        padding: 12px;
        gap: 12px;
    }
    
    .project-image {
        width: 100px;
        height: 100px;
    }
    
    .project-title {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 180px;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .btn-view-detail {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }
}

/* ========================================
   商家信息卡片样式
   ======================================== */

.merchant-info-card-box {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
    border: 2px solid var(--beauty-secondary);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.merchant-info-card-box:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

.merchant-card-header {
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    padding: 15px 20px;
}

.merchant-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-card-title i {
    font-size: 18px;
}

.merchant-profile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.merchant-card-content {
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.merchant-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.merchant-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.merchant-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.merchant-verified-badge i {
    color: #fff;
    font-size: 12px;
}

.merchant-info-details {
    flex: 1;
    min-width: 0;
}

.merchant-name-text {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merchant-desc-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.merchant-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--beauty-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.merchant-profile-link:hover .merchant-view-profile {
    gap: 10px;
    color: var(--beauty-accent);
}

.merchant-view-profile i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.merchant-profile-link:hover .merchant-view-profile i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .merchant-card-content {
        padding: 15px;
        gap: 12px;
    }
    
    .merchant-avatar-img {
        width: 70px;
        height: 70px;
    }
    
    .merchant-verified-badge {
        width: 24px;
        height: 24px;
    }
    
    .merchant-name-text {
        font-size: 16px;
    }
    
    .merchant-desc-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .merchant-info-card-box {
        margin-bottom: 20px;
    }
    
    .merchant-card-header {
        padding: 12px 15px;
    }
    
    .merchant-card-title {
        font-size: 15px;
    }
    
    .merchant-card-content {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .merchant-avatar-wrapper {
        margin-bottom: 5px;
    }
    
    .merchant-avatar-img {
        width: 80px;
        height: 80px;
    }
    
    .merchant-info-details {
        width: 100%;
    }
    
    .merchant-name-text {
        font-size: 17px;
    }
    
    .merchant-view-profile {
        justify-content: center;
    }
}
