/* ===================== 顾哥洞庭湖砂 · 公共样式表 =====================
   2026-11-18 改版：由 index.php / zx.php / article.php / tag.php 四页内联 CSS 合并去重而来
   改样式只改这一个文件；改完把 inc/config.php 里的 APP_VER +1
   ==================================================================== */

/* ---------- 一、基础与首页组件（源自 index.php） ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
    body {
        font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;
        font-size: 16px;
        background: #f0f2f5;
        color: #2c3e50;
        line-height: 1.8;
        padding-bottom: 54px;
    }
    .container {
        max-width: 768px;
        margin: 0 auto;
        background: #fff;
        min-height: 100vh;
        padding-bottom: 54px;
        box-shadow: 0 0 30px rgba(0,0,0,0.08);
    }

    /* Header */
    header {
        background: linear-gradient(135deg, #0c3547 0%, #1a6b8a 100%);
        color: #fff;
        padding: 40px 24px 30px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    header::after {
        content: '';
        position: absolute;
        bottom: -30px; left: -10%; right: -10%;
        height: 60px;
        background: #fff;
        border-radius: 50% 50% 0 0;
    }
    .avatar {
        width: 100px; height: 100px;
        border-radius: 50%;
        border: 3px solid rgba(255,255,255,0.3);
        margin: 0 auto 15px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .avatar img { width:100%; height:100%; object-fit:cover; }
    header h1 { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
    header .subtitle { font-size: 16px; opacity: 0.85; }

    /* Stats Bar */
    .stats-bar {
        display: flex;
        justify-content: space-around;
        padding: 18px 16px;
        background: linear-gradient(135deg, #1a6b8a 0%, #0c3547 100%);
        color: #fff;
    }
    .stats-bar .stat { text-align:center; }
    .stats-bar .stat-num { font-size: 24px; font-weight: 700; }
    .stats-bar .stat-label { font-size: 14px; opacity: 0.8; }

    /* Section */
    section { padding: 12px 18px; }
    .section-title {
        font-size: 18px;
        font-weight: 600;
        margin: 16px 0 10px;
        color: #0c3547;
    }

    /* Cards */
    .card {
        background: #fff;
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 10px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: 1px solid #eef1f5;
    }

    /* Intro */
    .intro-text {
        font-size: 16px;
        color: #555;
        line-height: 1.9;
        text-indent: 2em;
    }

    /* Price Table */
    .price-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        margin: 10px 0;
    }
    .price-table th {
        background: #0c3547;
        color: #fff;
        padding: 10px 8px;
        font-weight: 500;
        text-align: center;
    }
    .price-table td {
        padding: 10px 8px;
        text-align: center;
        border-bottom: 1px solid #eef1f5;
    }
    .price-table tr:nth-child(even) td { background: #f8f9fa; }
    .price-table .price-val { color: #e8b731; font-weight: 700; font-size: 16px; }
    .price-note {
        font-size: 16px;
        color: #999;
        margin-top: 8px;
        text-align: center;
    }

    /* Article list */
    .article-item {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .article-item:last-child { border-bottom: none; }
    .article-item .date {
        font-size: 13px;
        color: #aaa;
        display: block;
        margin-bottom: 4px;
    }
    .article-item a {
        color: #2c3e50;
        text-decoration: none;
        font-size: 16px;
        line-height: 1.6;
        display: block;
    }
    .article-item a:hover { color: #1a6b8a; }
    .article-summary {
        font-size: 14px;
        color: #888;
        margin-top: 4px;
        line-height: 1.5;
    }

    /* More link */
    .more-link {
        display: block;
        text-align: center;
        color: #1a6b8a;
        text-decoration: none;
        padding: 12px;
        font-size: 16px;
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
    }
    .more-link:hover { color: #0c3547; }

    /* Douyin Card */
    .douyin-card {
        display: flex;
        align-items: center;
        padding: 16px;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-radius: 12px;
        color: #fff;
        text-decoration: none;
        margin: 10px 0;
    }
    .douyin-card:hover { opacity: 0.9; }
    .douyin-logo {
        font-size: 32px;
        margin-right: 15px;
    }
    .douyin-info h4 { font-size: 19px; margin-bottom: 4px; }
    .douyin-info p { font-size: 16px; opacity: 0.7; }

    /* Contact */
    .contact-info p {
        font-size: 19px;
        margin: 8px 0;
        color: #444;
    }
    .contact-info .phone { font-size: 22px; font-weight: 700; color: #0c3547; }
    .call-btn {
        display: block;
        text-align: center;
        background: linear-gradient(135deg, #1a6b8a, #0c3547);
        color: #fff;
        text-decoration: none;
        padding: 14px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        margin-top: 16px;
    }
    .call-btn:hover { opacity: 0.9; }

    /* Footer */
    footer {
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
        color: #999;
        border-top: 1px solid #f0f0f0;
    }

    /* Bottom Nav */
    .bottom-nav {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 50px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #888;
        font-size: 12px;
        transition: color 0.2s;
        padding: 4px 0;
    }
    .bottom-nav a.active { color: #1a6b8a; }
    .bottom-nav a .nav-icon { font-size: 20px; margin-bottom: 2px; }

    /* Back to Top */
    .back-top {
        position: fixed;
        bottom: 60px; right: 20px;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: #1a6b8a;
        color: #fff;
        border: none;
        font-size: 20px;
        cursor: pointer;
        display: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 998;
    }

    /* Info box */
    .info-box {
        background: #f8f9fa;
        border-left: 3px solid #1a6b8a;
        padding: 14px 16px;
        border-radius: 0 8px 8px 0;
        font-size: 16px;
        color: #555;
        line-height: 1.8;
    }

    /* Tax badge */
    .tax-badge {
        display: inline-block;
        background: #fff3cd;
        color: #856404;
        padding: 3px 10px;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 500;
    }
    .carousel-container {
        position: relative;
        margin: 15px 0;
        border-radius: 12px;
        overflow: hidden;
        background: #000;
    }
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease;
    }
    .carousel-slide {
        min-width: 100%;
        position: relative;
    }
    .carousel-slide img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }
    .carousel-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        color: #fff;
        padding: 20px 15px 10px;
        font-size: 16px;
        font-weight: 500;
    }
    .carousel-dots {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 2;
    }
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        transition: background 0.3s;
    }
    .carousel-dots .dot.active {
        background: #fff;
    }

/* ---------- 二、资讯列表页组件（源自 zx.php） ---------- */
header .h1 { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.section-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
        gap: 10px;
    }
.search-mini {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
.search-mini input {
        flex: 1 1 auto;
        min-width: 0;
        padding: 7px 12px;
        border: 1.5px solid #e0e5ea;
        border-radius: 20px;
        font-size: 13px;
        outline: none;
        min-width: 0;
        transition: border-color 0.3s;
    }
.search-mini input:focus { border-color: #1a6b8a; }
.search-mini button {
        flex: 0 0 auto;
        padding: 7px 14px;
        background: linear-gradient(135deg,#0c3547,#1a6b8a);
        color: #fff;
        border: none;
        border-radius: 20px;
        font-size: 13px;
        cursor: pointer;
        white-space: nowrap;
    }
.article-item > div { display: flex; flex-direction: column; }
.article-item .date::before { content: '📅 '; }
.back-top {
        position: fixed;
        bottom: 60px; right: 20px;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: #1a6b8a;
        color: #fff;
        border: none;
        font-size: 20px;
        cursor: pointer;
        display: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 998;
    }
.pagination a, .pagination span {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        text-decoration: none;
        color: #555;
        background: #f5f5f5;
        transition: all 0.2s;
    }
.pagination a:hover { background: #e0e0e0; }
.pagination .active { background: #1a6b8a; color: #fff; }
.empty { text-align: center; padding: 40px 20px; color: #aaa; }
mark { background: #fff3cd; padding: 1px 2px; border-radius: 2px; }

/* ---------- 三、文章详情页组件（源自 article.php） ---------- */
.article-header {
        padding: 20px 20px 0;
    }
.article-header h1 {
        font-size: 20px;
        color: #0c3547;
        line-height: 1.5;
        margin-bottom: 10px;
    }
.article-meta {
        font-size: 14px;
        color: #999;
    }
.article-body {
        padding: 20px;
        font-size: 16px;
        line-height: 1.8;
        color: #333;
    }
.article-body h3 {
        font-size: 18px;
        color: #0c3547;
        margin: 20px 0 10px;
    }
.article-body p { margin: 0 0 2px 0; }
.article-body p + p { margin-top: 0; }
.article-body table { margin-top: 8px; }
.article-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 12px 0;
        font-size: 14px;
    }
.article-body th {
        background: #f5f7fa;
        padding: 10px;
        text-align: left;
        font-weight: 500;
        border: 1px solid #eef1f5;
    }
.article-body td {
        padding: 10px;
        border: 1px solid #eef1f5;
    }
.article-body ul { padding-left: 20px; margin: 10px 0; }
.article-body li { margin: 6px 0; }
.article-body strong { color: #0c3547; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; }
.back-link {
        display: inline-block;
        color: #1a6b8a;
        text-decoration: none;
        font-size: 16px;
        margin: 4px 20px;
        padding: 2px 0;
    }
.back-link:hover { color: #0c3547; }
.related-item a { color: #555; text-decoration: none; font-size: 16px; display: block; padding: 2px 0; }
.related-item a:hover { color: #1a6b8a; }

/* ---------- 四、标签页列表组件（源自 tag.php，已加 .page-tag 作用域） ---------- */
.page-tag .article-list { background: #fff; overflow: hidden; }
.page-tag .article-item:hover { background: #fafafa; }
.page-tag .article-item h3 { font-size: 16px; margin-bottom: 8px; }
.page-tag .article-item h3 a { color: #0c3547; text-decoration: none; }
.page-tag .article-item h3 a:hover { color: #1a6b8a; }
.page-tag .article-item .meta { font-size: 13px; color: #999; }
.page-tag .article-item .summary { font-size: 14px; color: #666; margin-top: 6px; line-height: 1.6; }

/* ================= 改版新增：公共组件（顶部导航 / 面包屑 / 页脚） ================= */
header .brand-name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}
header .brand-sub {
    font-size: 16px;
    opacity: 0.85;
}
header .avatar { display: block; text-decoration: none; }

/* 顶部主导航：窄屏可横向滑动，不换行、不遮挡内容 */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    position: sticky;
    top: 0;
    z-index: 998;
}
.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 6px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.top-nav ul::-webkit-scrollbar { display: none; }
.top-nav li { flex: 0 0 auto; }
.top-nav a {
    display: block;
    padding: 13px 14px;
    font-size: 15px;
    color: #3d4a55;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.top-nav a:hover, .top-nav a:focus { color: #1a6b8a; }
.top-nav a.active {
    color: #0c3547;
    font-weight: 600;
    border-bottom-color: #e8b731;
}

/* 面包屑 */
.breadcrumb {
    padding: 12px 20px 2px;
    font-size: 13px;
    color: #888;
}
.breadcrumb a { color: #1a6b8a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; color: #bbb; }
.breadcrumb .current { color: #555; }

/* 页脚（紧凑版：一行版权+电话+访问数；2026-11-18 23:00 再收紧） */
.site-footer {
    border-top: 1px solid #eef1f5;
    padding: 8px 12px 10px;
    text-align: center;
}
.site-footer .copyright {
    font-size: 12px;
    color: #9aa4ac;
    line-height: 1.5;
}
.site-footer .copyright a {
    color: #6b7c8a;
    text-decoration: none;
}
.site-footer .visit-count {
    display: inline;
    font-size: 10px;
    color: #c4c9ce;
    margin-left: 6px;
}

/* 页面标题 / 导语（关于我们、产品介绍、联系方式共用） */
.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #0c3547;
    padding: 18px 20px 0;
}
.page-lead {
    padding: 8px 20px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.9;
}

/* ================= 统一口径：把原来三页写法不一致的样式定成一个值 =================
   冲突项（原 index / zx / article / tag 各不相同）见 _改版说明/改动清单.md
*/
.container { max-width: 768px; }
section { padding: 18px; }
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0c3547;
    margin: 16px 0 10px;
}
.section-row .section-title { white-space: nowrap; }
.card { padding: 18px; }
.article-item .date { display: block; }
.article-summary { font-size: 14px; color: #888; margin-top: 6px; line-height: 1.5; }
.contact-info p { font-size: 17px; margin: 8px 0; color: #444; }
.contact-info .phone { font-size: 22px; font-weight: 700; color: #0c3547; }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e5ea;
    transition: all 0.2s;
}
.pagination a:hover { background: #1a6b8a; color: #fff; border-color: #1a6b8a; }
.pagination .active, .pagination .current { background: #1a6b8a; color: #fff; border-color: #1a6b8a; }
.empty { text-align: center; padding: 40px 20px; color: #aaa; }
.back-link {
    display: inline-block;
    color: #1a6b8a;
    text-decoration: none;
    font-size: 15px;
    margin: 10px 20px;
    padding: 4px 0;
}

/* 手机窄屏微调 */
@media (max-width: 480px) {
    .top-nav a { padding: 11px 10px; font-size: 14px; }
    .price-table { font-size: 13px; }
    .price-table th, .price-table td { padding: 6px 4px; }
    .article-body table { font-size: 13px; }
    .article-body th, .article-body td { padding: 7px 6px; }
    .page-title { font-size: 20px; }
}

/* ================= 货源信息（2026-11-18 统一格式后新增） ================= */
.page-huoyuan .section-row { margin-bottom: 10px; }
.page-huoyuan .cargo-count {
    font-size: 13px;
    font-weight: 400;
    color: #98a2ab;
    margin-left: 8px;
}
.cargo-list { display: flex; flex-direction: column; gap: 8px; }
.cargo-card { padding: 13px 15px; margin-bottom: 0; }
.cargo-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.cargo-goods { font-size: 16px; font-weight: 600; color: #0c3547; }
.cargo-tons { font-size: 14px; font-weight: 600; color: #b98a44; white-space: nowrap; }
.cargo-route {
    font-size: 15px;
    color: #3d4a55;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cargo-arrow { color: #b6c0c8; }
.cargo-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eef1f5;
}
.cargo-phone {
    font-size: 16px;
    font-weight: 700;
    color: #1a6b8a;
    text-decoration: none;
}
.cargo-time { font-size: 12px; color: #a9b3bb; }

/* 发布表单 */
.post-form .field { display: block; margin-bottom: 12px; }
.post-form .field-label {
    display: block;
    font-size: 13px;
    color: #66727c;
    margin-bottom: 5px;
}
.post-form input {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border: 1.5px solid #e0e5ea;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    color: #2c3e50;
    background: #fff;
}
.post-form input:focus { border-color: #1a6b8a; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { flex: 1 1 auto; min-width: 0; }
.captcha-q {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 600;
    color: #0c3547;
    background: #f2f6f8;
    border-radius: 8px;
    padding: 9px 14px;
    white-space: nowrap;
}
.form-tip { font-size: 12px; color: #98a2ab; margin-top: 10px; text-align: center; }
.ok-title { font-size: 17px; font-weight: 600; color: #12703a; }
.err-box {
    background: #fdecec;
    color: #b3261e;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ---------- 文章页标签（2026-11-19：手机端一行显示，可横向滑动，不再换行） ---------- */
.article-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.article-tags::-webkit-scrollbar { display: none; }
.article-tags > span {
    flex: 0 0 auto;
    color: #666;
    font-size: 14px;
}
.article-tags .tag-pill {
    flex: 0 0 auto;
    display: inline-block;
    padding: 3px 10px;
    background: #e8f4f8;
    color: #0c3547;
    border-radius: 14px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- 窄屏（手机）：搜索框与标题同一行，输入框限宽不发散 ---------- */
@media (max-width: 640px) {
    .section-row { flex-wrap: nowrap; gap: 8px; }
    .section-row .search-mini { flex: 0 1 200px; min-width: 120px; }
    .section-row .search-mini input { padding: 7px 10px; }
    .section-row .search-mini button { padding: 7px 12px; }
}

/* ---------- 货源列表页：右下角悬浮「+ 发布货源」按钮（2026-11-20 老子要求） ----------
   要点：站上 .bottom-nav 固定 50px 高、z-index 999，按钮必须抬到它上方并给更高层级，
   否则整块被白底导航盖住只剩阴影；右侧留出 .back-top（bottom:60 right:20）的位置不重叠 */
.page-huoyuan section { padding-bottom: 120px; }
.fab-publish {
    position: fixed;
    right: 70px;
    bottom: 64px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    background-color: #0c3547;
    background-image: linear-gradient(135deg, #1a6b8a, #0c3547);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 28px;
    box-shadow: 0 6px 18px rgba(12, 53, 71, 0.28);
    -webkit-tap-highlight-color: transparent;
}
.fab-publish:hover { opacity: 0.92; }
.fab-publish:active { transform: translateY(1px); }
@media (max-width: 640px) {
    .fab-publish { right: 64px; bottom: 60px; padding: 12px 16px; font-size: 14px; }
    .page-huoyuan section { padding-bottom: 116px; }
}