/**
 * ELFER — 品牌大全页（高级感 · 全宽居中 · RTL）
 */

.lux-brands-page {
    width: 100%;
    overflow-x: hidden;
}

.lux-brands-page .lux-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 32px);
    box-sizing: border-box;
}

.lux-brands-hero {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(20px, 3vw, 32px);
    border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}

.lux-brands-hero .lux-page-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
}

.lux-brands-hero .lux-page-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    color: var(--lux-heading, #f0d19a);
}

.lux-brands-hero .lux-page-hero-kicker {
    color: var(--lux-gold, #d8ad6a);
}

.lux-brands-hero .lux-page-sub {
    margin: 0 auto;
    max-width: 560px;
    color: var(--lux-muted, rgba(245, 234, 216, 0.72));
}

.lux-brands-toolbar {
    width: 100%;
    margin-bottom: clamp(20px, 3vw, 32px);
    padding: clamp(18px, 2.5vw, 26px);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(28, 22, 16, 0.92), rgba(12, 10, 8, 0.96));
    border: 1px solid rgba(201, 164, 92, 0.22);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.lux-brands-search {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto 18px;
}

.lux-brands-search .lux-brands-input-wrap {
    position: relative;
    min-width: 0;
}

.lux-brands-search input[type="text"] {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 999px;
    border: 1px solid rgba(201, 164, 92, 0.28);
    background: rgba(0, 0, 0, 0.35);
    color: var(--lux-text, #f5ead8);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lux-brands-search input[type="text"]:focus {
    border-color: rgba(232, 200, 130, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.12);
}

.lux-brands-search .bi-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 164, 92, 0.55);
    pointer-events: none;
}

.lux-brands-search .btn-elfer,
.lux-brands-search .btn-outline {
    white-space: nowrap;
    min-height: 44px;
    padding-inline: 22px;
}

.lux-brands-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.lux-brands-letters .letter-index-all,
.lux-brands-letters .letter-index-char {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
}

.lux-brands-body {
    width: 100%;
}

.lux-brands-section {
    margin-bottom: 2.75rem;
}

.lux-brands-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 0 0 1.35rem;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(201, 164, 92, 0.18);
}

[dir="rtl"] .lux-brands-section-head {
    flex-direction: row;
}

.lux-brands-section-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8c882, #a67c3a);
    color: #1a1008;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.lux-brands-section-meta {
    font-size: 0.95rem;
    color: rgba(245, 234, 216, 0.62);
}

.lux-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .lux-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .lux-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1200px) {
    .lux-brands-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.lux-brands-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 18px;
    min-height: 210px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(165deg, rgba(26, 20, 14, 0.95), rgba(10, 8, 6, 0.98));
    border: 1px solid rgba(201, 164, 92, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lux-brands-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 200, 130, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(201, 164, 92, 0.12);
}

.lux-brands-card__logo {
    margin: 0 auto 14px;
}

.lux-brands-card:hover .brand-logo-circle {
    border-color: rgba(216, 173, 106, 0.55);
    box-shadow: 0 0 0 1px rgba(216, 173, 106, 0.25), 0 4px 16px rgba(0, 0, 0, 0.22);
}

.lux-brands-card__name {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 500;
    color: #f0d19a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.lux-brands-card__en {
    margin: 0 0 12px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 234, 216, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.lux-brands-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(201, 164, 92, 0.14);
    font-size: 11px;
    color: rgba(245, 234, 216, 0.55);
}

.lux-brands-card__meta i {
    opacity: 0.75;
}

.lux-brands-empty {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(201, 164, 92, 0.25);
    background: rgba(0, 0, 0, 0.25);
}

/* RTL */
[dir="rtl"] .lux-brands-search input[type="text"] {
    padding: 12px 44px 12px 16px;
}

[dir="rtl"] .lux-brands-search .bi-search {
    left: auto;
    right: 16px;
}

[dir="rtl"] .lux-brands-hero,
[dir="rtl"] .lux-brands-card {
    direction: rtl;
}

@media (max-width: 768px) {
    .lux-brands-search {
        grid-template-columns: 1fr;
    }
    .lux-brands-search .btn-elfer,
    .lux-brands-search .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Day theme — brands page readable on light background */
body.elfer-day:not(.elfer-admin-ug) .lux-brands-toolbar {
    background: var(--lux-panel, #fff);
    border-color: var(--lux-line, rgba(184, 145, 78, 0.22));
    box-shadow: var(--ui-shadow-soft, 0 8px 22px rgba(42, 36, 28, 0.08));
}

body.elfer-day:not(.elfer-admin-ug) .lux-brands-search input[type="text"] {
    background: var(--lux-panel-2, #f5f3f0);
    color: var(--lux-text, #2a241c);
    border-color: var(--lux-line, rgba(184, 145, 78, 0.28));
}

body.elfer-day:not(.elfer-admin-ug) .lux-brands-card {
    background: var(--lux-panel, #fff);
    border-color: var(--lux-line, rgba(184, 145, 78, 0.16));
    box-shadow: var(--ui-shadow-card, 0 10px 28px rgba(42, 36, 28, 0.1));
}

body.elfer-day:not(.elfer-admin-ug) .lux-brands-card__name {
    color: var(--lux-heading, #6b4f2a);
}

body.elfer-day:not(.elfer-admin-ug) .lux-brands-card__en,
body.elfer-day:not(.elfer-admin-ug) .lux-brands-card__meta,
body.elfer-day:not(.elfer-admin-ug) .lux-brands-section-meta {
    color: var(--lux-muted, #6b6256);
}

body.elfer-day:not(.elfer-admin-ug) .lux-brands-empty {
    background: var(--lux-panel-2, #f5f3f0);
    color: var(--lux-muted, #6b6256);
}
