/* list.css - 文章列表页样式（独立完整版） */

/* 移动端适配 - rem 基准 */
html {
    font-size: calc(100vw / 3.75);
    /* 375px 设计稿，1rem = 100px */
}

@media (min-width: 540px) {
    html {
        font-size: 144px;
        /* 最大宽度限制 */
    }
}

@media (max-width: 320px) {
    html {
        font-size: 85.333333px;
        /* 最小宽度适配 */
    }
}

/* 基础重置 */
* {
    padding: 0;
    margin: 0;
    line-height: normal;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: #505050;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f7f8fa;
}

a {
    text-decoration: none;
    color: inherit;
}



/* 分类标签 */
.tabs {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0.16rem 0.16rem 0.12rem;
    gap: 0.32rem;
    /* position: sticky;
    top: 0; */
    z-index: 100;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
}

.tab-item {
    position: relative;
    font-size: 0.15rem;
    /* 56.25px */
    line-height: 0.28rem;
    /* 105px */
    color: #646566;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 0.08rem;
    /* 30px */
}

.tab-item.active {
    color: #3e83e5;
    font-weight: 700;
    font-size: 0.17rem;
    /* 63.75px */
}

.tab-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.03rem;
    /* 11.25px */
    background: linear-gradient(90deg, #3e83e5, #5c9aef);
    border-radius: 0.02rem;
    /* 7.5px */
}

/* 文章列表 */
.article-list {
    padding: 0.16rem 0.12rem 0.12rem;
    /* 60px 45px 45px */
}

.article-item {
    display: flex;
    gap: 0.14rem;
    /* 52.5px */
    background: #fff;
    border-radius: 0.16rem;
    /* 60px */
    padding: 0.16rem;
    /* 60px */
    margin-bottom: 0.14rem;
    /* 52.5px */
    box-shadow: 0 0.02rem 0.12rem rgba(0, 0, 0, 0.04);
    /* 0 7.5px 45px */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.03rem;
    /* 11.25px */
    background: linear-gradient(90deg, transparent, #3e83e5, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-item:active {
    transform: scale(0.98);
    box-shadow: 0 0.01rem 0.08rem rgba(0, 0, 0, 0.06);
    /* 0 3.75px 30px */
}

.article-item:active::before {
    opacity: 1;
}

.article-cover {
    flex-shrink: 0;
    width: 1.10rem;
    /* 412.5px */
    height: 0.82rem;
    /* 307.5px */
    border-radius: 0.12rem;
    /* 45px */
    overflow: hidden;
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    position: relative;
    object-fit: cover;
}

.article-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.02));
    pointer-events: none;
}

.article-content {
    flex: 1;
    min-width: 0;
    /* display: flex; */
    /* flex-direction: column;
    justify-content: space-between; */
    padding: 0.02rem 0;
    /* 7.5px 0 */
}

.article-title {
    font-size: 0.16rem;
    /* 60px */
    line-height: 0.24rem;
    /* 90px */
    font-weight: 600;
    color: #323233;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.06rem 0;
    /* 0 0 22.5px 0 */
    letter-spacing: 0.003rem;
    /* 1.125px */
}

.article-desc {
    font-size: 0.13rem;
    /* 48.75px */
    line-height: 0.20rem;
    /* 75px */
    color: #969799;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: auto 0 0 0;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.10rem;
    /* 37.5px */
    padding: 0.24rem 0.18rem 0.32rem;
    /* 90px 67.5px 120px */
    font-size: 0.15rem;
    /* 56.25px */
}

.pagination a {
    padding: 0.08rem 0.12rem;
    /* 30px 45px */
    min-width: 0.32rem;
    /* 120px */
    height: 0.32rem;
    /* 120px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.08rem;
    /* 30px */
    transition: all 0.3s ease;
    color: #646566;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.04);
    /* 0 7.5px 30px */
}

.pagination a:active {
    transform: scale(0.95);
}

.pagination .active {
    background: linear-gradient(135deg, #3e83e5, #5c9aef);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0.04rem 0.12rem rgba(62, 131, 229, 0.3);
    /* 0 15px 45px */
}

/* 底部信息 */
.footer {
    background: #fff;
    padding: 0.24rem 0.16rem 0.28rem;
    /* 90px 60px 105px */
    /* margin-top: 0.12rem; */
    /* 45px */
}

.footer-buttons {
    display: flex;
    gap: 0.12rem;
    /* 45px */
    margin-bottom: 0.24rem;
    /* 90px */
}

.footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.10rem;
    /* 37.5px */
    padding: 0.14rem 0.12rem;
    /* 52.5px 45px */
    border: 1px solid #ebedf0;
    border-radius: 0.16rem;
    /* 60px */
    background: #fff;
    font-size: 0.14rem;
    /* 52.5px */
    color: #646566;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.02);
    /* 0 7.5px 30px */
}

.footer-btn:active {
    transform: scale(0.97);
    background: #f7f8fa;
    border-color: #3e83e5;
}

.footer-btn .icon {
    width: 0.22rem;
    /* 82.5px */
    height: 0.22rem;
    /* 82.5px */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-help {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%233e83e5" stroke-width="2.5" stroke-linecap="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><circle cx="12" cy="17" r="0.5" fill="%233e83e5"/></svg>');
}

.icon-phone {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%233e83e5" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>');
}

.footer-info {
    text-align: center;
    font-size: 0.12rem;
    /* 45px */
    line-height: 0.22rem;
    /* 82.5px */
    color: #969799;
}

.footer-info p {
    margin: 0.05rem 0;
    /* 18.75px 0 */
}