:root {
    --primary-orange: #ff6a00;
    --navy-blue: #2c3e50;
    --light-grey: #f4f4f4;
    --border-color: #ddd;
}

body { font-family: 'PingFang SC', sans-serif; background: #fafafa; margin: 0; color: #333; line-height: 1.6; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
/* 分页容器布局 */
.express-pager {
    margin: 40px 0;
    text-align: center;
}

/* 重置 TP5 默认的分页列表 */
.express-pager .pagination {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    border-radius: 4px;
}

.express-pager .pagination li {
    margin: 0 4px;
    display: inline;
}

.express-pager .pagination li a,
.express-pager .pagination li span {
    position: relative;
    float: left;
    padding: 10px 18px;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #2c3e50;
    font-weight: bold;
    transition: all 0.2s;
}

/* 鼠标悬停样式 */
.express-pager .pagination li a:hover {
    background-color: #f8f8f8;
    border-color: #ff6a00;
    color: #ff6a00;
    z-index: 2;
}

/* 当前活动页：使用品牌橙色 */
.express-pager .pagination li.active span {
    background-color: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
    cursor: default;
    z-index: 3;
}

/* 禁用状态（如首页/尾页不可点击时） */
.express-pager .pagination li.disabled span {
    color: #ccc;
    background-color: #fff;
    border-color: #ddd;
    cursor: not-allowed;
}
.logo {
    display: flex;
    align-items: center;
    font-family: "Arial Black", sans-serif;
    font-style: italic;
    letter-spacing: -1px;
}
/* “快递”二字放在橙色方块里 */
.logo-box {
    background: #ff6a00;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
}
/* “之家”二字保留深色主调 */
.logo-text {
    color: #2c3e50;
    text-transform: uppercase;
}

/* Header */
.express-header { background: var(--navy-blue); color: white; padding: 15px 0; border-bottom: 5px solid var(--primary-orange); }
.express-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { margin: 0; font-style: italic; font-size: 24px; }
.logo span { color: var(--primary-orange); }
nav a { color: white; text-decoration: none; margin-left: 20px; font-weight: bold; font-size: 14px; }

/* Search */
.search-bar { background: var(--light-grey); padding: 30px 0; border-bottom: 1px solid var(--border-color); }
.search-box { display: flex; box-shadow: 5px 5px 0px rgba(0,0,0,0.1); max-width: 600px; margin: 0 auto; }
.search-box input { flex: 1; padding: 12px; border: 2px solid var(--navy-blue); outline: none; }
.search-box button { background: var(--navy-blue); color: white; border: none; padding: 0 25px; cursor: pointer; font-weight: bold; }

/* Post List */
.status-header { margin: 30px 0 15px; font-weight: bold; color: var(--primary-orange); border-left: 4px solid var(--primary-orange); padding-left: 10px; }
.post-item { background: white; border: 1px solid var(--border-color); display: flex; margin-bottom: 15px; transition: 0.2s; overflow: hidden; }
.post-item:hover { transform: translateX(5px); border-color: var(--primary-orange); box-shadow: 2px 2px 10px rgba(0,0,0,0.05); }
.post-date { background: #f8f8f8; padding: 20px; width: 100px; text-align: center; font-size: 0.85em; color: #666; display: flex; align-items: center; justify-content: center; border-right: 1px solid #eee; }
.post-info { padding: 20px; flex: 1; }
.post-info h2 { margin: 0 0 10px 0; font-size: 1.25em; }
.post-info h2 a { color: var(--navy-blue); text-decoration: none; }
.post-info p { color: #777; font-size: 0.95em; margin-bottom: 10px; }
.tags { font-size: 0.85em; color: var(--primary-orange); }
.post-status { padding: 20px; font-weight: bold; color: #bbb; border-left: 1px dashed #eee; writing-mode: vertical-lr; text-align: center; letter-spacing: 2px; }

/* Category */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }
.category-card { background: white; border: 2px solid var(--navy-blue); padding: 25px; position: relative; transition: 0.3s; }
.category-card:hover { border-color: var(--primary-orange); background: #fffbf9; }
.barcode { font-family: monospace; font-size: 14px; letter-spacing: 1px; margin-bottom: 15px; color: #333; }
.btn-view { display: inline-block; margin-top: 15px; color: var(--primary-orange); text-decoration: none; font-weight: bold; border-bottom: 2px solid transparent; }
.btn-view:hover { border-bottom-color: var(--primary-orange); }

/* Detail (Waybill Style) */
.waybill-detail { background: #fffef2; border: 2px solid #444; padding: 40px; margin: 40px auto; position: relative; box-shadow: 12px 12px 0px #eee; max-width: 850px; }
.waybill-header { display: flex; justify-content: space-between; align-items: flex-start; }
.waybill-title h1 { margin: 0 0 10px 0; font-size: 1.8em; color: #222; }
.meta { font-size: 0.85em; color: #666; font-family: monospace; }
.dashed-line { border: none; border-top: 2px dashed #ccc; margin: 25px 0; }
.waybill-body { min-height: 300px; color: #444; }
.waybill-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 50px; border-top: 1px solid #eee; padding-top: 20px; font-size: 0.85em; color: #999; }
.stamp { border: 4px double #ff5555; color: #ff5555; padding: 8px 15px; transform: rotate(-12deg); font-weight: bold; font-size: 1.2em; text-transform: uppercase; opacity: 0.7; }

footer { text-align: center; padding: 50px 0; color: #bbb; font-size: 0.85em; border-top: 1px solid #eee; margin-top: 40px; }
