/* 本文件仅存放当前页面专属样式；公共头部、搜索、页脚和通用组件在 common.css 中维护。 */

/* 主体 */
.page-main {
    padding: 14px 0 20px;
}

.page-main .container {
    display: flex;
    gap: 14px;
    align-items: stretch;
    position: relative;
}

/* 左侧分类 */
.category-sidebar {
    width: 218px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    /* box-shadow: var(--shadow); */
    position: relative;
    z-index: 60;
    overflow: visible;
    padding: 5px 0px;
}

.category-sidebar li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36.3px;
    padding: 0 14px;
    cursor: pointer;
    border-bottom: 1px solid #f7f7f7;
    color: var(--text);
    transition: background .12s, color .12s;
}

.category-sidebar li:first-child {
    border-radius: 10px 10px 0 0;
}

.category-sidebar li:last-child {
    border-bottom: 0;
    border-radius: 0 0 10px 10px;
}

.category-sidebar .category-sidebar_icon {
    width: 18px;
    display: flex;
    justify-content: center;
    color: var(--text-sub);
    flex-shrink: 0;
    transition: color .12s;
}

.category-sidebar .category-sidebar_name {
    flex: 1;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-sidebar .category-sidebar_name b {
    font-weight: 400;
    color: var(--text-sub);
}

.category-sidebar .category-sidebar_arrow {
    color: #ccc;
    display: flex;
}

/* 悬停整条橙色高亮 */
.category-sidebar li:hover {
    background: linear-gradient(90deg, #ffeee2, #fff9f9);
}

.category-sidebar li:hover .category-sidebar_icon,
.category-sidebar li:hover .category-sidebar_arrow,
.category-sidebar li:hover .category-sidebar_name b {
    /* color: #fff; */
}


.category-sidebar li:hover .category-sidebar_name,
.category-sidebar li:hover .category-sidebar_name b {
    /* color: #fff; */
}

.category-sidebar li:hover .category-sidebar_name a:hover {
    color: var(--orange-deep);
}

.category-sidebar_link-spaced {
    margin-right: 10px;
}

/* === Mega 弹出大面板 === */
.category-sidebar_panel {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 1px;
    width: min(936px, calc(100vw - 282px));
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 8px 10px 30px rgba(0, 0, 0, .12);
    padding: 22px 28px 26px;
    z-index: 90;
    column-count: 2;
    column-gap: 46px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-12px);
    transition: opacity .2s, transform .2s;
}

.category-sidebar li:hover .category-sidebar_panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.category-sidebar_group {
    break-inside: avoid;
    margin-bottom: 20px;
}

.category-sidebar_group h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 11px;
}

.category-sidebar_group .category-sidebar_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
}

.category-sidebar_group .category-sidebar_tags a {
    font-size: 13px;
    color: var(--text-sub);
    transition: color .15s;
    white-space: nowrap;
}

.category-sidebar_group .category-sidebar_tags a:hover {
    color: var(--orange-deep);
}

/* 中间内容 */
.page-main_center {
    flex: 1;
    min-width: 0;
}

.hero-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 483px;
    /* box-shadow: var(--shadow); */
}

.hero-banner_slides {
    height: 100%;
    position: relative;
}

.hero-banner_slide {
    position: absolute;
    inset: 0;
    color: #fff;
    opacity: 0;
    transition: opacity .6s;
    pointer-events: none;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 60%, #e04500 100%);
}

.hero-banner_slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner_slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-banner_slide.hero-banner_slide-blue {
    background: linear-gradient(135deg, #2f59b5, #3d6fd1 60%, var(--orange-deep));
}

.hero-banner_slide.hero-banner_slide-green {
    background: linear-gradient(135deg, #1fa84a, #34c759 55%, #0e7a37);
}

.hero-banner_slide .hero-banner_decor {
    position: absolute;
    inset: 0;
    opacity: .12;
    background: radial-gradient(circle at 80% 20%, #fff 0, transparent 30%), radial-gradient(circle at 95% 65%, #fff 0, transparent 25%);
}

.hero-banner_slide .hero-banner_title {
    position: absolute;
    top: 40px;
    left: 48px;
    font-size: 66px;
    font-weight: 800;
    letter-spacing: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.hero-banner_slide .hero-banner_brand {
    position: absolute;
    top: 150px;
    left: 52px;
}

.hero-banner_slide .hero-banner_brand .hero-banner_brand-en {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 2px;
    border-left: 6px solid #fff;
    padding-left: 16px;
    line-height: 1;
}

.hero-banner_slide .hero-banner_brand .hero-banner_brand-cn {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 6px;
    padding-left: 22px;
    margin-top: 8px;
}

.hero-banner_slide .hero-banner_subtitle {
    position: absolute;
    bottom: 16px;
    left: 48px;
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 8px;
    opacity: .95;
}

.hero-banner .ad-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 5;
}

.hero-banner .hero-banner_button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 54px;
    z-index: 6;
    cursor: pointer;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .2s;
}

.hero-banner:hover .hero-banner_button {
    opacity: 1;
}

.hero-banner .hero-banner_button-prev {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.hero-banner .hero-banner_button-next {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.hero-banner .hero-banner_button:hover {
    background: rgba(255, 80, 0, .85);
}

.hero-banner .hero-banner_dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 6;
}

.hero-banner .hero-banner_dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: .2s;
}

.hero-banner .hero-banner_dots i.is-active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.promo-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* box-shadow: var(--shadow); */
    transition: .22s;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
}

.promo-card.p1::before {
    background: linear-gradient(90deg, #34c759, #1fa84a);
}

.promo-card.p2::before {
    background: linear-gradient(90deg, #4d8af0, #2f6fe0);
}

.promo-card.p3::before {
    background: linear-gradient(90deg, #ff9f43, #ff7a18);
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange-line);
}

.promo-card .promo-card_title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-card .promo-card_badge {
    font-size: 11px;
    color: #fff;
    background: var(--orange-deep);
    border-radius: 3px;
    padding: 1px 6px;
    font-weight: 400;
}

.promo-card .promo-card_desc {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 5px;
}

.promo-card .promo-card_more {
    font-size: 13px;
    color: var(--orange-deep);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: gap .2s;
}

.promo-card:hover .promo-card_more {
    gap: 7px;
}

.promo-card .promo-card_icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.promo-card.p1 .promo-card_icon {
    background: linear-gradient(135deg, #34c759, #1fa84a);
}

.promo-card.p2 .promo-card_icon {
    background: linear-gradient(135deg, #4d8af0, #2f6fe0);
}

.promo-card.p3 .promo-card_icon {
    background: linear-gradient(135deg, #ff9f43, #ff7a18);
}

.promo-card .ad-label-small {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #f2f3f5;
    color: #999;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ========== 右侧栏 ========== */
.page-main_aside {
    width: 248px;
    flex-shrink: 0;
}

/* === 买家卡片 (1688风格) === */
.buyer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: var(--shadow); */
}

/* 顶部暖色问候区 */
.buyer-card .buyer-card_greeting {
    background: linear-gradient(165deg, #FFE6CF 0%, #FFF1E4 55%, #FFFAF5 100%);
    padding: 16px 16px 4px;
}

.buyer-card .buyer-card_title {
    font-size: 15.5px;
    font-weight: 800;
    color: #5b3c1f;
    margin-bottom: 3px;
    letter-spacing: .5px;
}

.buyer-card .buyer-card_title b {
    color: var(--orange-deep);
    font-weight: 800;
}

/* 权益标签 */
.buyer-card .buyer-card_tags {
    display: flex;
    gap: 0;
    margin-bottom: 6px;
}

.buyer-card .buyer-card_tags span {
    font-size: 12.5px;
    font-weight: 600;
}

/* 登录权益区 */
.buyer-card .buyer-card_perks {
    padding: 16px 12px 0;
    text-align: center;
}

.buyer-card .buyer-card_perks-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
}

.buyer-card .buyer-card_perks-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 4px;
    margin-bottom: 18px;
}

.buyer-card .buyer-card_perks-list li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
}

.buyer-card .buyer-card_perks-list li :is(svg, img) {
    width: 13px;
    height: 13px;
    color: var(--orange-deep);
    flex-shrink: 0;
}

/* 登录按钮 */
.buyer-card .buyer-card_login-button {
    display: block;
    margin: 0px 16px 22px 16px;
    height: 44px;
    line-height: 44px;
    border-radius: 22px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    box-shadow: 0 6px 16px rgba(255, 80, 0, .28);
    transition: .2s;
}

.buyer-card .buyer-card_login-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(255, 80, 0, .34);
}

.buyer-card .buyer-card_register {
    display: block;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-mute);
    padding-bottom: 20px;
}

.buyer-card .buyer-card_register a {
    color: var(--orange-deep);
    font-weight: 600;
}

.buyer-card .buyer-card_register a:hover {
    text-decoration: underline;
}

/* 快捷入口 */
.quick-links {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
    /* box-shadow: var(--shadow); */
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 21.5px 16px;
    border-bottom: 1px solid #f7f7f7;
    transition: .15s;
}

.quick-links a:last-child {
    border-bottom: 0;
}

.quick-links a:hover {
    background: var(--orange-soft);
}

.quick-links .quick-links_icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-deep);
    flex-shrink: 0;
}

.quick-links .quick-links_text {
    flex: 1;
}

.quick-links .quick-links_text .quick-links_title {
    font-size: 14px;
    color: var(--text);
}

.quick-links .quick-links_text .quick-links_desc {
    font-size: 12px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-links .quick-links_arrow {
    color: #ccc;
    display: flex;
}

.quick-links a:hover .quick-links_title {
    color: var(--orange-deep);
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .5s forwards;
}

.anim-delay-1 {
    animation-delay: .05s;
}

.anim-delay-2 {
    animation-delay: .12s;
}

.anim-delay-3 {
    animation-delay: .2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ========== 响应式 ========== */
/* panel width 已通过 min() 自适应，无需在此覆盖 */

/* 低于 1200px 的断点已移除 */

/* ==========================================
           展会模块扩展样式 (展会5新增)
           - 热门精选展会 / 国内展会 / 国际展会 / 展会日历 / Footer
           - 所有标签最多使用2个class
           ========================================== */

/* ----- 展会 Section 通用容器 ----- */
.exhibition-section {
    padding: 18px 0;
}

.exhibition-section-alt {
    /* background: #fafafa; */
    padding: 18px 0px 50px 0px;
    /* border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border); */
}

/* ----- Section 标题栏 ----- */
.exhibition-section_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.exhibition-section_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.exhibition-section_title :is(svg, img) {
    color: var(--orange-deep);
}

.exhibition-section_more {
    font-size: 14px;
    color: var(--text-mute);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .2s;
}

.exhibition-section_more:hover {
    gap: 8px;
}

/* ----- 展会卡片网格 ----- */
.exhibition-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.exhibition-card-grid-domestic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.exhibition-card-grid-international {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ----- 单张展会卡片 ----- */
.exhibition-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: var(--shadow); */
    transition: transform .22s, box-shadow .22s;
    display: flex;
    flex-direction: column;
}

.exhibition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--orange-line);
}

.exhibition-card_image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #e8eaed;
}

.exhibition-card_body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ----- 行业标签 ----- */
.exhibition-tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.exhibition-tag-industrial {
    background: #FF6A00;
}

.exhibition-tag-beauty {
    background: #e91e63;
}

.exhibition-tag-medical {
    background: #00bcd4;
}

.exhibition-tag-auto {
    background: #4caf50;
}

.exhibition-tag-electronics {
    background: #3d6fd1;
}

.exhibition-tag-energy {
    background: #ff9800;
}

.exhibition-tag-general {
    background: #795548;
}

.exhibition-tag-food {
    background: #8bc34a;
}

/* ----- 卡片文字内容 ----- */
.exhibition-card_title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.exhibition-card:hover .exhibition-card_title {
    color: var(--orange-deep);
}

.exhibition-card_meta {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.exhibition-card_meta :is(svg, img) {
    flex-shrink: 0;
    color: var(--orange);
}

/* ----- 筛选标签按钮组 ----- */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.filter-button:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.filter-button.is-active {
    background: var(--orange-deep);
    color: #fff;
    border-color: var(--orange-deep);
}

/* ----- 日历模块 ----- */
.calendar {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    /* box-shadow: var(--shadow); */
    overflow: hidden;
}

.calendar_header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.calendar_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.calendar_months {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.calendar-month_button {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.calendar-month_button:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.calendar-month_button.is-active {
    background: var(--orange-deep);
    color: #fff;
    border-color: var(--orange-deep);
}

.calendar-month_button:disabled {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    border-color: #eee;
}

.calendar_list {
    padding: 8px 24px 20px;
}

/* 单条日历行 */
.calendar_row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.calendar_row:last-child {
    border-bottom: 0;
}

.calendar_date {
    width: 88px;
    flex-shrink: 0;
    text-align: center;
}

.calendar_date-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--orange-deep);
    line-height: 1;
}

.calendar_date-sub {
    display: block;
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 4px;
}

.calendar_info {
    flex: 1;
    min-width: 0;
}

.calendar_info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    transition: color .2s;
}

.calendar_info-title:hover {
    color: var(--orange-deep);
}

.calendar_info-desc {
    font-size: 13px;
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar_action {
    flex-shrink: 0;
}

.calendar_action-button {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: filter .2s, transform .2s;
}

.calendar_action-button:hover {
    filter: brightness(1.06);
}

.calendar_action-button:active {
    transform: scale(.97);
}


/* 样式重构：替代展会首页标题区的内联布局。 */
.exhibition-section_header-stacked {
    flex-direction: column;
    align-items: flex-start;
}

.exhibition-section_toolbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.exhibition-section_header-spaced {
    margin-bottom: 28px;
}