/* 首屏 Hero 区域 */
.cxzzt-hero { margin: 20px 0; }
.cxzzt-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1024px) {
    .cxzzt-hero__layout { grid-template-columns: minmax(0, 1fr) 500px; gap: 20px; }
}

/* 左：搜索 Hero */
.cxzzt-hero__main {
    position: relative;
    min-height: 340px;
    padding: 40px 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f3e8ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 1024px) { .cxzzt-hero__main { min-height: 420px; padding: 60px 52px; } }
.cxzzt-hero__main--with-bg {
    background-image: var(--cxzzt-hero-bg);
    background-size: cover;
    background-position: center;
}
.cxzzt-hero__main--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 60, 224, var(--cxzzt-hero-overlay)), rgba(109, 74, 255, calc(var(--cxzzt-hero-overlay) * 0.7)));
    z-index: 1;
}
.cxzzt-hero__main:not(.cxzzt-hero__main--with-bg)::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(109, 74, 255, .15), transparent 70%);
    border-radius: 50%;
}
.cxzzt-hero__main:not(.cxzzt-hero__main--with-bg)::after {
    content: '';
    position: absolute;
    right: 10%; bottom: -100px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(236, 72, 153, .12), transparent 70%);
    border-radius: 50%;
}
.cxzzt-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.cxzzt-hero__title {
    font-size: 26px; line-height: 1.25;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}
@media (min-width: 768px) { .cxzzt-hero__title { font-size: 32px; } }
@media (min-width: 1024px) { .cxzzt-hero__title { font-size: 38px; } }
.cxzzt-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, #6d4aff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cxzzt-hero__main--with-bg .cxzzt-hero__title { color: #fff; }
.cxzzt-hero__main--with-bg .cxzzt-hero__title em {
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cxzzt-hero__subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}
@media (min-width: 1024px) { .cxzzt-hero__subtitle { font-size: 15px; margin-bottom: 28px; } }
.cxzzt-hero__main--with-bg .cxzzt-hero__subtitle { color: rgba(255, 255, 255, .85); }

/* 搜索表单 */
.cxzzt-hero__search {
    display: flex;
    gap: 0;
    background: #fff;
    padding: 5px;
    max-width: 560px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.cxzzt-hero__main--with-bg .cxzzt-hero__search { box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.cxzzt-hero__search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    min-width: 0;
}
.cxzzt-hero__search-input-wrap svg { color: #9ca3af; flex-shrink: 0; }
.cxzzt-hero__search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    height: 42px;
    color: #1e293b;
    font-family: inherit;
    min-width: 0;
}
.cxzzt-hero__search input::placeholder { color: #9ca3af; }
.cxzzt-hero__search button {
    border: 0;
    padding: 0 24px;
    height: 42px;
    background: linear-gradient(135deg, #6d4aff, #5b3ce0);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.cxzzt-hero__search button:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .35); }
.cxzzt-hero__search button:active { transform: scale(.98); }

/* 热门搜索 */
.cxzzt-hero__hot {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cxzzt-hero__hot::-webkit-scrollbar { display: none; }
.cxzzt-hero__hot-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
}
.cxzzt-hero__main--with-bg .cxzzt-hero__hot-label { color: #fda4af; }
.cxzzt-hero__hot-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}
.cxzzt-hero__hot-tag {
 max-width: 140px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    flex-shrink: 0;
}
.cxzzt-hero__hot-tag:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
.cxzzt-hero__main--with-bg .cxzzt-hero__hot-tag {
    --this-bg: rgba(255, 255, 255, .18);
    --this-color: rgba(255, 255, 255, .92);
    --this-border: transparent;
    backdrop-filter: blur(4px);
}
.cxzzt-hero__main--with-bg .cxzzt-hero__hot-tag:hover {
    --this-bg: #fff;
    --this-color: #6d4aff;
}

/* 右：随机推荐 */
.cxzzt-hero__side {
    background: #fff;
    border: 1px solid #f3f4f6;
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}
@media (max-width: 1023px) { .cxzzt-hero__side { display: none; } }

.cxzzt-rec__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.cxzzt-rec__title-wrap { display: inline-flex; align-items: center; gap: 10px; }
.cxzzt-rec__title-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #6d4aff, #5b3ce0);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .25);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.cxzzt-rec__title { font-size: 15px; font-weight: 800; color: #1e293b; margin: 0; line-height: 1.2; }
.cxzzt-rec__subtitle { font-size: 11px; color: #9ca3af; margin: 2px 0 0; }
.cxzzt-rec__shuffle {
    font-size: 12px; font-weight: 600;
    color: #6d4aff;
    background: rgba(109, 74, 255, .08);
    border: 0;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px;
    transition: background .15s, color .15s, transform .15s;
    text-decoration: none;
}
.cxzzt-rec__shuffle:hover { background: #6d4aff; color: #fff; }
.cxzzt-rec__shuffle:active { transform: scale(.96); }

/* 推荐列表 */
.cxzzt-rec__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    flex: 1;
    align-content: start;
}
.cxzzt-rec__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #f1f3f8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
    min-width: 0;
}
.cxzzt-rec__item:hover {
    border-color: rgba(109, 74, 255, .35);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
    transform: translateY(-1px);
}
.cxzzt-rec__rank {
    width: 22px; height: 22px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    color: #cbd5e1;
    background: #f4f6fa;
}
.cxzzt-rec__item:nth-child(1) .cxzzt-rec__rank,
.cxzzt-rec__item:nth-child(2) .cxzzt-rec__rank,
.cxzzt-rec__item:nth-child(3) .cxzzt-rec__rank {
    color: #fff;
    background: linear-gradient(135deg, #6d4aff, #5b3ce0);
}
.cxzzt-rec__thumb {
    width: 48px; height: 36px;
    flex-shrink: 0;
    background: #f4f6fa;
    overflow: hidden;
}
.cxzzt-rec__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.cxzzt-rec__item:hover .cxzzt-rec__thumb img { transform: scale(1.08); }
.cxzzt-rec__body { flex: 1; min-width: 0; }
.cxzzt-rec__name {
    font-size: 13px; font-weight: 700; color: #1e293b;
    line-height: 1.3;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .15s;
}
.cxzzt-rec__item:hover .cxzzt-rec__name { color: #6d4aff; }
.cxzzt-rec__meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px;
    color: #9ca3af;
}
.cxzzt-rec__cat {
    background: #f4f6fa;
    color: #64748b;
    padding: 1px 6px;
    font-weight: 500;
}

/* 暗色模式适配 */
.dark-theme .cxzzt-hero__main:not(.cxzzt-hero__main--with-bg) {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}
.dark-theme .cxzzt-hero__main:not(.cxzzt-hero__main--with-bg) .cxzzt-hero__title { color: #fff; }
.dark-theme .cxzzt-hero__main:not(.cxzzt-hero__main--with-bg) .cxzzt-hero__subtitle { color: rgba(255,255,255,.7); }
.dark-theme .cxzzt-hero__main:not(.cxzzt-hero__main--with-bg) .cxzzt-hero__hot-tag {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
}
.dark-theme .cxzzt-hero__side {
    background: #1e293b;
    border-color: #334155;
}
.dark-theme .cxzzt-rec__head { border-color: #334155; }
.dark-theme .cxzzt-rec__title { color: #f1f5f9; }
.dark-theme .cxzzt-rec__item {
    background: #1e293b;
    border-color: #334155;
}
.dark-theme .cxzzt-rec__item:hover { border-color: rgba(109, 74, 255, .5); }
.dark-theme .cxzzt-rec__name { color: #f1f5f9; }
.dark-theme .cxzzt-rec__rank { background: #334155; color: #94a3b8; }
.dark-theme .cxzzt-rec__thumb { background: #334155; }
.dark-theme .cxzzt-rec__cat { background: #334155; color: #94a3b8; }
