/* ==========================================
   Sichuan Water Portal Homepage 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;
}

ul {
    list-style: none;
}

button, input {
    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. 横幅海报区域 (Hero Banner)
   ========================================== */
.hero-banner-wrapper {
    height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 44px;
    color: #E9F3E3; /* 变更为 #E9F3E3 填充色 */
    font-weight: 800;
    font-style: italic; /* 截图同款倾斜字型 */
    letter-spacing: 2px;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); /* 截图同款立体暗影 */
}

/* ==========================================
   3. 浮动统计面板 & 欢迎面板
   ========================================== */
.stats-floating-row {
    margin-top: -65px;
    position: relative;
    z-index: 20;
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

/* 左侧统计数据卡片 */
.stats-card-left {
    flex: 8;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #eaedf3;
}

.stat-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-light { background-color: #e6f0ff; color: #0055d7; }
.bg-cyan-light { background-color: #e0f8f8; color: #00b3b3; }
.bg-orange-light { background-color: #fff0e6; color: #ff6600; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: #666666;
}

.stat-value-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

.stat-trend {
    font-size: 13px;
    font-weight: bold;
    color: #ff4d4f;
    display: flex;
    align-items: center;
}

.stat-trend.blue-trend {
    color: #0055d7;
}

/* 右侧欢迎问候卡片 */
.greeting-card-right {
    flex: 4;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.user-profile-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: #e6f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0055d7;
}

.greeting-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.greeting-hello {
    font-weight: bold;
    font-size: 15px;
    color: #111111;
}

.greeting-welcome {
    font-size: 12px;
    color: #888888;
}

.greeting-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-greet-login {
    flex: 1;
    background: #e6f0ff;
    color: #0055d7;
    border: none;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-greet-login:hover {
    background: #0055d7;
    color: #ffffff;
}

.btn-greet-register {
    flex: 1;
    background: #f4f5f8;
    color: #555555;
    border: none;
    height: 36px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-greet-register:hover {
    background: #eaebef;
}

/* ==========================================
   4. 通知公告跑马灯 (Notice Ticker)
   ========================================== */
.notice-ticker-bar {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-left: 4px solid #0055d7;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0055d7;
    font-weight: bold;
    font-size: 15px;
    margin-right: 25px;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
}

.ticker-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ticker-text {
    color: #333333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-text:hover {
    color: #0055d7;
}

.ticker-date {
    color: #888888;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 20px;
}

/* ==========================================
   5. 公告信息区域 (Announcement Block)
   ========================================== */
.block-title-container {
    text-align: center;
    margin-bottom: 24px;
}

.block-title-sub {
    font-size: 12px;
    font-weight: bold;
    color: #a0aec0;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.block-title-main {
    font-size: 26px;
    font-weight: 800;
    color: #1a202c;
    margin-top: 4px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.block-title-main::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #0055d7;
    border-radius: 2px;
}

.section-grid {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.grid-col-left {
    flex: 8;
}

.grid-col-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 左侧公告卡片面板 */
.announcement-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 24px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* 第一层 Tab (类别) */
.tab-level-one {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #eaedf3;
    padding-bottom: 0;
    margin-bottom: 20px;
    justify-content: space-between;
}

.tab-one-items {
    display: flex;
    gap: 6px;
}

.tab-one-btn {
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #555555;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    position: relative;
    margin-bottom: -2px;
}

.tab-one-btn.active {
    background: #0055d7;
    color: #ffffff;
}

.tab-more-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0055d7;
    font-size: 13px;
    font-weight: bold;
}

.tab-more-icon-decor {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e6f0ff;
    color: #0055d7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 第二层 Tab (状态公告类型) */
.tab-level-two {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.tab-two-btn {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    color: #666666;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
}

.tab-two-btn.active {
    color: #0055d7;
}

.tab-two-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0055d7;
}

/* 表格样式 */
.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th {
    background: #f7f9fc;
    color: #555555;
    font-weight: bold;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #eaedf3;
}

.portal-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    color: #333333;
}

.portal-table tr:hover td {
    background-color: #f7f9fc;
}

.project-name-cell {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-name-cell a:hover {
    color: #0055d7;
}

.date-cell {
    color: #777777;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.action-cell a {
    color: #0055d7;
    font-weight: 500;
}

.action-cell a:hover {
    color: #0044b3;
    text-decoration: underline;
}

/* 右侧侧边栏卡片 */
.nav-banner-card {
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.nav-banner-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.card-content-wrap {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title-main {
    font-size: 18px;
    font-weight: 800;
    color: #111111;
}

.card-more-action {
    background: #0055d7;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
    font-weight: bold;
    transition: background-color 0.2s;
}

.nav-banner-card:hover .card-more-action {
    background: #0044b3;
}

/* ==========================================
   6. 交易动态区域 (Transaction Dynamics)
   ========================================== */
.dynamics-panel {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 24px;
    min-height: 290px;
}

.dynamic-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

.badge-blue {
    background-color: #e6f0ff;
    color: #0055d7;
}

.badge-orange {
    background-color: #fff0e6;
    color: #ff6600;
}

.company-name-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.square-tag {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    font-size: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tag-blue { background-color: #0055d7; }
.tag-orange { background-color: #ff6600; }

/* 今日交易占位图卡 */
.today-transactions-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    height: 100%;
    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;
}

/* ==========================================
   7. 中部宣传栏 (Promo Banner)
   ========================================== */
.promo-banner-middle {
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e6f0ff 0%, #d2e4ff 100%);
    border: 1px solid #b3d4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.promo-left-text {
    font-size: 26px;
    font-weight: 800;
    color: #0055d7;
    letter-spacing: 1px;
}

.promo-right-decor {
    width: 200px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.85;
}

/* ==========================================
   8. 服务流程区域 (Service Process)
   ========================================== */
.process-timeline-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 40px 30px 50px;
    margin-bottom: 50px;
}

.timeline-track-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 20px 0 32px;
}

/* 时间轴线（带右侧端点箭头） */
.timeline-main-line {
    position: absolute;
    bottom: 37px; /* 对齐圆点中心 */
    left: 4%;
    right: 4%;
    height: 5px;
    background-color: #0055d7;
    z-index: 1;
}

.timeline-main-line::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid #0055d7;
    z-index: 2;
}

/* 垂直连接线 */
.process-vertical-line {
    width: 2px;
    height: 35px;
    background-color: #0055d7;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 轴线上的圆点 */
.timeline-node-dot {
    width: 14px;
    height: 14px;
    background-color: #0055d7; /* 截图同款纯实心蓝圆 */
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
}

/* 流程卡片容器 */
.process-node-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.process-info-box {
    background: #ffffff;
    border: 1px solid #f0f4fa;
    border-radius: 8px;
    padding: 14px 16px;
    width: 220px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 85, 215, 0.03);
}

.process-node-card:hover .process-info-box {
    border-color: #0055d7;
    box-shadow: 0 8px 20px rgba(0, 85, 215, 0.08);
    transform: translateY(-5px);
}

.process-node-card:hover .process-vertical-line {
    height: 40px; /* 悬浮时轻微拉伸效果 */
}

.process-node-card:hover .timeline-node-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 85, 215, 0.5);
}

.proc-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.proc-step-title {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
}

.proc-step-num {
    font-size: 12px;
    color: #b5c4db; /* 截图同款淡蓝色 */
    font-weight: 500;
}

.proc-step-desc {
    font-size: 12px;
    color: #444444; /* 参照交易动态的文字颜色 */
    line-height: 1.4;
}

/* ==========================================
   9. 页脚区域 (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;
}

/* 页脚 Logo */
.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;
}
