/* ========== 全局 ========== */
:root {
    --primary: #FF5F2B;
    --bg: #f5f5f5;
    --text: #333;
    --bg-gray: #f8f9fc;
    --text-light: #999;
    --border: #eee;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0,0,0,0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    /* background: #f4f5f7; */
    color: #333;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.top-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img { height: 42px; width: auto; }
.logo { display: flex; align-items: center; }

/* 桌面搜索组件 */
.search-wrapper {
    flex: 1;
    margin: 0 20px;
    position: relative;
    max-width: 600px;
}
.search-area-desktop {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.search-area-desktop input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
}
.search-area-desktop button {
    background: var(--primary);
    border: none;
    padding: 0 20px;
    cursor: pointer;
}
.search-area-desktop button .search-icon {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

/* -- 下拉层 (PC/平板使用) -- */
.dropdown-layer {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 15px;
    border: 1px solid #ebebeb;
    z-index: 100;
}
.dropdown-layer.show { display: block; }
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dropdown-col .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: bold;
}
.clear-btn { color: #999; font-weight: normal; font-size: 12px; cursor: pointer; }

/* 公共：历史搜索 & 热门艺人（PC下拉层） */
#history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
#history-list .search-item {
    flex: 1 1 auto;
    max-width: calc(33.33% - 8px);
    min-width: 80px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: #f5f7fa;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#history-list .search-item:hover {
    background: #ffeff0;
    color: #ff5f2b;
}
#history-list .search-item .item-text {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

#hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#hot-list .search-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: 0.2s;
}
#hot-list .search-item:last-child { border-bottom: none; }
#hot-list .search-item:hover { background: #fafafa; }
#hot-list .search-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef1f5;
}
#hot-list .search-item .item-text {
    font-size: 14px;
    color: #333;
}

/* 桌面导航 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.nav-links a:hover { color: #ff4d4f; }
.user-actions span { margin-left: 15px; cursor: pointer; }

/* 手机操作按钮 (默认隐藏) */
.mobile-header-row { display: none; }

/* -- 手机端全屏搜索层 -- */
.mobile-search-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    padding: 15px;
    overflow-y: auto;
}
.mobile-search-fullscreen.show { display: block; }
.mobile-top-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}
.mobile-top-bar .close-fullscreen {
    font-size: 20px;
    color: #333;
    cursor: pointer;
}
.mobile-top-bar .mobile-search-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    outline: none;
    font-size: 14px;
    background: #f8f8f8;
}
.popup-section { margin-bottom: 24px; }
.popup-section-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* ===== 🆕 移动端搜索列表样式（补充） ===== */
#mobile-history-list,
#mobile-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-history-list .search-item,
#mobile-hot-list .search-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: 0.2s;
}

#mobile-history-list .search-item:last-child,
#mobile-hot-list .search-item:last-child {
    border-bottom: none;
}

#mobile-history-list .search-item:hover,
#mobile-hot-list .search-item:hover {
    background: #fafafa;
}

#mobile-history-list .search-item .item-text,
#mobile-hot-list .search-item .item-text {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

#mobile-hot-list .search-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef1f5;
}

/* 响应式 */
@media (max-width: 992px) {
    .nav-links { gap: 10px; font-size: 13px; }
    .nav-links .user-actions span { margin-left: 5px; }
}

/* ===== 侧边菜单容器 ===== */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.menu-close-btn {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
    padding: 4px;
}
.menu-close-btn:hover { color: #333; }
.menu-list { flex: 1; overflow-y: auto; padding: 12px 0; }
.menu-group { border-bottom: 1px solid #f8f8f8; }
.menu-group:last-child { border-bottom: none; }
.menu-item {
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.menu-item:hover { background: #f5f5f5; }
.menu-item:active { background: #eee; }
.menu-item-content {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 12px;
    font-size: 15px;
    color: #333;
}
.menu-item-content .iconfont { font-size: 20px; color: #666; }
.menu-item-content .arrow { margin-left: auto; font-size: 18px; color: #ccc; transition: transform 0.25s; }
.sub-menu {
    display: none;
    background: #fafafa;
    padding: 0 0 12px 0;
}
.sub-menu .sub-item {
    padding: 10px 24px 10px 56px;
    font-size: 14px;
    color: #666;
}
.sub-menu .sub-item a { text-decoration: none; color: inherit; display: block; }
.sub-menu .sub-item:hover { color: #ff4d4f; background: #f0f0f0; }
.menu-group.open > .sub-menu { display: block; }
.menu-group.open .arrow { transform: rotate(90deg); }
.menu-group.open > .menu-item .menu-item-content { color: #ff4d4f; }
.menu-group.open > .menu-item .menu-item-content .iconfont { color: #ff4d4f; }

/* ===== 底部 Footer ===== */
.site-footer {
    background: #1a1a1a;
    color: #aeb4b9;
    padding: 60px 0 20px;
    margin-top: 40px;
    font-size: 14px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-col .footer-logo img { width: 36px; height: 36px; border-radius: 6px; }
.footer-col .footer-logo span { font-size: 20px; font-weight: 700; color: #ff5f2b; letter-spacing: 1px; }
.footer-desc { margin-bottom: 20px; line-height: 1.6; }
.footer-tools {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.tool-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.tool-item:hover { background: rgba(255, 255, 255, 0.12); }
.tool-item .tool-label { color: #aeb4b9; }
.tool-item .tool-value { color: #fff; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #aeb4b9;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: #ff5f2b; }
.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copyright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-copyright .divider { color: rgba(255, 255, 255, 0.2); }

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col.brand-col { grid-column: 1 / 4; }
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 6px;
}
.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pagination li a:hover { background: #f5f5f5; border-color: #ddd; color: #FF5F2B; }
.pagination li.active span {
    background: #FF5F2B;
    border-color: #FF5F2B;
    color: #fff;
    font-weight: 600;
}
.pagination li.disabled span {
    color: #ccc;
    background: #fcfcfc;
    border-color: #f0f0f0;
    cursor: not-allowed;
}

/* ===== 列表筛选行：展开/收起功能 ===== */
@media (min-width: 769px) {
    .filter-row .filter-items {
        position: relative;
        max-height: 38px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-right: 36px;
    }
    .filter-row .filter-items.expanded {
        max-height: 1000px;
    }
    .filter-toggle-btn {
        position: absolute;
        right: 0;
        top: 0;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        cursor: pointer;
        transition: 0.2s;
        user-select: none;
        font-size: 14px;
        color: #FF5F2B;
        z-index: 10;
        opacity: 0;
        pointer-events: none;
    }
    .filter-toggle-btn.active {
        opacity: 1;
        pointer-events: auto;
    }
    .filter-toggle-btn::before {
        content: '+';
    }
    .filter-items.expanded .filter-toggle-btn::before {
        content: '−';
    }
    .filter-toggle-btn:hover {
        background: #f5f5f5;
    }
}

/* ===== 公共模块：APP下载栏 ===== */
.app-sidebar-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.app-download-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}
.app-download-card:hover {
    transform: translateY(-2px);
}

.app-qr-box {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
    border: 1px solid #eef2f6;
}
.app-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name-label {
    font-size: 18px;
    font-weight: 600;
    color: #1e2a3e;
    margin-bottom: 4px;
}

.app-slogan-label {
    font-size: 13px;
    color: #5e6f8d;
    line-height: 1.4;
}

/* ===== 移动端适配：改为横向布局 ===== */
@media (max-width: 768px) {
    .app-sidebar-wrapper {
        max-width: 100%;
    }
    .app-download-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }
    .app-qr-box {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .app-name-label {
        font-size: 16px;
    }
    .app-slogan-label {
        font-size: 12px;
    }
}

/* ===== 🎯 热门演出侧边栏（带你的移动端横向滚动） ===== */
.hot-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px 16px;
}

.hot-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* PC 端默认垂直列表 */
.hot-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    transition: 0.2s;
    padding: 4px 0;
    border-bottom: 1px solid #f8f8f8;
}
.hot-sidebar-item:last-child {
    border-bottom: none;
}
.hot-sidebar-item:hover {
    transform: translateX(4px);
}

.hot-sidebar-item-img {
    flex-shrink: 0;
    width: 80px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.hot-sidebar-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-sidebar-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hot-sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.hot-sidebar-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #FF5F2B;
}

/* ===== 📱 移动端：你的横向滚动代码 ===== */
@media (max-width: 768px) {
    .hot-sidebar-list {
        display: flex;
        flex-wrap: nowrap;          /* 强制不换行 */
        overflow-x: auto;           /* 超出横向滚动 */
        gap: 12px;
        padding-bottom: 8px;        /* 给滚动条留出空间 */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .hot-sidebar-item {
        flex: 0 0 130px;            /* 固定宽度，保证一行显示 */
        scroll-snap-align: start;
        text-decoration: none;
        display: flex;
        flex-direction: column;     /* 上图下文 */
        gap: 6px;
        padding: 0;
        border-bottom: none;        /* 移除去 PC 的分割线 */
    }

    .hot-sidebar-item-img {
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 8px;
        overflow: hidden;
        background: #f0f0f0;
        flex-shrink: 0;
    }
    .hot-sidebar-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hot-sidebar-item-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .hot-sidebar-item-title {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hot-sidebar-item-price {
        font-size: 14px;
        font-weight: 700;
        color: #FF5F2B;
    }
}

/* ===== 📱 移动端适配 (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* ===== 1. 热门演出：重置为横向滚动 ===== */
    .hot-sidebar-list {
        display: flex;
        flex-direction: row;           /* ✅ 显式重置为横向 */
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .hot-sidebar-item {
        flex: 0 0 130px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
        border-bottom: none;
    }

    .hot-sidebar-item-img {
        width: 100%;
        aspect-ratio: 3 / 4;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        background: #f0f0f0;
    }

    .hot-sidebar-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hot-sidebar-item-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .hot-sidebar-item-title {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hot-sidebar-item-price {
        font-size: 14px;
        font-weight: 700;
        color: #FF5F2B;
    }

    /* ===== 2. 其他移动端适配（如APP下载栏、顶部导航等） ===== */
    .app-sidebar-wrapper {
        max-width: 100%;
    }
    .app-download-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }
    .app-qr-box {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .app-name-label {
        font-size: 16px;
    }
    .app-slogan-label {
        font-size: 12px;
    }

    /* ===== 顶部导航 ===== */
    .header-inner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 16px 12px 16px !important;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .header-inner .search-wrapper,
    .header-inner .nav-links,
    .header-inner .pc-logo { display: none !important; }
    .mobile-header-row { display: flex !important; align-items: center; justify-content: space-between; width: 100%; }
    .mobile-top-row { height: 46px; padding-bottom: 8px; }
    .mobile-header-row .menu-icon { font-size: 20px; }
    .location-btn {
        display: flex;
        align-items: center;
        gap: 4px;
        background: var(--bg-gray);
        padding: 6px 12px;
        border-radius: 40px;
        font-size: 13px;
        font-weight: 500;
        color: var(--text);
    }
    .location-btn i { font-size: 16px; color: var(--primary); }
    .mobile-logo { flex: 1; display: flex !important; justify-content: center; align-items: center; }
    .mobile-logo img { height: 38px; }
    .menu-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-gray);
        border-radius: 50%;
    }
    .menu-btn i { font-size: 22px; color: var(--text); }
    .mobile-search-row { width: 100%; padding: 4px 0 0 0; display: flex !important; }
    .mobile-search-row .search-area-desktop {
        display: flex !important;
        width: 100%;
        border: 1px solid #e8e8e8;
        border-radius: 30px;
        overflow: hidden;
        background: #f8f8fa;
        height: 40px;
        align-items: center;
        transition: all 0.2s;
    }
    .mobile-search-row .search-area-desktop:focus-within {
        border-color: #ff5f2b;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(255,95,43,0.1);
    }
    .mobile-search-row .search-area-desktop input {
        flex: 1;
        border: none;
        padding: 0 14px;
        outline: none;
        font-size: 14px;
        background: transparent;
        height: 100%;
        color: #333;
    }
    .mobile-search-row .search-area-desktop input::placeholder { color: #bbb; }
    .mobile-search-row .search-area-desktop button {
        background: transparent;
        border: none;
        padding: 0 14px 0 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    .mobile-search-row .search-area-desktop button .search-icon { font-size: 18px; color: #bbb !important; }
    .mobile-search-row .search-area-desktop:focus-within button .search-icon { color: #ff5f2b !important; }
    .sidebar-aside { display: none; }

    /* ===== 底部 Footer ===== */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-col.brand-col { grid-column: 1 / 3; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-copyright { flex-direction: column; align-items: flex-start; gap: 6px; }
    .footer-copyright .divider { display: none; }
    .site-footer { padding: 40px 0 16px; }

    /* ===== 分页 ===== */
    .pagination {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        margin: 12px 0 8px 0;
    }
    .pagination li a,
    .pagination li span {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 4px;
        border-radius: 4px;
    }
}