/* ==========================================
   0. 变量 & 基础
   ========================================== */
:root {
    --main: #c2185b;
    --main-dark: #a3154c;
    --main-light: #fce4ec;
    --text: #1f2329;
    --text-sub: #5f6670;
    --text-muted: #9aa1aa;
    --border: #ebedf0;
    --border-light: #f2f4f7;
    --bg: #f6f7f9;
    --radius: 12px;
    --radius-sm: 8px;
    /* 多层阴影：贴地的短影负责轮廓，扩散的长影负责层次，比单层阴影更细腻 */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .06), 0 12px 24px -4px rgba(16, 24, 40, .08);
    --shadow-main: 0 8px 24px rgba(194, 24, 91, .12);
    --section-title-gap: 20px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }

.as-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ==========================================
   1. Header + 主导航
   ========================================== */
.as-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.as-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.as-logo a, .as-logo img { font-size: 20px; font-weight: 700; color: var(--main); max-height: 48px; }

.as-header-search { width: 220px; }
.as-searchform { display: flex; }
.as-searchform input {
    flex: 1;
    border: 1px solid #e3e5e8;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}
.as-searchform button {
    border: none;
    background: var(--main);
    color: #fff;
    padding: 0 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
}

/* 主导航 */
.as-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.as-nav > ul > li { position: relative; }
.as-nav > ul > li > a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    color: #333;
    border-radius: var(--radius-sm);
    transition: .2s;
    white-space: nowrap;
}
.as-nav > ul > li > a:hover,
.as-nav > ul > li.current-menu-item > a,
.as-nav > ul > li.current_page_item > a,
.as-nav > ul > li.current-menu-ancestor > a {
    color: var(--main);
    background: var(--main-light);
}

/* 二级菜单 */
.as-nav ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    margin: 8px 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .22s;
    z-index: 999;
    border: 1px solid #f0f0f0;
}
.as-nav > ul > li:hover > ul.sub-menu,
.as-nav > ul > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.as-nav ul.sub-menu li { position: relative; }
.as-nav ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #444;
    transition: .2s;
    white-space: nowrap;
}
.as-nav ul.sub-menu li a:hover,
.as-nav ul.sub-menu li.current-menu-item > a {
    background: var(--main-light);
    color: var(--main);
}
.as-nav ul.sub-menu ul.sub-menu { top: 0; left: 100%; margin: 0 0 0 4px; }

/* 箭头 */
.as-nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    opacity: .6;
}
.as-nav ul.sub-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    float: right;
    margin-top: 6px;
    opacity: .5;
}

/* 汉堡按钮 */
.as-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2;
}
.as-nav-toggle span,
.as-nav-toggle span::before,
.as-nav-toggle span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: .25s;
    position: absolute;
    left: 9px;
}
.as-nav-toggle span { top: 19px; }
.as-nav-toggle span::before { top: -7px; left: 0; }
.as-nav-toggle span::after { top: 7px; left: 0; }

/* 汉堡 → X */
.as-nav-toggle.is-active span { background: transparent; }
.as-nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.as-nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* 移动端面板内的搜索框（桌面隐藏） */
.as-nav-mobile-search { display: none; }

/* 子菜单展开开关：桌面靠 hover 展开，用不到按钮，默认隐藏 */
.as-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    font-family: inherit;
}
.as-submenu-toggle-icon {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .25s ease;
    margin-top: -4px;
}

/* 抽屉打开时锁滚动 */
body.as-nav-open { overflow: hidden; }
body.as-nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 997;
}

/* 移动端导航 */
@media (max-width: 900px) {
    .as-header-search { display: none; }
    .as-nav-toggle { display: block; }

    .as-nav {
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: #fff;
        padding: 16px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .28s ease;
        z-index: 998;
        box-shadow: 4px 0 24px rgba(0,0,0,.08);
        display: flex;
        flex-direction: column;
    }
    .as-nav.open { transform: translateX(0); }
    .as-nav-mobile-search { display: block; order: -1; margin-bottom: 14px; }
    .as-nav-mobile-search .as-searchform { max-width: none; }
    .as-nav-mobile-search .as-searchform input { border-right: 1px solid #e3e5e8; border-radius: var(--radius-sm); }
    .as-nav-mobile-search .as-searchform button { margin-left: 8px; border-radius: var(--radius-sm); padding: 0 18px; }
    .as-nav-mobile-search .as-searchform input,
    .as-nav-mobile-search .as-searchform button { height: 40px; }
    .as-nav > ul { flex-direction: column; gap: 2px; align-items: stretch; }
    .as-nav > ul > li > a { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
    .as-nav ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease, visibility .28s;
        background: transparent;
    }
    .as-nav li.sub-open > ul.sub-menu {
        max-height: 600px;
        padding: 6px 0 6px 16px;
        visibility: visible;
    }
    .as-nav ul.sub-menu li a { padding: 10px 12px; border-radius: var(--radius-sm); }
    .as-nav ul.sub-menu ul.sub-menu { left: 0; margin: 0; }

    /* 父菜单拆成两个点击区：点正文跳转，点右侧箭头展开/折叠 */
    .as-nav li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .as-nav li.menu-item-has-children > a {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .as-nav li.menu-item-has-children > .as-submenu-toggle {
        display: flex;
        flex: 0 0 auto;
        align-self: stretch;
        width: 46px;
        min-height: 44px;
        border-left: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
    }
    .as-nav li.menu-item-has-children > .as-submenu-toggle:active { background: var(--main-light); }
    .as-nav li.menu-item-has-children > ul.sub-menu {
        flex: 1 1 100%;
        width: 100%;
    }

    /* 移动端箭头统一交给按钮，隐藏链接自带的下拉三角
       （只在 JS 成功注入按钮后才隐藏，避免无 JS 时连箭头都没了） */
    .as-nav.has-sub-toggles > ul > li.menu-item-has-children > a::after,
    .as-nav.has-sub-toggles ul.sub-menu > li.menu-item-has-children > a::after { content: none; }

    /* 展开时箭头翻转为朝上 */
    .as-nav li.sub-open > .as-submenu-toggle .as-submenu-toggle-icon { transform: rotate(-135deg); }
}

/* ==========================================
   2. Hero + 通用按钮
   ========================================== */
.as-hero {
    background: linear-gradient(135deg, var(--main), #7b1fa2);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.as-hero h1 { margin: 0 0 10px; font-size: 34px; }
.as-hero p { margin: 0 0 24px; opacity: .9; }
.as-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.as-btn-primary {
    background: #fff;
    color: var(--main);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
}
.as-btn-primary:hover { background: var(--main-light); }
.as-btn-ghost {
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
}
.as-btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ==========================================
   3. Section 通用
   ========================================== */
.as-section { padding: 44px 0; }
.as-section-alt { background: #fff; }

/* 标题间距统一由 .as-section-title 自身提供：
   全局 h2 被重置为 margin:0，若把间距交给包裹层，
   没用 .as-section-head 包裹的标题（相关推荐/相关文章/搜索结果）就会贴住网格。 */
.as-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.as-section-title { font-size: 22px; margin: 0 0 var(--section-title-gap); }
.as-section-more { font-size: 14px; color: var(--main); }

/* ==========================================
   4. 品类卡片
   ========================================== */
.as-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .as-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.as-cat-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: .2s;
}
.as-cat-item:hover { border-color: var(--main); transform: translateY(-3px); }
.as-cat-name { display: block; font-weight: 600; margin-bottom: 4px; }
.as-cat-count { font-size: 13px; color: var(--text-muted); }

/* ==========================================
   5. 产品网格 + 卡片（列表页、首页、相关推荐）
   ========================================== */
.as-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .as-grid { grid-template-columns: repeat(2, 1fr); } }
/* 手机保持两列：一列的话每屏只能看到一个产品，列表页会拉得极长，浏览效率很低 */
@media (max-width: 480px) { .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.as-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.as-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.as-card-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.as-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.as-card-title { font-size: 15px; height: 44px; overflow: hidden; }
.as-card-title a:hover { color: var(--main); }
.as-card-coupon {
    font-size: 12px;
    color: var(--main);
    border: 1px dashed var(--main);
    border-radius: 4px;
    padding: 2px 6px;
    align-self: flex-start;
}
.as-card-price { display: flex; align-items: baseline; gap: 8px; }
.as-price-now { color: var(--main); font-size: 18px; font-weight: 700; }
.as-price-old { color: var(--text-muted); text-decoration: line-through; font-size: 13px; }

.as-buy-btn {
    display: block;
    text-align: center;
    background: var(--main);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-weight: 600;
    margin-top: auto;
}
.as-buy-btn:hover { background: var(--main-dark); }

/* ==========================================
   6. Tab 切换
   ========================================== */
.as-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.as-tab {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
    color: #333;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}
.as-tab:hover { border-color: var(--main); color: var(--main); }
.as-tab.active { background: var(--main); border-color: var(--main); color: #fff; font-weight: 600; }

@media (max-width: 600px) {
    .as-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .as-tabs::-webkit-scrollbar { display: none; }
    .as-tab { flex-shrink: 0; padding: 6px 14px; font-size: 13px; }
}

/* ==========================================
   7. 归档页 & 分页
   ========================================== */
/* 注意：这几个类都和 .as-container 组合使用（class="as-container as-archive"）。
   这里只能写 padding-top / padding-bottom，绝不能写 padding: X 0 ——
   简写会把 .as-container 的左右内边距整个覆盖成 0，导致整页内容贴边。 */
.as-archive { padding-top: 36px; padding-bottom: 36px; }
.as-archive-title { font-size: 24px; margin: 0 0 20px; }
.as-term-desc { margin-bottom: 20px; color: var(--text-sub); }
.as-pagination { text-align: center; margin: 32px 0; }
.as-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #fff;
    border-radius: var(--radius-sm);
}
.as-pagination .current { background: var(--main); color: #fff; }

/* ==========================================
   8. 产品详情页
   ========================================== */
.as-single { padding-top: 36px; padding-bottom: 36px; }
.as-single-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}
@media (max-width: 768px) { .as-single-top { grid-template-columns: 1fr; gap: 24px; } }

/* 主图列：图片在列内垂直居中，右侧内容比图片高时也不会偏上 */
.as-single-img {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.as-single-img img { max-width: 100%; height: auto; }

/* 桌面：主图贴顶跟随滚动
   右侧规格参数可能很长（自定义属性加得多时尤其明显），主图如果垂直居中，
   上下会各留一大块空白，看起来和右侧不协调。这里分两条规则处理：

   ≥992px：主图列收窄到 440px，把空间让给信息列，参数行更短、卡片更矮。
           阈值取 992 而不是 769，是因为 769-991px 这段如果也压 440px，
           信息列只剩 200px 左右，参数会折成好几行，反而更难看。
   ≥769px：主图贴顶（align-self:start）并 sticky 跟随滚动；加浅边框让图区有边界。
           信息列保持 stretch 不动，购买按钮仍靠 margin-top:auto 与主图底部对齐。 */
@media (min-width: 992px) {
    .as-single-top {
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
        gap: 36px;
    }
}

@media (min-width: 769px) {
    .as-single-img {
        align-self: start;
        position: sticky;
        top: 88px;
    }
    .as-single-img img {
        border: 1px solid var(--border-light);
        border-radius: 12px;
    }
}

/* 信息列：纵向排布，购买按钮用 margin-top:auto 贴到与主图底部齐平 */
.as-single-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.as-single-info h1 { margin: 0 0 12px; font-size: 24px; }
.as-single-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.as-tag { font-size: 12px; background: var(--border-light); padding: 4px 10px; border-radius: 999px; }
.as-tag-green { background: #e8f5e9; color: #2e7d32; }
.as-single-price { margin: 12px 0; }
.as-single-price .as-price-now { font-size: 28px; }
.as-single-coupon { background: var(--main-light); color: var(--main); padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.as-single-rating { color: #ff9500; margin: 12px 0; }
.as-single-material { color: var(--text-sub); font-size: 14px; margin: 8px 0; }
.as-single-buy { margin-top: auto; padding-top: 20px; }
.as-single-buy .as-buy-btn { font-size: 16px; padding: 14px; }
.as-buy-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.as-single-desc { background: #fff; padding: 24px; border-radius: 12px; margin-top: 24px; }
.as-single-desc > h2 { margin: 0 0 var(--section-title-gap); }

/* ==========================================
   9. 博客列表 & 单篇
   ========================================== */
.as-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .as-post-grid { grid-template-columns: 1fr; } }

.as-post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.as-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.as-post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.as-post-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.as-post-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 6px; margin-bottom: 8px; }
.as-post-meta a { color: var(--text-muted); }
.as-post-meta a:hover { color: var(--main); }
.as-post-title { font-size: 17px; margin: 0 0 8px; }
.as-post-title a:hover { color: var(--main); }
.as-post-excerpt { font-size: 14px; color: var(--text-sub); margin: 0; flex: 1; }

.as-blog-header {
    text-align: center;
    padding: 20px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.as-blog-header .as-archive-title { margin: 0 0 8px; font-size: 28px; }
.as-blog-sub { color: var(--text-muted); font-size: 14px; margin: 0; }

.as-post-grid .as-grid-item { display: flex; flex-direction: column; }
.as-post-grid .as-grid-item .as-post-card { flex: 1; }

.as-single-post { padding-top: 36px; padding-bottom: 36px; }

/* ------------------------------------------
   文章详情页
   ------------------------------------------ */
.as-post {
    background: #fff;
    padding: 36px 40px 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.as-post-header { margin-bottom: 26px; }

.as-post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.as-post-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--main-light);
    color: var(--main);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
    transition: background .2s;
}
.as-post-cat:hover { background: #f7d4e4; }

.as-post-heading {
    margin: 0 0 14px;
    font-size: 27px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -.2px;
    color: var(--text);
}

.as-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.as-post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #d5d8dd; }

.as-post-cover { margin: 0 0 26px; border-radius: 12px; overflow: hidden; }
.as-post-cover img { display: block; width: 100%; height: auto; }

/* ------------------------------------------
   正文排版（中文长文，重点是行高与段间距）
   ------------------------------------------ */
.as-post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #2c3038;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.as-post-content > *:first-child { margin-top: 0; }
.as-post-content > *:last-child { margin-bottom: 0; }

.as-post-content p { margin: 0 0 1.35em; }

.as-post-content h2 {
    margin: 2em 0 .7em;
    padding-left: 12px;
    border-left: 4px solid var(--main);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
}
.as-post-content h3 { margin: 1.7em 0 .6em; font-size: 17px; font-weight: 600; }
.as-post-content h4 { margin: 1.5em 0 .5em; font-size: 16px; font-weight: 600; }

.as-post-content ul,
.as-post-content ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.as-post-content li { margin-bottom: .5em; }
.as-post-content li:last-child { margin-bottom: 0; }

.as-post-content blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    background: #fafbfc;
    border-left: 3px solid var(--main);
    border-radius: 0 10px 10px 0;
    color: var(--text-sub);
}
.as-post-content blockquote p:last-child { margin-bottom: 0; }

.as-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.8em auto;
    border-radius: 10px;
}
.as-post-content figure { margin: 1.8em 0; }
.as-post-content figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: center; }

.as-post-content a {
    color: var(--main);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.as-post-content a:hover { color: var(--main-dark); }

.as-post-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f2f3f5;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.as-post-content pre {
    margin: 1.6em 0;
    padding: 16px 18px;
    border-radius: 10px;
    background: #1f2329;
    color: #e6e8eb;
    overflow-x: auto;
    line-height: 1.7;
}
.as-post-content pre code { padding: 0; background: none; color: inherit; }

.as-post-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--border); }

.as-post-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; }
.as-post-content th,
.as-post-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.as-post-content th { background: #fafbfc; font-weight: 600; }

.as-post-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-sub);
}
.as-post-tags a { color: var(--text-sub); }
.as-post-tags a:hover { color: var(--main); }
.as-post-footer:empty { display: none; }

.as-comments {
    background: #fff;
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

/* ==========================================
   10. 全部品牌页
   ========================================== */
.as-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .as-brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .as-brand-grid { grid-template-columns: 1fr; } }

.as-brand-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: .22s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.as-brand-item:hover { border-color: var(--main); transform: translateY(-4px); box-shadow: var(--shadow-main); }
.as-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--main-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4px;
}
.as-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.as-brand-initial { color: var(--main); font-size: 26px; font-weight: 700; line-height: 1; }
.as-brand-name { display: block; font-weight: 600; font-size: 16px; }
.as-brand-count { font-size: 13px; color: var(--text-muted); }

/* ==========================================
   11. 文章内嵌产品卡片（独立结构 .as-pc）
   ========================================== */
.as-pc {
    display: flex;
    align-items: stretch;
    gap: 16px;
    max-width: 540px;
    margin: 28px auto;
    padding: 14px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    transition: border-color .2s, box-shadow .2s;
}
.as-pc:hover {
    border-color: #f0d5e0;
    box-shadow: 0 4px 14px rgba(194,24,91,.06);
}

.as-pc-thumb {
    display: block;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}
.as-pc-thumb .as-pc-img,
.as-pc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.as-pc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 4px;
}

.as-pc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.as-pc-title:hover { color: var(--main); }

.as-pc-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.as-pc-coupon {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    color: var(--main);
    background: var(--main-light);
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.5;
}

.as-pc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}
.as-pc-price { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.as-pc-now { color: var(--main); font-size: 17px; font-weight: 700; }
.as-pc-old { color: var(--text-muted); font-size: 12px; text-decoration: line-through; }

.as-pc-btn {
    display: inline-block;
    flex-shrink: 0;
    background: var(--main);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}
.as-pc-btn:hover { background: var(--main-dark); color: #fff; }

@media (max-width: 480px) {
    .as-pc { gap: 12px; padding: 12px; margin: 20px auto; }
    .as-pc-thumb { width: 80px; height: 80px; }
    .as-pc-title { font-size: 14px; }
    .as-pc-now { font-size: 15px; }
    .as-pc-btn { padding: 5px 12px; font-size: 12px; }
}

/* 内联版（style="inline"） */
.as-inline-product {
    display: inline-block;
    background: var(--main-light);
    color: var(--main);
    padding: 3px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin: 2px 2px;
    border: 1px solid #f8bbd0;
}
.as-inline-product:hover { background: var(--main); color: #fff; border-color: var(--main); }

/* ==========================================
   12. 404 / 空状态
   ========================================== */
/* .as-404 的样式统一放在第 17 节，此处不再重复定义（避免 padding 简写覆盖容器内边距） */
.as-404 h1 { font-size: 64px; margin: 0; color: var(--main); }
.as-404 .as-searchform { max-width: 320px; margin: 20px auto; }
.as-empty { color: var(--text-muted); padding: 20px 0; grid-column: 1 / -1; }

/* ==========================================
   13. Footer
   ========================================== */
.as-footer {
    background: #1a1d24;
    color: #b8bcc5;
    padding: 56px 0 0;
    margin-top: 64px;
    font-size: 14px;
}
.as-footer a { color: #b8bcc5; transition: color .2s; }
.as-footer a:hover { color: #fff; }
.as-footer h4 { color: #fff; font-size: 15px; margin: 0 0 18px; font-weight: 600; }

.as-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2a2e37;
}
/* 页脚响应式规则统一放在本节末尾，避免被后面的基础规则覆盖 */

.as-footer-brand-col .as-footer-logo { margin-bottom: 16px; }
.as-footer-brand-col .as-footer-logo strong { color: #fff; font-size: 20px; font-weight: 700; }
.as-footer-brand-col .as-footer-logo img { max-height: 44px; width: auto; }
.as-footer-desc { line-height: 1.8; color: #8d929d; margin: 0 0 20px; }

.as-footer-social { display: flex; gap: 10px; }
.as-footer-social a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #2e333d;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #b8bcc5;
}
.as-footer-social a:hover { border-color: var(--main); color: #fff; background: rgba(194,24,91,.15); }

.as-footer-col ul { list-style: none; padding: 0; margin: 0; }
.as-footer-col ul li { margin-bottom: 12px; line-height: 1.5; }

.as-footer-contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid #2a2e37; }
.as-footer-contact p { margin: 0 0 8px; font-size: 13px; color: #8d929d; }

.as-footer-notice { padding: 24px 0; border-bottom: 1px solid #2a2e37; }
.as-footer-notice p { margin: 0; font-size: 13px; line-height: 1.8; color: #8d929d; }
.as-footer-notice strong { color: #d0d3da; }

.as-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.as-copyright, .as-footer-icp { margin: 0; font-size: 13px; color: #6b7280; }
.as-footer-icp a { color: #6b7280; }
.as-footer-icp a:hover { color: #b8bcc5; }

/* ------------------------------------------
   页脚响应式（放在本节最后，确保覆盖上面的基础规则）
   ------------------------------------------ */

/* 平板：品牌区独占一行，购物 / 内容 / 帮助与关于 三列并排 */
@media (max-width: 900px) {
    .as-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 20px;
    }
    .as-footer-brand-col { grid-column: 1 / -1; }
}

/* 手机：购物 / 内容 两列并排，帮助与关于（含联系方式）独占一行、内部再分两列 */
@media (max-width: 600px) {
    .as-footer { padding: 36px 0 0; margin-top: 44px; }
    .as-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
        padding-bottom: 28px;
    }
    .as-footer-col:last-child { grid-column: 1 / -1; }
    .as-footer-col:last-child ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }
    .as-footer h4 { margin-bottom: 8px; }

    /* 触控目标放大到 40px 以上 */
    .as-footer-col ul li { margin-bottom: 0; }
    .as-footer-col ul li a { display: block; padding: 9px 0; }

    .as-footer-social a { padding: 9px 18px; }
    .as-footer-contact { margin-top: 16px; padding-top: 14px; }

    .as-footer-notice { padding: 20px 0; }
    .as-footer-bottom { flex-direction: column; text-align: center; }
    .as-footer-social { flex-wrap: wrap; }
}

/* ------------------------------------------
   关注我们（二维码区块）
   位于页脚之上、与 footer 平级，不参与深色页脚配色
   ------------------------------------------ */
.as-follow {
    padding: 48px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}
/* 紧贴页脚：有关注区块时不再叠加页脚的 margin-top */
.as-follow + .as-footer { margin-top: 0; }

.as-follow-heading {
    position: relative;
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
}
.as-follow-heading::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 16px;
    background: var(--main);
    opacity: .5;
}

.as-follow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
    max-width: 720px;
    margin: 28px auto 0;
}

.as-follow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* 标题 + 按钮的包裹层：桌面纵向居中排列，手机端改为左对齐 */
.as-follow-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 白底方框：保证二维码在任意配色下都清晰可扫 */
.as-follow-img {
    width: 150px;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}
.as-follow-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.as-follow-name {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--text-sub);
}

.as-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
.as-follow-btn:hover { filter: brightness(1.1); color: #fff; }
.as-follow-btn:active { transform: translateY(1px); }
.as-follow-btn.is-static { cursor: default; }
.as-follow-btn.is-static:hover { filter: none; }
.as-follow-arrow { font-size: 16px; line-height: 1; opacity: .85; }

/* 关注我们 · 响应式（放在本节最后，避免被上面的基础规则覆盖） */
@media (max-width: 900px) {
    .as-follow-grid { gap: 24px 18px; max-width: 640px; }
    .as-follow-img { width: 140px; }
}

/* 手机：改成横向单列卡片 —— 二维码在左，标题与按钮在右。
   原来两列纵向卡片在窄屏下每张只剩 160px 宽、按钮宽度还参差不齐，看着很散 */
@media (max-width: 600px) {
    .as-follow { padding: 32px 0; margin-top: 32px; }
    .as-follow-heading { font-size: 17px; }
    .as-follow-heading::after { margin-top: 12px; }

    .as-follow-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 420px;
        margin-top: 20px;
    }

    .as-follow-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    }

    /* 卡片已经有白底和边框，里面这张白框就不需要了 */
    .as-follow-img {
        flex: 0 0 96px;
        width: 96px;
        padding: 5px;
        border-radius: 8px;
        box-shadow: none;
    }

    .as-follow-body {
        flex: 1;
        min-width: 0;
        align-items: flex-start;
    }
    .as-follow-name { margin: 0 0 8px; font-size: 14px; color: var(--text); }
    .as-follow-btn {
        margin-top: 0;
        min-height: 34px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* ==========================================
   14. 无障碍：跳转链接
   ========================================== */
.as-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--main);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
}
.as-skip-link:focus { left: 0; color: #fff; }

/* 仅供读屏软件的文本。
   之前主题没有定义这个类，导致 as_stars_html() 里那句
   「推荐指数 4 / 5」被当成普通文字显示出来了，和模板里的
   评分文字重复。 */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--main);
    outline-offset: 2px;
}

/* ==========================================
   15. 面包屑
   ========================================== */
.as-breadcrumb { margin-bottom: 14px; font-size: 13px; color: var(--text-muted); }
.as-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.as-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.as-breadcrumb li + li::before { content: '/'; color: #d5d8dd; }
.as-breadcrumb a { color: var(--text-muted); }
.as-breadcrumb a:hover { color: var(--main); }
.as-breadcrumb li[aria-current] { color: var(--text); }

/* ==========================================
   16. 搜索结果页
   ========================================== */
.as-search-head { margin-bottom: 24px; }
.as-search-head .as-archive-title { margin-bottom: 6px; }
.as-search-count { color: var(--text-muted); font-size: 14px; margin: 0; }
.as-search-again { max-width: 420px; margin: 20px 0 32px; }

/* ==========================================
   17. 404
   ========================================== */
.as-404 { text-align: center; padding-top: 60px; padding-bottom: 60px; }
.as-404-code { font-size: 72px; font-weight: 800; color: var(--main); margin: 0; line-height: 1; }
.as-404 h1 { font-size: 24px; margin: 12px 0 8px; color: var(--text); }
.as-404-desc { color: var(--text-sub); margin: 0 0 20px; }
.as-404-search { max-width: 380px; margin: 0 auto 24px; }
.as-404-search .as-searchform input { border-right: 1px solid #e3e5e8; border-radius: var(--radius-sm); }
.as-404-search .as-searchform button { margin-left: 8px; border-radius: var(--radius-sm); padding: 0 18px; }
.as-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.as-404-actions .as-btn-primary { background: var(--main); color: #fff; }
.as-404-actions .as-btn-primary:hover { background: var(--main-dark); }
.as-btn-ghost-light { border-color: var(--main); color: var(--main); }
.as-btn-ghost-light:hover { background: var(--main-light); }
.as-404-recommend { text-align: left; }

/* ==========================================
   18. 评论
   ========================================== */
.as-comments-title {
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid var(--main);
    font-size: 18px;
    font-weight: 600;
}

.as-comment-list,
.as-comment-list ol { list-style: none; margin: 0; padding: 0; }
.as-comment-list ol.children { padding-left: 28px; margin-top: 16px; border-left: 2px solid var(--border-light); }
.as-comment-list li.comment { margin-bottom: 16px; }
.as-comment-list li.comment:last-child { margin-bottom: 0; }

.as-comment-list .comment-body {
    padding: 16px 18px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}
.as-comment-list .comment-meta { margin-bottom: 8px; font-size: 12px; color: var(--text-muted); }
.as-comment-list .comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.as-comment-list .comment-author .fn { font-style: normal; font-weight: 600; font-size: 14px; color: var(--text); }
.as-comment-list .comment-body p { margin: 0 0 8px; font-size: 15px; line-height: 1.8; }
.as-comment-list .comment-body p:last-child { margin-bottom: 0; }

.as-comment-list .reply { margin-top: 10px; }
.as-comment-list .reply a {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    color: var(--text-sub);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.as-comment-list .reply a:hover { border-color: var(--main); color: var(--main); }

.comment-respond { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border); }
.comment-notes,
.as-comment-notes { margin: 0 0 18px; font-size: 13px; color: var(--text-muted); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-sub); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    background: #fafbfc;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text);
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: #b6bbc2; }
.comment-form input:focus,
.comment-form textarea:focus {
    background: #fff;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, .1);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; color: var(--text-muted); }
.comment-form .comment-form-cookies-consent input { margin-top: 3px; }

.comment-form .submit,
.comment-form input[type="submit"] {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    background: var(--main);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.comment-form input[type="submit"]:hover { background: var(--main-dark); }
.comment-form input[type="submit"]:active { transform: translateY(1px); }
.as-comments-closed { color: var(--text-muted); font-size: 14px; }

/* ==========================================
   19. 侧边栏小工具
   ========================================== */
.as-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 20px;
}
.as-widget-title { font-size: 16px; margin: 0 0 12px; }
.as-widget ul { list-style: none; padding: 0; margin: 0; }
.as-widget ul li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.as-widget ul li:last-child { border-bottom: none; }
.as-widget ul li a:hover { color: var(--main); }

/* ==========================================
   20. 返回顶部
   ========================================== */
.as-back-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--main);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-main);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 500;
}
.as-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.as-back-top:hover { background: var(--main-dark); }

/* ==========================================
   21. 详情页评分
   ========================================== */
.as-rating-num { font-size: 13px; color: var(--text-muted); margin-left: 6px; }
.as-stars { letter-spacing: 2px; }

/* ==========================================
   22. 筛选空状态
   ========================================== */
.as-filter-empty { grid-column: 1 / -1; text-align: center; }

/* 内联 SVG 占位图不拉伸 */
.as-card-img img[src^="data:image/svg+xml"],
.as-pc-thumb img[src^="data:image/svg+xml"] { object-fit: cover; }

@media (max-width: 600px) {
    .as-back-top { right: 14px; bottom: 16px; width: 40px; height: 40px; }
    .as-post { padding: 20px 16px; }
    .as-single-top { padding: 16px; }
    .as-single-desc,
    .as-comments { padding: 18px 16px; }
    .as-hero { padding: 40px 0; }
    .as-hero h1 { font-size: 26px; }
    .as-section { padding: 32px 0; }
    .as-archive-title { font-size: 20px; }
    .as-comment-list ol.children { padding-left: 14px; }
}

/* ==========================================
   23. 产品属性展示（卡片副信息 + 详情页属性区）
   ========================================== */

/* --- 卡片副信息行：品牌 + 推荐指数 --- */
.as-card-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    min-height: 18px;
}
.as-card-brand {
    max-width: 62%;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--border-light);
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.as-card-brand:hover { background: var(--main-light); color: var(--main); }

/* --- 星级 --- */
.as-rating { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; }
.as-stars { color: #ff9500; letter-spacing: 1px; }
.as-stars-off { color: #e3e5e8; letter-spacing: 1px; }
.as-card-sub .as-stars,
.as-card-sub .as-stars-off { font-size: 12px; }

/* --- 详情页：可选属性区 --- */
.as-product-extra { margin-top: 24px; display: grid; gap: 20px; }
.as-extra-block { padding: 24px; background: #fff; border-radius: 12px; }
.as-extra-title {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--main);
    font-size: 18px;
    line-height: 1.2;
}

/* 规格参数表 */
.as-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
}
.as-spec-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.as-spec-row dt { flex: 0 0 92px; color: var(--text-muted); font-size: 14px; }
.as-spec-row dd { flex: 1; min-width: 0; margin: 0; font-size: 14px; word-break: break-word; }
.as-spec-row dd a { color: var(--main); }
.as-spec-row dd a:hover { text-decoration: underline; }
.as-spec-row-plain { visibility: hidden; }

/* 顶部信息区里的规格表：单列、比下方区块更紧凑
   （必须写在 .as-spec-list 之后，否则会被它覆盖回去） */
.as-spec-list-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.as-spec-list-top .as-spec-row { padding: 7px 0; }
.as-spec-list-top .as-spec-row:last-child { border-bottom: none; }
.as-spec-list-top .as-spec-row dt { flex-basis: 84px; }

/* 优缺点 */
.as-pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.as-verdict-head {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.as-verdict-head-pro { background: #e8f5e9; color: #2e7d32; }
.as-verdict-head-con { background: #fdecea; color: #c0392b; }

.as-pros ul, .as-cons ul { list-style: none; margin: 0; padding: 0; }
.as-pros li, .as-cons li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-sub);
}
.as-pros li::before,
.as-cons li::before {
    position: absolute;
    left: 0;
    top: 6px;
    font-weight: 700;
    line-height: 1.7;
}
.as-pros li::before { content: '\2713'; color: #2e7d32; }
.as-cons li::before { content: '\2715'; color: #c0392b; }

/* 推荐理由 */
.as-reason { background: var(--main-light); }
.as-reason .as-extra-title { border-left-color: var(--main-dark); }
.as-reason p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--text); }

/* 成分 */
.as-ingredients { margin: 0; font-size: 14px; line-height: 1.9; color: var(--text-sub); }

/* 品牌标签 */
.as-tag-brand { background: var(--main-light); color: var(--main); font-weight: 600; }
.as-tag-brand:hover { background: var(--main); color: #fff; }

@media (max-width: 640px) {
    .as-spec-list { grid-template-columns: 1fr; gap: 0; }
    .as-pros-cons { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
    .as-extra-block { padding: 18px 16px; }
    .as-extra-title { font-size: 16px; margin-bottom: 12px; }
    .as-spec-row dt { flex-basis: 78px; font-size: 13px; }
    .as-spec-row dd { font-size: 13px; }
    .as-product-extra { margin-top: 16px; gap: 14px; }
}

/* ==========================================
   24. 用户评价滑动轮播
   ========================================== */
.as-slider { position: relative; }

.as-slider-window { overflow: hidden; border-radius: 10px; }

.as-slider-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.as-slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    padding: 22px 24px 22px 56px;
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.as-slide::before {
    content: '\201C';
    position: absolute;
    left: 18px;
    top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
    color: var(--main);
    opacity: .22;
}
.as-slide-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-sub);
}

.as-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.as-slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text-sub);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: .2s;
}
.as-slider-btn:hover { border-color: var(--main); color: var(--main); }

.as-slider-dots { display: flex; align-items: center; gap: 7px; }
.as-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d5d8dd;
    cursor: pointer;
    transition: width .25s, background .25s, border-radius .25s;
}
.as-slider-dot.is-active { width: 18px; border-radius: 4px; background: var(--main); }

/* 只有一条评价时不显示控件 */
.as-slider.is-single .as-slider-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
    .as-slider-track { transition: none; }
}

@media (max-width: 600px) {
    .as-slide { padding: 18px 16px 18px 44px; }
    .as-slide::before { left: 12px; top: 8px; font-size: 34px; }
    .as-slide-text { font-size: 14px; line-height: 1.8; }
    .as-slider-nav { gap: 10px; margin-top: 12px; }
}

/* ==========================================
   26. 移动端阅读体验
   统一放在文件末尾，确保覆盖前面所有基础规则
   ========================================== */
@media (max-width: 600px) {

    /* 面包屑：隐藏「当前页」这一项。
       文章标题 / 产品名通常很长，挂在面包屑末尾会把整行挤成两行，
       而且它紧挨着正文大标题，视觉上非常吵。 */
    .as-breadcrumb { margin-bottom: 12px; font-size: 12px; }
    .as-breadcrumb li[aria-current] { display: none; }

    /* ---------- 文章详情页 ---------- */
    .as-post { padding: 22px 18px 20px; border-radius: 12px; }
    .as-post-header { margin-bottom: 20px; }
    .as-post-heading { font-size: 22px; line-height: 1.45; }
    .as-post-meta { gap: 8px; font-size: 12px; }
    .as-post-content { font-size: 16px; line-height: 1.85; }
    .as-post-content h2 { margin: 1.7em 0 .6em; font-size: 18px; }
    .as-post-content h3 { font-size: 16px; }
    .as-post-content blockquote { margin: 1.4em 0; padding: 14px 16px; }

    .as-comments { padding: 20px 18px; border-radius: 12px; }
    .as-comment-list ol.children { padding-left: 14px; }
    /* 输入框保持 16px：小于 16px 时 iOS 会在聚焦瞬间把整页放大 */
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea { font-size: 16px; }

    /* ---------- 产品详情页 ---------- */
    .as-single-top { padding: 18px 16px; border-radius: 12px; }
    .as-single-info h1 { font-size: 21px; line-height: 1.4; }
    .as-single-desc { padding: 20px 18px; border-radius: 12px; }
    .as-single-desc > h2 { font-size: 18px; }
    .as-extra-block { padding: 20px 18px; border-radius: 12px; }

    /* ---------- 归档 / 博客列表 ---------- */
    .as-archive-title { font-size: 21px; }
    .as-blog-header { padding: 12px 0 24px; }
    .as-blog-header .as-archive-title { font-size: 23px; }
}
/* ==========================================================================
 * 优惠券挂件（满减活动）
 * --------------------------------------------------------------------------
 * 只在「有生效且门槛已满足的券」时才输出，没有券时前台完全不显示。
 * 放在文件最末尾：本项目 CSS 媒体查询不提升权重，只按源码顺序生效，
 * 所以新增组件的响应式规则必须跟在基础规则后面。
 * ======================================================================== */

.as-single-promos { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }

.as-promo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    background: linear-gradient(90deg, #fdf2f6 0%, #fbe6ec 100%);
    border: 1px solid rgba(194, 24, 91, 0.28);
    border-left: 5px solid var(--main);
    border-radius: 6px;
    padding: 9px 14px;
}

.as-promo-badge {
    flex-shrink: 0;
    background: var(--main);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 6px;
}

.as-promo-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--main);
    letter-spacing: .3px;
}

.as-promo-off {
    font-size: 12px;
    color: #8a5566;
}

.as-promo-cd {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--main);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 9px;
    white-space: nowrap;
}

.as-card-promo {
    display: inline-block;
    margin: 6px 0 2px;
    background: #fdf2f6;
    border: 1px solid rgba(194, 24, 91, 0.22);
    color: var(--main);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .as-promo { padding: 8px 12px; gap: 6px 8px; }
    .as-promo-label { font-size: 15px; }
    .as-promo-off { font-size: 11px; }
    .as-promo-cd { font-size: 11px; padding: 2px 7px; }
    .as-single-promos { gap: 6px; margin-bottom: 14px; }
    .as-card-promo { font-size: 10px; padding: 2px 8px; }
}

/* ==========================================================================
 * 文章内嵌产品卡（[product_card] 短代码）的「去购买」按钮
 * --------------------------------------------------------------------------
 * 坑：.as-post-content a（优先级 0,1,1）高于 .as-pc-btn（0,1,0），
 * 会把按钮文字染成和背景一样的品牌红 → 红底红字，看起来像没有文字。
 * 这里用更高优先级的后代选择器把颜色纠正回来。
 * ======================================================================== */

.as-post-content .as-pc .as-pc-btn,
.as-single-desc .as-pc .as-pc-btn,
.as-pc a.as-pc-btn {
    color: #fff;
    text-decoration: none;
}

.as-post-content .as-pc .as-pc-btn:hover,
.as-single-desc .as-pc .as-pc-btn:hover,
.as-pc a.as-pc-btn:hover {
    color: #fff;
    text-decoration: none;
}
