/* ============================================================
   线报商城 - 子页面共享样式（全部分类 / 全部榜单 / 更多商品 / 品牌馆 / 发布线报）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --red: #E53E2E; --red-deep: #C22A1C; --red-light: #FF6B5E;
    --orange: #FF7A00; --gold: #FFB800;
    --dark: #1B1210; --ink: #2A211F; --ink-2: #6B5E59; --ink-3: #A89B95;
    --paper: #FFF7F0; --card: #FFFFFF; --line: #F5E7DC; --green: #16A34A;
    --shadow-sm: 0 2px 10px rgba(90, 30, 10, 0.06);
    --shadow-md: 0 10px 30px rgba(90, 30, 10, 0.1);
    --shadow-lg: 0 18px 50px rgba(90, 30, 10, 0.16);
}
body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper); color: var(--ink); line-height: 1.7; overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ===== 面包屑 ===== */
.crumb {
    padding: 16px 0 0; font-size: 13px; color: var(--ink-3);
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.crumb a { color: var(--ink-2); transition: color .2s; }
.crumb a:hover { color: var(--red); }
.crumb .cur { color: var(--red); font-weight: 700; }
.crumb i { font-size: 11px; }

/* ===== 子页头部 ===== */
.sub-hero {
    position: relative; margin: 22px 0 6px; border-radius: 20px; overflow: hidden;
    padding: 34px 36px; color: #fff;
    background: linear-gradient(120deg, #2B0F0A 0%, #7A1F12 55%, #E53E2E 100%);
    box-shadow: var(--shadow-lg);
}
.sub-hero::after {
    content: ''; position: absolute; right: -40px; top: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,184,0,.35), transparent 70%);
}
.sub-hero .sh-tag {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    padding: 4px 14px; border-radius: 50px; letter-spacing: 1px; margin-bottom: 12px;
}
.sub-hero .sh-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #7CFF6B; box-shadow: 0 0 8px #7CFF6B; }
.sub-hero h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; position: relative; z-index: 1; }
.sub-hero p { font-size: 14px; opacity: .9; position: relative; z-index: 1; }

/* ===== 区块标题 ===== */
.sec-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; }
.sec-head .sh-bar { width: 5px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--red), var(--orange)); }
.sec-head h3 { font-size: 20px; font-weight: 800; }
.sec-head > span:last-child { font-size: 13px; color: var(--ink-3); }

/* ===== 商品网格 ===== */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goods-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    transition: transform .25s, box-shadow .25s; cursor: pointer;
}
.goods-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.goods-card .gc-img { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.goods-card .gc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-card .gc-emoji { font-size: 52px; }
.goods-card .gc-coupon {
    position: absolute; left: 10px; top: 10px; z-index: 2;
    background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff;
    font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 50px;
    box-shadow: 0 4px 10px rgba(229,62,46,.3);
}
.goods-card .gc-plat {
    position: absolute; right: 10px; top: 10px; z-index: 2;
    color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.goods-card .gc-tag {
    position: absolute; left: 10px; bottom: 10px; z-index: 2;
    background: rgba(27,18,16,.65); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px;
}
.goods-card .gc-body { padding: 12px 14px 14px; }
.goods-card .gc-name {
    font-size: 13.5px; font-weight: 700; line-height: 1.45; height: 39px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.goods-card .gc-price-row { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 6px; }
.goods-card .gc-now { color: var(--red); font-size: 20px; font-weight: 900; }
.goods-card .gc-now small { font-size: 11px; font-weight: 700; }
.goods-card .gc-old { color: var(--ink-3); font-size: 12px; text-decoration: line-through; }
.goods-card .gc-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-bottom: 10px; }
.goods-card .gc-comm { color: var(--orange); font-weight: 700; }
.goods-card .gc-btn {
    display: block; text-align: center; width: 100%;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    color: #fff; border: none; border-radius: 50px; padding: 8px 0; font-size: 13.5px; font-weight: 800; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.goods-card .gc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(229,62,46,.35); }

/* ===== 空态 / 加载 ===== */
.empty-tip { text-align: center; padding: 50px 20px; color: var(--ink-3); font-size: 14px; grid-column: 1 / -1; }
.empty-tip i { font-size: 40px; display: block; margin-bottom: 12px; opacity: .5; }
.loading-tip { text-align: center; padding: 46px 20px; color: var(--ink-2); font-size: 14px; grid-column: 1 / -1; }
.loading-tip i { margin-right: 8px; color: var(--red); }

/* ===== 分页 ===== */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 10px; flex-wrap: wrap; }
.pg-btn {
    min-width: 38px; height: 38px; padding: 0 14px;
    border: 1px solid var(--line); background: var(--card); border-radius: 10px;
    font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
    transition: all .2s; font-family: inherit;
}
.pg-btn:hover { border-color: var(--red); color: var(--red); }
.pg-btn.on { background: linear-gradient(90deg, var(--red), var(--red-light)); color: #fff; border-color: transparent; }
.pg-omit { color: var(--ink-3); padding: 0 2px; }

/* ===== 全部分类 ===== */
.cat-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.cat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 16px; cursor: pointer; text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .cc-emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.cat-card .cc-name { font-size: 15px; font-weight: 800; }
.cat-card .cc-kw { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }

/* 分类商品区 */
.cat-goods-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-goods-head h3 { font-size: 18px; font-weight: 800; }
.cat-goods-head .cg-tip { font-size: 12px; color: var(--ink-3); }

/* ===== 全部榜单 ===== */
.rank-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.rank-tab {
    padding: 8px 20px; border-radius: 50px; font-size: 14px; font-weight: 700;
    background: var(--card); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
    transition: all .25s;
}
.rank-tab:hover { border-color: var(--red); color: var(--red); }
.rank-tab.active { background: linear-gradient(90deg, var(--red), var(--red-light)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(229,62,46,.3); }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 18px; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.rank-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.rank-item .rk-no {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: #fff;
    background: linear-gradient(160deg, #E53E2E, #FF7A00);
}
.rank-item:nth-child(n+4) .rk-no { background: #F0E4DC; color: var(--ink-3); }
.rank-item:nth-child(1) .rk-no { background: linear-gradient(160deg, #FFB800, #FF7A00); }
.rank-item:nth-child(2) .rk-no { background: linear-gradient(160deg, #9AA4B2, #6B7684); }
.rank-item:nth-child(3) .rk-no { background: linear-gradient(160deg, #C98A5A, #A05A2C); }
.rank-item .rk-thumb {
    flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.rank-item .rk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-item .rk-info { flex: 1; min-width: 0; }
.rank-item .rk-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .rk-tags { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.rank-item .rk-tags span { font-size: 11px; padding: 2px 9px; border-radius: 50px; background: #FFF3E8; color: var(--red); font-weight: 600; }
.rank-item .rk-right { text-align: right; flex-shrink: 0; }
.rank-item .rk-price { color: var(--red); font-size: 20px; font-weight: 900; }
.rank-item .rk-price small { font-size: 11px; }
.rank-item .rk-comm { font-size: 11.5px; color: var(--orange); font-weight: 700; }
.rank-item .rk-sales { font-size: 11.5px; color: var(--ink-3); }

/* ===== 品牌馆 ===== */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.brand-card .bc-banner {
    height: 120px; display: flex; align-items: center; justify-content: center;
    font-size: 48px; position: relative;
}
.brand-card .bc-banner img { width: 100%; height: 100%; object-fit: cover; }
.brand-card .bc-body { padding: 14px 16px 16px; }
.brand-card .bc-name { font-size: 16px; font-weight: 800; }
.brand-card .bc-slogan { font-size: 12px; color: var(--ink-3); margin: 4px 0 10px; }
.brand-card .bc-prod { display: flex; align-items: center; gap: 10px; }
.brand-card .bc-thumb { font-size: 30px; }
.brand-card .bc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-card .bc-pname { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-card .bc-pprice { color: var(--red); font-weight: 800; font-size: 15px; }

/* 品牌店内商品 */
.shop-goods-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.shop-goods-head h3 { font-size: 17px; font-weight: 800; }
.shop-goods-head .sg-back {
    font-size: 12.5px; color: var(--red); font-weight: 700; cursor: pointer;
    background: #FFF0E8; padding: 5px 14px; border-radius: 50px;
}

/* ===== 线报中心（时间线） ===== */
.xb-timeline { display: flex; flex-direction: column; gap: 12px; }
.xb-item {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 18px; transition: box-shadow .2s;
}
.xb-item:hover { box-shadow: var(--shadow-md); }
.xb-item .xb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xb-item .xb-source { font-size: 12.5px; color: var(--ink-3); }
.xb-item .xb-time { font-size: 12px; color: var(--ink-3); }
.xb-item .xb-status { font-size: 11px; padding: 2px 10px; border-radius: 50px; font-weight: 700; }
.xb-item .xb-status.ok { background: #E7F7EC; color: var(--green); }
.xb-item .xb-status.hot { background: #FFF0E8; color: var(--red); }
.xb-item .xb-status.expired { background: #F1F1F1; color: var(--ink-3); }
.xb-item .xb-content { margin-top: 8px; }
.xb-item .xb-title { font-size: 14.5px; font-weight: 700; }
.xb-item .xb-desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.xb-item .xb-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.xb-item .xb-price { color: var(--red); font-weight: 800; }
.xb-item .xb-price small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.xb-item .xb-link { font-size: 13px; color: var(--red); font-weight: 700; }

/* ===== 发布线报表单 ===== */
.post-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; margin-top: 24px; }
.post-form {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}
.post-form .pf-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.post-form .pf-title i { color: var(--red); }
.post-form .pf-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.form-row label em { color: var(--red); font-style: normal; margin-left: 2px; }
.form-row input[type=text], .form-row input[type=number], .form-row input[type=url], .form-row select, .form-row textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--ink);
    background: #FFFDFB; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,62,46,.1);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row .row-hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
    width: 100%; border: none; border-radius: 12px; padding: 14px 0;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
    box-shadow: 0 10px 24px rgba(229,62,46,.32); transition: transform .2s;
}
.form-submit:hover { transform: translateY(-2px); }
.form-ok {
    display: none; text-align: center; padding: 60px 20px;
}
.form-ok .fo-emoji { font-size: 56px; display: block; margin-bottom: 14px; }
.form-ok h3 { font-size: 20px; margin-bottom: 8px; }
.form-ok p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.post-side { display: flex; flex-direction: column; gap: 16px; }
.post-side .ps-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.post-side .ps-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.post-side .ps-card h4 i { color: var(--red); }
.post-side .ps-card ul { list-style: none; }
.post-side .ps-card li {
    font-size: 13px; color: var(--ink-2); padding: 7px 0; display: flex; gap: 8px;
    border-bottom: 1px dashed var(--line);
}
.post-side .ps-card li:last-child { border-bottom: none; }
.post-side .ps-card li i { color: var(--green); margin-top: 3px; font-size: 12px; }
.ps-wx {
    display: flex; align-items: center; gap: 12px; margin-top: 10px;
    background: #FFF8EF; border: 1px dashed var(--orange); border-radius: 12px; padding: 12px 14px;
}
.ps-wx .wx-code { font-size: 26px; }
.ps-wx .wx-txt { font-size: 13px; color: var(--ink-2); }
.ps-wx .wx-txt b { color: var(--orange); font-size: 15px; letter-spacing: 1px; }

/* ===== 返回顶部 ===== */
.back-home {
    display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0;
    color: var(--red); font-weight: 700; font-size: 14px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-hero-grid { grid-template-columns: repeat(3, 1fr); }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .sub-hero { padding: 26px 22px; }
    .sub-hero h1 { font-size: 23px; }
    .rank-item { flex-wrap: wrap; }
    .rank-item .rk-right { width: 100%; text-align: left; display: flex; gap: 14px; align-items: baseline; }
}
@media (max-width: 480px) {
    .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .form-2col { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
}
