/* ============================================================
   轻随记 LightNotes - 前台样式（晴空蓝 · 卡片瀑布流）
   ============================================================ */
:root {
    --bg: #f2f8fb;
    --card: #ffffff;
    --primary: #087eb9;
    --primary-dark: #007ab7;
    --primary-light: #e1f0f9;
    --accent: #dd137b;
    --accent-light: #fbe4f1;
    --text: #24333f;
    --muted: #8496a5;
    --border: #dce9f2;
    --shadow: 0 4px 20px rgba(8, 126, 185, .09);
    --shadow-hover: 0 10px 32px rgba(8, 126, 185, .16);
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------------- 顶部导航 ---------------- */
/* v1.0.4：头部背景改用纯 CSS 渐变（原 120x71 base64 位图拉伸铺底，头部变高后模糊，
   且部分手机浏览器省流/云端加速模式会丢弃 base64 背景图导致头部背景消失） */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff linear-gradient(180deg, #007ab7 0%, #007ab7 11%, #5facd2 50%, #ffffff 58%);
    border-top: 2px solid #1f1f1f;
}
.nav-wrap { display: flex; align-items: flex-end; justify-content: flex-start; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; align-self: center; }
.brand-badge {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
    background: #fff; color: var(--primary-dark); font-size: 19px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 40, 66, .22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 20px; color: #1f1a17; white-space: nowrap; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--primary-dark); }
.nav { display: flex; align-items: center; gap: 6px; position: relative; top: 6px; margin-left: 100px; }
.nav a {
    position: relative; padding: 5px 13px 7px; border-radius: 0; font-size: 16px; font-weight: 700; color: var(--primary-dark);
    white-space: nowrap; line-height: 1.35;
    transition: all .2s;
}
.nav a:hover { background: transparent; color: var(--accent); }
.nav a.on { background: transparent; color: var(--accent); font-weight: 700; }
.nav a.on::before {
    content: ''; position: absolute; top: -1px; left: 50%; margin-left: -6px;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--primary-dark);
}
@media (max-width: 640px) {
    .brand-text em { display: none; }
    .brand-text strong { font-size: 15px; }
    .nav { gap: 2px; margin-left: 0; }
    .nav a { padding: 6px 5px; font-size: 13.5px; }
}

/* ---------------- 文章评论区（post.php 详情页底部） ---------------- */
.post-comments { margin-top: 24px; border-top: 1px dashed var(--border); padding-top: 18px; }
.pc-head { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.pc-count { font-size: 12.5px; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); border-radius: 999px; padding: 1px 9px; }
.pc-empty { font-size: 13.5px; padding: 6px 2px 12px; }
.pc-form { padding: 14px 16px; background: #f8fbfd; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0; }
.pc-list { margin-bottom: 14px; }

/* ---------------- 瀑布流（leton 日记卡） ---------------- */
.masonry { position: relative; }
/* 通用 chip（卡片标签 / 详情页 / 面板共用） */
.chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: #fff; border: 1px solid var(--border); color: #556b7e;
    padding: 4px 13px; border-radius: 999px; font-size: 13px;
    transition: all .2s; cursor: pointer;
}
.chip sup { font-size: 10px; color: var(--muted); margin-left: 2px; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.on sup { color: rgba(255, 255, 255, .8); }
.post-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: left .25s ease, top .25s ease, transform .25s ease, box-shadow .25s ease, opacity .4s ease;
    opacity: 0;
}
.post-card.in { opacity: 1; }
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.card-cover { display: block; position: relative; }
.card-cover img { width: 100%; display: block; transition: transform .5s ease; }
.post-card:hover .card-cover img { transform: scale(1.03); }
.cover-ph {
    display: flex; align-items: center; justify-content: center;
    height: 150px;
}
.cover-ph i {
    font-style: normal; color: rgba(255, 255, 255, .92);
    font-size: 44px; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    font-family: Georgia, "Noto Serif SC", serif;
}
.badge-top {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: linear-gradient(135deg, #e6399b, #dd137b);
    color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px;
    box-shadow: 0 3px 8px rgba(221, 19, 123, .4);
}
/* v1.4.7：文章标题内置置顶徽章（随文流式排列，不再悬浮遮挡标题文字） */
.badge-inline {
    display: inline-block; vertical-align: 2px; margin-right: 7px;
    background: linear-gradient(135deg, #e6399b, #dd137b);
    color: #fff; font-size: 12px; line-height: 1; padding: 4px 9px; border-radius: 999px;
    box-shadow: 0 2px 6px rgba(221, 19, 123, .35);
}
.card-body { padding: 16px 18px 13px; }
.card-title { font-size: 19px; line-height: 1.45; }
.card-title a { transition: color .2s; }
.card-title a:hover { color: var(--primary-dark); }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip-cat {
    background: var(--primary-light); border-color: transparent;
    color: var(--primary-dark); font-size: 12px; padding: 2px 10px;
}
.chip-tag {
    background: var(--accent-light); border-color: transparent;
    color: var(--accent); font-size: 12px; padding: 2px 10px;
}
.card-summary {
    color: #6b8399; font-size: 13.5px; margin-top: 8px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
    display: flex; align-items: center; gap: 12px;
    margin: 0 18px; padding: 10px 0 13px;
    border-top: 1px dashed var(--border); flex-wrap: wrap;
}
.meta-date, .meta-views { color: var(--muted); font-size: 12px; }
.meta-more {
    margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
    color: var(--primary); font-size: 12.5px; font-weight: 600; transition: color .2s;
}
.meta-more svg { width: 13px; height: 13px; transition: transform .2s; }
.meta-more:hover { color: var(--accent); }
.meta-more:hover svg { transform: translateX(2px); }
.no-cover .card-body { padding-top: 18px; }

/* ---------------- 分页 ---------------- */
.pager-wrap { margin-top: 34px; }
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pg {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; color: #556b7e; transition: all .2s;
}
.pg:hover { border-color: var(--primary); color: var(--primary-dark); }
.pg.current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pg.disabled, .pg.dots { opacity: .45; pointer-events: none; }

/* ---------------- 空状态 ---------------- */
.empty-state {
    text-align: center; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 64px 20px; margin-top: 20px;
}
.empty-state h3 { font-size: 19px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.empty-state.small { padding: 40px 20px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block; background: var(--primary); color: #fff; border: none; cursor: pointer;
    padding: 10px 26px; border-radius: 10px; font-size: 14.5px; font-family: inherit;
    transition: background .2s, transform .1s;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(.97); }
.btn.plain { background: var(--primary-light); color: var(--primary-dark); }
.btn.plain:hover { background: #d3e9f7; }

/* ---------------- 文章详情 ---------------- */
.post-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px;
    align-items: start; margin-top: 10px;
}
.post-main { padding: 34px 38px; }
.post-head h1 { font-size: 26px; line-height: 1.4; }
.post-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 13px; margin-top: 12px;
}
.post-meta .chip { padding: 2px 10px; font-size: 12px; background: var(--primary-light); border-color: transparent; color: var(--primary-dark); }
.post-head { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

.post-content { font-size: 15.5px; color: #34465a; word-wrap: break-word; overflow-wrap: break-word; }
.post-content p { margin: 0 0 1em; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 1.4em 0 .7em; line-height: 1.4; }
.post-content h2 { font-size: 21px; padding-left: 12px; border-left: 4px solid var(--primary); }
.post-content h3 { font-size: 18px; }
.post-content img { border-radius: 10px; }
.post-content blockquote {
    margin: 1em 0; padding: 12px 18px; background: var(--primary-light);
    border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; color: #475e73;
}
.post-content ul, .post-content ol { padding-left: 1.6em; margin-bottom: 1em; }
.post-content li { margin: .3em 0; }
.post-content a { color: var(--primary-dark); border-bottom: 1px dashed var(--primary); }
.post-content pre {
    background: #1d2f3f; color: #cfe6f4; padding: 16px; border-radius: 10px;
    overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 1em 0;
    font-family: "Sarasa Mono SC", Consolas, Menlo, monospace;
}
.post-content code {
    background: #ecf4fa; padding: 2px 6px; border-radius: 5px;
    font-family: "Sarasa Mono SC", Consolas, Menlo, monospace; font-size: 13.5px; color: #007ab7;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 8px 12px; font-size: 14px; }
.post-content th { background: var(--primary-light); }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags .chip { background: #fff; }

.post-neighbor { display: flex; gap: 14px; margin-top: 24px; }
.neighbor {
    flex: 1; min-width: 0; background: #fafcfe; border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; transition: all .2s;
    display: flex; flex-direction: column; gap: 2px;
}
.neighbor em { font-style: normal; font-size: 12px; color: var(--muted); }
.neighbor span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neighbor.next { text-align: right; }
.neighbor:hover { border-color: var(--primary); background: var(--primary-light); }

/* ---------------- 侧栏 ---------------- */
.post-side { display: flex; flex-direction: column; gap: 16px; }
.side-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 22px;
}
/* 侧栏卡片不做悬停反应：随页面正常滚动即可（用户要求） */
.side-card h3 { font-size: 15.5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.hot-list { list-style: none; }
.hot-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 0; border-bottom: 1px dashed #ecf2f7; font-size: 14px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-list a:hover { color: var(--primary-dark); }
.hot-list span { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- 留言 ---------------- */
.page-head { text-align: center; padding: 14px 0 6px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.guestbook-layout { max-width: 760px; margin: 14px auto 0; }

.gb-form { padding: 20px 22px; margin-bottom: 26px; }
.gb-row { display: flex; gap: 12px; }
.gb-row input { flex: 1; }
.gb-form input[type="text"], .gb-form textarea,
.pc-form input[type="text"], .pc-form textarea,
.apply-card input[type="text"], .apply-card textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; outline: none; background: #fafcfe;
    transition: border .2s, background .2s; margin-bottom: 12px;
}
.gb-form textarea, .pc-form textarea { min-height: 96px; resize: vertical; }
.gb-form input:focus, .gb-form textarea:focus,
.pc-form input:focus, .pc-form textarea:focus,
.apply-card input:focus, .apply-card textarea:focus { border-color: var(--primary); background: #fff; }
.gb-actions { display: flex; align-items: center; justify-content: space-between; }
.gb-count { color: var(--muted); font-size: 12.5px; }
.gb-count b { color: var(--primary-dark); }
.hp-field { position: absolute !important; left: -9999px !important; height: 0 !important; opacity: 0 !important; }

.gb-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.gb-item {
    display: flex; gap: 14px; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 20px;
}
.avatar {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
    color: #fff; font-size: 17px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}
.avatar.sm { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
.avatar.xs { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.gb-body { flex: 1; min-width: 0; }
.gb-info { display: flex; align-items: baseline; gap: 10px; }
.gb-info b { font-size: 14.5px; }
.gb-info time { color: var(--muted); font-size: 12px; }
.gb-content { font-size: 14.5px; margin-top: 5px; word-break: break-word; }
.gb-reply {
    margin-top: 12px; background: var(--primary-light);
    border-radius: 10px; padding: 12px 16px;
}
.gb-reply .gb-info b.master {
    color: var(--primary-dark); background: #fff; padding: 1px 8px; border-radius: 999px; font-size: 12px;
}

/* ---------------- 友链 ---------------- */
.links-grid {
    list-style: none; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
    margin-top: 18px;
}
.link-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s; overflow: hidden;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.link-card a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.link-logo {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; object-fit: cover;
    border: 1px solid var(--border);
}
.link-avatar { border-radius: 12px !important; width: 46px !important; height: 46px !important; flex-basis: 46px !important; }
.link-info { min-width: 0; }
.link-info b { font-size: 15px; display: block; }
.link-info p {
    color: var(--muted); font-size: 12.5px; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.apply-card { max-width: 760px; margin: 28px auto 0; padding: 24px 26px; }
.apply-card h3 { font-size: 17px; margin-bottom: 6px; }
.apply-card form { margin-top: 14px; }
.apply-card .gb-actions .muted { max-width: 60%; }

/* ---------------- 归档页头 ---------------- */
.archive-head { padding: 10px 0 4px; }
.archive-head .crumb { font-size: 13px; color: var(--muted); }
.archive-head .crumb a:hover { color: var(--primary-dark); }
.archive-head h1 { font-size: 25px; margin-top: 4px; }
.archive-head h1 small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 12px; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
    background: rgba(21, 38, 53, .92); color: #fff; font-size: 14px;
    padding: 11px 22px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    opacity: 0; transition: all .3s ease; z-index: 999; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(190, 60, 60, .95); }
.toast-static { position: fixed; top: 74px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid var(--border); background: #fff;
    padding: 22px 0; margin-top: auto;
}
.site-footer .wrap { text-align: center; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--primary-dark); }
.site-footer .sep { margin: 0 6px; opacity: .5; }
.site-footer p + p { margin-top: 4px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-side { order: 2; }
    .post-main { padding: 24px 20px; }
}
@media (max-width: 560px) {
    .gb-row { flex-direction: column; gap: 0; }
    .neighbor span { white-space: normal; }
}

/* ============================================================
   v1.1 新增：统一封面 / 右侧边栏 / 详情弹窗 / 小铺
   ============================================================ */

/* ---------------- 品牌 Logo 图片（后台上传后独占品牌位，原生展示：无描边无底色不缩放裁切） ---------------- */
.brand-logo {
    height: 60px; width: auto; max-width: 200px; flex: 0 0 auto; display: block;
    object-fit: contain;
}
@media (max-width: 640px) {
    .brand-logo { height: 36px; max-width: 130px; }
}

/* ---------------- 首页/归档 双栏布局（左文右栏：侧栏在右，随页面滚动不悬停固定） ---------------- */
.home-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px; align-items: start; margin-top: 4px;
}
.home-side { order: 2; }

/* ---------------- 侧栏：作者卡（大图 + 左下头像 + 右侧昵称） ---------------- */
.home-side { display: flex; flex-direction: column; gap: 16px; }
.author-card { padding: 0; overflow: hidden; }
.side-hero {
    position: relative; aspect-ratio: 5 / 3; min-height: 198px; overflow: hidden;
    background: var(--primary);
}
.side-hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; transition: transform .6s ease;
}
.author-card:hover .side-hero-img { transform: scale(1.04); }
.side-hero-mask {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .06) 22%, rgba(0, 0, 0, .46));
}
.side-hero-user {
    position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
    display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0;
}
.side-hero-avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px;
    border: 3px solid rgba(255, 255, 255, .95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3); background: #fff;
}
.side-hero-avatar.ph {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 700;
    font-family: Georgia, "Noto Serif SC", serif;
}
.side-hero-name {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 21px; color: #fff; letter-spacing: .5px; font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.author-intro {
    color: #587089; font-size: 13px; line-height: 1.75; font-style: italic;
    padding: 13px 16px 0;
}
/* 统计区：四列网格，数字在上、文字在下（文章 / 留言 / 友链 / 年份） */
.author-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 12px 6px; text-align: center;
}
.author-stats .as-item {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    min-width: 0;
}
.author-stats .as-item b {
    font-size: 18px; line-height: 1.25; color: #3a4d61;
    font-family: Georgia, "Noto Serif SC", serif; letter-spacing: .3px;
}
.author-stats .as-item span {
    font-size: 12px; color: #587089; letter-spacing: 1px;
}
.author-stats .as-item + .as-item {
    border-left: 1px solid var(--border);
}
.author-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    flex-wrap: nowrap; padding: 8px 10px; background: #f6f9fb; border-top: 1px solid var(--border);
}
/* 中间社交图标组：邮箱 / 微信 / QQ / QQ群 / 微博 / 抖音（不换行，缩小保证单行） */
.acts-mid {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; flex-wrap: nowrap; flex: 1; min-width: 0;
}
.acts-mid .act-btn { width: 25px; height: 25px; flex: 0 0 auto; }
.acts-left { display: flex; gap: 8px; }
.act-btn {
    width: 28px; height: 28px; border-radius: 50%; padding: 0;
    border: 1px solid var(--border); background: #fff; color: #587089;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
}
.act-btn:hover { color: var(--primary-dark); border-color: var(--primary); box-shadow: 0 3px 8px rgba(8, 126, 185, .18); transform: translateY(-1px); }
.act-btn svg { width: 14px; height: 14px; }
.acts-right { display: flex; gap: 2px; }
.act-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: #556b7e; padding: 5px 6px; border-radius: 8px;
    background: transparent; border: 0; cursor: pointer; transition: all .2s;
    white-space: nowrap; flex: 0 0 auto;
}
.act-link:hover { color: var(--primary-dark); background: var(--primary-light); }
.act-link svg { width: 14px; height: 14px; }

/* ---------------- 侧栏：分类/标签/搜索 工具面板 ---------------- */
.side-tool-row { display: flex; gap: 8px; }
.tool-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: #fafcfe; color: #556b7e; font-size: 13.5px; cursor: pointer;
    transition: all .2s;
}
.tool-btn svg { width: 15px; height: 15px; }
.tool-btn:hover { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-light); }
.tool-btn.on { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 3px 10px rgba(8, 126, 185, .3); }
.side-panel { margin-top: 12px; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-chips + .panel-chips { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.panel-chips .chip { padding: 3px 11px; font-size: 12.5px; }
.side-search { display: flex; gap: 8px; }
.side-search input {
    flex: 1; min-width: 0; height: 38px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 13px; color: var(--text); background: #fff; outline: none; transition: border-color .2s;
}
.side-search input::placeholder { color: #a5b6c5; }
.side-search input:focus { border-color: var(--primary); }
.side-search button {
    height: 38px; padding: 0 16px; border: 0; border-radius: 10px;
    background: var(--primary); color: #fff; font-size: 13.5px; cursor: pointer;
    transition: background .2s;
}
.side-search button:hover { background: var(--primary-dark); }

/* ---------------- 加载更多（leton 式） ---------------- */
.load-more-wrap { margin-top: 26px; text-align: center; }
.load-more-btn {
    min-width: 220px; min-height: 44px; padding: 10px 26px;
    border: 1px solid var(--border); border-radius: 999px;
    background: #fff; color: #556b7e; font-size: 14px; cursor: pointer;
    transition: all .25s; box-shadow: var(--shadow);
}
.load-more-btn:hover { color: var(--primary-dark); border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.load-more-btn.loading { color: var(--primary-dark); pointer-events: none; }
.load-more-btn.done {
    border-color: transparent; background: transparent; box-shadow: none;
    color: var(--muted); cursor: default; pointer-events: none;
}

/* ---------------- 回到顶部 ---------------- */
#back-to-top {
    position: fixed; right: 26px; bottom: -64px; z-index: 900;
    width: 44px; height: 44px; border: 0; border-radius: 12px;
    background: var(--primary); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(8, 126, 185, .4);
    opacity: 0; transition: bottom .3s ease, opacity .3s ease, background .2s;
}
#back-to-top svg { width: 20px; height: 20px; }
#back-to-top.show { bottom: 30px; opacity: 1; }
#back-to-top:hover { background: var(--primary-dark); }

/* ---------------- 侧栏：日历 ---------------- */
.cal-head { text-align: center; font-size: 13.5px; color: #556b7e; margin-bottom: 10px; font-weight: 600; }
.cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 3px; text-align: center;
}
.cal-w { font-size: 11.5px; color: var(--muted); padding: 3px 0; }
.cal-day {
    font-size: 12.5px; color: #556b7e; padding: 5px 0; border-radius: 8px;
    background: #fafcfe;
}
.cal-day.today {
    background: var(--primary); color: #fff; font-weight: 700;
    box-shadow: 0 3px 8px rgba(8, 126, 185, .35);
}
.cal-blank { visibility: hidden; }

/* ---------------- 侧栏：友链 ---------------- */
.side-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-links a {
    display: flex; align-items: center; gap: 7px; padding: 6px 8px;
    border-radius: 10px; border: 1px solid transparent; transition: all .2s; min-width: 0;
}
.side-links a:hover { background: var(--primary-light); border-color: transparent; }
.side-links img, .side-link-ph {
    width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; object-fit: cover;
    border: 1px solid var(--border);
}
.side-link-ph {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 600;
}
.side-link-name {
    font-size: 13px; color: #556b7e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-links a:hover .side-link-name { color: var(--primary-dark); }
.side-more { display: block; margin-top: 12px; font-size: 13px; color: var(--primary-dark); text-align: center; }
.side-more.inline { display: inline; }

/* ---------------- 详情弹窗 ---------------- */
.post-modal {
    position: fixed; inset: 0; z-index: 500; display: none;
}
.post-modal.open { display: block; }
.pm-backdrop {
    position: absolute; inset: 0;
    background: rgba(17, 38, 54, .45); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: pmFade .25s ease;
}
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
.pm-box {
    position: relative; z-index: 1;
    width: min(820px, calc(100vw - 32px)); height: calc(100vh - 64px);
    margin: 32px auto 0; background: #fff; border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    animation: pmUp .3s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden; display: flex; flex-direction: column;
}
@keyframes pmUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.pm-close {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #456;
    font-size: 22px; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.pm-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
.pm-scroll { overflow-y: auto; padding: 34px 40px 44px; flex: 1; }
.pm-article .post-head h1 { font-size: 24px; padding-right: 40px; }
.pm-article .post-head { border-bottom: 1px solid var(--border); }
.pm-cover { width: 100%; border-radius: 12px; margin-bottom: 22px; display: block; max-height: 400px; object-fit: cover; }
.pm-loading {
    text-align: center; color: var(--muted); font-size: 14px; padding: 70px 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.pm-loading.err { color: #c05a5a; }
.pm-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid var(--border); border-top-color: var(--primary);
    animation: pmSpin .8s linear infinite;
}
@keyframes pmSpin { to { transform: rotate(360deg); } }
.pm-scroll .post-content img { cursor: zoom-in; }

/* ---------------- 小铺 · 首页 ---------------- */
.shop-head { padding-top: 22px; }
/* ---------------- 小铺主推（附件电商版式：左信息面板 / 右大图 / 已售角标 / 轮播圆点） ---------------- */
.shop-hero {
    position: relative; margin-top: 20px;
    border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow-hover); background: #fff;
    height: 440px;
}
.sh-slide {
    position: absolute; inset: 0; display: flex;
    opacity: 0; visibility: hidden; z-index: 0;
    transition: opacity .55s ease, visibility .55s ease;
}
.sh-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.sh-info {
    flex: 1 1 42%; display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start; padding: 40px 44px; min-width: 0;
}
.sh-flag {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #dd137b, #f0559f); color: #fff;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    padding: 5px 14px; border-radius: 999px;
}
.sh-name { font-size: 27px; font-weight: 700; color: #22344a; line-height: 1.4; margin-top: 18px; }
.sh-sell { color: #8494a5; font-size: 14.5px; margin-top: 8px; line-height: 1.7; }
.sh-price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; color: #dd137b; }
.sh-price i { font-style: normal; font-size: 20px; font-weight: 700; }
.sh-price b { font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.sh-price del { color: #a9b6c3; font-size: 14px; font-weight: 400; }
.sh-qi { color: #dd137b; font-size: 14px; margin-left: 2px; }
.sh-btns { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.sh-buy {
    display: inline-flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, #dd137b, #f0559f); color: #fff;
    font-size: 15px; font-weight: 600; padding: 12px 28px; border-radius: 10px;
    transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 20px rgba(221, 19, 123, .28);
}
.sh-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(221, 19, 123, .36); color: #fff; }
.sh-buy i { font-style: normal; transition: transform .2s; }
.sh-buy:hover i { transform: translateX(3px); }
.sh-more {
    display: inline-flex; align-items: center;
    background: #fff; color: #3a4d61; border: 1px solid #dde5ec;
    font-size: 15px; padding: 11px 24px; border-radius: 10px; transition: all .2s;
}
.sh-more:hover { border-color: #dd137b; color: #dd137b; }
.sh-ship { display: inline-flex; align-items: center; gap: 6px; color: #8494a5; font-size: 13px; margin-top: 22px; }
.sh-ship svg { color: #9aa9b8; }
.sh-pic { flex: 1 1 58%; position: relative; overflow: hidden; }
.sh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-pic-ph {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.sh-pic-ph i { font-size: 90px; color: rgba(255, 255, 255, .8); font-weight: 700; font-style: normal; }
.sh-sold {
    position: absolute; top: 18px; right: 18px; z-index: 2;
    background: rgba(20, 27, 36, .62); color: #fff;
    font-size: 12.5px; padding: 5px 12px; border-radius: 8px;
    backdrop-filter: blur(3px); letter-spacing: .5px;
}
.sh-dots {
    position: absolute; right: 20px; bottom: 16px; z-index: 3;
    display: flex; align-items: center; gap: 7px;
}
.sh-dot {
    width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    transition: all .25s;
}
.sh-dot.on { width: 24px; background: #dd137b; }
@media (max-width: 900px) {
    .shop-hero { height: auto; }
    .sh-slide { position: relative; inset: auto; display: none; flex-direction: column-reverse; }
    .sh-slide.on { display: flex; }
    .sh-pic { flex: none; height: 250px; }
    .sh-info { padding: 24px 22px 28px; }
    .sh-name { font-size: 21px; margin-top: 14px; }
    .sh-price b { font-size: 34px; }
    .sh-btns { margin-top: 18px; flex-wrap: wrap; }
    .sh-sold { top: 14px; right: 14px; }
    .sh-dots { bottom: auto; top: 220px; }
}

/* 限时特价 / 售罄 徽章（小铺卡片与详情共用） */
.badge-special {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
    background: linear-gradient(135deg, #dd137b, #f0559f); color: #fff;
    font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
}
.badge-soldout {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
    background: rgba(40, 50, 60, .78); color: #fff;
    font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
}
.shop-card-cover .badge-special,
.shop-card-cover .badge-soldout { top: 10px; right: 10px; left: auto; }
.shop-card-price .sp-tag {
    font-style: normal; font-size: 11px; color: #dd137b; background: #fbe4f1;
    border-radius: 999px; padding: 1px 8px; font-weight: 600;
}
.shop-card-stock { font-size: 12px; color: var(--muted); }
.shop-card-stock.out { color: #b06b0a; }

.shop-sec-title { font-size: 18px; margin: 34px 0 4px; }
.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; margin-top: 16px;
}
.shop-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.shop-card-cover { position: relative; display: block; }
.shop-card-cover img {
    width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover;
}
.shop-card-cover .cover-ph { aspect-ratio: 4 / 3; }
.shop-card-cover .badge-top { top: 10px; left: 10px; }
.shop-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card-title {
    font-size: 15.5px; color: var(--text); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card-summary {
    color: var(--muted); font-size: 12.5px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.shop-card-price em {
    font-style: normal; color: #dd137b; font-weight: 700; font-size: 17px;
}
.shop-card-price em::before { content: "¥"; font-size: 12px; margin-right: 1px; }
.shop-card-price del { color: var(--muted); font-size: 12px; }

/* ---------------- 商品详情页 ---------------- */
.product-crumbs {
    display: flex; align-items: center; gap: 8px; margin-top: 16px;
    color: var(--muted); font-size: 13.5px;
}
.product-crumbs a:hover { color: var(--primary-dark); }
.product-top {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px; margin-top: 14px; align-items: start;
}
.pg-main {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); background: #fff; position: relative;
}
.pg-main img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.pg-main .cover-ph { aspect-ratio: 1 / 1; font-size: 64px; }

.product-info { padding: 28px 30px; }
.product-title { font-size: 23px; line-height: 1.45; }
.product-summary { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.7; }
.product-price-bar {
    margin-top: 18px; background: linear-gradient(135deg, #fdeff6, #fcf0f7);
    border: 1px solid #f5d3e6; border-radius: 12px; padding: 14px 20px;
    display: flex; align-items: baseline; gap: 12px;
}
.pp-now { color: #dd137b; font-size: 26px; font-weight: 700; }
.pp-now i { font-style: normal; font-size: 15px; margin-right: 2px; }
.pp-orig { color: var(--muted); font-size: 14px; }
.pp-badge { margin-left: 10px; vertical-align: 4px; }
.pp-special-tip { display: block; width: 100%; margin-top: 6px; font-size: 12px; color: #b3126b; }
.sp-inline {
    font-style: normal; font-size: 11px; color: #dd137b; background: #fbe4f1;
    border-radius: 999px; padding: 1px 8px; font-weight: 600;
}

/* 商品规格 / 数量信息行 */
.product-specs { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.product-specs > div {
    display: flex; gap: 10px; font-size: 13.5px; background: #fafcfe;
    border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px;
}
.product-specs dt { color: var(--muted); flex: none; }
.product-specs dd { color: var(--text); word-break: break-all; margin: 0; }
.product-specs dd.sold-out { color: #b06b0a; font-weight: 600; }

.product-pay { margin-top: 20px; }
.product-pay h3 { font-size: 15px; margin-bottom: 10px; }
.pay-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pay-list li {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fafcfe; border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
}
.pay-name { font-weight: 600; color: var(--primary-dark); }
.pay-account { color: #556b7e; }
.pay-note { color: var(--muted); font-size: 12.5px; }
.pay-qr {
    margin-left: auto; font-size: 12.5px; color: var(--primary-dark);
    background: var(--primary-light); padding: 3px 12px; border-radius: 999px;
    cursor: pointer; transition: background .2s;
}
.pay-qr:hover { background: #d3e9f7; }

/* 商品页购买区（立即购买） */
.product-buy { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.pb-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.pb-label { font-size: 13px; color: var(--muted); }
.pb-total { color: var(--primary-dark); font-size: 13.5px; font-weight: 600; }
.pb-total i { font-style: normal; font-size: 26px; font-weight: 700; }
.pb-orig { color: var(--muted); font-size: 13px; }
.pb-btn { font-size: 15px; padding: 12px 0; letter-spacing: 2px; }
.pb-btn.soldout,
.pb-btn.soldout:hover {
    background: #c9d6e0; color: #fff; pointer-events: none; box-shadow: none;
}
.product-buy .form-tip { margin-top: 10px; }
.order-check-link { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--primary-dark); }
.order-check-link:hover { text-decoration: underline; }

.product-detail { margin-top: 26px; padding: 30px 34px; }
.pd-title {
    font-size: 18px; padding-bottom: 14px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.pd-images { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pd-images img {
    width: 100%; border-radius: 12px; display: block;
    border: 1px solid var(--border);
}

/* ---------------- 收款码放大 ---------------- */
.qr-viewer {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(17, 38, 54, .5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; cursor: zoom-out;
    animation: pmFade .2s ease;
}
.qr-viewer-box {
    background: #fff; border-radius: 18px; padding: 22px 22px 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .25); text-align: center; max-width: 86vw;
}
.qr-viewer-box img { max-width: 320px; max-height: 60vh; border-radius: 10px; display: block; }
.qr-viewer-box p { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------------- 响应式补充 ---------------- */
@media (max-width: 1100px) {
    .home-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
}
@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-side, .home-main { min-width: 0; }
    .home-side { order: -1; }
    .side-hero { aspect-ratio: 16 / 7; }
    .side-hero-avatar { width: 48px; height: 48px; flex-basis: 48px; }
    .product-top { grid-template-columns: 1fr; }
    .pm-scroll { padding: 26px 20px 36px; }
    .pm-box { height: calc(100vh - 24px); margin-top: 12px; }
}
@media (max-width: 560px) {
    .pd-images { grid-template-columns: 1fr; }
    .side-links { grid-template-columns: 1fr 1fr; }
    .sh-name { font-size: 19px; }
    .sh-price b { font-size: 30px; }
    .sh-buy, .sh-more { padding-left: 20px; padding-right: 20px; }
    /* 窄屏解除 aspect-ratio 与 min-height 的宽度耦合（198×16/7=453 会横向溢出；轮播项见 hc 区块后覆盖） */
    .side-hero { aspect-ratio: auto; height: 210px; }
}

/* ============================================================
   订单流程（下单 / 付款 / 查询）
   ============================================================ */
.order-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap; margin-bottom: 22px;
}
.os { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.os i {
    width: 26px; height: 26px; border-radius: 50%; font-style: normal;
    background: #ecf2f7; color: var(--muted); font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}
.os.on { color: var(--primary-dark); }
.os.on i { background: var(--primary); color: #fff; }
.os.now { color: var(--primary-dark); font-weight: 600; }
.os.now i { background: var(--primary-light); color: var(--primary-dark); box-shadow: inset 0 0 0 1.5px var(--primary); }
.os-line { width: 42px; height: 2px; background: var(--border); border-radius: 2px; }

.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.pay-layout { grid-template-columns: 1fr 340px; }
.order-main { min-width: 0; }
.order-main .card + .card { margin-top: 20px; }

.of-title { font-size: 16px; margin-bottom: 14px; }
.order-form input[type="text"], .order-form input[type="number"], .order-form textarea,
.proof-form input[type="text"] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; font-family: inherit;
    color: var(--text); background: #fff; transition: border-color .2s;
}
.order-form input:focus, .order-form textarea:focus, .proof-form input:focus {
    border-color: var(--primary); outline: none;
}
.order-form .form-tip, .proof-form .form-tip { margin-top: 6px; }
.btn-block { display: block; width: 100%; text-align: center; }
.order-agree { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.7; }

/* 付款方式单选卡 */
.pay-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pay-pick {
    position: relative; display: flex; flex-direction: column; gap: 3px;
    padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: border-color .2s, background .2s;
}
.pay-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pay-pick b { font-size: 14px; }
.pay-pick span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.pay-pick.on, .pay-pick:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.pay-pick.on b, .pay-pick:has(input:checked) b { color: var(--primary-dark); }

/* 订单摘要侧栏 */
.os-product { display: flex; gap: 12px; margin-bottom: 14px; }
.os-product img, .os-product .cover-ph {
    width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none;
}
.os-product b { font-size: 14px; line-height: 1.5; display: block; }
.os-product p {
    font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.os-rows { margin: 0 0 12px; }
.os-rows > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px;
}
.os-rows dt { color: var(--muted); flex: none; }
.os-rows dd { text-align: right; word-break: break-all; }
.os-rows del { color: var(--muted); font-size: 12px; }
.os-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 2px 16px; }
.os-total span { font-size: 13.5px; color: var(--muted); }
.os-total b i { font-style: normal; color: var(--primary-dark); font-size: 26px; font-weight: 700; }
.order-side .btn-block + .btn-block { margin-top: 10px; }

/* 订单状态 */
.order-state-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-state-head h2 { font-size: 16.5px; word-break: break-all; }
.order-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.order-status {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.st-pending   { background: #fff7e8; color: #b06b0a; }
.st-paid      { background: #e8f1fd; color: #2f6fd0; }
.st-shipped   { background: var(--primary-light); color: var(--primary-dark); }
.st-done      { background: #ecf2f7; color: #556b7e; }
.st-cancelled { background: #f5f5f5; color: #999999; }

.order-notice { margin: 14px 0; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.7; }
.order-notice.warn { background: #fff7e8; color: #b06b0a; }
.order-notice.ok { background: var(--primary-light); color: var(--primary-dark); }
.order-notice.off { background: #f5f5f5; color: #8a8a8a; }
.order-notice a { color: inherit; text-decoration: underline; }

/* 状态时间线 */
.order-timeline { list-style: none; margin: 16px 0 18px; padding: 0; }
.order-timeline li { position: relative; padding: 0 0 18px 26px; }
.order-timeline li::before {
    content: ''; position: absolute; left: 6px; top: 16px; bottom: -2px;
    width: 2px; background: var(--border);
}
.order-timeline li:last-child { padding-bottom: 4px; }
.order-timeline li:last-child::before { display: none; }
.tl-dot {
    position: absolute; left: 0; top: 3px; width: 8px; height: 8px;
    border-radius: 50%; background: #fff; border: 3px solid var(--border);
}
.order-timeline li.on .tl-dot { border-color: var(--primary); background: var(--primary-light); }
.order-timeline b { font-size: 13.5px; display: block; }
.order-timeline li:not(.on) b { color: var(--muted); font-weight: 500; }
.tl-time { font-size: 12px; color: var(--muted); }

/* 付款凭证 */
.proof-current {
    background: #f7fafc; border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.8;
}
.proof-current a { color: var(--primary-dark); }
.proof-thumb {
    width: 88px; height: 88px; object-fit: cover; border-radius: 10px;
    border: 1px solid var(--border); display: block; margin-bottom: 8px;
}

/* 付款页收款方式卡 */
.pay-tip {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary-dark);
    font-size: 13px; line-height: 1.7;
}
.order-links .btn-block + .btn-block { margin-top: 10px; }

/* 订单查询 */
.order-check-wrap { max-width: 720px; margin: 0 auto; }
.order-check-box { padding: 24px 26px; margin-bottom: 20px; }
.order-check-row { display: flex; gap: 10px; margin-top: 12px; }
.order-check-row input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; font-family: inherit;
}
.order-check-row input:focus { border-color: var(--primary); outline: none; }
.order-check-wrap .alert { margin-top: 12px; }

.shop-check-line { margin-top: 10px; font-size: 13.5px; }
.shop-check-line a { color: var(--primary-dark); opacity: .85; }
.shop-check-line a:hover { opacity: 1; }

@media (max-width: 860px) {
    .order-layout, .pay-layout { grid-template-columns: 1fr; }
    .order-side { order: 2; }
}

/* ================= 首页轮播图（主栏两列瀑布流最上方） ================= */
.home-carousel {
    position: relative; border-radius: 14px; overflow: hidden;
    background: #e8f3fa; box-shadow: 0 4px 18px rgba(8, 100, 150, .10);
    margin-bottom: 20px; height: 240px;
}
@media (max-width: 560px) {
    /* 窄屏降低高度，避免占屏过多 */
    .home-carousel { height: 190px; }
}
.hc-track { display: flex; width: 100%; height: 100%; transition: transform .55s ease; }
.hc-slide { position: relative; flex: 0 0 100%; height: 100%; display: block; min-width: 0; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-cap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 40px 18px 13px; color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
    font-size: 15px; font-weight: 600; letter-spacing: .3px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .4);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hc-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255, 255, 255, .82); color: var(--primary-dark);
    font-size: 20px; line-height: 32px; text-align: center; padding: 0;
    opacity: 0; transition: opacity .25s ease, background .25s ease;
    box-shadow: 0 2px 8px rgba(0, 40, 70, .18);
}
.hc-prev { left: 12px; }
.hc-next { right: 12px; }
.home-carousel:hover .hc-nav { opacity: 1; }
.hc-nav:hover { background: #fff; }
.hc-dots {
    position: absolute; right: 16px; bottom: 12px; z-index: 3;
    display: flex; align-items: center; gap: 6px;
}
.hc-dot {
    width: 7px; height: 7px; border-radius: 4px; border: none; padding: 0;
    background: rgba(255, 255, 255, .55); cursor: pointer;
    transition: width .3s ease, background .3s ease;
}
.hc-dot.on { width: 18px; background: var(--accent); }

/* ================= 侧栏 · 呜啦啦（一句话微博） ================= */
.wulala-list { list-style: none; margin: 0; padding: 0; }
.wulala-list li { padding: 10px 2px; border-bottom: 1px dashed var(--border); }
.wulala-list li:last-child { border-bottom: none; padding-bottom: 2px; }
.wl-text { margin: 0 0 4px; font-size: 13.5px; color: #3a4d61; line-height: 1.7; word-break: break-word; }
.wl-text::before {
    content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); margin-right: 7px; vertical-align: 2.5px; opacity: .8;
}
.wl-time { font-size: 11.5px; color: #8ba3b5; letter-spacing: .3px; }

/* ================= 商品卡 · 角标/卖点/标签 ================= */
.shop-card-cover { position: relative; }
.badge-corner {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 3px 9px; border-radius: 8px 8px 8px 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 12px; letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(8, 100, 150, .3);
}
.shop-card-sell { display: block; margin-top: 3px; font-size: 12.5px; color: #7d93a6; }
.shop-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.shop-card-tags i {
    font-style: normal; font-size: 11px; color: var(--primary-dark);
    background: var(--primary-light); border-radius: 6px; padding: 2px 7px;
}
.product-sell { margin: 6px 0 0; font-size: 13.5px; color: #7d93a6; letter-spacing: .3px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.product-tags i {
    font-style: normal; font-size: 12px; color: var(--primary-dark);
    background: var(--primary-light); border-radius: 7px; padding: 3px 10px;
}
.pg-main { position: relative; }
.pg-main .badge-corner { top: 14px; left: 14px; font-size: 13px; }

/* ================= 下单页 · 规格选择 ================= */
.spec-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-pick {
    display: inline-flex; flex-direction: column; gap: 2px;
    border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 14px;
    cursor: pointer; transition: all .18s ease; background: #fff; min-width: 118px;
}
.spec-pick input { position: absolute; opacity: 0; pointer-events: none; }
.spec-pick b { font-size: 14px; color: #3a4d61; }
.spec-pick span { font-size: 12px; color: #8ba3b5; }
.spec-pick:hover { border-color: var(--primary); }
.spec-pick.on { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 1px var(--primary) inset; }
.spec-pick.on b { color: var(--primary-dark); }
.spec-pick.off { opacity: .55; cursor: not-allowed; background: #f3f7fa; }
.pp-qi { font-size: 13px; color: #8ba3b5; margin-left: 2px; }

/* ================= 自研补充：公告条 ================= */
.notice-bar {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #e7f3fb, #f3e9f5);
    border: 1px solid #d5e8f4; border-radius: 12px;
    padding: 10px 16px; margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.notice-bar .nb-icon {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3aa5d8);
    color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.notice-bar .nb-text { flex: 1; min-width: 0; font-size: 15px; color: #33566e; }
.notice-bar .nb-text b { color: var(--primary-dark); margin-right: 6px; }
.notice-bar .nb-close {
    flex: 0 0 auto; border: none; background: none; cursor: pointer;
    color: #9db4c4; font-size: 16px; line-height: 1; padding: 4px;
}
.notice-bar .nb-close:hover { color: var(--accent); }

/* 小屏导航：logo 与导航两行居中，换行代替横向滚动 */
@media (max-width: 760px) {
    .nav-wrap { height: auto; flex-wrap: wrap; padding: 10px 0 6px; justify-content: center; }
    .brand { justify-content: center; }
    .nav { top: 0; flex-wrap: wrap; justify-content: center; margin-left: 0; max-width: 100%; padding-bottom: 2px; }
}

/* 手机端：隐藏公告/轮播图/右侧栏，直接展示博客列表 */
@media (max-width: 640px) {
    .notice-bar { display: none; }
    .home-carousel { display: none; }
    .home-side { display: none; }
    .home-layout { grid-template-columns: 1fr; }
}
