/* ===== 设计令牌（青蓝主色 + 橙红强调） ===== */
:root {
    --sm1-bg: #f2f7fb;
    --sm1-bg-soft: #e8f3f8;
    --sm1-surface: #ffffff;
    --sm1-ink: #152033;
    --sm1-body: #475569;
    --sm1-muted: #64748b;
    --sm1-faint: #94a3b8;
    --sm1-line: #d5e4ef;
    --sm1-line-soft: #e8eef4;
    --sm1-accent: #0e9aa7;
    --sm1-accent-hover: #0b7f8a;
    --sm1-accent-soft: rgba(14, 154, 167, 0.14);
    --sm1-price: #ff5a1f;
    --sm1-cta: #ff5a1f;
    --sm1-cta-hover: #e04a12;
    --sm1-cta-soft: rgba(255, 90, 31, 0.12);
    --sm1-success: #059669;
    --sm1-success-soft: #ecfdf5;
    --sm1-success-border: #a7f3d0;
    --sm1-success-text: #065f46;
    --sm1-danger: #e11d48;
    --sm1-danger-soft: #fff1f2;
    --sm1-danger-border: #fecdd3;
    --sm1-danger-text: #9f1239;
    --sm1-info: #0284c7;
    --sm1-warning: #ea580c;
    --sm1-radius: 14px;
    --sm1-shadow: 0 8px 28px rgba(21, 32, 51, 0.07);
    --sm1-font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sm1-font);
    background: var(--sm1-bg);
    color: var(--sm1-ink);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    margin: 0 0 0.6em;
    color: var(--sm1-ink);
    font-family: inherit;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1, .wp-block-heading:is(h1) {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2, .wp-block-heading:is(h2) {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 750;
}

h3, .wp-block-heading:is(h3) {
    font-size: clamp(1.125rem, 1.8vw, 1.25rem);
    font-weight: 700;
}

h4, .wp-block-heading:is(h4) {
    font-size: 1.0625rem;
    font-weight: 700;
}

h5, .wp-block-heading:is(h5) {
    font-size: 1rem;
    font-weight: 700;
}

h6, .wp-block-heading:is(h6) {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--sm1-muted);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===== 热销横滑 ===== */
.sm1-hot {
    padding: 28px 0 8px;
}

.sm1-hot__panel {
    background: var(--sm1-surface);
    border: 1px solid var(--sm1-line);
    border-radius: var(--sm1-radius);
    padding: 22px 24px;
    box-shadow: var(--sm1-shadow);
}

.sm1-hot__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sm1-hot__eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--sm1-accent);
    text-transform: uppercase;
}

.sm1-hot__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--sm1-ink);
}

.sm1-hot__subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--sm1-muted);
}

.sm1-hot__scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sm1-hot__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 118px;
    padding: 14px 10px 12px;
    border: 1px solid var(--sm1-line);
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
}

.sm1-hot__item:hover {
    border-color: var(--sm1-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
}

.sm1-hot__badge {
    position: absolute;
    top: -7px;
    right: -6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sm1-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.sm1-hot__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.sm1-hot__icon img,
.sm1-hot__icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm1-hot__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
}

.sm1-hot__name {
    width: 100%;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sm1-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm1-hot__price {
    font-size: 12px;
    color: var(--sm1-accent);
    font-weight: 600;
}

.sm1-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--sm1-surface);
    border-radius: var(--sm1-radius);
    color: var(--sm1-muted);
}

/* 面包屑样式见 assets/css/breadcrumb.css */

/* 头部样式见 assets/css/header.css */

/* 用户中心样式见 assets/css/user-center.css */

/* 订单列表 */
.order-item {
    background: var(--sm1-bg-soft);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.order-body {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.order-goods-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-actions {
    text-align: right;
}

/* 表格响应式 */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.responsive-table thead {
    display: table-header-group;
}

.responsive-table tbody {
    display: table-row-group;
}

.responsive-table tr {
    display: table-row;
    border-bottom: 1px solid var(--sm1-line-soft);
}

.responsive-table th,
.responsive-table td {
    display: table-cell;
    padding: 15px;
    text-align: left;
}

/* ===== 热销会员横幅 ===== */
/* 兼容旧热销类名（归档等） */
.hot-goods-banner {
    background: transparent;
    padding: 30px 0;
    margin-bottom: 0;
}

.hot-banner-inner {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hot-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hot-icon {
    font-size: 32px;
    line-height: 1;
}

.hot-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin: 0;
}

.hot-subtitle {
    font-size: 14px;
    color: var(--sm1-muted);
    margin-left: auto;
}

.hot-goods-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd var(--sm1-bg-soft);
}

.hot-goods-scroll::-webkit-scrollbar {
    height: 6px;
}

.hot-goods-scroll::-webkit-scrollbar-track {
    background: var(--sm1-bg-soft);
    border-radius: 10px;
}

.hot-goods-scroll::-webkit-scrollbar-thumb {
    background: var(--sm1-line);
    border-radius: 10px;
}

.hot-goods-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--sm1-faint);
}

.hot-goods-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--sm1-line-soft);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    min-width: 130px;
    flex-shrink: 0;
}

.hot-goods-item:hover {
    border-color: #d0d5dd;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sm1-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hot-goods-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hot-goods-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-placeholder span {
    font-size: 28px;
    font-weight: 700;
    color: #d0d5dd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hot-goods-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--sm1-ink);
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.hot-goods-status {
    font-size: 13px;
    color: var(--sm1-faint);
}

/* ===== 商品网格 ===== */
.goods-section {
    padding: 10px 0 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 40px;
    text-align: center;
}

/* 商品左右布局 */
.goods-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* 左侧分类导航 - 固定样式 */
.category-sidebar,
.category-sidebar-sticky {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sm1-faint) var(--sm1-bg-soft);
}

.category-sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.category-sidebar-sticky::-webkit-scrollbar-track {
    background: var(--sm1-bg-soft);
    border-radius: 10px;
}

.category-sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--sm1-faint);
    border-radius: 10px;
}

.category-sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: var(--sm1-faint);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sm1-bg-soft);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--sm1-muted);
    font-size: 15px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: var(--sm1-bg-soft);
    color: var(--sm1-ink);
}

.category-item.active .category-link {
    background: var(--sm1-accent);
    color: #fff;
}

.category-icon {
    font-size: 18px;
}

.category-name {
    flex: 1;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* 右侧商品区域 */
.goods-main {
    min-height: 500px;
}

/* 分类区域 */
.category-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.category-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sm1-line);
    position: relative;
}

.category-section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--sm1-accent);
}

.category-section-title__icon {
    margin-right: 6px;
}

.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px 16px;
    margin-bottom: 40px;
}

.goods-card {
    background: var(--sm1-surface);
    border: 1px solid var(--sm1-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.goods-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.12);
}

.goods-link {
    display: block;
    padding: 14px 12px 16px;
    text-decoration: none;
    color: inherit;
}

/* 正方形缩略图 */
.goods-thumbnail-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #f8fafc;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 10px;
}

.goods-thumbnail-square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

/* 占位图 */
.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
}

.placeholder-image span {
    font-size: 28px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

/* 商品信息区域 */
.goods-info {
    padding: 0;
    text-align: center;
}

.goods-info .goods-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    color: var(--sm1-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-price-box {
    display: block;
    margin-bottom: 8px;
}

.goods-price-box .price {
    font-size: 13px;
    font-weight: 700;
    color: var(--sm1-accent);
}

.goods-price-box .duration {
    font-size: 12px;
    color: var(--sm1-muted);
}

.goods-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--sm1-accent-soft);
    color: var(--sm1-accent);
    font-size: 12px;
    font-weight: 600;
}

.goods-card:hover .goods-card__cta {
    background: var(--sm1-accent);
    color: #fff;
}

/* 多个会员类型价格展示（详情相关可保留） */
.goods-types-list {
    display: none;
}

.type-item {
    display: block;
    margin-bottom: 4px;
}

.type-item:last-child {
    margin-bottom: 0;
}

.type-name {
    display: none;
}

.type-prices {
    font-size: 12px;
    color: var(--sm1-faint);
    font-weight: 400;
}

/* 旧样式保持兼容 */
.goods-content {
    padding: 20px;
}

.goods-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sm1-ink);
    margin-bottom: 10px;
}

.goods-description {
    font-size: 14px;
    color: var(--sm1-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.goods-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--sm1-ink);
}

.goods-price-unit {
    font-size: 14px;
    color: var(--sm1-faint);
}

.goods-duration {
    font-size: 13px;
    color: var(--sm1-faint);
    background: var(--sm1-bg-soft);
    padding: 5px 10px;
    border-radius: 20px;
}

.goods-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--sm1-ink);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.goods-button:hover {
    background: var(--sm1-accent-hover);
}

/* ===== 单个商品详情 ===== */
.goods-detail {
    padding: 10px 0;
}

.goods-detail-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.goods-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
}

.goods-detail-media {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.goods-detail-image {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--sm1-line-soft);
}

.goods-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.goods-detail-purchase {
    min-width: 0;
}

.goods-features--sidebar {
    margin-top: 0;
}

/* 兼容旧类名 */
.goods-detail-main {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
}

.goods-detail-image-small {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.goods-detail-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.goods-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.goods-title-row h1 {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.goods-category-badge {
    flex-shrink: 0;
}

.goods-category-badge a {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #152033 0%, #0e9aa7 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.goods-category-badge a:hover {
    background: linear-gradient(135deg, #444 0%, #666 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-size: 48px;
    font-weight: 700;
    color: #d0d5dd;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.goods-detail-header,
.goods-detail-purchase {
    flex: 1;
}

.goods-detail-header h1,
.goods-detail-purchase h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sm1-ink);
    line-height: 1.3;
}

.goods-detail-header > h1 {
    margin-bottom: 15px;
}

.goods-detail-info {
    padding: 0 40px 40px 40px;
    border-top: 1px solid var(--sm1-line-soft);
}

.goods-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 20px;
}

.goods-categories-inline {
    margin: 10px 0 15px 0;
    font-size: 13px;
    color: var(--sm1-faint);
}

.goods-categories-inline .cat-label {
    color: var(--sm1-faint);
    margin-right: 5px;
}

.goods-categories-inline a {
    color: var(--sm1-muted);
    transition: color 0.3s ease;
    padding: 4px 10px;
    background: var(--sm1-bg-soft);
    border-radius: 4px;
    margin-right: 5px;
    display: inline-block;
}

.goods-categories-inline a:hover {
    color: var(--sm1-ink);
    background: var(--sm1-bg-soft);
}

.goods-detail-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 30px;
}

.goods-summary {
    font-size: 15px;
    color: var(--sm1-muted);
    line-height: 1.8;
    margin-top: 10px;
}

.goods-detail-info .goods-summary {
    padding: 20px;
    background: var(--sm1-bg-soft);
    border-radius: 8px;
    border-left: 3px solid var(--sm1-accent);
    margin-bottom: 25px;
}

.goods-detail-description {
    font-size: 16px;
    color: var(--sm1-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.goods-features {
    background: var(--sm1-bg-soft);
    padding: 25px;
    border-radius: 8px;
}

.goods-detail-info .goods-features {
    margin-top: 0;
}

.goods-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--sm1-ink);
    margin-bottom: 15px;
}

.goods-features ul {
    list-style: none;
}

.goods-features li {
    padding: 8px 0;
    color: var(--sm1-muted);
    position: relative;
    padding-left: 25px;
}

.goods-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sm1-ink);
    font-weight: 700;
}

.goods-detail-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--sm1-ink);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.goods-detail-button:hover {
    background: var(--sm1-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 会员类型和时长选择 ===== */
.goods-membership-selection {
    margin-top: 25px;
}

.goods-membership-selection h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--sm1-ink);
    margin-bottom: 12px;
}

/* 会员类型按钮 */
.membership-type-selection {
    margin-bottom: 25px;
}

.type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-btn {
    padding: 12px 24px;
    background: var(--sm1-bg-soft);
    border: 2px solid var(--sm1-line);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sm1-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn:hover {
    border-color: var(--sm1-faint);
    background: #fff;
}

.type-btn.active {
    background: var(--sm1-ink);
    border-color: var(--sm1-ink);
    color: #fff;
}

/* 时长选择卡片 */
.duration-selection {
    margin-bottom: 20px;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.duration-card {
    padding: 18px;
    background: var(--sm1-bg-soft);
    border: 2px solid var(--sm1-line);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

button.duration-card {
    width: 100%;
    font: inherit;
    color: inherit;
    appearance: none;
}

.duration-card:hover {
    border-color: var(--sm1-faint);
    transform: translateY(-2px);
}

.duration-card.active {
    background: #fff;
    border-color: var(--sm1-ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.duration-name {
    font-size: 14px;
    color: var(--sm1-muted);
    margin-bottom: 8px;
}

.duration-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 5px;
}

.duration-desc {
    font-size: 12px;
    color: var(--sm1-faint);
    margin-top: 5px;
}

/* 选择信息显示 */
.selected-info {
    padding: 15px 20px;
    background: var(--sm1-bg-soft);
    border-radius: 8px;
    border-left: 4px solid var(--sm1-accent);
    font-size: 15px;
    color: var(--sm1-ink);
}

.selected-info .separator {
    margin: 0 10px;
    color: var(--sm1-faint);
}

.selected-type,
.selected-duration {
    font-weight: 600;
}

.selected-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--sm1-danger);
}

/* ===== 商品详细描述区域 ===== */
.goods-full-description {
    margin-top: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.goods-full-description h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--sm1-line);
}

.description-content {
    font-size: 16px;
    color: var(--sm1-muted);
    line-height: 1.8;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    color: var(--sm1-ink);
    margin-top: 30px;
    margin-bottom: 15px;
}

.description-content h2 {
    font-size: 24px;
    font-weight: 700;
}

.description-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.description-content h4 {
    font-size: 18px;
    font-weight: 600;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.description-content ul,
.description-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.description-content li {
    margin-bottom: 8px;
}

.description-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--sm1-bg-soft);
    border-left: 4px solid var(--sm1-accent);
    font-style: italic;
    color: var(--sm1-muted);
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.description-content table th,
.description-content table td {
    padding: 12px;
    border: 1px solid var(--sm1-line);
    text-align: left;
}

.description-content table th {
    background: var(--sm1-bg-soft);
    font-weight: 600;
    color: var(--sm1-ink);
}

.description-content code {
    background: var(--sm1-bg-soft);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.description-content pre {
    background: var(--sm1-bg-soft);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.description-content pre code {
    background: none;
    padding: 0;
}

/* 页脚样式见 assets/css/footer.css */

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: #fff;
    color: var(--sm1-muted);
    border-radius: 6px;
    border: 1px solid var(--sm1-line);
}

.pagination a:hover {
    background: var(--sm1-ink);
    color: #fff;
    border-color: var(--sm1-ink);
}

.pagination .current {
    background: var(--sm1-ink);
    color: #fff;
    border-color: var(--sm1-ink);
}

/* ===== 购买弹窗样式 ===== */
.purchase-modal {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--sm1-radius);
    max-width: 520px;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow: visible;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.purchase-modal::backdrop {
    background: rgba(21, 32, 51, 0.55);
    backdrop-filter: blur(2px);
}

.purchase-modal:not([open]):not(.is-open) {
    display: none;
}

.modal-content {
    position: relative;
    background: var(--sm1-surface);
    padding: 28px 28px 24px;
    border-radius: var(--sm1-radius);
    border: 1px solid var(--sm1-line);
    box-shadow: var(--sm1-shadow);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.purchase-modal.is-open {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    z-index: 100000;
}

.purchase-modal.is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(21, 32, 51, 0.55);
    z-index: -1;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sm1-bg-soft);
    border: 1px solid var(--sm1-line);
    border-radius: 50%;
    font-size: 22px;
    color: var(--sm1-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.modal-close:hover {
    color: var(--sm1-ink);
    border-color: var(--sm1-accent);
    background: var(--sm1-accent-soft);
}

.sm1-purchase-modal__head {
    margin-bottom: 18px;
    padding-right: 36px;
}

.sm1-purchase-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sm1-accent);
    font-weight: 600;
}

.modal-content h2,
.sm1-purchase-modal__head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sm1-ink);
    margin: 0 0 8px;
}

.sm1-purchase-modal__desc {
    margin: 0;
    color: var(--sm1-muted);
    font-size: 14px;
    line-height: 1.5;
}

.sm1-purchase-modal__login-tip {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--sm1-bg-soft);
    color: var(--sm1-body);
    font-size: 14px;
    line-height: 1.6;
}

.sm1-purchase-modal__recharge-field[hidden] {
    display: none !important;
}

a.sm1-purchase-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.modal-goods-info,
.sm1-purchase-modal__goods {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #e8f8fa 0%, #dff3f6 100%);
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--sm1-line);
    margin-bottom: 20px;
}

.sm1-purchase-modal__goods-label {
    display: block;
    font-size: 12px;
    color: var(--sm1-muted);
    margin-bottom: 4px;
}

.modal-goods-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--sm1-ink);
    margin: 0;
    line-height: 1.4;
}

.modal-goods-price {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--sm1-price);
    white-space: nowrap;
    line-height: 1;
}

#purchase-message,
.sm1-purchase-modal__message {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

#purchase-message[hidden] {
    display: none !important;
}

#purchase-message.success {
    background: var(--sm1-success-soft);
    border: 1px solid var(--sm1-success-border);
    color: var(--sm1-success-text);
}

#purchase-message.error {
    background: var(--sm1-danger-soft);
    border: 1px solid var(--sm1-danger-border);
    color: var(--sm1-danger-text);
}

.modal-content .form-group {
    margin-bottom: 16px;
}

.modal-content label,
.sm1-purchase-modal__field-label {
    display: block;
    font-weight: 600;
    color: var(--sm1-ink);
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-content label .required,
.sm1-purchase-modal__field-label .required {
    color: var(--sm1-danger);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--sm1-line);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: var(--sm1-ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-content input[type="text"]::placeholder,
.modal-content input[type="email"]::placeholder,
.modal-content input[type="tel"]::placeholder {
    color: #b0a598;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="tel"]:focus {
    outline: none;
    border-color: var(--sm1-accent);
    box-shadow: 0 0 0 3px var(--sm1-accent-soft);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.payment-methods__item,
.payment-methods label {
    margin: 0;
    cursor: pointer;
}

.payment-methods input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    padding: 12px 10px;
    border: 1.5px solid var(--sm1-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.payment-option:hover {
    border-color: #9bb4c6;
}

.payment-methods input[type="radio"]:checked + .payment-option,
.payment-methods input[type="radio"]:focus-visible + .payment-option {
    border-color: var(--sm1-accent);
    background: var(--sm1-accent-soft);
    box-shadow: inset 0 0 0 1px var(--sm1-accent);
}

.payment-option__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sm1-bg);
    color: #fff;
    position: relative;
}

.payment-option__icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.payment-option__icon--balance {
    background: linear-gradient(135deg, #2bb8c4, #0e9aa7);
}

.payment-option__icon--alipay {
    background: linear-gradient(135deg, #5aa9ff, #1677ff);
}

.payment-option__icon--wechat {
    background: linear-gradient(135deg, #6dd58c, #07c160);
}

.payment-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option .name {
    font-weight: 600;
    font-size: 13px;
    color: var(--sm1-ink);
}

.payment-option .balance-info {
    font-size: 11px;
    color: var(--sm1-success);
    font-weight: 600;
}

.modal-content button[type="submit"],
.sm1-purchase-modal__submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--sm1-cta);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.modal-content button[type="submit"]:hover,
.sm1-purchase-modal__submit:hover {
    background: var(--sm1-cta-hover);
}

.modal-content button[type="submit"]:active,
.sm1-purchase-modal__submit:active {
    transform: translateY(1px);
}

.modal-content button[type="submit"]:disabled,
.sm1-purchase-modal__submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .goods-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    /* 整体容器紧凑 */
    .container {
        padding: 0 12px;
    }

    .sm1-hot {
        padding: 20px 0 4px;
    }

    .sm1-hot__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sm1-hot__item {
        flex-basis: 104px;
    }
    
    .goods-section {
        padding: 15px 0;
        min-height: auto !important;
    }
    
    .hot-goods-banner {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .hot-banner-inner {
        padding: 15px;
    }
    
    .hot-banner-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hot-icon {
        font-size: 24px;
    }
    
    .hot-title {
        font-size: 18px;
    }
    
    .hot-subtitle {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .hot-goods-scroll {
        gap: 12px;
    }
    
    .hot-goods-item {
        padding: 10px;
        min-width: 100px;
    }
    
    .hot-goods-icon {
        width: 60px;
        height: 60px;
    }
    
    .hot-goods-name {
        font-size: 13px;
    }
    
    .hot-goods-status {
        font-size: 11px;
    }
    
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .goods-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-sidebar,
    .category-sidebar-sticky {
        position: static;
        padding: 15px;
    }
    
    /* 表格移动端 */
    .responsive-table,
    table {
        font-size: 12px;
    }
    
    .responsive-table th,
    .responsive-table td,
    table th,
    table td {
        padding: 6px 4px !important;
        font-size: 12px !important;
    }
    
    .responsive-table thead,
    table thead {
        display: none;
    }
    
    .responsive-table tbody,
    .responsive-table tr,
    table tbody,
    table tr {
        display: block;
    }
    
    .responsive-table tr,
    table tr {
        margin-bottom: 10px;
        background: var(--sm1-bg-soft);
        border-radius: 6px;
        padding: 12px;
        border: none !important;
    }
    
    .responsive-table td,
    table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0 !important;
        border-bottom: 1px solid #eee;
        font-size: 13px !important;
    }
    
    .responsive-table td:last-child,
    table td:last-child {
        border-bottom: none;
    }
    
    .responsive-table td::before,
    table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--sm1-muted);
        font-size: 12px;
    }
    
    /* 订单项移动端 */
    .order-item,
    div[style*="border-left"] {
        padding: 12px !important;
        margin-bottom: 12px !important;
        border-radius: 6px !important;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .order-header h3 {
        font-size: 16px !important;
        margin-bottom: 5px !important;
    }
    
    .order-header p {
        font-size: 12px !important;
    }
    
    .order-header span {
        padding: 4px 12px !important;
        font-size: 12px !important;
    }
    
    .order-body,
    div[style*="background: #fff"][style*="padding: 20px"] {
        padding: 12px !important;
        margin-bottom: 10px !important;
    }
    
    .order-goods-info {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .order-goods-info p {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }
    
    .order-goods-info div:last-child p {
        font-size: 20px !important;
    }
    
    .order-actions {
        text-align: left !important;
        width: 100%;
    }
    
    .order-actions a,
    .order-actions button {
        display: block !important;
        width: 100%;
        margin-bottom: 8px !important;
        margin-right: 0 !important;
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* 充值表单移动端 */
    div[style*="display: flex"][style*="gap: 10px"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    div[style*="display: flex"][style*="gap: 10px"] input {
        width: 100% !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    div[style*="display: flex"][style*="gap: 10px"] button {
        width: 100% !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* 充值区域移动端 */
    div[style*="background: var(--sm1-bg-soft)"][style*="padding: 30px"] {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    div[style*="background: #fff"][style*="border: 1px solid"] {
        padding: 15px !important;
    }
    
    /* 表单输入框移动端 */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 10px !important;
    }
    
    button,
    .button,
    input[type="submit"] {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    /* 空状态提示 */
    div[style*="text-align: center"][style*="padding: 60px"] {
        padding: 30px 15px !important;
    }
    
    div[style*="text-align: center"][style*="padding: 60px"] p {
        font-size: 14px !important;
    }
    
    div[style*="text-align: center"][style*="padding: 60px"] a {
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin-top: 15px !important;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .category-item {
        margin-bottom: 0;
    }
    
    .category-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .category-icon {
        display: none;
    }
    
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
    }
    
    .goods-info .goods-title {
        font-size: 13px;
    }
    
    .goods-price-box .price,
    .type-prices {
        font-size: 11px;
    }

    .goods-card__cta {
        font-size: 11px;
        min-height: 26px;
    }
    
    .goods-detail-layout,
    .goods-detail-main {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }

    .goods-detail-image,
    .goods-detail-image-small {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .goods-title-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .goods-title-row h1 {
        font-size: 22px;
    }
    
    .goods-category-badge a {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .goods-detail-header .goods-summary,
    .goods-detail-purchase .goods-summary {
        font-size: 14px;
        text-align: center;
    }
    
    .goods-detail-info {
        padding: 0 20px 20px 20px;
    }
    
    .goods-detail-button {
        font-size: 15px;
        padding: 14px;
    }
    
    .goods-membership-selection h3 {
        font-size: 15px;
    }
    
    .type-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .duration-card {
        padding: 12px;
    }
    
    .duration-name {
        font-size: 13px;
    }
    
    .duration-price {
        font-size: 16px;
    }
    
    .goods-features {
        padding: 20px;
    }
    
    .goods-features h3 {
        font-size: 16px;
    }
    
    .goods-features li {
        font-size: 14px;
    }
    
    /* 修复商品详情页头部全宽显示 */
    .goods-detail-header,
    .goods-detail-purchase {
        width: 100%;
    }
}

/* ===== 小屏幕移动端优化 (480px以下) ===== */
@media (max-width: 480px) {
    /* 容器内边距 */
    .container {
        padding: 0 12px;
    }
    
    /* 热销会员 - 更紧凑 */
    .hot-goods-banner {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .hot-banner-inner {
        padding: 12px;
        border-radius: 12px;
    }
    
    .hot-banner-header {
        margin-bottom: 12px;
    }
    
    .hot-icon {
        font-size: 20px;
    }
    
    .hot-title {
        font-size: 16px;
    }
    
    .hot-subtitle {
        font-size: 12px;
    }
    
    .hot-goods-scroll {
        gap: 10px;
        padding: 8px 0;
    }
    
    .hot-goods-item {
        padding: 8px;
        min-width: 85px;
        border-radius: 10px;
    }
    
    .hot-goods-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
        border-radius: 10px;
    }
    
    .hot-goods-name {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .hot-badge {
        font-size: 10px;
        padding: 2px 6px;
        top: -6px;
        right: -6px;
    }
    
    /* 商品列表 - 更紧凑 */
    .goods-section {
        padding: 5px 0 40px 0;
    }
    
    .category-section {
        margin-bottom: 40px;
    }
    
    .category-section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .category-section-title::before {
        width: 40px;
    }
    
    .goods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 10px;
    }
    
    .goods-thumbnail-square {
        margin-bottom: 8px;
    }
    
    .goods-thumbnail-square img {
        padding: 6px;
        border-radius: 10px;
    }
    
    .goods-info .goods-title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .placeholder-image span {
        font-size: 28px;
    }
    
    /* 分类侧边栏 */
    .category-sidebar,
    .category-sidebar-sticky {
        padding: 12px;
        border-radius: 10px;
    }
    
    .sidebar-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .category-link {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    /* 商品详情页 - 更紧凑 */
    
    .goods-detail-wrapper {
        border-radius: 10px;
    }
    
    .goods-detail-layout,
    .goods-detail-main {
        padding: 15px;
        gap: 16px;
    }

    .goods-detail-image,
    .goods-detail-image-small {
        max-width: 220px;
    }
    
    .goods-detail-header,
    .goods-detail-purchase {
        width: 100%;
    }
    
    .goods-title-row {
        gap: 8px;
    }
    
    .goods-title-row h1 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .goods-category-badge a {
        font-size: 10px;
        padding: 4px 10px;
        border-radius: 5px;
    }
    
    .goods-detail-header .goods-summary,
    .goods-detail-purchase .goods-summary {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .goods-membership-selection {
        margin-top: 15px;
    }
    
    .goods-membership-selection h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .membership-type-selection {
        margin-bottom: 15px;
    }
    
    .type-buttons {
        gap: 8px;
    }
    
    .type-btn {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    .duration-selection {
        margin-bottom: 15px;
    }
    
    .duration-options {
        gap: 8px;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .duration-card {
        padding: 10px 8px;
        border-radius: 6px;
    }
    
    .duration-name {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .duration-price {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .duration-desc {
        font-size: 10px;
    }
    
    .goods-detail-button {
        font-size: 14px;
        padding: 12px;
        border-radius: 6px;
        margin-top: 15px;
    }
    
    .goods-detail-info {
        padding: 0 15px 15px 15px;
    }
    
    .goods-detail-info h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .goods-detail-info .goods-summary {
        padding: 15px;
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .goods-features {
        padding: 15px;
    }
    
    .goods-features h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .goods-features li {
        font-size: 13px;
        padding: 6px 0;
        padding-left: 20px;
    }
    
    /* 搜索框 */
    .header-search input {
        font-size: 13px;
    }
    
    /* 分页 */
    .pagination {
        gap: 6px;
        margin-top: 30px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 5px;
    }
    
    /* 弹窗 */
    .modal-content {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .modal-goods-info {
        padding: 15px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .modal-goods-name {
        font-size: 14px;
    }
    
    .modal-goods-price {
        font-size: 20px;
    }
    
    .modal-content .form-group {
        margin-bottom: 15px;
    }
    
    .modal-content input[type="text"],
    .modal-content input[type="email"],
    .modal-content input[type="tel"] {
        padding: 10px;
        font-size: 14px;
    }
    
    .modal-content button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
    
}

/* ===== 工具类 ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.sm1-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.sm1-empty-state p {
    font-size: 18px;
    color: var(--sm1-faint);
}

.sm1-related-goods {
    margin-top: 80px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sm1-line);
	border-radius: 50%;
	background: var(--sm1-surface);
	color: var(--sm1-accent);
	box-shadow: 0 6px 20px rgba(21, 32, 51, 0.1);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease,
		transform 0.25s ease,
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--sm1-accent);
	border-color: var(--sm1-accent);
	color: #fff;
	box-shadow: 0 8px 24px rgba(14, 154, 167, 0.28);
}

.back-to-top:focus-visible {
	outline: 2px solid var(--sm1-accent);
	outline-offset: 3px;
}

.back-to-top__icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top {
		transition: none;
	}
}

