/* 商城内容复刻 - 移动端样式 */
:root {
    --red: #fc0202;
    --price: #ff1128;
    --orange: #ff7234;
    --text: #303133;
    --text-2: #666666;
    --text-3: #999999;
    --line: #eeeeee;
    --bg: #f6f6f6;
    --card: #ffffff;
    --radius: 0.14rem;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: calc(100vw / 7.5);
    background: #e9e9e9;
}

@media (min-width: 500px) {
    html {
        font-size: 66.6667px;
    }
}

body {
    margin: 0 auto;
    max-width: 7.5rem;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.28rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

input {
    font-family: inherit;
}

.app-shell {
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 1.15rem;
}

.detail-page .app-shell,
body.detail-page .app-shell {
    padding-bottom: 1.15rem;
}

.page {
    min-height: 100vh;
}

/* ---------- 顶部搜索 ---------- */
.search-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.16rem;
    padding: 0.16rem 0.2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
}

.search-top__box {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex: 1;
    min-width: 0;
    height: 0.64rem;
    padding: 0 0.22rem;
    background: #f4f4f4;
    border-radius: 0.32rem;
}

.search-top__filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.64rem;
}

.search-top__filter svg {
    width: 0.36rem;
    height: 0.36rem;
    fill: none;
    stroke: #666666;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-top__icon {
    width: 0.3rem;
    height: 0.3rem;
    fill: none;
    stroke: #aaaaaa;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.search-top__box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.26rem;
    color: var(--text);
}

.search-top__box input::placeholder {
    color: #b5b5b5;
}

.search-top--inline {
    position: static;
    background: transparent;
    padding: 0.12rem 0.2rem;
}

/* ---------- 首页搜索/轮播 ---------- */
.comp-carousel-search {
    background: #ffffff;
}

.home-search {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    padding: 0.18rem 0.2rem;
    background: #ffffff;
}

.home-search__bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    height: 0.64rem;
    padding: 0 0.22rem;
    border-radius: 0.32rem;
    background: #f5f5f5;
    color: #b0b0b0;
    font-size: 0.26rem;
    overflow: hidden;
    white-space: nowrap;
}

.home-search__bar svg {
    width: 0.3rem;
    height: 0.3rem;
    fill: none;
    stroke: #b0b0b0;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.home-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5a5a, var(--red));
    flex-shrink: 0;
}

.home-search__btn svg {
    width: 0.34rem;
    height: 0.34rem;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
}

.hero-swiper {
    position: relative;
    background: #ffffff;
}

.hero-swiper__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hero-swiper__track::-webkit-scrollbar {
    display: none;
}

.hero-swiper__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 355 / 216;
    overflow: hidden;
}

.hero-swiper__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-swiper__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.16rem;
    display: flex;
    justify-content: center;
    gap: 0.1rem;
}

.hero-swiper__dots i {
    width: 0.1rem;
    height: 0.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s;
}

.hero-swiper__dots i.is-active {
    width: 0.24rem;
    border-radius: 0.06rem;
    background: #ffffff;
}

/* ---------- 组件通用 ---------- */
.comp {
    margin-bottom: 0.18rem;
    overflow: hidden;
}

.comp-blank {
    width: 100%;
}

.comp-line {
    padding: 0.1rem 0.2rem;
}

.comp-line span {
    display: block;
    width: 100%;
}

.comp-text {
    padding: 0.18rem 0.2rem 0.1rem;
}

.comp-text__title {
    font-size: 0.32rem;
    font-weight: 700;
    color: var(--text);
}

.comp-text__sub {
    margin-top: 0.04rem;
    font-size: 0.22rem;
    color: var(--text-3);
}

.comp-notice {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    margin: 0.16rem 0.2rem 0;
    padding: 0.16rem 0.2rem;
    background: #ffffff;
    border-radius: var(--radius) var(--radius) 0 0;
}

.comp-notice + .comp-nav {
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 0.18rem;
}

.comp-notice__icon svg {
    width: 0.34rem;
    height: 0.34rem;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comp-notice__track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    color: var(--text-2);
    font-size: 0.24rem;
}

.comp-notice__track a {
    display: inline-block;
    animation: notice-scroll 14s linear infinite;
    padding-left: 100%;
}

@keyframes notice-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ---------- 图文导航 ---------- */
.comp-nav {
    padding: 0.18rem 0.1rem 0.12rem;
    background: #ffffff;
    border-radius: var(--radius);
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.nav-grid {
    display: grid;
    gap: 0.33rem 0.06rem;
}

.nav-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.nav-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.nav-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.nav-grid__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.nav-grid__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f7f7f7;
}

.nav-grid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-grid__ph {
    font-size: 0.32rem;
    color: #bbbbbb;
    font-weight: 600;
}

.nav-grid__label {
    margin-top: 0.16rem;
    max-width: 100%;
    font-size: 0.24rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-grid__badge {
    position: absolute;
    top: -0.04rem;
    right: 0.02rem;
    padding: 0 0.06rem;
    border-radius: 0.08rem;
    background: var(--red);
    color: #ffffff;
    font-size: 0.16rem;
    line-height: 1.5;
}

/* ---------- 广告 / 推荐 ---------- */
.comp-ads {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.comp-ads__item img {
    width: 100%;
}

.comp-recommend {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    padding: 0.2rem;
    background: linear-gradient(180deg, #fff2f2 0%, #ffffff 45%);
    border-radius: 0.18rem;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.12rem;
}

.recommend-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.recommend-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 0.12rem;
    overflow: hidden;
    background: #f5f5f5;
}

.recommend-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-card__name {
    margin-top: 0.1rem;
    font-size: 0.22rem;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-card__price {
    margin-top: 0.06rem;
    color: var(--price);
    font-size: 0.28rem;
    font-weight: 700;
}

.recommend-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.06rem;
    margin-top: 0.06rem;
}

.recommend-card__btn {
    flex-shrink: 0;
    padding: 0.02rem 0.1rem;
    border-radius: 0.18rem;
    background: var(--price);
    color: #ffffff;
    font-size: 0.18rem;
    line-height: 1.6;
}

.recommend-card__price em {
    font-style: normal;
    font-size: 0.2rem;
    margin-right: 0.02rem;
}

.recommend-card__price i {
    font-style: normal;
    font-size: 0.22rem;
}

/* ---------- 商品组 / 商品卡 ---------- */
.comp-goods-group {
    padding: 0 0.2rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 0.12rem;
    padding: 0.2rem 0 0.14rem;
}

.section-head__title {
    font-size: 0.32rem;
    font-weight: 700;
    color: var(--text);
}

.section-head__desc {
    font-size: 0.22rem;
    color: var(--text-3);
}

.section-head__more {
    margin-left: auto;
    font-size: 0.22rem;
    color: var(--red);
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.16rem;
    padding: 0 0.2rem;
}

.comp-goods-group .goods-grid,
.comp-goods-list .goods-grid {
    padding: 0;
}

.goods-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0.02rem 0.12rem rgba(0, 0, 0, 0.04);
}

.goods-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.goods-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goods-card__tag {
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    padding: 0.02rem 0.1rem;
    border-radius: 0.08rem;
    background: linear-gradient(90deg, #ff7a3d, #ff2b2b);
    color: #ffffff;
    font-size: 0.18rem;
    line-height: 1.5;
}

.goods-card__body {
    padding: 0.14rem 0.14rem 0.16rem;
}

.goods-card__brand {
    font-size: 0.2rem;
    color: var(--text-3);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goods-card__brand-tag {
    display: inline-block;
    margin-bottom: 0.04rem;
    padding: 0.02rem 0.08rem;
    border-radius: 0.04rem;
    background: #ff0000;
    color: #ffffff;
    font-size: 0.18rem;
    line-height: 1.5;
    vertical-align: middle;
}

.goods-card__name {
    margin-top: 0.04rem;
    min-height: 0.62rem;
    font-size: 0.24rem;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-card__price {
    margin-top: 0.1rem;
    color: var(--price);
    font-size: 0.34rem;
    font-weight: 700;
    line-height: 1;
}

.goods-card__price em {
    font-style: normal;
    font-size: 0.22rem;
    margin-right: 0.02rem;
}

.goods-card__price i {
    font-style: normal;
    font-size: 0.26rem;
}

/* ---------- 悬浮按钮 ---------- */
.float-btn {
    position: fixed;
    right: 0.2rem;
    bottom: 1.3rem;
    z-index: 25;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.16);
}

.float-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 底部 tabbar ---------- */
.tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 40;
    transform: translateX(-50%);
    display: flex;
    width: 100%;
    max-width: 7.5rem;
    height: 1.02rem;
    padding-bottom: env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
    color: #999999;
    font-size: 0.2rem;
}

.tabbar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.5rem;
    height: 0.5rem;
}

.tabbar__icon img {
    width: 0.46rem;
    height: 0.46rem;
    object-fit: contain;
}

.tabbar__item.is-active {
    color: var(--red);
}

.tabbar__icon--home,
.tabbar__icon--category,
.tabbar__icon--goods,
.tabbar__icon--member {
    position: relative;
}

.tabbar__icon--home::before {
    content: "";
    width: 0.36rem;
    height: 0.3rem;
    border: 0.04rem solid currentColor;
    border-top: 0;
    border-radius: 0 0 0.08rem 0.08rem;
    margin-top: 0.12rem;
}

.tabbar__icon--home::after {
    content: "";
    position: absolute;
    top: 0.02rem;
    width: 0.32rem;
    height: 0.32rem;
    border-left: 0.04rem solid currentColor;
    border-top: 0.04rem solid currentColor;
    transform: rotate(45deg);
    border-radius: 0.04rem;
}

.tabbar__icon--category::before {
    content: "";
    width: 0.36rem;
    height: 0.36rem;
    border: 0.04rem solid currentColor;
    border-radius: 0.08rem;
}

.tabbar__icon--goods::before {
    content: "";
    width: 0.36rem;
    height: 0.36rem;
    border: 0.04rem solid currentColor;
    border-radius: 50%;
}

.tabbar__icon--member::before {
    content: "♥";
    font-size: 0.36rem;
    line-height: 1;
}

/* ---------- 分类页 ---------- */
.category-page {
    padding-bottom: 1.02rem;
}

.category-layout {
    display: flex;
    height: calc(100vh - 0.96rem - 1.02rem);
    background: #ffffff;
}

.category-side {
    width: 1.9rem;
    flex-shrink: 0;
    background: #f7f7f7;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.category-side__item {
    position: relative;
    display: block;
    padding: 0.26rem 0.14rem;
    font-size: 0.24rem;
    color: var(--text-2);
    text-align: center;
    line-height: 1.3;
}

.category-side__item.is-active {
    background: #ffffff;
    color: var(--red);
    font-weight: 600;
}

.category-side__item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.06rem;
    height: 0.36rem;
    border-radius: 0 0.06rem 0.06rem 0;
    background: var(--red);
}

.category-main {
    flex: 1;
    min-width: 0;
    padding: 0.16rem 0.18rem 0.4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.category-panel {
    display: none;
}

.category-panel.is-active {
    display: block;
}

.category-panel__head {
    font-size: 0.28rem;
    font-weight: 700;
    padding: 0.1rem 0 0.2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.24rem 0.12rem;
}

.category-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.category-grid__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.04rem;
    height: 1.04rem;
    border-radius: 0.12rem;
    background: #f5f5f5;
    overflow: hidden;
}

.category-grid__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-grid__ph {
    font-size: 0.4rem;
    color: #cccccc;
    font-weight: 600;
}

.category-grid__label {
    margin-top: 0.1rem;
    max-width: 100%;
    font-size: 0.22rem;
    color: var(--text-2);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-empty {
    display: block;
    margin-top: 0.3rem;
    padding: 0.3rem;
    border-radius: 0.12rem;
    background: #f8f8f8;
    text-align: center;
    color: var(--text-3);
    font-size: 0.24rem;
}

/* ---------- 列表页 ---------- */
.list-page {
    padding-bottom: 1.4rem;
}

.sort-bar {
    display: flex;
    align-items: center;
    height: 0.82rem;
    padding: 0 0.2rem;
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5;
}

.sort-bar__item {
    flex: 1;
    text-align: center;
    font-size: 0.24rem;
    color: var(--text-2);
}

.sort-bar__item.is-active {
    color: var(--red);
    font-weight: 600;
}

.sort-bar__arrow {
    font-size: 0.2rem;
}

.sort-bar__item--filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    color: var(--text-3);
}

.sort-bar__filter-icon {
    width: 0.26rem;
    height: 0.26rem;
    fill: none;
    stroke: #999999;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-chips {
    padding: 0.18rem 0.2rem 0.1rem;
    background: #ffffff;
}

.filter-chips__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #f5f5f5;
    border-left: 1px solid #f5f5f5;
}

.filter-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0.64rem;
    padding: 0.06rem 0.08rem;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.22rem;
    color: var(--text-2);
    text-align: center;
}

.filter-chip.is-active {
    color: var(--red);
    font-weight: 600;
}

.filter-chip.is-extra {
    display: none;
}

.filter-chips.is-open .filter-chip.is-extra {
    display: flex;
}

.filter-chips__toggle {
    display: block;
    width: 100%;
    padding: 0.18rem 0;
    color: var(--text-3);
    font-size: 0.22rem;
}

.list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.18rem 0.2rem 0.12rem;
    color: var(--text-3);
    font-size: 0.22rem;
}

.list-page .goods-grid {
    padding: 0 0.2rem;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 0.3rem 0 0.2rem;
}

.load-more {
    min-width: 2.6rem;
    height: 0.68rem;
    padding: 0 0.3rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.34rem;
    background: #ffffff;
    color: var(--text-2);
    font-size: 0.24rem;
}

.load-more[disabled] {
    opacity: 0.55;
}

.empty-state {
    padding: 1rem 0.4rem;
    text-align: center;
    color: var(--text-3);
    font-size: 0.26rem;
}

.empty-page {
    padding: 0.2rem 0.3rem;
}

.empty-page__title {
    padding: 0.24rem 0;
    font-size: 0.36rem;
    font-weight: 700;
}

.empty-inline {
    padding: 0.4rem;
    text-align: center;
    color: var(--text-3);
    font-size: 0.24rem;
}

/* ---------- 详情页 ---------- */
.detail-page {
    padding-bottom: 1.1rem;
    background: #f6f6f6;
}

.detail-gallery {
    position: relative;
    background: #ffffff;
}

.detail-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.detail-gallery__track::-webkit-scrollbar {
    display: none;
}

.detail-gallery__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}

.detail-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery__dots {
    position: absolute;
    right: 0.2rem;
    bottom: 1.1rem;
    display: flex;
    gap: 0.08rem;
}

.detail-gallery__dots i {
    width: 0.1rem;
    height: 0.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.detail-gallery__dots i.is-active {
    width: 0.22rem;
    border-radius: 0.06rem;
    background: #ffffff;
}

.detail-price-float {
    position: absolute;
    left: 0.2rem;
    bottom: 0.24rem;
    display: flex;
    flex-direction: column;
    padding: 0.1rem 0.2rem 0.12rem;
    border-radius: 0.12rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 237, 237, 0.96));
    box-shadow: 0 0.06rem 0.2rem rgba(0, 0, 0, 0.12);
}

.detail-price-float__label {
    font-size: 0.2rem;
    color: var(--red);
}

.detail-price-float__value {
    color: var(--price);
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1.1;
}

.detail-price-float__value em {
    font-style: normal;
    font-size: 0.26rem;
    margin-right: 0.02rem;
}

.detail-price-float__value i {
    font-style: normal;
    font-size: 0.3rem;
}

.detail-back {
    position: absolute;
    top: 0.24rem;
    left: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-size: 0.44rem;
    line-height: 1;
}

.detail-info {
    padding: 0.24rem 0.24rem 0.24rem;
    background: #ffffff;
}

.detail-info__price {
    color: var(--price);
    font-size: 0.46rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.12rem;
}

.detail-info__price em {
    font-style: normal;
    font-size: 0.31rem;
}

.detail-info__price i {
    font-style: normal;
    font-size: 0.31rem;
    margin-left: 0.02rem;
}

.detail-info__name-line {
    font-size: 0.3rem;
    font-weight: 500;
    line-height: 1.35;
    color: #333333;
}

.detail-info__brand {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.08rem;
    padding: 0.04rem 0.08rem;
    border-radius: 0.08rem;
    background: #ff0000;
    color: #ffffff;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.4;
}

.detail-info__sub {
    margin: 0.08rem 0 0;
    color: var(--text-3);
    font-size: 0.24rem;
}

.detail-info__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.24rem;
    color: var(--text-3);
    font-size: 0.24rem;
    line-height: 1.4;
}

.detail-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #f3f3f3;
}

.detail-tabs button {
    flex: 1;
    height: 0.84rem;
    font-size: 0.26rem;
    color: var(--text-2);
    position: relative;
}

.detail-tabs button.is-active {
    color: var(--red);
    font-weight: 600;
}

.detail-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0.4rem;
    height: 0.05rem;
    border-radius: 0.03rem;
    background: var(--red);
}

.detail-panel {
    display: none;
    padding: 0.2rem 0.24rem 0.3rem;
    background: #ffffff;
}

.detail-panel.is-active {
    display: block;
}

.detail-card {
    margin: 0.2rem;
    padding: 0.3rem 0.24rem;
    background: #ffffff;
    border-radius: 0.24rem;
}

.detail-card__title {
    margin: 0 0 0.2rem;
    font-size: 0.3rem;
    font-weight: 700;
    color: #333333;
}

.detail-related {
    padding-bottom: 0.2rem;
}

.detail-related .goods-grid {
    padding: 0;
}

.detail-desc {
    font-size: 0.28rem;
    line-height: 1.75;
    color: var(--text);
    overflow: hidden;
}

.detail-desc img {
    width: 100% !important;
    height: auto !important;
    margin: 0.1rem 0;
}

.detail-desc p {
    margin: 0.12rem 0;
}

.detail-desc-images {
    margin-top: 0.2rem;
}

.detail-desc-images img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0.1rem 0;
}

.detail-desc table {
    width: 100% !important;
    border-collapse: collapse;
}

.detail-desc iframe,
.detail-desc video {
    width: 100% !important;
    height: auto !important;
}

.detail-panel .goods-grid {
    padding: 0;
}

.detail-actions {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 50;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 7.5rem;
    height: 1.02rem;
    padding: 0.16rem 0.32rem;
    padding-bottom: env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid #f5f5f5;
}

.detail-actions__left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.02rem;
    min-width: 0.7rem;
    height: 0.72rem;
    padding: 0;
    color: #333333;
    font-size: 0.2rem;
}

.detail-action svg {
    width: 0.4rem;
    height: 0.4rem;
    fill: none;
    stroke: #333333;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- DIY 页面 ---------- */
.diy-page {
    padding-bottom: 1.2rem;
}

.exchange-banner {
    margin: 0.2rem;
    padding: 0.4rem 0.3rem;
    border-radius: 0.18rem;
    background: linear-gradient(135deg, #ff7a7a, #fc0202);
    color: #ffffff;
}

.exchange-banner__title {
    font-size: 0.42rem;
    font-weight: 800;
}

.exchange-banner__desc {
    margin-top: 0.08rem;
    font-size: 0.24rem;
    opacity: 0.9;
}

/* ---------- Toast ---------- */
.shop-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 999;
    transform: translate(-50%, -50%);
    max-width: 5.4rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.12rem;
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    font-size: 0.26rem;
    text-align: center;
    line-height: 1.5;
    pointer-events: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 340px) {
    .nav-grid__label,
    .category-grid__label {
        font-size: 0.2rem;
    }
    .goods-card__name {
        font-size: 0.22rem;
    }
}
