/*  搜索框 */
.app-search {
    width: 100%;
}

.search-form {
    width: 70%;
    margin: 0 auto;
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    -webkit-border-radius: var(--radius-lg);
    -moz-border-radius: var(--radius-lg);
    -ms-border-radius: var(--radius-lg);
    -o-border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);

}

.search-box {
    box-shadow: var(--shadow-spread);
    transition: box-shadow 0.3s ease;
    border-radius: var(--radius);
    -webkit-border-radius: var(--radius);
    -moz-border-radius: var(--radius);
    -ms-border-radius: var(--radius);
    -o-border-radius: var(--radius);
}

.search-input {
    position: relative;
    display: inline-block;
}

.search-input input[type="text"] {
    width: 35vw;
    height: 2.5rem;
    padding: 0 1.25rem 0 2.5rem;
    border: 1px solid var(--border);
    outline: none;
    background-color: var(--bg);
}

.search-input input::placeholder {
    color: #666;
    font-size: 1rem;
    letter-spacing: 1px;
}


.search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
}

.search-icon img {
    width: 1.5rem;
    height: 1.5rem;
}

.search-btn {
    position: relative;
    margin-left: -1rem;
    padding-left: var(--space-12);
    padding-right: var(--space-12);
    font-size: 1rem;
    letter-spacing: 0.1rem;
    border-radius: var(--radius);
    -webkit-border-radius: var(--radius);
    -moz-border-radius: var(--radius);
    -ms-border-radius: var(--radius);
    -o-border-radius: var(--radius);
}


/* 资讯标题 */
.con-head {
    width: 90%;
    margin: var(--space-xl) auto 0;
}

.section-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.con-title-zh {
    margin: 0;
    font-weight: bold;
    color: var(--fg);
}

.con-title-en {
    margin: 0;
    color: var(--primary);
    text-align: center;
}

.con-head-round {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--primary);
    border-radius: var(--round);
    -webkit-border-radius: var(--round);
    -moz-border-radius: var(--round);
    -ms-border-radius: var(--round);
    -o-border-radius: var(--round);
}

.con-head-line {
    height: 2px;
    background-color: var(--primary);
}


/* 新闻列表 */
.news-list {
    width: 90%;
    margin: 0 auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.news-item {
    margin-bottom: var(--space-12);
}

.news-item::before {
    content: "";
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    background-color: var(--fg);
    border-radius: 50%;
    margin-right: var(--space-2);
}

.news-item:hover .news-title,
.news-item:hover .news-date {
    color: var(--primary);
}

.news-item .news-title {
    width: 70%;
    font-size: 1.25rem;
    color: var(--fg);
    text-decoration: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.news-item .news-date {
    width: 30%;
    font-size: 1.25rem;
    color: var(--fg);
    text-align: right;
}

/* =====================
   资讯列表（桌面 + H5 适配）
   ===================== */
@media screen and (max-width: 768px) {

    /* 标题区 */
    .con-head {
        width: 90%;
        margin: var(--space-12) auto 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .con-title-zh {
        margin: 0;
        font-weight: bold;
        color: var(--fg);
    }

    .con-title-en {
        margin: 0;
        color: var(--primary);
        text-align: center;
    }

    .con-head-round {
        width: 1.2rem;
        height: 1.2rem;
        border: 2px solid var(--primary);
        border-radius: var(--round);
    }

    .con-head-line {
        height: 2px;
        background-color: var(--primary);
        flex: 1;
    }

    /* 新闻列表 */
    .news-list {
        width: 90%;
        margin: 0 auto;
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .news-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-8);
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: var(--space-4);
        transition: color 0.3s;
    }

    .news-item::before {
        content: "";
        display: block;
        width: 0.25rem;
        height: 0.25rem;
        background-color: var(--fg);
        border-radius: 50%;
        margin-right: var(--space-2);
    }

    .news-item:hover .news-title,
    .news-item:hover .news-date {
        color: var(--primary);
    }

    /* 资讯标题（支持多行省略） */
    .news-item .news-title {
        width: 70%;
        font-size: 1.125rem;
        color: var(--fg);
        text-decoration: none;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* ✅ H5多行折行 */
        -webkit-box-orient: vertical;
        line-height: 1.5;
    }

    .news-item .news-date {
        width: 30%;
        font-size: 1rem;
        color: #666;
        text-align: right;
    }
}