/* brand-list-course.css - 品牌列表页面样式（基于课程CSS风格） */

/* ==========================================================================
   基础样式
   ========================================================================== */
:root {
    /* 品牌颜色 - 橙色主题 */
    --brand-primary: #FF9900;
    --brand-primary-dark: #e68900;
    --brand-secondary: #ffb347;
    --brand-accent: #ff6b6b;
    --brand-success: #4CAF50;
    --brand-warning: #FF9800;
    
    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* ==========================================================================
   容器和布局
   ========================================================================== */
.brand-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* 响应式容器 */
@media (max-width: 768px) {
    .brand-list-container {
        padding: 0px;
    }
	.grid-col:last-child {
		margin-right: 0px !important;
		width: 100% !important;
	  }
}

/* ==========================================================================
   页面标题区域
   ========================================================================== */
.brand-list-header {
    margin-bottom: var(--space-xl);
    text-align: center;
    padding: var(--space-xl) 0;
}

.brand-list-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
    font-family: "Raleway", sans-serif;
}

.brand-list-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--brand-primary);
}

.brand-list-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    padding: 0 var(--space-md);
}

/* 响应式标题 */
@media (max-width: 768px) {
    .brand-list-title {
        font-size: 2rem;
    }
    
    .brand-list-description {
        font-size: 1rem;
    }
}

/* ==========================================================================
   筛选和搜索控制区域
   ========================================================================== */
.brand-list-controls {
    background: var(--background-white);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* 搜索框 */
.brand-search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.brand-search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--background-white);
    transition: all 0.3s;
    font-family: "Raleway", sans-serif;
}

.brand-search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.brand-search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.brand-search-button:hover {
    background: var(--brand-primary-dark);
}

/* 筛选器 */
.brand-filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-filter-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    font-family: "Raleway", sans-serif;
}

.brand-filter-select {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--background-white);
    font-size: 14px;
    color: var(--text-primary);
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    font-family: "Raleway", sans-serif;
}

.brand-filter-select:hover {
    border-color: var(--brand-primary);
}

/* 结果信息 */
.brand-results-info {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.brand-search-results,
.brand-total-results {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: "Raleway", sans-serif;
}

.brand-search-results strong,
.brand-total-results strong {
    color: var(--brand-primary);
    font-weight: 600;
}

/* 响应式控制区域 */
@media (max-width: 768px) {
    .brand-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .brand-search-box {
        min-width: 100%;
        max-width: 100%;
    }
    
    .brand-filter-select-wrapper {
        width: 100%;
    }
    
    .brand-filter-select {
        width: 100%;
        min-width: 100%;
    }
}

/* ==========================================================================
   品牌列表网格布局
   ========================================================================== */
.brand-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* 响应式网格 */
@media (max-width: 1024px) {
    .brand-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .brand-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .brand-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   品牌项目卡片（基于课程样式）
   ========================================================================== */
.brand-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: var(--background-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.brand-item + .brand-item {
    margin-top: 0;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 品牌徽标容器 */
.brand-logo-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    background: var(--background-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-container img {
    width: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
}

.brand-logo-hover {
    position: absolute;
    z-index: 1;
    opacity: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: all 0.3s;
    background: rgba(255, 153, 0, 0.8);
}

.brand-logo-container a {
    display: inline-block;
    border: 2px solid #ffffff;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    color: #ffffff;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    z-index: 3;
    box-sizing: border-box;
    line-height: 20px;
    font-size: 14px;
    padding: 8px 24px;
    overflow: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.3s;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.brand-logo-container a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.brand-item:hover .brand-logo-hover {
    opacity: 0.6;
}

.brand-item:hover .brand-logo-container img {
    transform: scale(1.1);
    transition: all 4s;
}

.brand-logo-container:hover a {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 品牌名称区域 */
.brand-name {
    display: block;
    background-color: #333333;
    padding: 15px;
    min-height: 70px;
    position: relative;
}

.brand-name h3 {
    display: inline;
    font-size: 15px;
    clear: none;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    font-family: "Raleway", sans-serif;
    line-height: 1.4;
}

.brand-name .brand-category {
    float: right;
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.brand-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-name a:hover {
    color: var(--brand-primary);
}

/* 品牌信息区域 */
.brand-info {
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    background: #444444;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-info .brand-type {
    display: inline-block;
    font-size: 13px;
}

.brand-info .brand-status {
    float: right;
    font-size: 13px;
    color: var(--brand-primary);
}

.brand-info i {
    margin-right: 4px;
    font-size: 12px;
}

/* 品牌描述 */
.brand-description {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    min-height: 40px;
    padding: 15px;
    color: var(--text-secondary);
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    background: var(--background-white);
}

/* 品牌标签 */
.brand-tags {
    padding: 10px 15px;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.brand-tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--background-white);
    color: var(--text-secondary);
    font-size: 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.brand-tag.featured {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* 品牌徽章 */
.brand-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.brand-badge span {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--brand-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 无结果状态 */
.brand-list-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--background-light);
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border-color);
    margin: var(--space-lg) 0;
}

.brand-list-empty-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: var(--space-md);
}

.brand-list-empty-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-family: "Raleway", sans-serif;
}

.brand-list-empty-description {
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Raleway", sans-serif;
}

/* ==========================================================================
   分页样式
   ========================================================================== */
.brand-list-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.brand-pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-xs);
}

.brand-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--background-white);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
}

.brand-pagination-link:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.brand-pagination-link.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* 响应式分页 */
@media (max-width: 768px) {
    .brand-pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}