/* ==========================================
   Sichuan Water Procurement Notice Stylesheet
   ========================================== */

/* 基础全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #f7f9fc;
    min-width: 1200px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button, input, select {
    font-family: inherit;
    outline: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   1. 头部 & 导航 (Header)
   ========================================== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid #f0f2f5;
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    height: 32px;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555555;
    font-size: 13px;
}

.hotline svg {
    color: #9398aa;
    width: 14px;
    height: 14px;
}

.top-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-top-login {
    background: #0055d7;
    color: #ffffff;
    border: none;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-top-login:hover {
    background: #0044b3;
}

.btn-top-register {
    background: #ffffff;
    color: #555555;
    border: 1px solid #dcdfe6;
    padding: 3px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-top-register:hover {
    color: #0055d7;
    border-color: #0055d7;
}

.header-main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 15px 0;
}

.logo-area {
    height: 34px;
    display: flex;
    align-items: center;
}

.logo-area img {
    height: 100%;
    object-fit: contain;
}

.nav-menu-bar {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link-item {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    padding: 8px 0;
    position: relative;
}

.nav-link-item:hover {
    color: #0055d7;
}

.nav-link-item.active {
    color: #0055d7;
}

.nav-link-item.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #0055d7;
    border-radius: 2px;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #dcdfe6;
    border-radius: 20px;
    overflow: hidden;
    height: 38px;
    background: #f7f9fc;
    transition: all 0.3s;
}

.header-search:focus-within {
    border-color: #0055d7;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0, 85, 215, 0.15);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0 16px;
    width: 130px;
    font-size: 13px;
    color: #333;
}

.search-btn {
    border: none;
    background: #0055d7;
    color: #ffffff;
    padding: 0 18px;
    height: 100%;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: #0044b3;
}

/* ==========================================
   2. 横幅与统计排版 (Flip Card Stats & Promo Banner Row)
   ========================================== */
.stats-banner-row {
    display: flex;
    gap: 20px;
    margin: 20px auto;
}

/* 左侧翻牌统计卡片 */
.stats-panel-left {
    flex: 3;
    height: 168px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border: 1px solid #eaedf3;
}

.stat-label-title {
    font-size: 14px;
    font-weight: bold;
    color: #666666;
}

/* 翻牌数字盒 */
.digital-row-container {
    display: flex;
    gap: 4px;
}

.digit-card {
    width: 32px;
    height: 44px;
    background: #0055d7;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 85, 215, 0.3);
}

.sub-stat-text-line {
    font-size: 13px;
    color: #555555;
    margin-top: 2px;
}

.sub-stat-text-line strong {
    color: #0055d7;
}

/* 右侧海报 Banner */
.banner-panel-right {
    flex: 9;
    height: 168px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e6f0ff 0%, #cce0ff 100%);
    position: relative;
    overflow: hidden;
    padding: 30px 40px;
    border: 1px solid #b3d4ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-new-badge {
    background: #ff4d4f;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 8px;
}

.banner-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #0055d7;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.banner-sub-title {
    font-size: 14px;
    color: #556688;
}

/* Banner 浮动按钮与插图 */
.banner-actions-floating {
    position: absolute;
    bottom: 24px;
    right: 250px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.btn-banner-tag {
    background: rgba(255, 255, 255, 0.85);
    color: #0055d7;
    border: 1px solid #b3d4ff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-banner-action {
    background: #0055d7;
    color: #ffffff;
    border: none;
    font-size: 12px;
    padding: 5px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-banner-action:hover {
    background: #0044b3;
}

/* 右侧大插图 */
.banner-decor-illustration {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 120px;
    opacity: 0.95;
    pointer-events: none;
}

/* ==========================================
   3. 筛选条件区 (Filter Panel)
   ========================================== */
.filter-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid #eaedf3;
    position: relative;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eaedf3;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.filter-title-tab {
    background: #0055d7;
    color: #ffffff;
    height: 38px;
    padding: 0 20px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: -14px; /* 贴紧底部边框 */
    box-shadow: 0 -2px 6px rgba(0, 85, 215, 0.1);
}

/* 内部检索输入 */
.filter-inline-search {
    display: flex;
    align-items: center;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    overflow: hidden;
    height: 32px;
    width: 260px;
}

.filter-search-input {
    border: none;
    padding: 0 10px;
    flex: 1;
    font-size: 12px;
    height: 100%;
}

.filter-search-btn {
    border: none;
    background: #0055d7;
    color: #ffffff;
    padding: 0 16px;
    height: 100%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* 筛选行 */
.filter-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.filter-label {
    width: 80px;
    font-weight: bold;
    color: #666666;
    font-size: 13px;
    padding-top: 4px;
    flex-shrink: 0;
}

.filter-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.filter-pill {
    border: none;
    background: transparent;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    color: #0055d7;
    background-color: #f0f5fc;
}

.filter-pill.active {
    background-color: #0055d7;
    color: #ffffff;
    font-weight: bold;
}

/* 折叠开关按钮 */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #0055d7;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px auto 0;
    width: fit-content;
    padding: 4px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-toggle-btn:hover {
    background-color: #f0f5fc;
}

/* ==========================================
   4. 主格栅列表 (Result List & Sidebar)
   ========================================== */
.main-grid-row {
    display: flex;
    gap: 24px;
    margin-bottom: 50px;
}

.result-list-col {
    flex: 8;
}

.sidebar-widgets-col {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 结果行头部统计 */
.result-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eaedf3;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.result-header-title {
    font-size: 16px;
    font-weight: bold;
    color: #111111;
}

.result-count-badge {
    font-size: 13px;
    color: #888888;
}

.result-count-badge strong {
    color: #ff4d4f;
    margin: 0 4px;
}

/* 公告卡片 Item */
.notice-item-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eaedf3;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.notice-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 85, 215, 0.06);
    border-color: #b3d4ff;
}

.notice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.notice-title-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.notice-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.notice-card-title:hover {
    color: #0055d7;
}

/* 精美彩色徽章 */
.notice-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}

.badge-green-status {
    background-color: #e6f7eb;
    color: #389e0d;
}

.badge-green-light {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.badge-blue-light {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.badge-orange-light {
    background-color: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.badge-red-light {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.notice-publish-date {
    font-size: 13px;
    color: #777777;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

/* 公告详情网格段 */
.notice-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8px;
    column-gap: 12px;
    padding-top: 10px;
    border-top: 1px dashed #f0f2f5;
}

.detail-grid-item {
    font-size: 13px;
    color: #666666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-grid-item span {
    color: #333333;
}

.detail-blue-link {
    color: #0055d7;
    cursor: pointer;
}

.detail-blue-link:hover {
    text-decoration: underline;
}

.detail-highlight-date {
    color: #0055d7 !important;
    font-weight: bold;
}

/* ==========================================
   5. 分页组件 (Pagination)
   ========================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    font-size: 13px;
    color: #555555;
}

.page-btn {
    border: 1px solid #dcdfe6;
    background: #ffffff;
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #0055d7;
    color: #0055d7;
}

.page-btn.active {
    background-color: #0055d7;
    border-color: #0055d7;
    color: #ffffff;
    font-weight: bold;
}

.page-btn:disabled {
    background: #f5f7fa;
    color: #c0c4cc;
    border-color: #e4e7ed;
    cursor: not-allowed;
}

.page-jump-input {
    border: 1px solid #dcdfe6;
    width: 40px;
    height: 32px;
    text-align: center;
    border-radius: 4px;
    margin: 0 4px;
}

/* ==========================================
   6. 侧边栏卡片组件 (Right Sidebar Widgets)
   ========================================== */
/* 今日交易 widget */
.today-transactions-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border: 1px solid #eaedf3;
    display: flex;
    flex-direction: column;
}

.today-header-bar {
    background: #0055d7;
    color: #ffffff;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    font-weight: bold;
    font-size: 15px;
}

.today-body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    min-height: 220px;
    gap: 15px;
}

.empty-state-text {
    font-size: 13px;
    color: #999999;
}

/* 中下部的推广卡片 */
.promo-sidebar-card {
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0055d7 0%, #0033a0 100%);
    box-shadow: 0 4px 15px rgba(0, 85, 215, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #ffffff;
}

.promo-card-main-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
}

.promo-card-sub-title {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 16px;
}

.btn-promo-join {
    background: #ffffff;
    color: #0055d7;
    border: none;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 15px;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-promo-join:hover {
    background-color: #f0f5fc;
}

/* ==========================================
   7. 页脚区域 (Footer)
   ========================================== */
.footer {
    background: #1e2229;
    color: #a0aec0;
    padding: 50px 0 35px;
    font-size: 13px;
    border-top: 5px solid #0055d7;
}

.footer-content-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 35px;
    border-bottom: 1px solid #2d3748;
}

.footer-logo-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-decor {
    width: 30px;
    height: 30px;
    background: #0055d7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ffffff;
}

.footer-logo-sub {
    font-size: 11px;
    color: #718096;
    letter-spacing: 1px;
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info-icon {
    color: #4a5568;
    width: 14px;
    text-align: center;
}

.footer-share-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-title {
    color: #ffffff;
    font-weight: bold;
}

.share-icons-group {
    display: flex;
    gap: 12px;
}

.share-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2d3748;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-icon-btn:hover {
    background: #0055d7;
    color: #ffffff;
}

.footer-bottom-copyright {
    text-align: center;
    padding-top: 25px;
    color: #718096;
    font-size: 12px;
}
