/* ===========================================================
   Starlight theme for dujiaoka
   A clean, modern multi-section storefront inspired by
   account-store layouts. Bootstrap 5 compatible.
   =========================================================== */

:root {
    --st-bg: #f5f7fb;
    --st-surface: #ffffff;
    --st-ink: #1d2433;
    --st-ink-soft: #5b6473;
    --st-muted: #8b94a3;
    --st-line: #eaeef5;
    --st-primary: #2f6bff;
    --st-primary-600: #1f55e0;
    --st-primary-050: #eaf1ff;
    --st-accent: #ff7a45;
    --st-success: #16b364;
    --st-warning: #f5a623;
    --st-radius: 16px;
    --st-radius-sm: 12px;
    --st-shadow: 0 10px 30px rgba(31, 45, 80, .08);
    --st-shadow-sm: 0 4px 14px rgba(31, 45, 80, .06);
}

* { box-sizing: border-box; }

body {
    background: var(--st-bg);
    color: var(--st-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
.st-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header / nav ---------- */
.st-header {
    background: var(--st-surface);
    border-bottom: 1px solid var(--st-line);
    position: sticky; top: 0; z-index: 1020;
}
.st-header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.st-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--st-ink); }
.st-logo img { height: 36px; width: auto; }
.st-nav { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.st-nav a {
    color: var(--st-ink-soft); font-size: 14px; font-weight: 500;
    padding: 8px 12px; border-radius: 10px; transition: .15s; white-space: nowrap;
}
.st-nav a:hover { color: var(--st-primary); background: var(--st-primary-050); }
.st-nav a.active { color: var(--st-primary); background: var(--st-primary-050); }
.st-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.st-nav .st-badge-hot {
    position: absolute;
    top: -3px;
    right: -10px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff7a45 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    border-radius: 999px;
    padding: 3px 6px;
    margin-left: 0;
    box-shadow: 0 5px 14px rgba(255, 59, 48, .35);
    transform-origin: center bottom;
    animation: stHotFloat 1.35s ease-in-out infinite;
    pointer-events: none;
}

.st-nav .st-badge-hot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 59, 48, .35);
    animation: stHotPulse 1.35s ease-in-out infinite;
}

@keyframes stHotFloat {
    0%, 100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }
    50% {
        transform: translateY(-5px) rotate(5deg) scale(1.06);
    }
}

@keyframes stHotPulse {
    0%, 100% {
        opacity: .7;
        transform: scale(1);
    }
    50% {
        opacity: .15;
        transform: scale(1.45);
    }
}
.st-header-actions { display: flex; align-items: center; gap: 8px; }
.st-search { display: flex; align-items: center; background: var(--st-bg); border-radius: 12px; padding: 4px 6px 4px 12px; }
.st-search input { border: 0; background: transparent; outline: none; font-size: 14px; width: 150px; }
.st-search button { border: 0; background: var(--st-primary); color: #fff; border-radius: 9px; width: 34px; height: 30px; cursor: pointer; }

.st-mobile-toggle { display: none; border: 0; background: transparent; font-size: 24px; color: var(--st-ink); cursor: pointer; }

/* ---------- Hero ---------- */
.st-hero { padding: 28px 0 8px; }
.st-hero-banner {
    border-radius: var(--st-radius);
    background: linear-gradient(120deg, #2f6bff 0%, #5b8cff 55%, #8a64ff 100%);
    color: #fff; padding: 38px 34px; box-shadow: var(--st-shadow);
    position: relative; overflow: hidden;
}
.st-hero-banner::after {
    content: ""; position: absolute; right: -60px; top: -60px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.st-hero-banner h1 { font-size: 50px; font-weight: 800; margin: 0 0 10px; }
.st-hero-banner p { font-size: 15px; opacity: .92; margin: 0; max-width: 620px; }

/* ---------- Trust badges ---------- */
.st-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.st-trust-item {
    background: var(--st-surface); border-radius: var(--st-radius-sm);
    padding: 16px 18px; box-shadow: var(--st-shadow-sm);
    display: flex; align-items: center; gap: 12px;
}
.st-trust-item .ic {
    width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--st-primary-050); color: var(--st-primary); font-size: 20px;
}
.st-trust-item strong { display: block; font-size: 14px; }
.st-trust-item span { font-size: 12px; color: var(--st-muted); }

/* ---------- Section heading ---------- */
.st-section { padding: 30px 0 6px; }
.st-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.st-section-head .ttl { font-size: 30px; font-weight: 800; margin: 0; }
.st-section-head .sub { color: var(--st-muted); font-size: 13px; margin-left: 12px; }
.st-section-head .more { color: var(--st-primary); font-size: 13px; font-weight: 600; }

/* ---------- Category pills ---------- */
.st-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.st-pills a {
    background: var(--st-surface); color: var(--st-ink-soft); border: 1px solid var(--st-line);
    border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 600; transition: .15s;
}
.st-pills a:hover, .st-pills a.active { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }

/* ---------- Product grid ---------- */
.st-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.st-card {
    background: var(--st-surface); border-radius: var(--st-radius-sm);
    overflow: hidden; box-shadow: var(--st-shadow-sm); transition: .18s;
    display: flex; flex-direction: column; position: relative;
}
.st-card:hover { transform: translateY(-4px); box-shadow: var(--st-shadow); }
.st-card-media { position: relative; aspect-ratio: 4 / 3; background: #f0f3f9; overflow: hidden; }
.st-card-media img { width: 100%; height: 100%; object-fit: cover; }
.st-tag {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 11px; font-weight: 700; color: #fff; border-radius: 8px; padding: 3px 8px;
}
.st-tag.auto { background: var(--st-success); }
.st-tag.manual { background: var(--st-warning); }
.st-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-card-title { font-size: 14px; font-weight: 600; color: var(--st-ink); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.st-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.st-price { color: var(--st-accent); font-weight: 800; font-size: 18px; }
.st-price small { font-size: 12px; font-weight: 600; }
.st-stock { font-size: 12px; color: var(--st-muted); }
.st-buy {
    display: block; text-align: center; background: var(--st-primary); color: #fff;
    border-radius: 10px; padding: 9px 0; font-size: 14px; font-weight: 600; transition: .15s;
}
.st-buy:hover { background: var(--st-primary-600); color: #fff; }
.st-card .wholesale { font-size: 11px; color: var(--st-success); font-weight: 600; }

/* ---------- Notice ---------- */
.st-notice {
    background: var(--st-primary-050); border: 1px solid #d9e6ff; color: var(--st-primary-600);
    border-radius: var(--st-radius-sm); padding: 12px 16px; margin-top: 18px; font-size: 14px;
}
.st-notice b { font-weight: 700; }

/* ---------- News strip ---------- */
.st-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-news-card {
    background: var(--st-surface); border-radius: var(--st-radius-sm); overflow: hidden;
    box-shadow: var(--st-shadow-sm); transition: .18s; display: flex; flex-direction: column;
}
.st-news-card:hover { transform: translateY(-3px); box-shadow: var(--st-shadow); }
.st-news-media { aspect-ratio: 16 / 9; background: #eef2f9; overflow: hidden; }
.st-news-media img { width: 100%; height: 100%; object-fit: cover; }
.st-news-body { padding: 14px 16px 16px; }
.st-news-body h6 { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--st-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px; }
.st-news-body p { font-size: 13px; color: var(--st-ink-soft); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-news-meta { font-size: 12px; color: var(--st-muted); display: flex; gap: 12px; }

/* ---------- Testimonials ---------- */
.st-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-testi {
    background: var(--st-surface); border-radius: var(--st-radius-sm); padding: 20px;
    box-shadow: var(--st-shadow-sm);
}
.st-testi .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-testi .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--st-primary-050);
    color: var(--st-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.st-testi .who b { font-size: 14px; }
.st-testi .who span { font-size: 12px; color: var(--st-muted); }
.st-testi p { font-size: 13px; color: var(--st-ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Footer ---------- */
.st-footer { background: #0f1729; color: #c4cbd8; margin-top: 50px; padding: 44px 0 24px; }
.st-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.st-footer h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.st-footer a { color: #c4cbd8; font-size: 13px; display: block; margin-bottom: 9px; transition: .15s; }
.st-footer a:hover { color: #fff; }
.st-footer .brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.st-footer .desc { font-size: 13px; line-height: 1.7; color: #97a1b3; max-width: 320px; }
.st-foot-bottom { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 18px;
    font-size: 12px; color: #7c879b; text-align: center; }

/* ---------- Article detail ---------- */
.st-article { background: var(--st-surface); border-radius: var(--st-radius); box-shadow: var(--st-shadow-sm);
    padding: 36px 40px; margin: 28px auto; max-width: 880px; }
.st-article h1 { font-size: 28px; font-weight: 800; line-height: 1.35; margin: 0 0 14px; }
.st-article .meta { color: var(--st-muted); font-size: 13px; margin-bottom: 24px;
    border-bottom: 1px solid var(--st-line); padding-bottom: 18px; }
.st-article .content { font-size: 15px; line-height: 1.9; color: #2c3442; }
.st-article .content img { max-width: 100%; border-radius: 10px; }
.st-article .content h2 { font-size: 21px; margin: 28px 0 12px; }
.st-article .content h3 { font-size: 18px; margin: 22px 0 10px; }
.st-breadcrumb { font-size: 13px; color: var(--st-muted); margin: 22px 0 0; }
.st-breadcrumb a { color: var(--st-primary); }

/* news list page */
.st-page-head { padding: 30px 0 6px; }
.st-page-head h1 { font-size: 26px; font-weight: 800; margin: 0; }
.st-page-head p { color: var(--st-muted); margin: 6px 0 0; font-size: 14px; }

/* pagination tweaks */
.st-pager { display: flex; justify-content: center; margin: 30px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .st-grid { grid-template-columns: repeat(3, 1fr); }
    .st-trust { grid-template-columns: repeat(2, 1fr); }
    .st-footer-cols { grid-template-columns: 1fr 1fr; }
    .st-news-grid, .st-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .st-nav { display: none; }
    .st-mobile-toggle { display: block; }
    .st-nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch; padding: 12px; gap: 4px;
        border-bottom: 1px solid var(--st-line); box-shadow: var(--st-shadow); }
}
@media (max-width: 640px) {
    .st-grid { grid-template-columns: repeat(2, 1fr); }
    .st-news-grid, .st-testi-grid { grid-template-columns: 1fr; }
    .st-trust { grid-template-columns: 1fr 1fr; }
    .st-footer-cols { grid-template-columns: 1fr; }
    .st-hero-banner h1 { font-size: 23px; }
    .st-search input { width: 110px; }
    .st-article { padding: 24px 18px; }
}

/* 商品区域背景图：今天需要一点什么 */
.st-products-bg-section {
    padding-top: 14px;
    padding-bottom: 28px;
}

/* 商品区域背景图：固定一排高度 */
.st-products-bg-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 30px 28px 32px;
    min-height: 500px;
    background-image:
        linear-gradient(
            180deg,
            rgba(7, 12, 24, .62) 0%,
            rgba(7, 12, 24, .48) 45%,
            rgba(7, 12, 24, .68) 100%
        ),
        url('/assets/starlight/images/app-collection-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

/* 保证内容浮在背景图上面 */
.st-products-bg-panel .st-section-head,
.st-products-bg-panel .st-pills,
.st-products-bg-panel [data-st-panel] {
    position: relative;
    z-index: 2;
}

/* 标题文字变白，适配深色背景 */
.st-products-bg-panel .st-section-head .ttl {
    color: #ffffff;
}

.st-products-bg-panel .st-section-head .sub {
    color: rgba(255, 255, 255, .76);
}

/* 分类按钮半透明 */
.st-products-bg-panel .st-pills a {
    background: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
}

.st-products-bg-panel .st-pills a.active {
    background: #3167ff;
    color: #ffffff;
    border-color: #3167ff;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .st-products-bg-panel {
        border-radius: 22px;
        padding: 24px 16px 24px;
        background-position: center top;
    }
}

/* 商品推荐区域：一排 5 个，不自动撑高 */
.st-products-bg-panel .st-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

/* 被分页隐藏的商品 */
.st-product-page-hidden {
    display: none !important;
}

/* 翻页按钮区域 */
.st-product-pager {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    position: relative;
    z-index: 5;
}

/* 有多页时显示 */
.st-product-pager.is-show {
    display: flex;
}

.st-product-pager button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #3167ff;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
    transition: all .2s ease;
}

.st-product-pager button:hover {
    background: #3167ff;
    color: #ffffff;
    transform: translateY(-2px);
}

.st-product-pager button:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.st-product-page-info {
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 600;
}

/* 手机端：一页显示 2 个，避免挤压 */
@media (max-width: 768px) {
    .st-products-bg-panel {
        min-height: auto;
        padding: 24px 16px 26px;
    }

    .st-products-bg-panel .st-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* 用户怎么说：横幅背景 */
.st-testimonials-bg-section {
    padding-top: 22px;
    padding-bottom: 34px;
}

.st-testimonials-bg-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 34px 28px 36px;
    min-height: 300px;
    background-image:
        linear-gradient(
            180deg,
            rgba(4, 9, 22, .50) 0%,
            rgba(4, 9, 22, .36) 45%,
            rgba(4, 9, 22, .62) 100%
        ),
        url('/assets/starlight/images/testimonials-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

/* 保证内容显示在背景上层 */
.st-testimonials-bg-panel .st-section-head,
.st-testimonials-bg-panel .st-testi-grid {
    position: relative;
    z-index: 2;
}

/* 标题变白 */
.st-testimonials-bg-panel .st-section-head .ttl {
    color: #ffffff;
}

/* 评价卡片玻璃效果 */
.st-testimonials-bg-panel .st-testi {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .46);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
}

/* 用户头像更亮一点 */
.st-testimonials-bg-panel .st-testi .avatar {
    box-shadow: 0 8px 20px rgba(49, 103, 255, .28);
}

/* 星级颜色 */
.st-testimonials-bg-panel .st-testi .who span {
    color: #ffb703;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .st-testimonials-bg-panel {
        border-radius: 22px;
        padding: 26px 16px 28px;
        min-height: auto;
        background-position: center;
    }
}

/* 首页服务卖点卡片：鼠标悬停上移效果 */
.st-trust-item {
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
    will-change: transform;
}

.st-trust-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
    background: #ffffff;
}

/* 图标也轻微放大 */
.st-trust-item .ic {
    transition: transform .28s ease, box-shadow .28s ease;
}

.st-trust-item:hover .ic {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(49, 103, 255, .22);
}

/* 顶部导航栏改为黑色 */
.st-header {
    background: #05070d !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

/* 导航栏内部高度和布局保持 */
.st-header-inner {
    background: transparent !important;
}

/* Logo 文字颜色 */
.st-logo,
.st-logo span {
    color: #ffffff !important;
}

/* 导航普通文字 */
.st-nav a {
    color: rgba(255, 255, 255, .78) !important;
}

/* 鼠标悬停 */
.st-nav a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .10) !important;
}

/* 当前选中：首页 */
.st-nav a.active {
    color: #ffffff !important;
    background: #3167ff !important;
}

/* 搜索框背景 */
.st-search {
    background: rgba(255, 255, 255, .10) !important;
    border: 1px solid rgba(255, 255, 255, .10);
}

/* 搜索框文字 */
.st-search input {
    color: #ffffff !important;
}

/* 搜索框 placeholder */
.st-search input::placeholder {
    color: rgba(255, 255, 255, .58) !important;
}

/* 搜索按钮 */
.st-search button {
    background: #3167ff !important;
    color: #ffffff !important;
}

/* 手机端菜单按钮 */
.st-mobile-toggle {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .10) !important;
}

.st-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* 修复删除 Banner 后服务卡片变窄、文字竖排问题 */
.st-hero {
    padding: 26px 0 22px;
}

.st-hero .st-container {
    max-width: 1210px;
    width: 100%;
    margin: 0 auto;
}

.st-trust {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px;
    align-items: stretch;
}

.st-trust-item {
    width: auto !important;
    min-width: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    padding: 18px 20px;
    white-space: normal;
}

.st-trust-item .ic {
    flex: 0 0 40px;
}

.st-trust-item > div:last-child {
    min-width: 0;
    flex: 1;
}

.st-trust-item strong {
    display: block;
    white-space: nowrap;
    word-break: keep-all;
}

.st-trust-item span {
    display: block;
    white-space: nowrap;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .st-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .st-trust-item {
        padding: 14px 12px;
        gap: 10px;
    }

    .st-trust-item strong {
        font-size: 14px;
    }

    .st-trust-item span {
        font-size: 12px;
        white-space: normal;
    }
}

/* 公告栏下方红色渐变线 */
.st-top-notice-bar {
    position: relative;
    border-bottom: none !important;
}

.st-top-notice-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #ff1f1f,
        #ff7a45,
        #ff1f1f,
        transparent
    );
    box-shadow: 0 0 14px rgba(255, 31, 31, .55);
    pointer-events: none;
}

/* 商品分页滑动动画 */
.st-product-page-grid {
    transition: transform .32s ease, opacity .32s ease;
    will-change: transform, opacity;
}

/* 下一页：当前商品向左滑出 */
.st-product-page-grid.st-slide-out-left {
    opacity: 0;
    transform: translateX(-36px);
}

/* 上一页：当前商品向右滑出 */
.st-product-page-grid.st-slide-out-right {
    opacity: 0;
    transform: translateX(36px);
}

/* 下一页：新商品从右边进入 */
.st-product-page-grid.st-slide-in-right {
    opacity: 0;
    transform: translateX(36px);
    transition: none;
}

/* 上一页：新商品从左边进入 */
.st-product-page-grid.st-slide-in-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: none;
}

/* 滑入完成状态 */
.st-product-page-grid.st-slide-active {
    opacity: 1;
    transform: translateX(0);
    transition: transform .36s cubic-bezier(.22, .61, .36, 1), opacity .36s ease;
}

/* 动画期间防止连续点击 */
.st-product-pager button.is-lock {
    pointer-events: none;
    opacity: .45;
}

/* 顶部公告栏 */
.st-top-notice-bar {
    background: #07090f;
    border-bottom: 1px solid rgba(255, 31, 31, .35);
    padding: 10px 0;
}

.st-top-notice-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 500;
}

.st-top-notice-inner .notice-dot {
    color: #ff3b30;
    animation: stNoticePulse 1.4s ease-in-out infinite;
}

@keyframes stNoticePulse {
    0%, 100% {
        transform: scale(1);
        opacity: .85;
    }
    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .st-top-notice-inner {
        font-size: 12px;
        padding: 0 12px;
        text-align: center;
        line-height: 1.5;
    }
}

/* 购买流程模块 */
.st-buy-steps-section {
    padding-top: 10px;
    padding-bottom: 20px;
}

.st-buy-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.st-buy-step {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 31, 31, .22);
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.st-buy-step:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 31, 31, .62);
    box-shadow: 0 18px 42px rgba(255, 31, 31, .14);
}

.st-buy-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff1f1f, #ff7a45);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.st-buy-step strong {
    display: block;
    color: #111827;
    font-size: 17px;
    margin-bottom: 8px;
}

.st-buy-step span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .st-buy-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .st-buy-step {
        padding: 18px 14px;
    }
}

/* 商品卡片信任标签 */
.st-goods-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.st-goods-tags span {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(49, 103, 255, .08);
    color: #3167ff;
    font-size: 11px;
    font-weight: 600;
}

/* FAQ 常见问题 */
.st-faq-section {
    padding-bottom: 44px;
}

.st-faq-list {
    display: grid;
    gap: 12px;
}

.st-faq-item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.st-faq-item button {
    width: 100%;
    border: 0;
    background: #ffffff;
    color: #111827;
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.st-faq-item button::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #3167ff;
    font-size: 22px;
    font-weight: 700;
}

.st-faq-item.active button::after {
    content: "-";
}

.st-faq-item .answer {
    display: none;
    padding: 0 20px 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
}

.st-faq-item.active .answer {
    display: block;
}

/* ===== Product page: hero banner + sticky right buy-box (Theme B+C) ===== */
.st-prod-hero { border-radius: var(--st-radius); background: linear-gradient(120deg, #2f6bff 0%, #5b8cff 55%, #8a64ff 100%); color: #fff; padding: 26px 28px; display: flex; align-items: center; gap: 20px; box-shadow: var(--st-shadow); }
.st-prod-hero .ph-icon { width: 96px; height: 96px; flex: 0 0 96px; background: rgba(255,255,255,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.st-prod-hero .ph-icon img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.st-prod-hero .ph-main { flex: 1; min-width: 0; }
.st-prod-hero .ph-title { font-size: 22px; font-weight: 800; margin: 8px 0 4px; }
.st-prod-hero .ph-meta { font-size: 13px; opacity: .92; }
.st-prod-hero .ph-badge { display: inline-block; background: var(--st-success); color: #fff; font-size: 11px; font-weight: 700; border-radius: 7px; padding: 3px 9px; }
.st-prod-hero .ph-badge.manual { background: var(--st-warning); }
.st-prod-hero .ph-limit { display: inline-block; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 7px; padding: 3px 9px; margin-left: 6px; }
.st-prod-hero .ph-price { text-align: right; flex: 0 0 auto; }
.st-prod-hero .ph-price .lbl { font-size: 12px; opacity: .85; }
.st-prod-hero .ph-price .amt { font-size: 30px; font-weight: 800; }
.st-prod-hero .ph-price .amt small { font-size: 16px; }
@media (max-width: 640px) { .st-prod-hero { flex-direction: column; align-items: flex-start; } .st-prod-hero .ph-price { text-align: left; } }

.st-prod-layout { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; margin-top: 18px; }
@media (max-width: 860px) { .st-prod-layout { grid-template-columns: 1fr; } }
.st-buybox { background: var(--st-surface); border-radius: var(--st-radius); box-shadow: var(--st-shadow-sm); padding: 20px; position: sticky; top: 84px; }
@media (max-width: 860px) { .st-buybox { position: static; order: -1; } }
.st-buybox .bb-price { color: var(--st-accent); font-weight: 800; font-size: 24px; margin: 0 0 14px; }
.st-buybox .bb-price small { font-size: 14px; }
.st-buybox .st-wholesale-list { margin-bottom: 14px; }
.st-trustline { display: flex; gap: 14px; justify-content: center; color: var(--st-muted); font-size: 12px; margin-top: 12px; flex-wrap: wrap; }
/* ===== Order button: filled card style with hover-darken ===== */
.st-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    background: var(--st-primary);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(47, 107, 255, .28);
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.st-order-btn:hover { background: var(--st-primary-600); box-shadow: 0 8px 22px rgba(47, 107, 255, .36); color: #fff; }
.st-order-btn:active { transform: translateY(1px); }

/* ===== Starlight buy page: contact + payment cards ===== */
.st-buybox form { margin: 0; }
.st-field { margin: 0 0 14px; }
.st-field > label {
    display: block;
    margin: 0 0 8px;
    color: var(--st-ink);
    font-size: 14px;
    font-weight: 700;
}
.st-input {
    display: block;
    width: 100%;
    height: 40px;
    border: 1px solid #d8dbe3;
    border-radius: 8px;
    background: #fff;
    color: var(--st-ink);
    font-size: 14px;
    line-height: 1.4;
    padding: 0 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.st-input:focus {
    border-color: #ff0036;
    box-shadow: 0 0 0 3px rgba(255, 0, 54, .08);
}
.st-input::placeholder { color: #9aa1ad; }
.st-captcha { display: flex; align-items: center; gap: 10px; }
.st-captcha .st-input { flex: 1; }
.st-captcha img { height: 40px; border-radius: 8px; cursor: pointer; }
.st-checkout-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px 20px;
    margin: 0 0 14px;
    box-shadow: none;
}
.st-checkout-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    padding-left: 8px;
    color: #020617;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}
.st-checkout-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: #ff0036;
}
.st-checkout-title em {
    margin-left: 4px;
    color: #ff0036;
    font-style: normal;
}
.st-contact-card { max-width: 380px; }
.st-contact-input { height: 40px; border-radius: 7px; }
.st-payways-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.st-pay-item {
    min-height: 58px;
    border: 1px solid #d8dbe3;
    border-radius: 7px;
    background: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.st-pay-item:hover,
.st-pay-item.active {
    border-color: #ff0036;
    background: #fff7f8;
}
.st-pay-item input { position: absolute; opacity: 0; pointer-events: none; }
.st-pay-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 360px) {
    .st-payways-card { gap: 10px; }
    .st-pay-item { min-height: 52px; padding: 8px 10px; }
    .st-pay-name { font-size: 13px; }
}


/* ===== Product hero service promises ===== */
.st-prod-hero .ph-service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
    max-width: 760px;
}
.st-prod-hero .ph-service-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #fff;
}
.st-prod-hero .ph-service-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .96;
}
.st-prod-hero .ph-service-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.st-prod-hero .ph-service-text {
    display: block;
    min-width: 0;
}
.st-prod-hero .ph-service-text strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}
.st-prod-hero .ph-service-text small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 720px) {
    .st-prod-hero .ph-service-list {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }
}

.st-pay-brand-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px 26px;
    margin-top: -45px;
    position: relative;
    z-index: 2;
}

.st-pay-brand-bottom img {
    max-width: 560px;
    width: auto;
    height: auto;
    display: block;
}

.st-desc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 12px;
}

.st-desc-title-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff0036;
    flex-shrink: 0;
}

.st-desc-title-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* === Starlight 商品详情页：下单后确认订单弹窗 === */
.st-order-confirm-modal .modal-dialog {
    max-width: 1120px;
}

.st-order-confirm-modal .modal-content {
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.st-order-confirm-content {
    position: relative;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .98)) !important;
    box-shadow: 0 28px 80px rgba(37, 99, 235, .22);
}

.st-order-confirm-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, .16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(124, 58, 237, .16), transparent 30%);
}

.st-order-confirm-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.st-order-confirm-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 42px 28px;
    text-align: left;
}

.st-order-confirm-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #2f73ff, #7148ff);
    box-shadow: 0 10px 24px rgba(47, 115, 255, .32);
}

.st-order-confirm-head h3 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .02em;
    color: #315cf6;
}

.st-order-confirm-head p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
}

.st-order-confirm-head p span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    margin-right: 6px;
    border-radius: 999px;
    color: #059669;
    background: rgba(16, 185, 129, .1);
    font-size: 12px;
    font-weight: 700;
}

.st-order-confirm-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, .9fr);
    gap: 24px;
}

.st-order-confirm-card {
    border: 1px solid rgba(203, 213, 225, .82);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.st-order-confirm-info,
.st-order-confirm-summary {
    padding: 28px 30px;
}

.st-order-confirm-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.st-order-confirm-section-title::before {
    content: "";
    width: 5px;
    height: 24px;
    border-radius: 99px;
    background: linear-gradient(180deg, #2f73ff, #7148ff);
    box-shadow: 0 6px 14px rgba(47, 115, 255, .25);
}

.st-confirm-row {
    display: grid;
    grid-template-columns: 46px 120px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 62px;
    border-bottom: 1px dashed #dbe3ef;
}

.st-confirm-row:last-of-type {
    border-bottom: 0;
}

.st-confirm-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2f73ff;
    background: linear-gradient(135deg, rgba(47, 115, 255, .11), rgba(113, 72, 255, .10));
    font-size: 13px;
    font-weight: 900;
}

.st-confirm-label {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.st-confirm-value {
    min-width: 0;
    text-align: right;
    color: #1f2937;
    font-size: 16px;
    word-break: break-all;
}

.st-confirm-order-sn strong {
    color: #2f73ff;
    font-size: 17px;
    letter-spacing: .02em;
}

.st-copy-order-sn {
    margin-left: 8px;
    border: 0;
    border-radius: 9px;
    padding: 4px 8px;
    color: #64748b;
    background: #eef4ff;
    font-size: 12px;
    cursor: pointer;
}

.st-confirm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, .28);
    background: rgba(16, 185, 129, .12);
    font-weight: 800;
    white-space: nowrap;
}

.st-confirm-tip {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(47, 115, 255, .24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 115, 255, .07), rgba(255, 255, 255, .95));
}

.st-confirm-tip-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2f73ff;
    font-weight: 900;
    flex: 0 0 auto;
}

.st-confirm-tip strong {
    display: block;
    margin-bottom: 4px;
    color: #2f73ff;
}

.st-confirm-tip p {
    margin: 0;
    color: #4f7df3;
    font-size: 14px;
}

.st-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: #1f2937;
    font-size: 16px;
}

.st-summary-line strong {
    color: #111827;
    font-weight: 800;
}

.st-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0 16px;
    padding: 20px 0;
    border-top: 1px dashed #dbe3ef;
    border-bottom: 1px dashed #dbe3ef;
}

.st-summary-total span {
    font-size: 18px;
    color: #111827;
    font-weight: 900;
}

.st-summary-total strong {
    color: #4f46e5;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.st-summary-total em,
.st-summary-line em {
    font-style: normal;
}

.st-summary-success-tip {
    margin: 18px 0 20px;
    padding: 11px 14px;
    border: 1px solid rgba(16, 185, 129, .28);
    border-radius: 10px;
    color: #059669;
    background: rgba(16, 185, 129, .08);
    font-size: 14px;
    text-align: center;
}

.st-confirm-pay-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #2563ff, #6d43ff);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .28);
    font-size: 22px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease;
}

.st-confirm-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(79, 70, 229, .34);
}

.st-confirm-pay-btn.disabled {
    opacity: .6;
    pointer-events: none;
}

.st-summary-safe {
    margin-top: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 991px) {
    .st-order-confirm-modal .modal-dialog {
        max-width: calc(100% - 24px);
        margin: 12px auto;
    }

    .st-order-confirm-content {
        padding: 20px 14px;
    }

    .st-order-confirm-head {
        justify-content: flex-start;
        padding: 8px 34px 22px 2px;
    }

    .st-order-confirm-head h3 {
        font-size: 28px;
    }

    .st-order-confirm-grid {
        grid-template-columns: 1fr;
    }

    .st-order-confirm-info,
    .st-order-confirm-summary {
        padding: 22px 18px;
    }

    .st-confirm-row {
        grid-template-columns: 38px 88px minmax(0, 1fr);
        gap: 10px;
    }

    .st-confirm-label,
    .st-confirm-value {
        font-size: 14px;
    }
}

/* ==========================================================
   Starlight 手机端顶部导航优化
   目标：取消折叠菜单，手机端直接展示：首页 / 资讯 / 订单查询；搜索框默认短按钮，点击后展开。
   使用方式：把本段追加到 public/assets/starlight/css/starlight.css 最底部。
   ========================================================== */

/* 防止旧版手机折叠菜单按钮继续占位 */
.st-mobile-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .st-header {
        overflow: visible !important;
    }

    .st-header-inner {
        position: relative;
        height: 56px !important;
        min-height: 56px;
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .st-logo {
        flex: 0 0 auto;
        gap: 6px !important;
        font-size: 15px !important;
        white-space: nowrap;
    }

    .st-logo img {
        height: 30px !important;
        max-width: 34px;
        object-fit: contain;
    }

    /* 手机端取消折叠：导航一直显示在顶部 */
    .st-nav,
    .st-nav.open {
        position: static !important;
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 3px !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .st-nav a {
        flex: 0 0 auto;
        padding: 6px 7px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        color: rgba(255, 255, 255, .82) !important;
        white-space: nowrap !important;
    }

    .st-nav a.active {
        color: #ffffff !important;
        background: #3167ff !important;
    }

    .st-nav .st-badge-hot {
        top: -9px !important;
        right: -9px !important;
        padding: 2px 5px !important;
        font-size: 9px !important;
        transform: scale(.88);
    }

    .st-header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        position: relative;
        z-index: 20;
    }

    /* 初始状态：搜索框为短框，只露出搜索按钮 */
    .st-search {
        position: relative;
        width: 38px !important;
        height: 34px;
        padding: 2px !important;
        border-radius: 12px !important;
        overflow: hidden;
        justify-content: flex-end;
        transition: width .22s ease, background .22s ease, box-shadow .22s ease;
    }

    .st-search input {
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        opacity: 0;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none;
        transition: width .22s ease, max-width .22s ease, opacity .16s ease, margin .22s ease;
    }

    .st-search button {
        width: 30px !important;
        height: 28px !important;
        border-radius: 9px !important;
        flex: 0 0 30px;
    }

    /* 点击 / 聚焦后展开搜索框 */
    .st-search.is-open,
    .st-search:focus-within {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 176px !important;
        padding: 2px 4px 2px 10px !important;
        background: rgba(255, 255, 255, .14) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
        overflow: visible;
    }

    .st-search.is-open input,
    .st-search:focus-within input {
        width: 126px !important;
        max-width: 126px !important;
        opacity: 1;
        margin-right: 6px !important;
        pointer-events: auto;
    }
}

@media (max-width: 360px) {
    .st-header-inner {
        gap: 5px !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .st-logo span {
        font-size: 14px !important;
    }

    .st-logo img {
        height: 28px !important;
        max-width: 30px;
    }

    .st-nav a {
        padding: 6px 5px !important;
        font-size: 11px !important;
    }

    .st-search.is-open,
    .st-search:focus-within {
        width: 156px !important;
    }

    .st-search.is-open input,
    .st-search:focus-within input {
        width: 106px !important;
        max-width: 106px !important;
    }
}

/* ==========================================================
   Starlight 手机端分类分页滑动
   目标：手机端“今天需要一点什么？”分类一次只显示 3 个，右滑翻页，并在下方显示分页圆点。
   使用方式：把本段追加到 public/assets/starlight/css/starlight.css 最底部。
   ========================================================== */

.st-category-wrap {
    position: relative;
    z-index: 2;
}

/* 桌面端保持原来的多分类直接展示效果 */
.st-category-swiper .st-category-page {
    display: contents;
}

.st-category-dots {
    display: none;
}

@media (max-width: 768px) {
    .st-products-bg-panel .st-category-wrap {
        margin-bottom: 14px;
    }

    .st-products-bg-panel .st-category-swiper {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0 !important;
        margin-bottom: 10px !important;
    }

    .st-products-bg-panel .st-category-swiper::-webkit-scrollbar {
        display: none;
    }

    .st-products-bg-panel .st-category-swiper .st-category-page {
        flex: 0 0 100%;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .st-products-bg-panel .st-category-swiper .st-category-page a {
        min-width: 0;
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 8px 9px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
    }

    .st-category-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 12px;
        margin: 2px 0 14px;
    }

    .st-category-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, .38);
        cursor: pointer;
        transition: width .2s ease, background .2s ease, opacity .2s ease;
    }

    .st-category-dot.active {
        width: 22px;
        background: #ff0036;
    }
}
/* ==========================================================
   Starlight 手机端商品横向滑动轮播
   目标：手机端商品改为一排横向滑动，右侧露出下一件商品预览，并提供“>”翻页按钮。
   使用方式：把本段追加到 public/assets/starlight/css/starlight.css 最底部。
   ========================================================== */

/* 桌面端：保持原来的商品网格，不显示轮播箭头 */
.st-product-carousel-wrap {
    position: relative;
}

.st-product-carousel-item > .st-card {
    height: 100%;
}

.st-product-carousel-next {
    display: none;
}

@media (max-width: 768px) {
    .st-products-bg-panel {
        overflow: hidden;
    }

    .st-product-carousel-wrap {
        position: relative;
        width: 100%;
        margin-top: 2px;
    }

    /* 商品横向轨道：强制一排，不再两列换行 */
    .st-products-bg-panel .st-product-mobile-carousel {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 50px 14px 0;
        margin: 0 -16px 0 0;
    }

    .st-products-bg-panel .st-product-mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    /* 一屏显示 1 张完整商品卡，右侧露出下一张预览 */
    .st-products-bg-panel .st-product-carousel-item {
        flex: 0 0 calc(100% - 62px);
        width: calc(100% - 62px);
        min-width: calc(100% - 62px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .st-product-carousel-wrap.is-single .st-product-carousel-item {
        flex-basis: 100%;
        width: 100%;
        min-width: 100%;
    }

    .st-product-carousel-wrap.is-single .st-product-mobile-carousel {
        padding-right: 0;
        margin-right: 0;
    }

    .st-product-carousel-item > .st-card {
        width: 100%;
        height: 100%;
        transform: none !important;
    }

    /* 右侧渐变提示：告诉用户右边还有商品 */
    .st-product-carousel-wrap.is-scrollable::after {
        content: "";
        position: absolute;
        top: 0;
        right: -16px;
        width: 58px;
        height: calc(100% - 14px);
        pointer-events: none;
        background: linear-gradient(90deg, rgba(8, 13, 26, 0), rgba(8, 13, 26, .34));
        border-radius: 0 14px 14px 0;
        opacity: .9;
        transition: opacity .18s ease;
    }

    .st-product-carousel-wrap.is-end::after {
        opacity: 0;
    }

    /* 右侧 > 翻页按钮 */
    .st-product-carousel-next {
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 6;
        width: 38px;
        height: 58px;
        border: 0;
        border-radius: 999px 0 0 999px;
        background: rgba(255, 255, 255, .94);
        color: #ff0036;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
        backdrop-filter: blur(8px);
        cursor: pointer;
    }

    .st-product-carousel-next span {
        display: block;
        margin-top: -2px;
    }

    .st-product-carousel-next:active {
        transform: translateY(-50%) scale(.96);
    }
}

/* 手机端商品详情页横向溢出修复 */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
table {
    max-width: 100%;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    main,
    .st-section,
    .st-container,
    .st-prod-hero,
    .st-prod-layout,
    .st-panel,
    .st-buybox,
    .st-pay-brand-bottom,
    .st-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .st-container {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .st-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .st-breadcrumb {
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .st-prod-hero {
        display: block !important;
        grid-template-columns: none !important;
        padding: 18px 14px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    .ph-icon {
        margin-bottom: 12px !important;
    }

    .ph-main,
    .ph-title,
    .ph-meta,
    .ph-service-list,
    .ph-service-item {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .ph-title {
        font-size: 22px !important;
        line-height: 1.28 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .ph-service-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .st-prod-layout {
        display: block !important;
        grid-template-columns: none !important;
        gap: 16px !important;
        overflow: hidden !important;
    }

    .st-panel,
    .st-buybox {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
    }

    .st-buybox {
        margin-top: 16px !important;
    }

    .st-rich,
    .st-rich * {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .st-rich img,
    .st-rich video,
    .st-rich iframe,
    .st-rich embed,
    .st-rich object {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .st-rich table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }

    .st-checkout-card,
    .st-field,
    .st-input,
    .st-contact-input,
    .st-captcha,
    .st-order-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .st-payways-card {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .st-pay-brand-bottom {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden !important;
    }

    .st-pay-brand-bottom img {
        width: 100% !important;
        max-width: 560px !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .st-footer {
        overflow: hidden !important;
    }

    .st-custom-kefu-btn {
        right: 16px !important;
        bottom: 18px !important;
    }
}