/* 品牌维修问答页样式 */

/* 基本布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.qa-list-container {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 品牌头部区域 */
.brand-header {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-header .brand-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    flex-shrink: 0;
}

.brand-header .brand-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.brand-header .brand-info {
    flex: 1;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}

.brand-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 品牌导航标签样式 */
.brand-nav-tabs {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.nav-tabs li {
    margin: 0;
}

.nav-tabs li a {
    display: block;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.nav-tabs li a:hover {
    color: #3470CC;
}

.nav-tabs li.active a {
    color: #3470CC;
}

.nav-tabs li.active a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3470CC;
}

/* 问答列表区域 */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.qa-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s;
}

.qa-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.qa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-tag, .issue-tag, .status-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.product-tag {
    background-color: #3470CC;
}

.issue-tag {
    background-color: #FF9800;
}

.status-tag.solved {
    background-color: #4CAF50;
}

.status-tag.waiting {
    background-color: #9E9E9E;
}

.status-tag.official {
    background-color: #E91E63;
}

.qa-question {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.qa-question a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.qa-question a:hover {
    color: #3470CC;
}

.qa-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.meta-left {
    display: flex;
    gap: 15px;
}

.meta-author, .meta-date, .meta-view, .meta-answers {
    display: flex;
    align-items: center;
}

.meta-author i, .meta-date i, .meta-view i, .meta-answers i {
    margin-right: 4px;
}

.meta-answers {
    color: #3470CC;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.page-prev, .page-next, .page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.page-prev:hover, .page-next:hover, .page-num:hover {
    background-color: #e8f0fe;
    color: #3470CC;
}

.page-num.active {
    background-color: #3470CC;
    color: #fff;
}

.page-prev.disabled, .page-next.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #666;
    padding: 0 5px;
}

/* 侧边栏样式 */
.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-link {
    font-size: 12px;
    color: #3470CC;
    text-decoration: none;
}

.more-link i {
    font-size: 10px;
    margin-left: 3px;
}

/* 提问按钮 */
.ask-question {
    padding: 15px;
}

.ask-btn {
    display: block;
    background-color: #3470CC;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ask-btn:hover {
    background-color: #2a5ca3;
}

.ask-btn i {
    margin-right: 8px;
}

/* 热门问题 */
.hot-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-question-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.hot-question-list li:last-child {
    border-bottom: none;
}

.hot-question-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.hot-question-list a:hover {
    color: #3470CC;
}

.question-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-count {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 官方维修推荐 */
.site-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-item {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s;
}

.site-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.site-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.site-address, .site-phone {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.site-address i, .site-phone i {
    width: 14px;
    margin-right: 6px;
    color: #3470CC;
}

.site-link {
    display: inline-block;
    font-size: 12px;
    color: #3470CC;
    text-decoration: none;
    margin-top: 5px;
}

.site-link i {
    font-size: 10px;
    margin-left: 3px;
}

.view-more-sites {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #3470CC;
    text-decoration: none;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.view-more-sites i {
    margin-left: 4px;
    font-size: 12px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: -60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3470CC;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transition: bottom 0.3s ease;
}

.back-to-top:hover {
    background-color: #2a5ca3;
}

.back-to-top.show {
    bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .content-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .hot-question-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hot-question-list li {
        border-bottom: none;
        padding: 0;
    }
    
    .site-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .brand-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-header .brand-logo {
        margin-bottom: 15px;
    }
    
    .hot-question-list {
        grid-template-columns: 1fr;
    }
    
    .site-list {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs li a {
        padding: 12px 20px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .qa-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .qa-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .qa-tags span {
        flex-shrink: 0;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .qa-question {
        font-size: 16px;
    }
} 