:root{
    --primary:#1677ff;
    --primary-light:#4096ff;
    --primary-dark:#0958d9;
    --primary-alpha:rgba(22,119,255,0.12);
    --primary-alpha-2:rgba(22,119,255,0.28);
    --bg:#f4f7fb;
    --panel:#ffffff;
    --panel-2:#fafcff;
    --border:#e3e9f2;
    --border-strong:#c9d6eb;
    --text:#1f2937;
    --text-dim:#4b5563;
    --text-muted:#8a93a6;
    --success:#22c55e;
    --hot:#ee2d2d;
    --hot-light:#ff6b6b;
}
*{box-sizing:border-box;}
body{
    background:var(--bg);
    color:var(--text);
}
a{color:inherit;text-decoration:none;}
img{
    max-width:100%;
    display:block;
    background:#eef4fb;
}
.line-clamp-1{
    display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
.line-clamp-2{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.scroll-hide::-webkit-scrollbar{display:none;}
.scroll-hide{-ms-overflow-style:none;scrollbar-width:none;}
.container-xl{
    width:100%;
    max-width:1580px;
    margin:0 auto;
    padding:0 20px;
}
.search-panel{
    background:
        linear-gradient(135deg, rgba(22,119,255,0.08), transparent 55%),
        var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px 32px;
    margin-bottom:24px;
    position:relative;
    overflow:hidden;
    box-shadow:0 4px 20px rgba(22,119,255,0.06);
}
.search-panel::before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:4px;
    background:linear-gradient(180deg, var(--primary), var(--primary-light));
}
.search-title{
    font-size:20px;
    font-weight:700;
    color:var(--primary-dark);
    margin-bottom:18px;
    letter-spacing:.5px;
    display:flex;
    align-items:center;
    gap:10px;
}
.search-title::before{
    content:"";
    width:4px;height:18px;
    background:var(--primary);
    border-radius:2px;
}
.search-form{
    display:flex;
    gap:12px;
    margin-bottom:20px;
}
.search-input{
    flex:1;
    background:#fff;
    border:1px solid var(--border-strong);
    border-radius:10px;
    padding:13px 16px;
    color:var(--text);
    font-size:15px;
    outline:none;
    transition:.25s;
}
.search-input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(22,119,255,0.12);
}
.search-btn{
    background:linear-gradient(180deg, var(--primary-light), var(--primary));
    color:#fff;
    border:none;
    border-radius:10px;
    padding:0 28px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}
.search-btn:hover{
    background:linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.filter-bar{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:20px 28px;
    margin-bottom:24px;
}
.filter-row{
    display:flex;
    align-items:flex-start;
    gap:16px;
    margin-bottom:16px;
}
.filter-row:last-child{margin-bottom:0;}
.filter-label{
    width:64px;
    flex-shrink:0;
    color:var(--primary-dark);
    font-size:14px;
    font-weight:700;
    padding-top:9px;
}
.filter-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.filter-tag{
    padding:8px 16px;
    background:var(--panel-2);
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--text-dim);
    font-size:14px;
    transition:.25s;
    cursor:pointer;
}
.filter-tag:hover{
    color:var(--primary);
    border-color:var(--primary-alpha-2);
    background:#eaf3ff;
}
.filter-tag.active{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
    font-weight:600;
}
.module-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:32px 0 20px;
    padding-bottom:14px;
    border-bottom:1px solid var(--border);
}
.module-title{
    font-size:20px;
    color:var(--primary-dark);
    font-weight:700;
    letter-spacing:.5px;
    display:flex;
    align-items:center;
    gap:10px;
}
.module-title i{
    color:var(--primary);
}
.module-more{
    font-size:14px;
    color:var(--primary);
    transition:.25s;
}
.module-more:hover{color:var(--primary-dark);}
/* 视图切换按钮 */
.view-switch{
    display:flex;
    gap:8px;
}
.view-switch button{
    border:1px solid var(--border);
    background:var(--panel-2);
    color:var(--text-dim);
    padding:6px 12px;
    border-radius:7px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}
.view-switch button.active{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

/* ================================================
   文字列表模板（重做版）：左缩略图 + 中信息 + 右操作
   ================================================ */
.text-list-wrap{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:8px 20px;
    overflow:hidden;
}
.text-list-item{
    display:flex;
    align-items:stretch;
    gap:18px;
    padding:16px 4px;
    border-bottom:1px solid var(--border);
    transition:.25s;
    position:relative;
}
.text-list-item:last-child{border-bottom:none;}
.text-list-item:hover{
    background:linear-gradient(90deg, rgba(22,119,255,0.045), transparent 60%);
    border-radius:8px;
}
/* 左侧：排名 + 缩略图 */
.text-list-left{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}
.text-list-index{
    width:30px;
    height:30px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    font-size:14px;
    font-weight:700;
    background:var(--panel-2);
    color:var(--text-muted);
    border:1px solid var(--border);
}
.text-list-index.top1{
    background:linear-gradient(135deg,#ff8a3d,#ee2d2d);
    color:#fff;
    border-color:transparent;
    box-shadow:0 3px 10px rgba(238,45,45,.35);
}
.text-list-index.top2{
    background:linear-gradient(135deg,#ffb347,#ff7a2f);
    color:#fff;
    border-color:transparent;
}
.text-list-index.top3{
    background:linear-gradient(135deg,#ffd280,#ffaa33);
    color:#fff;
    border-color:transparent;
}
.text-list-thumb{
    width:110px;
    height:72px;
    border-radius:10px;
    overflow:hidden;
    flex-shrink:0;
    background:#000;
    position:relative;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.text-list-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.3s;
}
.text-list-item:hover .text-list-thumb img{
    transform:scale(1.05);
}
/* 中间：标题 + 元信息 + 简介 */
.text-list-main{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
}
.text-list-title-row{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.text-list-name{
    font-size:15px;
    font-weight:700;
    color:var(--text);
    transition:.2s;
}
.text-list-name:hover{color:var(--primary);}
.text-list-tag{
    font-size:11px;
    padding:2px 8px;
    border-radius:4px;
    font-weight:600;
}
.text-list-tag.engine{
    background:var(--primary-alpha);
    color:var(--primary-dark);
}
.text-list-tag.type{
    background:#f0f4f9;
    color:var(--text-dim);
    border:1px solid var(--border);
}
.text-list-meta{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    font-size:12px;
    color:var(--text-muted);
}
.text-list-meta span i{
    color:var(--primary);
    margin-right:3px;
}
.text-list-desc{
    font-size:12.5px;
    color:var(--text-dim);
    line-height:1.5;
}
/* 右侧：今日徽章 + 价格 + 按钮 */
.text-list-right{
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:center;
    gap:8px;
    min-width:180px;
}
.text-list-price-row{
    display:flex;
    align-items:center;
    gap:10px;
}
.text-list-today{
    background:linear-gradient(135deg,var(--hot-light),var(--hot));
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:3px 9px;
    border-radius:4px;
    box-shadow:0 2px 6px rgba(238,45,45,.3);
    letter-spacing:1px;
}
.text-list-price{
    font-size:15px;
    color:var(--primary-dark);
    font-weight:700;
}
.text-list-actions{
    display:flex;
    gap:8px;
}
.text-list-btn{
    padding:7px 16px;
    border-radius:7px;
    font-size:12.5px;
    font-weight:600;
    transition:.25s;
}
.text-list-btn.detail{
    border:1px solid var(--primary-alpha-2);
    color:var(--primary);
    background:#fff;
}
.text-list-btn.detail:hover{
    background:#eaf3ff;
}
.text-list-btn.dl{
    background:linear-gradient(180deg, var(--primary-light), var(--primary));
    color:#fff;
    box-shadow:0 3px 10px rgba(22,119,255,.25);
}
.text-list-btn.dl:hover{
    background:linear-gradient(180deg, var(--primary), var(--primary-dark));
}
/* 窄屏时收起缩略图和简介 */
@media(max-width:720px){
    .text-list-thumb{width:80px;height:56px;}
    .text-list-desc{display:none;}
    .text-list-right{min-width:140px;}
}

/* 卡片网格 */
.grid-4col{
    display:grid;
    grid-template-columns:repeat(1,1fr);
    gap:24px;
}
@media(min-width:720px){
    .grid-4col{grid-template-columns:repeat(2,1fr);}
}
@media(min-width:1100px){
    .grid-4col{grid-template-columns:repeat(3,1fr);}
}
@media(min-width:1400px){
    .grid-4col{grid-template-columns:repeat(4,1fr);}
}
.card-legend{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    transition:.3s ease;
    position:relative;
    display:flex;
    flex-direction:column;
}
.card-legend:hover{
    border-color:var(--primary-alpha-2);
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(22,119,255,0.12), 0 0 0 1px rgba(22,119,255,0.08);
}
.card-thumb{
    position:relative;
    width:100%;
    height:210px;
    overflow:hidden;
    background:#000;
}
.card-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s ease;
}
.card-legend:hover .card-thumb img{
    transform:scale(1.06);
}
.card-thumb::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}
.card-badge{
    position:absolute;
    top:14px;
    left:14px;
    z-index:3;
    background:var(--primary);
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:4px 10px;
    border-radius:6px;
}
.card-type{
    position:absolute;
    top:14px;
    left:86px;
    z-index:3;
    background:rgba(255,255,255,0.92);
    color:var(--primary-dark);
    font-size:12px;
    padding:4px 10px;
    border-radius:6px;
    border:1px solid var(--border-strong);
}
.card-today{
    position:absolute;
    top:7px;
    right:7px;
    z-index:3;
    background:linear-gradient(135deg,var(--hot-light),var(--hot));
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:4px 12px;
    border-radius:6px;
    box-shadow:0 2px 10px rgba(238,45,45,.45);
    letter-spacing:1px;
}
.card-today::before{
    content:"👍";
    display:inline-block;
    margin-right:4px;
    width:20px;
    height:20px;
    line-height:20px;
    text-align:center;
    background:rgba(255,255,255,.25);
    border-radius:50%;
    font-size:12px;
}
.card-body{
    padding:16px 18px 18px;
    flex:1;
    display:flex;
    flex-direction:column;
}
.card-title{
    font-size:16px;
    font-weight:700;
    color:var(--text);
    line-height:1.4;
    margin-bottom:10px;
    transition:.25s;
}
.card-title:hover{color:var(--primary);}
.card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:var(--text-muted);
    margin-bottom:12px;
}
.card-meta span i{
    color:var(--primary);
    margin-right:4px;
}
.card-desc{
    font-size:13px;
    color:var(--text-dim);
    margin-bottom:16px;
    flex:1;
}
.card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:14px;
    border-top:1px dashed var(--border);
}
.card-price{
    font-size:14px;
    color:var(--primary-dark);
    font-weight:700;
}
.card-actions{
    display:flex;
    gap:10px;
}
.card-btn{
    padding:7px 14px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    transition:.25s;
}
.card-btn.detail{
    border:1px solid var(--primary-alpha-2);
    color:var(--primary);
    background:#fff;
}
.card-btn.detail:hover{
    background:#eaf3ff;
}
.card-btn.download{
    background:linear-gradient(180deg, var(--primary-light), var(--primary));
    color:#fff;
}
.card-btn.download:hover{
    background:linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.banner-box{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    border:1px solid var(--border);
    margin-bottom:28px;
    height:260px;
    box-shadow:0 6px 24px rgba(22,119,255,0.08);
}
@media(min-width:720px){
    .banner-box{height:340px;}
}
.banner-item{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .7s ease;
}
.banner-item.active{
    opacity:1;
    z-index:1;
}
.banner-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.banner-dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:5;
}
.banner-dots span{
    width:10px;height:10px;
    border-radius:50%;
    background:rgba(255,255,255,0.45);
    transition:.3s;
}
.banner-dots span.active{
    background:var(--primary);
    width:24px;
    border-radius:5px;
}
.hot-bar{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:16px 22px;
    margin-bottom:28px;
    display:flex;
    align-items:center;
    gap:14px;
}
.hot-label{
    color:var(--primary-dark);
    font-size:15px;
    font-weight:700;
    flex-shrink:0;
}
.hot-list{
    flex:1;
    display:flex;
    gap:12px;
    overflow-x:auto;
}
.hot-list a{
    flex-shrink:0;
    font-size:14px;
    color:var(--text-dim);
    padding:6px 12px;
    border-radius:7px;
    background:var(--panel-2);
    border:1px solid var(--border);
    transition:.25s;
}
.hot-list a:hover{
    color:var(--primary);
    border-color:var(--primary-alpha-2);
    background:#eaf3ff;
}
.empty-tip{
    padding:60px 0;
    text-align:center;
    color:var(--text-muted);
    background:var(--panel);
    border:1px dashed var(--border-strong);
    border-radius:16px;
}
.loading-tip{
    text-align:center;
    padding:20px;
    color:var(--text-muted);
}