﻿/* ============================================================
   pricefile.css — 文件列表查询页样式
   设计语言与 home.css 统一，继承 :root 变量体系
   ============================================================ */

/* ---------- 页面 Hero 标题区 ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--brand) 0%, #2a56b5 100%);
    padding: 48px 0 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.page-hero::before {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.3;
}
.page-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 350;
}

/* ---------- 内容容器 ---------- */
.dvcontent {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 48px;
}

/* ---------- 搜索区 ---------- */
.search-section {
    background: var(--surface);
    padding: 24px 28px;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.search-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.form-group {
    flex: 1;
    min-width: 180px;
}

input,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    background-color: var(--surface);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
input:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(27,63,142,0.08);
}
input::placeholder {
    color: var(--text-4);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

.buttonS {
    padding: 10px 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    min-width: 80px;
    transition: background 0.2s ease;
}
.buttonS:hover {
    background: var(--brand-600);
}

/* ---------- 新闻列表 ---------- */
.news-list {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.news-item {
    padding: 14px 22px;
    border-bottom: 1px solid var(--divider);
    transition: background 0.15s ease;
}
.news-item:nth-child(even) {
    background: #fafbfd;
}
.news-item:hover {
    background: var(--brand-50);
}
.news-item:last-child {
    border-bottom: none;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-title {
    font-size: 15px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    flex: 1;
    display: block;
    line-height: 1.6;
    transition: opacity 0.2s ease;
}
.news-title:hover {
    opacity: 0.7;
}

.news-category {
    background: var(--brand-100);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin: 0 10px;
    white-space: nowrap;
}

.news-time {
    color: var(--text-4);
    padding-left:15px;
    padding-right:15px;
    font-size: 13px;
    white-space: nowrap;
}

.news-summary {
    color: var(--text-3);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.pagination button {
    margin: 0;
    padding: 7px 13px;
    cursor: pointer;
    background-color: var(--divider);
    color: var(--text-3);
    min-width: 34px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.pagination button:hover:not(:disabled) {
    background: var(--brand-50);
    color: var(--brand);
}
.pagination button.active {
    background-color: var(--brand);
    color: #fff;
}
.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.pagination span {
    font-size: 14px;
    color: var(--text-3);
}

/* ---------- 热门地区导航 ---------- */
.hot-regions {
    margin: 30px 0;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.hot-regions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 14px;
}
.hot-regions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hot-regions-links a {
    padding: 6px 16px;
    background: var(--brand-50);
    border-radius: 20px;
    text-decoration: none;
    color: var(--brand);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.hot-regions-links a:hover {
    background: var(--brand-100);
    color: var(--brand-600);
}

/* ---------- 分隔间距 ---------- */
.dv-space {
    height: 20px;
    width: 100%;
}

/* ============================================================
   响应式
   ============================================================ */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
    .dvcontent {
        padding: 0 24px;
    }
    .page-hero {
        padding: 36px 0 32px;
    }
    .page-hero h1 {
        font-size: 26px;
        letter-spacing: 1px;
    }
    .page-hero p {
        font-size: 14px;
    }
    .search-section {
        padding: 20px;
    }
}

/* Mobile: <= 768px */
@media (max-width: 768px) {
    .dvcontent {
        padding: 0 16px;
    }
    .page-hero {
        padding: 28px 0 24px;
    }
    .page-hero h1 {
        font-size: 22px;
    }
    .page-hero p {
        font-size: 13px;
    }
    .search-form {
        flex-direction: column;
        gap: 12px;
    }
    .form-group {
        min-width: 100%;
    }
    input,
    select {
        padding: 12px 14px;
        font-size: 16px; /* iOS 防止聚焦缩放 */
    }
    .buttonS {
        width: 100%;
        padding: 13px 24px;
        font-size: 15px;
    }
    .search-section {
        margin-top: 24px;
        padding: 16px;
    }
    .news-item {
        padding: 12px 16px;
    }
    .news-header {
        flex-wrap: wrap;
    }
    .news-title {
        font-size: 14px;
    }
    .news-category {
        font-size: 12px;
        padding: 2px 8px;
    }
    .news-time {
        font-size: 12px;
    }
    .pagination button {
        padding: 6px 10px;
        min-width: 28px;
        font-size: 13px;
    }
    .hot-regions {
        padding: 16px;
    }
    .hot-regions h3 {
        font-size: 15px;
    }
    .hot-regions-links a {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 20px;
    }
    .news-category,
    .news-time {
        font-size: 11px;
    }
    .hot-regions-links a {
        font-size: 12px;
        padding: 4px 10px;
    }
}
