/* ==========================================================
   每日推荐 + 筛选抽屉（2026-09-15 首页改版）
   ========================================================== */

/* ---------- 每日推荐 ---------- */
.daily-badge {
    display: inline-block;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #e8f7ee;
    border: 1px solid #bbf7d0;
    border-radius: 99px;
    margin-left: 6px;
    vertical-align: 1px;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ---------- 全球展会工具栏（筛选入口 + 状态 + 视图切换） ---------- */
.global-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-spacer {
    flex: 1;
}
.btn-filter-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.btn-filter-entry:hover {
    background: #eff6ff;
}
.btn-filter-entry i {
    font-size: 15px;
}
.filter-entry-hint {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}
.status-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.daily-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.daily-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 顶部渐变色条：国内粉 / 国际绿 */
.daily-card-strip {
    height: 4px;
}
.daily-card-strip.strip-pro {
    background: linear-gradient(90deg, #ec4899, #f97316);
}
.daily-card-strip.strip-intl {
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
}

.daily-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 0;
}
.daily-date-block {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 6px 0;
}
.daily-date-block .m {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
}
.daily-date-block .d {
    font-size: 20px;
    font-weight: 800;
    color: #15803d;
    line-height: 1.2;
}
.daily-date-block .w {
    font-size: 11px;
    color: #16a34a;
}
.daily-head-info {
    flex: 1;
    min-width: 0;
}
.daily-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}
.daily-name a {
    color: inherit;
    text-decoration: none;
}
.daily-name a:hover {
    color: var(--primary);
}
.daily-en {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.4;
    word-break: break-word;
}
.daily-countdown {
    flex-shrink: 0;
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}

.daily-meta {
    padding: 12px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.daily-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #475569;
    min-width: 0;
}
.daily-meta-line i {
    color: #94a3b8;
    flex-shrink: 0;
}
.daily-meta-line--date {
    justify-content: space-between;
    gap: 10px;
}
.daily-loc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 三个统计：本届已报名 / 往届展商 / 中国展商 */
.daily-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 16px 0;
    padding: 12px 0;
    border-top: 1px dashed var(--gray-200);
}
.daily-stat {
    display: block;
    text-align: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease;
}
.daily-stat:hover {
    transform: translateY(-1px);
}
.daily-stat .lbl {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.daily-stat .lbl i {
    font-size: 12px;
}
.daily-stat .val {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.daily-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 16px;
}
.daily-country {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.daily-country.country-pro {
    color: #be185d;
    background: #fdf2f8;
}
.daily-country.country-intl {
    color: #15803d;
    background: #f0fdf4;
}
.daily-web {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.daily-web:hover {
    text-decoration: underline;
}

/* ---------- 筛选悬浮按钮（右侧居中固定，避免与回到顶部按钮重叠） ---------- */
.filter-fab {
    position: fixed;
    right: 18px;
    top: 50%;
    bottom: auto;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-50%);
    transition: transform .15s ease, box-shadow .15s ease;
}
.filter-fab:hover {
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}
.filter-fab i {
    font-size: 16px;
}

/* ---------- 筛选抽屉 ---------- */
.filter-drawer-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.filter-drawer-mask.show {
    opacity: 1;
    pointer-events: auto;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: 620px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}
.filter-drawer.open {
    transform: translateX(0);
    -webkit-transform: translateX(0);
}

.filter-drawer-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
}
.filter-drawer-head .title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}
.filter-drawer-head .match {
    flex: 1;
    font-size: 12.5px;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
    padding: 2px 10px;
    text-align: center;
}
.filter-drawer-head .close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.filter-drawer-head .close:hover {
    background: var(--gray-100, #f1f5f9);
    color: #0f172a;
}

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
}
.filter-hint {
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
}
.filter-drawer-group {
    margin-bottom: 16px;
}
.filter-drawer-group .filter-row,
.filter-drawer-group .filter-group {
    display: block;
}
.filter-drawer-group .filter-chips {
    margin-top: 8px;
}

.filter-drawer-foot {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--gray-200);
}
.btn-drawer {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-drawer--reset {
    background: #fff;
    border: 1px solid var(--gray-200, #e2e8f0);
    color: #475569;
}
.btn-drawer--reset:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.btn-drawer--ok {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
}
.btn-drawer--ok:hover {
    background: #1d4ed8;
}

/* 移动端 */
@media (max-width: 1280px) {
    .daily-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .daily-grid {
        grid-template-columns: 1fr !important;
    }
    .filter-fab {
        right: 12px;
        padding: 8px 14px;
    }
}
