@charset "UTF-8";
/* ============================================================
   中山市燃气协会公示系统 - 前端样式表
   风格：微信公众号文章简洁风，蓝色主题
   ============================================================ */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --text-main: #1a1a1a;
    --text-sub: #5f6368;
    --text-muted: #9aa0a6;
    --border: #e3e5e8;
    --bg: #f5f6f8;
    --bg-white: #ffffff;
    --shadow: 0 1px 4px rgba(0, 0, 0, .06);
    --radius: 10px;
    --header-h: 56px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
        "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    letter-spacing: .3px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    background: var(--primary);
    color: #fff;
    height: var(--header-h);
    line-height: var(--header-h);
    box-shadow: 0 2px 6px rgba(26, 115, 232, .18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.brand:hover {
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 9px;
    background: rgba(255, 255, 255, .2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    align-items: center;
}

.site-nav a {
    color: #fff;
    font-size: 14px;
    margin-left: 18px;
    opacity: .92;
}

.site-nav a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
}

/* ---------- 主体 ---------- */
.main-content {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 30px;
}

/* ---------- 首页 ---------- */
.home-hero {
    text-align: center;
}

.hero-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 34px 20px 28px;
    margin-bottom: 16px;
}

.hero-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #4a9bff);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(26, 115, 232, .28);
}

.hero-title {
    font-size: 23px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0 0 26px;
}

/* ---------- 搜索框 ---------- */
.search-form {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--text-main);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 0 26px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-btn:active {
    background: var(--primary-dark);
}

/* ---------- 统计 ---------- */
.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 22px;
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ---------- 首页说明 ---------- */
.home-tips {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    text-align: left;
}

.home-tips h3 {
    font-size: 15px;
    margin: 0 0 10px;
    color: var(--text-main);
    padding-left: 9px;
    border-left: 3px solid var(--primary);
}

.home-tips ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-sub);
    font-size: 14px;
}

.home-tips li {
    margin-bottom: 6px;
}

.home-tips strong {
    color: var(--primary-dark);
}

/* ---------- 搜索结果页 ---------- */
.search-form--bar {
    margin-bottom: 16px;
}

.result-summary {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 10px;
    padding-left: 2px;
}

.result-summary strong {
    color: var(--primary);
}

.empty-tip {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-sub);
    font-size: 15px;
}

.empty-tip strong {
    color: var(--primary);
}

/* ---------- 数据表格 ---------- */
.table-wrap {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 12px;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}

.data-table tbody tr.row-link {
    cursor: pointer;
    transition: background .12s;
}

.data-table tbody tr.row-link:hover {
    background: var(--primary-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- 分页 ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-main);
    white-space: nowrap;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.pagination .total {
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-size: 13px;
    padding: 0 6px;
}

/* ---------- 详情页 ---------- */
.detail-page {
    text-align: center;
}

.detail-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}

.detail-head {
    background: linear-gradient(135deg, var(--primary), #4a9bff);
    padding: 26px 20px;
    display: flex;
    align-items: center;
    color: #fff;
}

.detail-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    margin-right: 14px;
    flex-shrink: 0;
}

.detail-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.info-table th {
    width: 110px;
    text-align: left;
    font-weight: 500;
    color: var(--text-sub);
    background: #f8f9fb;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.info-table td {
    padding: 14px 16px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.back-link {
    margin-top: 20px;
    font-size: 14px;
}

.back-link .sep {
    color: var(--text-muted);
    margin: 0 8px;
}

/* ---------- 底部 ---------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 18px 16px;
    text-align: center;
}

.footer-copy {
    margin: 0;
    font-size: 13px;
    color: var(--text-sub);
}

.footer-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .brand-name {
        font-size: 15px;
    }

    .site-nav a {
        margin-left: 12px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-card {
        padding: 28px 16px 22px;
    }

    .stat-item {
        padding: 0 16px;
    }

    .stat-num {
        font-size: 22px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .info-table th {
        width: 90px;
        padding: 12px 12px;
    }

    .info-table td {
        padding: 12px 12px;
        word-break: break-all;
    }

    .search-input {
        font-size: 15px;
    }

    .search-btn {
        padding: 0 18px;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 720px;
    }
}
