/* ========== Page-Level Overrides (index.html) ========== */
.app-container { max-width: none; width: 100%; padding: 0; margin: 0 auto; border-radius: 0; box-shadow: none; }
@media (min-width: 768px) and (max-width: 1024px) { .app-container { max-width: none; padding: 0; } }
@media (min-width: 1025px) { .app-container { max-width: none; padding: 0; } }
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

/* ---- Header ---- */
.header { background: #fff; position: sticky; top: 0; z-index: 999; padding: 0; display: block; border-bottom: none; border-radius: 0; box-shadow: none; }
.header-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 56px; gap: 12px; }
.logo-text .brand-cn { font-size: 15px; font-weight: 700; color: #111; letter-spacing: .5px; line-height: 1.2; }
.logo-text .brand-en { font-size: 9px; color: #999; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.2; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-action-btn { width: 36px; height: 36px; border: none; background: #f5f5f5; cursor: pointer; color: #555; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.header-action-btn:hover { background: #eee; color: #222; }
.btn-wechat { color: #25D366!important; background: #e8f8ef!important; }
.btn-wechat:hover { background: #d1f2df!important; }
.btn-phone { color: #C62828!important; background: #ffebee!important; }
.btn-phone:hover { background: #ffcdd2!important; }
.mobile-menu-btn { width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; color: #333; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.header-info { display: none; }

/* ---- Top Info Bar ---- */
.header-top-bar { background: #1a1a1a; color: #ccc; font-size: 12px; padding: 5px 36px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a2a2a; line-height: 1.4; }
.header-top-bar-left { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: #999; }
.header-top-bar-right { display: flex; align-items: center; gap: 16px; }
.header-top-bar-link { color: #bbb; text-decoration: none; font-size: 12px; transition: color .2s; line-height: 1; }
.header-top-bar-link:hover { color: #C62828; }
.header-top-bar-whatsapp { color: #25D366!important; font-weight: 500; }
.header-top-bar-whatsapp:hover { color: #20a350!important; }
.header-top-bar-sep { color: #444; font-size: 11px; }

/* ---- Tab Nav ---- */
.tab-nav { display: flex; background: #fff; border-bottom: none; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-item { flex-shrink: 0; padding: 14px 20px; text-decoration: none; font-size: 13px; font-weight: 500; color: #666; background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; transition: all .25s ease; letter-spacing: .3px; }
.tab-item.active { color: #C62828; background: transparent; border: none; border-bottom: 2px solid #C62828; font-weight: 600; }
.tab-item:hover { color: #C62828; background: transparent; border-color: transparent; }

/* ---- Filter Bar ---- */
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: #fafafa; border-bottom: none; box-shadow: none; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 7px 14px; background: #f0f0f0; border: 1px solid #e8e8e8; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 500; color: #555; transition: all .22s ease; letter-spacing: .2px; }
.filter-chip:hover { background: #ffebee; border-color: #C62828; color: #C62828; }
.filter-chip svg { width: 14px; height: 14px; }
@media (min-width: 768px) { .filter-bar { padding: 14px 28px; gap: 12px; } .filter-chip { padding: 8px 18px; font-size: 13px; } }

/* ---- Responsive / Page-Level MQs ---- */
@media (max-width: 1024px) {
    .header-top-bar { padding: 4px 16px; }
    .header-top-bar-left { display: none; }
    .header-top-bar-right { width: 100%; justify-content: center; gap: 14px; }
    .header-top-bar-link { font-size: 11px; }
}
@media (max-width: 480px) {
    .header-top-bar-right { gap: 10px; }
    .header-top-bar-link { font-size: 10px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .header { border-radius: 0; }
    .header-top { padding: 0 28px; height: 60px; }
    .logo-icon { width: 40px; height: 40px; font-size: 14px; }
    .logo-text .brand-cn { font-size: 16px; }
    .logo-text .brand-en { font-size: 10px; }
}
@media (min-width: 1025px) {
    .tab-nav { display: none!important; }
    .filter-bar { display: none!important; }
    .header { position: sticky; display: block; padding: 0; border-bottom: none; border-radius: 0; box-shadow: none; }
    .header-top { max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 40px; height: 68px; }

    .logo-text .brand-cn { font-size: 17px; letter-spacing: 1px; }
    .logo-text .brand-en { font-size: 10px; letter-spacing: 2.5px; }
    .mobile-menu-btn { display: none; }
    .header-actions { gap: 8px; margin-left: 20px; }
    .main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; height: 100%; }
    .nav-item { height: 68px; position: relative; text-decoration: none; font-size: 14px; font-weight: 700; color: #333; padding: 0 24px; display: flex; align-items: center; cursor: pointer; white-space: nowrap; transition: color .25s ease; letter-spacing: .3px; }
    .nav-item::after { content:''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: calc(100% - 48px); height: 2.5px; background: #C62828; border-radius: 2px; transition: transform .35s cubic-bezier(.25,.8,.25,1.2); }
    .nav-item:hover { color: #C62828; }
    .nav-item:hover::after { transform: translateX(-50%) scaleX(1); }
    .nav-item.active { color: #C62828; font-weight: 600; }
    .nav-item.active::after { transform: translateX(-50%) scaleX(1); }
    .nav-item.has-dropdown::before { content:''; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #bbb; transition: transform .3s ease, border-top-color .3s ease; z-index: 1; }
    .nav-item.has-dropdown:hover::before { transform: translateY(-50%) rotate(180deg); border-top-color: #C62828; }
    .nav-dropdown { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px); background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.04); padding: 24px; min-width: 720px; max-height: 60vh; overflow-y: auto; opacity: 0; visibility: hidden; transition: all .28s cubic-bezier(.4,0,.2,1); z-index: 1000; }
    .nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .nav-dropdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
    .nav-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: all .18s ease; text-decoration: none; color: inherit; }
    .nav-dropdown-item:hover { background: #fff5f5; transform: translateX(2px); }
    .nav-dropdown-flag { width: 30px; height: 20px; border-radius: 3px; overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid #e8e8e8; }
    .nav-dropdown-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .nav-dropdown-name { font-size: 12px; font-weight: 400; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px; transition: color .18s; }
    .nav-dropdown-item:hover .nav-dropdown-name { color: #C62828; }
    .nav-dropdown-header { grid-column: 1/-1; padding: 0 4px 14px; margin-bottom: 8px; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 700; color: #C62828; letter-spacing: 1.5px; text-transform: uppercase; }
    .header-search-bar { display: block; background: #f9fafb; border-top: 1px solid #eee; padding: 10px 0; }
    .header-search-bar-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 20px; }
    .search-bar-wrap { display: flex; align-items: center; flex: 1; max-width: 520px; height: 46px; background: #fff; border: 2px solid #e0e0e0; border-radius: 10px; padding: 0 6px 0 14px; transition: border-color .25s, box-shadow .25s; }
    .search-bar-wrap:focus-within { border-color: #C62828; box-shadow: 0 0 0 4px rgba(198,40,40,.08); }
    .search-bar-icon { color: #aaa; flex-shrink: 0; margin-right: 6px; }
    .search-bar-input { flex: 1; border: none; background: transparent; font-size: 14px; color: #222; outline: none; height: 100%; }
    .search-bar-input::placeholder { color: #bbb; font-size: 13px; }
    .search-bar-btn { height: 34px; padding: 0 24px; background: linear-gradient(135deg, #C62828, #B71C1C); color: #fff; border: none; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: opacity .2s, transform .15s; flex-shrink: 0; }
    .search-bar-btn:hover { opacity: .9; transform: translateY(-1px); }
    .search-bar-filters { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .filter-chip-desktop { flex-shrink: 0; display: flex; align-items: center; gap: 5px; padding: 7px 14px; background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; text-decoration: none; font-size: 12.5px; font-weight: 500; color: #555; transition: all .22s ease; letter-spacing: .2px; }
    .filter-chip-desktop:hover { background-color: #f5f6f8; border-color: #bbb; color: #222; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .filter-chip-desktop svg { width: 14px; height: 14px; }
    .filter-chip-select-native {
        display: inline-block;
        appearance: none; -webkit-appearance: none; -moz-appearance: none;
        padding-right: 32px;
        background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
        background-size: 14px 14px;
        cursor: pointer;
        text-overflow: ellipsis;
        font-family: inherit;
        line-height: 1.5;
    }
    .filter-chip-select-native option { background: #fff; color: #333; }
    .filter-chip-select-native:hover {
        background: #f5f6f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
        background-size: 14px 14px;
        border-color: #bbb;
        color: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .filter-chip-select-native:focus-visible { outline: 2px solid #C62828; outline-offset: 2px; }
    .search-bar-hot { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .search-bar-hot-label { font-size: 12px; color: #999; white-space: nowrap; }
    .search-bar-hot-tag { font-size: 12px; color: #666; text-decoration: none; padding: 3px 10px; background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; white-space: nowrap; transition: all .2s; }
    .search-bar-hot-tag:hover { color: #C62828; border-color: #C62828; background: #fff5f5; }
    .mobile-search-row { display: none!important; }
}
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .header-search { display: none; }
}
