@charset "utf-8";

/* ============================================================
   极光简约 Aurora · 店铺首页模板样式
   适配：桌面端 + 移动端（响应式）
   说明：系统注入的分类/商品片段自带标准类名（shop-category-item、
   shop-product-item 等），本文件对标准类与模板私有类同时做样式。
   ============================================================ */

/* ---------- 统一保证原生 hidden 属性生效（作者 display 不得覆盖） ---------- */
.aurora-page [hidden],
.aurora-sheet-mask [hidden], .aurora-modal-mask [hidden], .aurora-block-mask [hidden], .aurora-music [hidden],
.aurora-modal-mask[hidden], .aurora-sheet-mask[hidden], .aurora-block-mask[hidden],
.aurora-music[hidden], .aurora-music-fab[hidden], .aurora-music-card[hidden],
.aurora-toast[hidden], .aurora-skeleton[hidden], .aurora-detail-bar[hidden],
.aurora-search-wrap[hidden], .aurora-notice[hidden], #auroraProductList[hidden],
#auroraLoadMoreWrap[hidden], .aurora-name-extra[hidden] { display: none !important; }

/* ---------- 设计变量 ---------- */
:root {
    --aurora-primary: #4f46e5;
    --aurora-primary-soft: #eef0ff;
    --aurora-primary-2: #8b5cf6;
    --aurora-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --aurora-price: #f43f5e;
    --aurora-bg: #f3f4fa;
    --aurora-card: #ffffff;
    --aurora-text: #1f2430;
    --aurora-text-sub: #8b8fa3;
    --aurora-text-faint: #b4b8c7;
    --aurora-line: #ededf4;
    --aurora-radius-lg: 20px;
    --aurora-radius: 16px;
    --aurora-radius-sm: 10px;
    --aurora-shadow: 0 6px 24px rgba(31, 36, 48, .06);
    --aurora-shadow-card: 0 4px 18px rgba(31, 36, 48, .06);
    --aurora-shadow-hover: 0 16px 40px rgba(79, 70, 229, .16);
    --aurora-header-h: 0px;
    --aurora-maxw: 1180px;
    --aurora-ease: cubic-bezier(.25, .8, .3, 1);
}

/* ---------- 基础重置 ---------- */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    /* 底部预留：安全区 + 收起态悬浮按钮（音乐/客服）高度，避免遮挡页脚；展开的音乐卡片为临时浮层可收起 */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
    background: var(--aurora-bg);
    color: var(--aurora-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
}

input {
    font-family: inherit;
    outline: none;
    border: 0;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

h1, h2, p {
    margin: 0;
}

/* 隐藏原生 search 清除按钮的默认样式，保持统一 */
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* ---------- 页面骨架 ---------- */
.aurora-page {
    min-height: 100vh;
}

.aurora-header-inner,
.aurora-search-wrap .aurora-search,
.aurora-categories,
.aurora-content,
.aurora-footer {
    width: 100%;
    max-width: var(--aurora-maxw);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   店铺头部
   ============================================================ */
.aurora-header {
    position: relative;
    overflow: hidden;
    background: var(--aurora-gradient);
    padding: 30px 28px;
    color: #fff;
    border-radius: 0 0 28px 28px;
}

/* 头部装饰光斑 */
.aurora-header::before,
.aurora-header::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.aurora-header::before {
    width: 320px;
    height: 320px;
    right: -90px;
    top: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
}

.aurora-header::after {
    width: 240px;
    height: 240px;
    left: -80px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
}

.aurora-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 上排：头像 + 信息列（头像顶部对齐并略靠上） */
.aurora-header-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

/* 兼容旧类名，避免服务端片段/插件引用时错位 */
.aurora-header-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

/* 头像（shop-avatar / shop-avatar-frame-host 为插件挂载点，勿删） */
.aurora-avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    margin-top: -2px; /* 视觉上略靠上，与店名首行齐平 */
    border-radius: 50%;
    padding: 3px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 22px rgba(49, 46, 129, .28);
    position: relative;
}

.aurora-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e9eaf6;
}

.aurora-header-info {
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

/* 第一行：[店名+营业中] 一组垂直居中；工具按钮整组在右上角、与店名齐平 */
.aurora-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.aurora-name-titles {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.shop-name.aurora-header-info .shop-name,
.aurora-name-row .shop-name {
    /* 店名占据剩余空间但允许收缩省略；营业中胶囊固定不被压缩、紧跟店名、严格垂直居中 */
    flex: 0 1 auto;
    min-width: 0;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 铭牌插件挂载点：店名行下方；为空时自动隐藏 */
.aurora-name-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}
.aurora-name-extra:empty {
    display: none;
    margin-top: 0;
}

/* 营业状态：与店名同一分组、严格垂直居中、固定不压缩 */
.aurora-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1;
    color: rgba(255, 255, 255, .9);
    height: 22px;
    padding: 0 10px;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.aurora-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}

/* 公告条：整行显示在头像/信息列下方（从头像下方开始，横跨整行） */
.aurora-notice {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.aurora-notice-tag {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--aurora-primary);
    background: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    line-height: 1.6;
}

.aurora-notice-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .92);
}

/* 右上角工具按钮组：分享 / 搜索 / 订单查询（与店名同一行、吸附右侧、垂直居中齐平） */
.aurora-head-tools {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aurora-tool {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .2s var(--aurora-ease), transform .15s var(--aurora-ease);
}

.aurora-tool:hover {
    background: rgba(255, 255, 255, .32);
}

.aurora-tool:active {
    transform: scale(.9);
}

.aurora-tool.is-on {
    color: var(--aurora-primary);
    background: #fff;
    border-color: #fff;
}

/* ============================================================
   搜索面板（默认隐藏，点击店名右侧放大镜后展开，叠在头部下沿）
   ============================================================ */
.aurora-search-wrap {
    padding: 0 28px;
    margin-top: -14px;
    position: relative;
    z-index: 5;
}

.aurora-search-wrap[hidden] {
    display: none;
}

.aurora-search-wrap.is-open .aurora-search {
    animation: aurora-search-in .22s var(--aurora-ease);
}

@keyframes aurora-search-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aurora-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 8px 0 18px;
    background: var(--aurora-card);
    border-radius: 999px;
    box-shadow: var(--aurora-shadow);
    border: 1px solid rgba(255, 255, 255, .8);
    transition: box-shadow .2s var(--aurora-ease);
}

.aurora-search:focus-within {
    box-shadow: 0 10px 30px rgba(79, 70, 229, .18);
}

.aurora-search-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--aurora-text-faint);
}

.aurora-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    font-size: 14.5px;
    color: var(--aurora-text);
}

.aurora-search-input::placeholder {
    color: var(--aurora-text-faint);
}

.aurora-search-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--aurora-gradient);
    transition: opacity .2s, transform .2s var(--aurora-ease);
}

.aurora-search-btn:active {
    transform: scale(.96);
}

/* 取消按钮：收起搜索面板 */
.aurora-search-cancel {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px 0 4px;
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--aurora-text-sub);
    transition: color .2s;
}

.aurora-search-cancel:hover {
    color: var(--aurora-text);
}

/* ============================================================
   分类（一排四个图标网格：图标在上、名称在下，自动换行）
   兼容系统注入的 shop-category-list / shop-category-item
   ============================================================ */
.aurora-categories {
    margin: 14px auto 0;
    padding: 18px 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 8px;
    background: var(--aurora-card);
    border-radius: var(--aurora-radius);
    box-shadow: var(--aurora-shadow-card);
}

/* 系统片段若再包一层 list，让其融入网格，不额外占层 */
.aurora-categories .shop-category-list {
    display: contents;
}

.shop-category-item,
.aurora-categories > a,
.aurora-categories > button,
.shop-category-list > a,
.shop-category-list > button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--aurora-text);
    font-size: 12.5px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    word-break: break-all;
    transition: color .2s var(--aurora-ease), transform .15s var(--aurora-ease);
}

/* 分类名称：最多一行省略，避免长短不一导致错行 */
.shop-category-item,
.shop-category-list > a {
    -webkit-tap-highlight-color: transparent;
}

/* 系统输出的分类图标 img：圆角方块 */
.shop-category-item img,
.aurora-categories a img,
.aurora-categories button img,
.shop-category-list img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background: #f1f2f8;
    box-shadow: 0 4px 10px rgba(31, 36, 48, .08);
    transition: box-shadow .2s var(--aurora-ease);
}

/* 无图标时由 JS 注入的渐变占位方块（显示分类名首字） */
.aurora-cat-ph {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: var(--aurora-gradient);
    box-shadow: 0 4px 10px rgba(31, 36, 48, .08);
    user-select: none;
    transition: box-shadow .2s var(--aurora-ease);
}

/* 占位图标四色轮换，避免单调 */
.shop-category-item:nth-child(4n+2) .aurora-cat-ph,
.aurora-categories > a:nth-child(4n+2) .aurora-cat-ph { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.shop-category-item:nth-child(4n+3) .aurora-cat-ph,
.aurora-categories > a:nth-child(4n+3) .aurora-cat-ph { background: linear-gradient(135deg, #f43f5e, #f97316); }
.shop-category-item:nth-child(4n) .aurora-cat-ph,
.aurora-categories > a:nth-child(4n) .aurora-cat-ph { background: linear-gradient(135deg, #10b981, #14b8a6); }

.shop-category-item:hover,
.aurora-categories > a:hover,
.aurora-categories > button:hover {
    color: var(--aurora-primary);
}

.shop-category-item:active {
    transform: scale(.94);
}

/* 选中态：文字变主色、图标加主色描边（兼容 active/selected/current/is-active） */
.shop-category-item.active,
.shop-category-item.selected,
.shop-category-item.current,
.shop-category-item.is-active,
.aurora-categories > a.active,
.aurora-categories > button.active {
    color: var(--aurora-primary);
    font-weight: 600;
    background: transparent;
}

.shop-category-item.active img,
.shop-category-item.active .aurora-cat-ph,
.aurora-categories > a.active img,
.aurora-categories > a.active .aurora-cat-ph {
    box-shadow: 0 0 0 2px var(--aurora-primary), 0 6px 16px rgba(79, 70, 229, .28);
}

/* ============================================================
   商品区
   ============================================================ */
.aurora-content {
    padding: 8px 28px 0;
}

.aurora-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 2px 16px;
}

.aurora-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--aurora-text);
    letter-spacing: .3px;
}

.aurora-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--aurora-line), rgba(237, 238, 244, 0));
}

/* 商品列表：横向行布局（左侧小缩略图，右侧名称+价格）；宽屏时并排两列列表 */
.aurora-product-list.shop-product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 901px) {
    .aurora-product-list.shop-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* 系统片段若再嵌套一层 list，用 display:contents 让商品项直接参与外层布局 */
.aurora-product-list .shop-product-list {
    display: contents;
}

/* ---------- 商品行（标准类 + 私有类同时保留；CSS Grid 实现左图右文，无需额外包裹层） ---------- */
.shop-product-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    /* 第1行名称 / 第2行可选标签 / 第3行价格；无标签时中间行自动塌缩为 0 */
    grid-template-rows: auto auto 1fr;
    align-items: start;
    column-gap: 12px;
    row-gap: 6px;
    padding: 12px;
    background: var(--aurora-card);
    border-radius: var(--aurora-radius);
    box-shadow: var(--aurora-shadow-card);
    border: 1px solid rgba(237, 238, 244, .7);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .2s var(--aurora-ease), box-shadow .2s var(--aurora-ease),
        border-color .2s var(--aurora-ease);
}

.shop-product-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--aurora-shadow-hover);
    border-color: rgba(79, 70, 229, .22);
}

.shop-product-item:active {
    transform: none;
}

/* 左侧缩略图：纵向跨满整行居左 */
.shop-product-cover {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    position: relative;
    width: 88px;
    height: 88px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef0f8 0%, #e6e8f5 100%);
}

.shop-product-image {
    width: 100%;
    height: 100%;
}

.shop-product-image img,
.shop-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--aurora-ease);
}

.shop-product-item:hover .shop-product-image img,
.shop-product-item:hover .shop-product-cover img {
    transform: scale(1.04);
}

/* 右侧上方：商品名称（最多两行） */
.shop-product-name {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--aurora-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

/* 名称下方的小标签（如“自动发货”，兼容系统片段可能输出的常见类名） */
.shop-product-item > .shop-product-tag,
.shop-product-item > .tag,
.shop-product-item > .badge,
.shop-product-item > .label {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #2563eb;
    background: #eff4ff;
}

/* 右侧下方：价格行，价格左、库存右 */
.shop-product-price {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--aurora-price);
    font-weight: 700;
}

/* 兼容价格片段内部结构：主价 / 划线原价 */
.shop-product-price .price,
.shop-product-price .shop-price,
.shop-product-price .current-price {
    font-size: 18px;
    color: var(--aurora-price);
    font-weight: 800;
}

.shop-product-price::first-letter {
    font-size: 13px;
    margin-right: 1px;
}

.shop-product-price del,
.shop-product-price s,
.shop-product-price .original-price,
.shop-product-price .line-price {
    font-size: 12px;
    font-weight: 400;
    color: var(--aurora-text-faint);
    text-decoration: line-through;
}

.shop-product-stock {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--aurora-text-faint);
}

/* 库存紧张时（系统若输出 warn/danger 类） */
.shop-product-stock.warn,
.shop-product-stock.danger,
.shop-product-stock.low {
    color: #f59e0b;
}

/* ============================================================
   空状态
   ============================================================ */
.aurora-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 72px 20px;
    color: var(--aurora-text-faint);
}

.aurora-empty-icon {
    display: inline-flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aurora-card);
    color: var(--aurora-text-faint);
    box-shadow: var(--aurora-shadow-card);
}

.aurora-empty-text {
    font-size: 14px;
}

/* ============================================================
   加载更多
   ============================================================ */
.aurora-loadmore-wrap {
    display: flex;
    justify-content: center;
    padding: 14px 0 2px;
}

.aurora-loadmore {
    min-width: 168px;
    height: 42px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--aurora-primary);
    background: var(--aurora-card);
    border: 1.5px solid rgba(79, 70, 229, .35);
    transition: all .2s var(--aurora-ease);
}

.aurora-loadmore:hover {
    background: var(--aurora-primary-soft);
    border-color: var(--aurora-primary);
}

.aurora-loadmore:active {
    transform: scale(.97);
}

.aurora-loadmore.is-loading {
    color: var(--aurora-text-sub);
    border-color: var(--aurora-line);
    background: var(--aurora-card);
    pointer-events: none;
}

.aurora-loadmore.is-loading .aurora-loadmore-text::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid var(--aurora-line);
    border-top-color: var(--aurora-primary);
    border-radius: 50%;
    animation: aurora-spin .7s linear infinite;
}

@keyframes aurora-spin {
    to { transform: rotate(360deg); }
}

/* 没有更多 / 全部加载完毕（兼容系统可能输出的类名） */
.aurora-loadmore.is-end,
.aurora-loadmore[disabled] {
    color: var(--aurora-text-faint);
    border-color: var(--aurora-line);
    pointer-events: none;
}

/* ============================================================
   底部
   ============================================================ */
.aurora-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 12px 20px 10px;
    color: var(--aurora-text-faint);
    font-size: 12.5px;
}

.aurora-footer-link {
    color: var(--aurora-text-faint);
    font-size: 12.5px;
    transition: color .2s;
}

.aurora-footer-link:hover {
    color: var(--aurora-primary);
}

.aurora-footer-divider {
    color: var(--aurora-line);
}

/* ============================================================
   响应式：平板（横向行单列排列，避免行宽过窄）
   ============================================================ */
@media (max-width: 900px) {
    .aurora-product-list.shop-product-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================================
   响应式：手机
   ============================================================ */
@media (max-width: 640px) {
    .aurora-header {
        padding: 22px 16px;
        border-radius: 0 0 22px 22px;
    }

    .aurora-header-inner {
        gap: 12px;
    }

    .aurora-header-top,
    .aurora-header-left {
        gap: 11px;
    }

    .aurora-avatar {
        width: 58px;
        height: 58px;
        margin-top: -1px;
    }

    .aurora-header-info {
        padding-top: 1px;
    }

    .aurora-name-row {
        gap: 7px;
    }

    .aurora-name-titles {
        gap: 6px;
    }

    .aurora-name-row .shop-name {
        font-size: 17px;
    }

    /* 营业中胶囊在手机端略紧凑，与 17px 店名协调、严格居中 */
    .aurora-status {
        height: 20px;
        padding: 0 8px;
        font-size: 11px;
    }

    /* 右上角工具按钮手机端略小、间距更紧 */
    .aurora-head-tools {
        gap: 6px;
        margin-left: auto;
    }

    .aurora-tool {
        width: 30px;
        height: 30px;
    }

    .aurora-tool svg {
        width: 16px;
        height: 16px;
    }

    .aurora-search-wrap {
        padding: 0 16px;
        margin-top: -10px;
    }

    .aurora-search {
        height: 50px;
        gap: 8px;
        padding-left: 16px;
    }

    .aurora-search-btn {
        height: 36px;
        padding: 0 18px;
        font-size: 13px;
    }

    /* 手机端分类仍保持一排四个，图标与文字略小 */
    .aurora-categories {
        margin-top: 12px;
        padding: 14px 10px;
        gap: 14px 6px;
    }

    .shop-category-item,
    .aurora-categories > a,
    .aurora-categories > button {
        gap: 6px;
        font-size: 12px;
    }

    .shop-category-item img,
    .aurora-categories a img,
    .aurora-categories button img,
    .shop-category-list img,
    .aurora-cat-ph {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .aurora-cat-ph {
        font-size: 18px;
    }

    .aurora-content {
        padding: 4px 16px 0;
    }

    /* 手机端商品：单列横向行，左小图右文字 */
    .aurora-product-list.shop-product-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shop-product-item {
        grid-template-columns: 74px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 6px;
        padding: 10px;
        border-radius: 14px;
    }

    .shop-product-cover {
        width: 74px;
        height: 74px;
        border-radius: 10px;
    }

    .shop-product-name {
        font-size: 13.5px;
    }

    .shop-product-price {
        gap: 6px;
    }

    .shop-product-price .price,
    .shop-product-price .shop-price,
    .shop-product-price .current-price {
        font-size: 16px;
    }

    .shop-product-stock {
        font-size: 11px;
    }

    .aurora-section-head {
        margin: 10px 0 12px;
    }

    .aurora-section-title {
        font-size: 15.5px;
    }

    .aurora-loadmore {
        min-width: 148px;
        height: 40px;
    }
}

/* 超窄屏兜底，避免卡片过挤 */
@media (max-width: 340px) {
    .aurora-product-list.shop-product-list {
        gap: 8px;
    }
}

/* 商品图片加载失败占位（JS 检测 error 后加 is-img-error） */
.shop-product-cover.is-img-error::after,
.shop-product-image.is-img-error::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    background-color: #c6c9d8;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>") center / contain no-repeat;
}

.shop-product-cover,
.shop-product-image {
    position: relative;
}

/* ============================================================
   减弱动效偏好（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   以下为数据驱动版新增样式
   ============================================================ */

/* ---------- 发货标签（自动/手动） ---------- */
.aurora-delivery {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}
.aurora-delivery.is-auto { color: #059669; background: #e7f8f1; }
.aurora-delivery.is-manual { color: #7c3aed; background: #f2ebfe; }

/* ---------- 库存徽章等级 ---------- */
.shop-product-stock.ok { color: #10b981; }
.shop-product-stock.warn { color: #f59e0b; }
.shop-product-stock.danger { color: #f43f5e; }
.shop-product-stock.out { color: #9ca3af; }
.shop-product-stock.muted { color: var(--aurora-text-faint); }

/* ---------- 免费价格 ---------- */
.aurora-price-free {
    font-size: 18px;
    font-weight: 800;
    color: var(--aurora-price);
}
@media (max-width: 640px) {
    .aurora-price-free { font-size: 16px; }
}

/* ---------- 商品封面占位（无图时） ---------- */
.aurora-cover-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c6c9d8;
    background: linear-gradient(135deg, #eef0f8 0%, #e6e8f5 100%);
}

/* ---------- 缺货卡片 ---------- */
.shop-product-item.is-soldout { opacity: .62; }
.shop-product-item.is-soldout .shop-product-cover { filter: grayscale(.55); }

/* ---------- 分类名称与“全部”入口 ---------- */
.shop-category-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aurora-cat-all {
    background: linear-gradient(135deg, #64748b, #475569);
}
.aurora-cat-all svg { width: 24px; height: 24px; }

/* ---------- 骨架屏 ---------- */
.aurora-skeleton {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 901px) {
    .aurora-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.aurora-skeleton[hidden] { display: none; }
.aurora-sk-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--aurora-card);
    border-radius: var(--aurora-radius);
    border: 1px solid rgba(237, 238, 244, .7);
}
.aurora-sk-item > i {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef0f6 25%, #f6f7fc 37%, #eef0f6 63%);
    background-size: 400% 100%;
    animation: aurora-shimmer 1.3s ease infinite;
}
.aurora-sk-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}
.aurora-sk-item b,
.aurora-sk-item em {
    display: block;
    height: 13px;
    border-radius: 6px;
    font-style: normal;
    background: linear-gradient(90deg, #eef0f6 25%, #f6f7fc 37%, #eef0f6 63%);
    background-size: 400% 100%;
    animation: aurora-shimmer 1.3s ease infinite;
}
.aurora-sk-item b { width: 84%; }
.aurora-sk-item em { width: 42%; height: 11px; }
@keyframes aurora-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@media (max-width: 640px) {
    .aurora-sk-item { gap: 10px; padding: 10px; }
    .aurora-sk-item > i { flex-basis: 74px; width: 74px; height: 74px; }
}

/* ---------- 轻提示 Toast ---------- */
.aurora-toast {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    transform: translateX(-50%) translateY(16px);
    background: rgba(31, 36, 48, .92);
    color: #fff;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 11px 20px;
    border-radius: 999px;
    max-width: 86vw;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity .22s var(--aurora-ease), transform .22s var(--aurora-ease);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.aurora-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.aurora-toast[hidden] { display: none; }

/* ---------- 通用弹窗（举报） ---------- */
.aurora-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(20, 22, 34, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.aurora-modal-mask[hidden] { display: none; }
.aurora-modal {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    animation: aurora-pop .2s var(--aurora-ease);
}
@keyframes aurora-pop {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.aurora-modal-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.aurora-modal-desc { font-size: 13px; color: var(--aurora-text-sub); line-height: 1.6; margin: 0 0 14px; }
.aurora-modal-textarea {
    width: 100%;
    border: 1px solid var(--aurora-line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: none;
    color: var(--aurora-text);
}
.aurora-modal-textarea:focus { border-color: var(--aurora-primary); }
.aurora-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.aurora-modal-btn { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.aurora-modal-btn.is-ghost { color: var(--aurora-text-sub); background: #f3f4f8; }
.aurora-modal-btn.is-primary { color: #fff; background: var(--aurora-gradient); }
.aurora-modal-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 店铺维护 / 封禁遮罩 ---------- */
.aurora-block-mask {
    position: fixed;
    inset: 0;
    z-index: 9980;
    background: rgba(243, 244, 250, .96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}
.aurora-block-mask[hidden] { display: none; }
.aurora-block { max-width: 340px; color: var(--aurora-text); }
.aurora-block-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f43f5e;
    box-shadow: var(--aurora-shadow-card);
}
.aurora-block-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.aurora-block-desc { font-size: 13.5px; color: var(--aurora-text-sub); line-height: 1.7; margin: 0; }

/* ---------- 关闭状态（维护/封禁） ---------- */
.aurora-status.is-closed { background: rgba(0, 0, 0, .18); }
.aurora-status.is-closed .aurora-status-dot {
    background: #fca5a5;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, .25);
}

/* ============================================================
   通用底部弹层（商品详情 / 订单确认）
   ============================================================ */
.aurora-sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 10000040;
    background: rgba(20, 22, 34, .5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .22s var(--aurora-ease);
}
.aurora-sheet-mask[hidden] { display: none; }
.aurora-sheet-mask.is-show { opacity: 1; }

.aurora-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    background: var(--aurora-card);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .26s var(--aurora-ease);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.aurora-sheet-mask.is-show .aurora-sheet { transform: translateY(0); }

.aurora-sheet-head {
    position: relative;
    flex: 0 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--aurora-line);
}
.aurora-sheet-title { font-size: 16px; font-weight: 700; color: var(--aurora-text); }
.aurora-sheet-close,
.aurora-sheet-back {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aurora-text-sub);
    background: #f3f4f8;
}
.aurora-sheet-close { right: 12px; }
.aurora-sheet-back { left: 12px; }
.aurora-sheet-close:active,
.aurora-sheet-back:active { transform: translateY(-50%) scale(.92); }

.aurora-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}
.aurora-detail-loading,
.aurora-checkout-loading { padding: 60px 0; text-align: center; color: var(--aurora-text-sub); font-size: 14px; }

/* ---------- 商品详情 ---------- */
.aurora-detail-product {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.aurora-detail-cover {
    flex: 0 0 auto;
    width: 104px;
    height: 104px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aurora-text-faint);
}
.aurora-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.aurora-detail-main { flex: 1; min-width: 0; }
.aurora-detail-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--aurora-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aurora-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aurora-detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.aurora-detail-price { color: var(--aurora-price); font-size: 24px; font-weight: 800; }
.aurora-detail-price small { font-size: 14px; font-weight: 700; }
.aurora-detail-origin { color: var(--aurora-text-faint); font-size: 13px; text-decoration: line-through; }
.aurora-detail-stock { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.aurora-detail-stock.ok { color: #16a34a; }
.aurora-detail-stock.warn { color: #f59e0b; }
.aurora-detail-stock.danger { color: #f43f5e; }
.aurora-detail-stock.out,
.aurora-detail-stock.muted { color: var(--aurora-text-faint); }

.aurora-detail-section { margin-top: 18px; }
.aurora-detail-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--aurora-text);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.aurora-detail-section-title::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--aurora-gradient);
}
.aurora-detail-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #3a3f4d;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.aurora-detail-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 6px 0; }
.aurora-detail-desc p { margin: 0 0 8px; }
.aurora-detail-desc a { color: var(--aurora-primary); word-break: break-all; }
.aurora-detail-desc table { max-width: 100%; border-collapse: collapse; }
.aurora-detail-desc td, .aurora-detail-desc th { border: 1px solid var(--aurora-line); padding: 4px 8px; }

.aurora-detail-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--aurora-line);
    background: #fff;
}
.aurora-detail-bar[hidden] { display: none; }
.aurora-detail-bar-price { flex: 0 0 auto; color: var(--aurora-price); font-weight: 800; font-size: 22px; }
.aurora-detail-bar-symbol { font-size: 14px; }
.aurora-qty {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--aurora-line);
    border-radius: 999px;
    overflow: hidden;
}
.aurora-qty-btn {
    width: 34px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    color: var(--aurora-text);
    background: #f6f7fb;
}
.aurora-qty-btn:disabled { color: var(--aurora-text-faint); cursor: not-allowed; }
.aurora-qty-num { min-width: 38px; text-align: center; font-size: 14px; font-weight: 600; }
.aurora-buy-btn {
    flex: 1 1 auto;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: var(--aurora-gradient);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .28);
}
.aurora-buy-btn:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }

/* ---------- 订单确认（仅简要商品信息，不重复详情） ---------- */
.aurora-co-product {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #f7f8fc;
    border-radius: 14px;
}
.aurora-co-cover {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9eaf4;
}
.aurora-co-cover img { width: 100%; height: 100%; object-fit: cover; }
.aurora-co-info { flex: 1; min-width: 0; }
.aurora-co-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--aurora-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aurora-co-price { margin-top: 4px; color: var(--aurora-price); font-weight: 700; font-size: 15px; }
.aurora-co-qty { flex: 0 0 auto; }
.aurora-co-qty .aurora-qty-btn { width: 30px; height: 28px; font-size: 16px; }
.aurora-co-qty .aurora-qty-num { min-width: 32px; font-size: 13px; }

.aurora-co-group { margin-top: 16px; }
.aurora-co-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--aurora-text);
    margin: 0 0 8px;
}
.aurora-co-label .req { color: var(--aurora-price); margin-left: 2px; }
.aurora-co-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--aurora-line);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--aurora-text);
    background: #fff;
}
.aurora-co-input:focus { border-color: var(--aurora-primary); }
.aurora-co-hint { font-size: 12px; color: var(--aurora-text-faint); margin-top: 6px; }

.aurora-coupon-row { display: flex; gap: 8px; }
.aurora-coupon-row .aurora-co-input { flex: 1; }
.aurora-coupon-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--aurora-primary);
    background: var(--aurora-primary-soft);
}
.aurora-coupon-msg { font-size: 12px; margin-top: 6px; min-height: 16px; }
.aurora-coupon-msg.ok { color: #16a34a; }
.aurora-coupon-msg.err { color: var(--aurora-price); }

/* 联系方式行内报错 */
.aurora-co-input.is-invalid { border-color: var(--aurora-price); background: #fff5f6; }
.aurora-co-err { display: none; font-size: 12px; color: var(--aurora-price); margin-top: 6px; }
.aurora-co-err.is-show { display: block; }
.aurora-co-label .opt { color: var(--aurora-text-faint); font-weight: 400; margin-left: 2px; }

/* 通知方式：邮箱 / 短信 选择（都不选即网站查询） */
.aurora-notify-chips { display: flex; gap: 10px; }
.aurora-notify-chip {
    flex: 1;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--aurora-line);
    background: #fff;
    color: var(--aurora-text-sub);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .18s var(--aurora-ease);
}
.aurora-notify-chip::before {
    content: "";
    width: 15px; height: 15px;
    border-radius: 50%;
    border: 1.5px solid var(--aurora-text-faint);
    box-sizing: border-box;
    flex: 0 0 auto;
}
.aurora-notify-chip.is-active {
    border-color: var(--aurora-primary);
    color: var(--aurora-primary);
    background: var(--aurora-primary-soft);
}
.aurora-notify-chip.is-active::before {
    border-color: var(--aurora-primary);
    border-width: 4px;
}
.aurora-notify-fields { display: grid; gap: 8px; margin-top: 8px; }
.aurora-notify-fields .aurora-co-input[hidden] { display: none; }

/* 优惠券：默认只显示一个入口，点击后展开输入框 */
.aurora-coupon-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px dashed rgba(79, 70, 225, .45);
    border-radius: 12px;
    background: var(--aurora-primary-soft);
    color: var(--aurora-primary);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.aurora-coupon-toggle .chev { font-style: normal; display: inline-block; transition: transform .2s var(--aurora-ease); margin-left: 4px; }
.aurora-coupon-box { margin-top: 10px; }
.aurora-coupon-box[hidden] { display: none; }

.aurora-pay-methods { display: flex; flex-direction: column; gap: 10px; }
.aurora-pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--aurora-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s;
}
.aurora-pay-method.is-active { border-color: var(--aurora-primary); background: var(--aurora-primary-soft); }
.aurora-pay-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.aurora-pay-name { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--aurora-text); }
.aurora-pay-fee { font-size: 12px; color: var(--aurora-text-faint); }
.aurora-pay-radio {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d3d6e2;
    position: relative;
}
.aurora-pay-method.is-active .aurora-pay-radio { border-color: var(--aurora-primary); }
.aurora-pay-method.is-active .aurora-pay-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--aurora-primary);
}

.aurora-co-summary { margin-top: 18px; border-top: 1px dashed var(--aurora-line); padding-top: 14px; }
.aurora-co-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--aurora-text-sub);
    margin-bottom: 8px;
}
.aurora-co-line.total { font-size: 15px; color: var(--aurora-text); font-weight: 700; margin-top: 4px; }
.aurora-co-line.total b { color: var(--aurora-price); font-size: 22px; font-weight: 800; }
.aurora-co-line .discount { color: #16a34a; }

.aurora-co-footer {
    position: sticky;
    bottom: -16px;
    margin: 18px -16px calc(-1 * 16px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--aurora-line);
    display: flex;
    align-items: center;
    gap: 12px;
}
.aurora-co-footer-total { flex: 0 0 auto; font-size: 13px; color: var(--aurora-text-sub); }
.aurora-co-footer-total b { color: var(--aurora-price); font-size: 22px; font-weight: 800; margin-left: 4px; }
.aurora-co-submit {
    flex: 1 1 auto;
    height: 46px;
    border-radius: 999px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    background: var(--aurora-gradient);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .28);
}
.aurora-co-submit:disabled { opacity: .6; box-shadow: none; cursor: not-allowed; }

/* 桌面端：弹层居中为对话框 */
@media (min-width: 641px) {
    .aurora-sheet-mask { align-items: center; padding: 24px; }
    .aurora-sheet {
        border-radius: 22px;
        max-height: 88vh;
    }
}

/* ============================================================
   自建背景音乐播放器（左下角；收起仅一个「》」）
   ============================================================ */
.aurora-music {
    position: fixed;
    left: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    z-index: 9985;
    color: var(--aurora-text);
}
.aurora-music[hidden] { display: none; }

.aurora-music-fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--aurora-gradient);
    box-shadow: 0 8px 22px rgba(99, 102, 241, .4);
    animation: aurora-music-pulse 2.6s ease-in-out infinite;
}
.aurora-music-fab:active { transform: scale(.92); }
.aurora-music-fab[hidden] { display: none; }
@keyframes aurora-music-pulse {
    0%, 100% { box-shadow: 0 8px 22px rgba(99, 102, 241, .4); }
    50% { box-shadow: 0 8px 28px rgba(168, 85, 247, .6); }
}

.aurora-music-card {
    position: relative;
    width: 268px;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(31, 36, 48, .22);
    padding: 14px 14px 10px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 4px 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: aurora-music-in .24s var(--aurora-ease);
}
.aurora-music-card[hidden] { display: none; }
@keyframes aurora-music-in {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.aurora-music-collapse {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aurora-text-faint);
}
.aurora-music-collapse:active { background: #f0f1f7; }

.aurora-music-cover {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--aurora-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aurora-music-cover img { width: 100%; height: 100%; object-fit: cover; }
.aurora-music.is-playing .aurora-music-cover { animation: aurora-music-spin 9s linear infinite; border-radius: 50%; }
@keyframes aurora-music-spin { to { transform: rotate(360deg); } }

.aurora-music-meta { min-width: 0; padding-right: 22px; }
.aurora-music-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--aurora-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aurora-music-artist {
    font-size: 11.5px;
    color: var(--aurora-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.aurora-music-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.aurora-music-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--aurora-primary);
}
.aurora-music-btn:active { background: var(--aurora-primary-soft); }
.aurora-music-btn.is-main {
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--aurora-gradient);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .35);
}
.aurora-music-btn.is-main:active { transform: scale(.92); }

.aurora-music-progress {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.aurora-music-cur, .aurora-music-dur { font-size: 10.5px; color: var(--aurora-text-faint); font-variant-numeric: tabular-nums; }
.aurora-music-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e7e9f2;
    cursor: pointer;
    overflow: hidden;
}
.aurora-music-bar i {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--aurora-gradient);
}

@media (max-width: 640px) {
    .aurora-music { left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
    .aurora-music-card { width: 250px; }
}
