:root {
    --site-primary: #e1251b;
    --site-primary-dark: #c81623;
    --site-text: #333;
    --site-text-muted: #999;
    --site-border: #eee;
    --site-bg: #f5f5f5;
}

* { box-sizing: border-box; }

body.site-home {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--site-text);
    background: var(--site-bg);
    -webkit-font-smoothing: antialiased;
}

.site-topbar {
    background: #e3e4e5;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    line-height: 30px;
}

.site-topbar__inner {
    width: min(1620px, 100%);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-topbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.site-topbar__brand {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-topbar__brand:hover {
    color: var(--site-primary);
}

.js-open-register-modal,
.js-open-login-modal {
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

.js-open-register-modal:hover,
.js-open-login-modal:hover {
    color: var(--site-primary);
}

.site-topbar__user .js-open-login-modal {
    color: var(--site-primary);
}

.site-topbar__region {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    white-space: nowrap;
}

.site-topbar__region-icon {
    color: var(--site-primary);
    font-size: 13px;
    line-height: 1;
}

.site-topbar__region-label {
    color: var(--site-primary);
    font-weight: 600;
}

.site-topbar__sep {
    color: #ccc;
    user-select: none;
}

.site-topbar__user {
    white-space: nowrap;
}

.site-topbar__user a {
    color: #666;
    text-decoration: none;
}

.site-topbar__user a:hover {
    color: var(--site-primary);
}

.site-topbar__user-name {
    color: #333;
    font-weight: 600;
}

.site-topbar__user-menu {
    position: relative;
    display: inline-block;
}

.site-topbar__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    outline: none;
}

.site-topbar__user-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffb347 0%, #ff8c1a 55%, #ff6a00 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.site-topbar__user-avatar--sm {
    width: 22px;
    height: 22px;
    font-size: 11px;
    line-height: 22px;
}

.site-topbar__user-avatar--popover {
    width: 52px;
    height: 52px;
    font-size: 22px;
    line-height: 52px;
    margin-bottom: 10px;
}

.site-topbar__user-avatar--img {
    display: block;
    object-fit: cover;
    background: #f5f5f5;
    font-size: 0;
    line-height: 0;
}

.site-topbar__user-trigger:hover .site-topbar__user-name,
.site-topbar__user-menu:hover .site-topbar__user-name,
.site-topbar__user-menu:focus-within .site-topbar__user-name {
    color: var(--site-primary);
}

.site-topbar__user-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 6px;
    z-index: 10001;
}

.site-topbar__user-menu:hover .site-topbar__user-popover,
.site-topbar__user-menu:focus-within .site-topbar__user-popover {
    display: block;
}

.site-topbar__user-popover-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    padding: 16px 20px 14px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-top: 2px solid #ff6b9d;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    line-height: 1.4;
}

.site-topbar__user-popover-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-topbar__user-popover-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.site-topbar__user-popover-actions a {
    color: #666;
    text-decoration: none;
}

.site-topbar__user-popover-actions a:hover {
    color: var(--site-primary);
}

.site-topbar__user-popover-sep {
    color: #ddd;
    font-size: 12px;
    line-height: 1;
}

.site-topbar__user-link {
    color: var(--site-primary);
    text-decoration: none;
}

.site-topbar__user-link:hover {
    color: var(--site-primary-dark);
    text-decoration: underline;
}

.site-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-topbar__right a {
    color: #666;
    text-decoration: none;
}

.site-topbar__right a:hover {
    color: var(--site-primary);
}

.site-topbar__right .site-topbar__cart {
    color: var(--site-primary);
    font-weight: 600;
}

.site-topbar__right .site-topbar__cart:hover {
    color: var(--site-primary-dark);
}

.site-main {
    width: min(1620px, 100%);
    margin: 0 auto;
    padding: 48px 16px 64px;
}

.site-main__card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-main__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.site-main__desc {
    margin: 0 0 24px;
    color: var(--site-text-muted);
    font-size: 14px;
}

.home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.home-links a.home-btn-diy {
    display: inline-block;
    padding: 10px 22px;
    color: #fff;
    background: var(--site-primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.home-links a.home-btn-diy:hover {
    background: var(--site-primary-dark);
    color: #fff;
}

.home-links a.home-btn-jd {
    display: inline-block;
    padding: 10px 22px;
    color: var(--site-primary);
    background: #fff;
    border: 1px solid var(--site-primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.home-links a.home-btn-jd:hover {
    background: #fff1f0;
    color: var(--site-primary-dark);
}

.home-links a.home-link-muted {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.home-links a.home-link-muted:hover {
    color: var(--site-primary);
}

/* 首页头部搜索 */
.site-header {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-bottom: 1px solid #eee;
}

.site-header__inner {
    width: min(1620px, 100%);
    margin: 0 auto;
    padding: 20px 16px 18px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
}

.site-header__brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ff6a4d 0%, var(--site-primary) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 42px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(225, 37, 27, 0.22);
}

.site-header__brand-text {
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.site-header__search-wrap {
    min-width: 0;
}

.site-search {
    display: flex;
    align-items: stretch;
    height: 42px;
    border: 2px solid var(--site-primary);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.site-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
}

.site-search__btn {
    border: none;
    background: var(--site-primary);
    color: #fff;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.site-search__btn:hover {
    background: var(--site-primary-dark);
}

.site-search__hot {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.site-search__hot-label {
    color: #bbb;
}

.site-search__hot-sep {
    margin: 0 8px;
    color: #e8e8e8;
}

.site-search__hot-link {
    color: #666;
    text-decoration: none;
}

.site-search__hot-link:hover {
    color: var(--site-primary);
}

.site-header__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
}

.site-header__action:hover {
    color: var(--site-primary);
    border-color: #ffc9c5;
    background: #fff7f6;
}

.site-header__action--primary {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

.site-header__action--primary:hover {
    background: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
    color: #fff;
}

.site-body {
    width: min(1620px, 100%);
    margin: 0 auto;
    padding: 16px 16px 32px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.site-footer {
    background: #e3e4e5;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.site-footer__inner {
    width: min(1620px, 100%);
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
}

.site-footer__sep {
    color: #999;
}

.site-sidebar {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    overflow: visible;
}

.site-sidebar__title {
    padding: 12px 14px;
    background: linear-gradient(90deg, var(--site-primary) 0%, #ff6a4d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.site-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.site-sidebar__list a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
}

.site-sidebar__list a:hover {
    color: var(--site-primary);
    background: #fff7f6;
}

.site-sidebar__list li.is-active a {
    color: var(--site-primary);
    background: #fff7f6;
    font-weight: 600;
}

/* 大类仅悬停变色，不保留选中高亮 */
.site-sidebar__item--parent > .site-sidebar__parent-link {
    color: #444;
    background: transparent;
    font-weight: 600;
}

.site-sidebar__item--parent.is-active > .site-sidebar__parent-link {
    color: #444;
    background: transparent;
    font-weight: 600;
}

.site-sidebar__item--parent {
    position: relative;
}

.site-sidebar__parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 14px;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    user-select: none;
    transition: color 0.15s, background 0.15s;
}

a.site-sidebar__parent-link {
    text-decoration: none;
    cursor: pointer;
}

.site-sidebar__parent-link:hover {
    color: var(--site-primary);
    background: #fff7f6;
}

.site-sidebar__arrow {
    font-size: 12px;
    color: #bbb;
    transition: transform 0.15s, color 0.15s;
}

.site-sidebar__item--parent:hover > .site-sidebar__parent-link .site-sidebar__arrow {
    color: var(--site-primary);
    transform: rotate(90deg);
}

.site-sidebar__submenu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 252px;
    max-width: 360px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s, border-color 0.15s;
    z-index: 20;
}

.site-sidebar__item--parent:hover .site-sidebar__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    border-color: var(--site-primary);
}

.site-sidebar__item--parent:focus-within .site-sidebar__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.site-sidebar__submenu li {
    min-width: 0;
}

.site-sidebar__submenu a {
    display: block;
    padding: 8px 6px;
    color: #444;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
}

.site-sidebar__submenu a:hover {
    color: var(--site-primary);
    background: #fff7f6;
}

.site-sidebar__submenu li.is-active a {
    color: var(--site-primary);
    background: #fff7f6;
    font-weight: 600;
}

.site-sidebar__required {
    color: var(--site-primary);
    font-weight: 700;
}

.site-sidebar__empty {
    padding: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}

.site-content {
    min-width: 0;
}

.site-hero__card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    padding: 28px 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.site-hero__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #222;
}

.site-hero__desc {
    margin: 0 0 20px;
    color: var(--site-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-hero__btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.site-hero__btn:hover {
    color: var(--site-primary);
    border-color: #ffc9c5;
    background: #fff7f6;
}

.site-hero__btn--primary {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: #fff;
}

.site-hero__btn--primary:hover {
    background: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
    color: #fff;
}

.site-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.site-feature-card {
    display: block;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-feature-card:hover {
    border-color: #ffc9c5;
    box-shadow: 0 4px 14px rgba(225, 37, 27, 0.08);
}

.site-feature-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #222;
}

.site-feature-card span {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.site-feature-card--has-sub {
    display: block;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.site-feature-card--has-sub:hover {
    border-color: #ffc9c4;
    box-shadow: 0 4px 16px rgba(225, 37, 27, 0.08);
}

.site-feature-card__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.site-feature-card__subs a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.site-feature-card__subs a:hover {
    color: var(--site-primary);
    background: #fff7f6;
}

.site-feature-card__solo {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--site-primary);
    text-decoration: none;
}

.site-feature-empty {
    grid-column: 1 / -1;
    padding: 28px 16px;
    text-align: center;
    background: #fff;
    border: 1px dashed #e8e8e8;
    border-radius: 8px;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
}

.site-search-results {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.site-search-results__head {
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
}

.site-subcat-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.site-subcat-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    background: #fafafa;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-subcat-nav__item:hover {
    color: var(--site-primary);
    border-color: #ffc9c5;
    background: #fff7f6;
}

.site-subcat-nav__item.is-active {
    color: #fff;
    border-color: var(--site-primary);
    background: var(--site-primary);
    font-weight: 600;
}

.site-search-results__title {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.site-search-results__count {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.site-search-results__tip {
    margin: 8px 0 0;
    font-size: 12px;
    color: #bbb;
}

.site-search-empty {
    padding: 36px 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
}

.site-search-empty__link {
    display: inline-block;
    margin-top: 12px;
    color: var(--site-primary);
    text-decoration: none;
    font-weight: 600;
}

/* 商品卡片网格（类似电商列表） */
.site-goods-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.site-goods-card {
    min-width: 0;
}

.site-goods-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-goods-card__link:hover {
    border-color: #ffc9c5;
    box-shadow: 0 4px 14px rgba(225, 37, 27, 0.1);
}

.site-goods-card__pic {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-goods-card__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-goods-card__pic-fallback {
    font-size: 32px;
    font-weight: 700;
    color: #ddd;
}

.site-goods-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 4px 2px 0;
    gap: 2px;
}

.site-goods-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #333;
    word-break: break-word;
}

.site-goods-card__link:hover .site-goods-card__title {
    color: var(--site-primary);
}

.site-goods-card__attrs {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-goods-card__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.site-goods-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #ff5000;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-goods-card__price::first-letter {
    font-size: 14px;
    margin-right: 1px;
}

.site-goods-card__stock {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.site-home-all-products {
    grid-column: 1 / -1;
    margin-top: 16px;
    width: 100%;
}

.site-home-all-cat-nav {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
}

.site-home-all-cat-nav__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.site-home-all-cat-nav__track .site-subcat-nav__item {
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.site-subcat-nav__item--all .site-subcat-nav__heart {
    margin-right: 5px;
    color: #ff5000;
    font-size: 18px;
    line-height: 1;
}

.site-subcat-nav__item--all.is-active .site-subcat-nav__heart {
    color: #fff;
}

.site-home-all-products .site-goods-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.site-home-all-products .site-goods-card__stock {
    display: none;
}

.site-search-status {
    padding: 10px 0 14px;
    font-size: 13px;
    color: #999;
    text-align: center;
}

/* 首页三列看板 */
.site-home-board {
    --site-home-card-height: 208px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 427px 220px;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: start;
}

.site-home-board__col--plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    max-width: 300px;
    grid-column: 1;
    grid-row: 1;
}

.site-home-board__col--plans > .site-home-panel--build-plans {
    width: 300px;
    max-width: 300px;
}

.site-home-board__col--notebooks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 2;
    grid-row: 1;
}

.site-home-board__promo {
    grid-column: 3;
    grid-row: 1 / 3;
    min-width: 0;
}

.site-home-promo-card {
    width: 427px;
    height: 427px;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    overflow: hidden;
}

.site-home-promo-card--empty {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.site-home-promo-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.site-home-promo-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.site-home-promo-carousel__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
}

.site-home-promo-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.site-home-promo-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-home-promo-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.site-home-promo-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.site-home-promo-carousel__dot.is-active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.site-home-board__col--user {
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-column: 4;
    grid-row: 1 / 3;
}

.site-home-board__desktop {
    grid-column: 1 / 3;
    grid-row: 2;
    min-width: 0;
}

.site-home-board__desktop > .site-home-panel {
    height: var(--site-home-card-height);
    min-height: var(--site-home-card-height);
    max-height: var(--site-home-card-height);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.site-home-board__desktop > .site-home-panel .site-notebook-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.site-home-board__user-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.site-home-user-card {
    width: 100%;
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    overflow: hidden;
}

.site-home-user-card__empty {
    width: 100%;
    height: 100%;
}

.site-home-user-card__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.site-home-user-card__track::-webkit-scrollbar {
    display: none;
}

.site-home-user-card__item {
    flex: 0 0 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: background 0.15s;
}

.site-home-user-card__item:hover {
    background: #fff7f6;
}

.site-home-user-card__pic {
    flex: 0 0 114px;
    width: 114px;
    height: 114px;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-home-user-card__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-home-user-card__pic-fallback {
    font-size: 24px;
    font-weight: 700;
    color: #ddd;
}

.site-home-user-card__body {
    flex: 1;
    min-width: 0;
    min-height: 114px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 2px;
}

.site-home-user-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.site-home-user-card__item:hover .site-home-user-card__title {
    color: var(--site-primary);
}

.site-home-user-card__price {
    margin-top: auto;
    align-self: flex-end;
    font-size: 15px;
    font-weight: 700;
    color: #ff5000;
    line-height: 1.2;
}

.site-home-board__col--plans > .site-home-panel,
.site-home-board__col--notebooks > .site-home-panel {
    height: var(--site-home-card-height);
    min-height: var(--site-home-card-height);
    max-height: var(--site-home-card-height);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.site-home-board__col--plans > .site-home-panel .site-build-plan-list,
.site-home-board__desktop > .site-home-panel .site-notebook-list,
.site-home-board__col--notebooks > .site-home-panel .site-notebook-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.site-home-board__col {
    min-width: 0;
}

.site-home-panel {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.site-home-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f5f5f5;
    background: linear-gradient(180deg, #fffaf7 0%, #fff 100%);
}

.site-home-panel__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.site-home-panel__more {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.site-home-panel__more:hover {
    color: var(--site-primary);
}

.site-build-plan-list,
.site-notebook-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 520px;
    overflow: auto;
}

.site-build-plan-list__empty,
.site-notebook-list__empty {
    padding: 24px 14px;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    text-align: center;
}

.site-build-plan-list__empty a,
.site-notebook-list__empty a {
    color: var(--site-primary);
    text-decoration: none;
}

.site-build-plan-item {
    border-bottom: 1px solid #f5f5f5;
}

.site-build-plan-item:last-child,
.site-notebook-item:last-child {
    border-bottom: none;
}

.site-build-plan-item__link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.site-build-plan-item__link:hover {
    background: #fff7f6;
}

.site-build-plan-item__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.site-build-plan-item__label {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-build-plan-item__link:hover .site-build-plan-item__label {
    color: var(--site-primary);
}

.site-build-plan-item__desc {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-build-plan-item__price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ff5000;
}

.site-notebook-list {
    padding: 6px 0;
}

.site-notebook-list--grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
    align-content: start;
}

.site-notebook-list--grid-2 .site-notebook-list__empty {
    grid-column: 1 / -1;
}

.site-notebook-list--grid-2 .site-notebook-item {
    border-bottom: none;
    min-width: 0;
}

.site-notebook-list--grid-2 .site-notebook-item__link {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 4px 6px;
    height: 100%;
}

.site-notebook-list--grid-2 .site-notebook-item__pic {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
}

.site-notebook-list--grid-2 .site-notebook-item__pic-fallback {
    font-size: 22px;
}

.site-notebook-list--grid-2 .site-notebook-item__body {
    min-height: 90px;
    flex: 1;
    min-width: 0;
    padding: 2px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
}

.site-notebook-list--grid-2 .site-notebook-item__title {
    font-size: 13px;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.site-notebook-list--grid-2 .site-notebook-item__price {
    margin-top: auto;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
}

.site-notebook-list--grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
    align-content: start;
}

.site-notebook-list--grid-3 .site-notebook-list__empty {
    grid-column: 1 / -1;
}

.site-notebook-list--grid-3 .site-notebook-item {
    border-bottom: none;
    min-width: 0;
}

.site-notebook-list--grid-3 .site-notebook-item__link {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    height: 100%;
}

.site-notebook-list--grid-3 .site-notebook-item__pic {
    flex: 0 0 135px;
    width: 135px;
    height: 135px;
}

.site-notebook-list--grid-3 .site-notebook-item__pic-fallback {
    font-size: 30px;
}

.site-notebook-list--grid-3 .site-notebook-item__body {
    min-height: 135px;
    flex: 1;
    min-width: 0;
    padding: 2px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
}

.site-notebook-list--grid-3 .site-notebook-item__title {
    font-size: 13px;
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.site-notebook-list--grid-3 .site-notebook-item__price {
    margin-top: auto;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
}

.site-notebook-list--notebook-3col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 10px;
    align-content: start;
}

.site-notebook-list--notebook-3col .site-notebook-list__empty {
    grid-column: 1 / -1;
}

.site-notebook-list--notebook-3col .site-notebook-item {
    border-bottom: none;
    min-width: 0;
}

.site-notebook-list--notebook-3col .site-notebook-item__link {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px;
    height: 100%;
    text-align: center;
}

.site-notebook-list--notebook-3col .site-notebook-item__pic {
    position: relative;
    flex: 0 0 auto;
    width: 100px;
    max-width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
}

.site-notebook-list--notebook-3col .site-notebook-item__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-notebook-list--notebook-3col .site-notebook-item__pic-fallback {
    font-size: 24px;
}

.site-notebook-list--notebook-3col .site-notebook-item__price {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #ff5000;
    background: rgba(255, 255, 255, 0.92);
    border-top-left-radius: 6px;
}

.site-notebook-list--notebook-3col .site-notebook-item__body {
    width: 100%;
    min-height: 0;
    flex: 1;
    padding: 0;
    display: block;
}

.site-notebook-list--notebook-3col .site-notebook-item__title {
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-notebook-list--desktop-4col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 2px 10px 4px;
    align-content: start;
}

.site-notebook-list--desktop-4col .site-notebook-list__empty {
    grid-column: 1 / -1;
}

.site-notebook-list--desktop-4col .site-notebook-item {
    border-bottom: none;
    min-width: 0;
}

.site-notebook-list--desktop-4col .site-notebook-item__link {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2px 4px;
    height: 100%;
}

.site-notebook-list--desktop-4col .site-notebook-item__pic {
    position: relative;
    flex: 0 0 auto;
    width: 150px;
    max-width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
}

.site-notebook-list--desktop-4col .site-notebook-item__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-notebook-list--desktop-4col .site-notebook-item__pic-fallback {
    font-size: 30px;
}

.site-notebook-list--desktop-4col .site-notebook-item__price {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #ff5000;
    background: rgba(255, 255, 255, 0.92);
    border-top-left-radius: 6px;
}

.site-notebook-list--row-cards {
    padding: 6px 0;
}

.site-notebook-list--row-cards .site-notebook-item {
    border-bottom: 1px solid #f5f5f5;
}

.site-notebook-list--row-cards .site-notebook-item:last-child {
    border-bottom: none;
}

.site-notebook-list--row-cards .site-notebook-item__link {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
}

.site-notebook-list--row-cards .site-notebook-item__pic {
    flex: 0 0 135px;
    width: 135px;
    height: 135px;
}

.site-notebook-list--row-cards .site-notebook-item__pic-fallback {
    font-size: 30px;
}

.site-notebook-list--row-cards .site-notebook-item__body {
    min-height: 135px;
    flex: 1;
    min-width: 0;
    padding: 2px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
}

.site-notebook-list--row-cards .site-notebook-item__title {
    font-size: 13px;
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.site-notebook-list--row-cards .site-notebook-item__price {
    margin-top: auto;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
}

.site-notebook-list--grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 10px;
    align-content: start;
}

.site-notebook-list--grid-4 .site-notebook-list__empty {
    grid-column: 1 / -1;
}

.site-notebook-list--grid-4 .site-notebook-item {
    border-bottom: none;
    min-width: 0;
}

.site-notebook-list--grid-4 .site-notebook-item__link {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    height: 100%;
}

.site-notebook-list--grid-4 .site-notebook-item__pic {
    flex: 0 0 135px;
    width: 100%;
    max-width: 135px;
    height: 135px;
    margin: 0 auto;
}

.site-notebook-list--grid-4 .site-notebook-item__pic-fallback {
    font-size: 30px;
}

.site-notebook-list--grid-4 .site-notebook-item__body {
    min-height: 0;
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
}

.site-notebook-list--grid-4 .site-notebook-item__title {
    font-size: 13px;
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.site-notebook-list--grid-4 .site-notebook-item__price {
    margin-top: 0;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 14px;
}

.site-notebook-item {
    border-bottom: 1px solid #f5f5f5;
}

.site-notebook-item__link {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.site-notebook-item__link:hover {
    background: #fff7f6;
}

.site-notebook-item__pic {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-notebook-item__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-notebook-item__pic-fallback {
    font-size: 28px;
    font-weight: 700;
    color: #ddd;
}

.site-notebook-item__body {
    flex: 1;
    min-width: 0;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 2px 0 0;
}

.site-notebook-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.site-notebook-item__link:hover .site-notebook-item__title {
    color: var(--site-primary);
}

.site-notebook-item__price {
    margin-top: auto;
    align-self: flex-end;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ff5000;
    line-height: 1.2;
}

.site-user-panel {
    background: #fff7f0;
    border: 1px solid #ffe8d6;
    border-radius: 8px;
    overflow: hidden;
}

.site-user-panel__shop {
    padding: 14px 12px 10px;
}

.site-user-panel__shop-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.site-user-panel__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-user-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-user-panel__avatar-mark {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.site-user-panel__shop-info {
    min-width: 0;
    width: 100%;
    text-align: center;
}

.site-user-panel__greet {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.site-user-panel__shop-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.site-user-panel__shop-links {
    margin-top: 6px;
    font-size: 12px;
    text-align: center;
}

.site-user-panel__shop-links a {
    color: #666;
    text-decoration: none;
}

.site-user-panel__shop-links a:hover {
    color: var(--site-primary);
}

.site-user-panel__sep {
    margin: 0 6px;
    color: #ddd;
}

.site-user-panel__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ffe8d6;
}

.site-user-panel__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    padding: 4px 2px;
    border-radius: 4px;
}

.site-user-panel__stat:hover {
    background: rgba(255, 255, 255, 0.6);
}

.site-user-panel__stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.site-user-panel__stat-label {
    font-size: 12px;
    color: #666;
}

.site-user-panel__shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #ffe8d6;
    background: #fff;
}

.site-user-panel__shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    text-decoration: none;
    color: #444;
}

.site-user-panel__shortcut + .site-user-panel__shortcut {
    border-left: 1px solid #f5f5f5;
}

.site-user-panel__shortcut:hover {
    background: #fff7f6;
    color: var(--site-primary);
}

.site-user-panel__shortcut-icon {
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.site-user-panel__shortcut-icon--orders {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.8'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Cpath d='M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v0a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
}

.site-user-panel__shortcut-icon--fav {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.8'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.site-user-panel__shortcut-label {
    font-size: 13px;
}

.site-user-panel__guest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 12px 12px;
    border-top: 1px solid #ffe8d6;
    background: #fff;
}

.site-user-panel__guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--site-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.site-user-panel__guest-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .site-home-board {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .site-home-board__col--plans {
        width: auto;
        max-width: none;
        grid-column: 1;
        grid-row: 1;
    }

    .site-home-board__col--plans > .site-home-panel--build-plans {
        width: 100%;
        max-width: none;
    }

    .site-home-board__col--notebooks {
        grid-column: 2;
        grid-row: 1;
    }

    .site-home-board__promo {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        justify-content: center;
    }

    .site-home-promo-card {
        width: min(427px, 100%);
        height: auto;
        aspect-ratio: 1;
    }

    .site-home-board__desktop {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .site-home-board__col--user {
        grid-column: 1 / -1;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .site-home-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .site-home-board__col--plans,
    .site-home-board__col--notebooks,
    .site-home-board__promo,
    .site-home-board__desktop,
    .site-home-board__col--user {
        grid-column: 1;
        grid-row: auto;
    }

    .site-home-promo-card {
        width: 100%;
        height: auto;
        max-width: 427px;
        margin: 0 auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 960px) {
    .site-header__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .site-header__actions {
        flex-direction: row;
    }

    .site-body {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        order: 2;
    }

    .site-content {
        order: 1;
    }

    .site-sidebar__list {
        display: block;
    }

    .site-sidebar__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 6px 18px;
        min-width: 0;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .site-sidebar__arrow {
        display: none;
    }
}

@media (max-width: 1100px) {
    .site-goods-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-goods-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-feature-grid {
        grid-template-columns: 1fr;
    }

    .site-goods-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .site-goods-card__link {
        padding: 6px;
    }

    .site-goods-card__title {
        font-size: 14px;
    }

    .site-goods-card__price {
        font-size: 17px;
    }

    .site-sidebar__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 商品详情页 */
.site-product {
    width: min(1600px, 100%);
    margin: 24px auto;
    padding: 0 16px 48px;
}

.site-product__crumb {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.site-product__crumb a {
    color: #666;
    text-decoration: none;
}

.site-product__crumb a:hover {
    color: #1677ff;
}

.site-product__main {
    display: grid;
    grid-template-columns: minmax(780px, 840px) minmax(0, 1fr);
    gap: 24px 32px;
    align-items: start;
}

.site-product__media {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: sticky;
    top: 16px;
}

.site-product__media--solo {
    display: block;
}

.site-product__thumbs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 124px;
    flex-shrink: 0;
}

.site-product__thumbs-viewport {
    flex: 1;
    width: 100%;
    max-height: 680px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.site-product__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-product__thumbs-nav {
    width: 108px;
    height: 36px;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    color: #999;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.site-product__thumbs-nav:hover:not(:disabled) {
    border-color: var(--site-primary);
    color: var(--site-primary);
}

.site-product__thumbs-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.site-product__thumbs-nav--prev {
    margin-bottom: 6px;
}

.site-product__thumbs-nav--next {
    margin-top: 6px;
}

.site-product__hero {
    flex: 1;
    min-width: 0;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    min-height: 680px;
    height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-product__media--solo .site-product__hero {
    width: 100%;
}

.site-product__hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.site-product__hero-fallback {
    font-size: 48px;
    color: #ccc;
}

.site-product__thumb {
    width: 108px;
    height: 108px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.site-product__thumb:hover {
    border-color: rgba(22, 119, 255, 0.45);
}

.site-product__thumb.is-active {
    border-color: var(--site-primary);
}

.site-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-product__cat {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.site-product-jd-title {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
}

.site-product-jd-title__promo {
    min-height: 50px;
    padding: 0;
    background: linear-gradient(90deg, #e1251b 0%, #f04134 100%);
}

.site-product-jd-title__promo:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 0 16px;
    color: #fff;
}

.site-product-jd-title__promo-tag {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.site-product-jd-title__promo-slogan {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: right;
}

.site-product-jd-title__main {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.site-product-jd-title__main--solo {
    border-top: none;
}

.site-product-jd-title__text,
.site-product-jd-title__body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-product-jd-title__head {
    min-width: 0;
}

.site-product-jd-title__badge {
    display: inline-block;
    margin: 0 8px 0 0;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--site-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: 2px;
    white-space: nowrap;
}

.site-product-jd-title__name {
    display: inline;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    word-break: break-word;
}

.site-product-jd-title__price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 2px;
}

.site-product-jd-title__price-current {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--site-primary);
}

.site-product-jd-title__price-market {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.site-product-jd-title__fav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 80px;
    flex-shrink: 0;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-left: 1px solid #eee;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: color 0.15s ease;
}

.site-product-jd-title__fav:hover {
    color: var(--site-primary);
}

.site-product-jd-title__fav.is-active {
    color: var(--site-primary);
}

.site-product-jd-title__fav-icon {
    font-size: 24px;
    line-height: 1;
}

.site-product-jd-title__fav-text {
    font-size: 14px;
    line-height: 1;
}

.site-product__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.35;
}

.site-product__subtitle {
    margin: 0 0 12px;
    color: #666;
    line-height: 1.5;
}

.site-product__price-box {
    background: #fff7f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.site-product__price {
    font-size: 28px;
    color: #e1251b;
    font-weight: 700;
}

.site-product__market-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-top: 4px;
}

.site-product__stock {
    margin: 8px 0;
}

.site-product__summary {
    margin: 16px 0 0;
    color: #444;
    line-height: 1.6;
}

.site-product-buy {
    margin-top: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-product-qty {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.site-product-qty__btn {
    width: 34px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f7f7f7;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-product-qty__btn:hover:not(:disabled) {
    background: #eee;
    color: #333;
}

.site-product-qty__btn:disabled {
    color: #ccc;
    cursor: default;
}

.site-product-qty__input {
    width: 42px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.site-product-buy__btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: var(--site-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.site-product-buy__btn:hover {
    background: var(--site-primary-dark);
    color: #fff;
}

.site-product-buy__btn--buy {
    background: var(--site-primary);
}

.site-product-buy__btn--buy:hover {
    background: var(--site-primary-dark);
    color: #fff;
}

.site-product__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.site-product__actions .site-hero__btn {
    display: inline-block;
    text-decoration: none;
}

.site-product__section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.site-product__section-title {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 600;
    color: #333;
}

.site-product__section--jd-detail {
    background: #fff;
    border-top: none;
    padding-top: 8px;
}

.site-product__section--jd-detail .site-product__section-title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.site-product-jd-detail {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: #fff;
}

/* 核心亮点 */
.site-product-jd-highlights {
    padding: 22px 24px 24px;
    margin-bottom: 4px;
    background: #f8f9fb;
    border: 0;
    border-radius: 8px;
}

.site-product-jd-highlights__title {
    display: none;
}

.site-product-jd-highlights__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 12px;
}

.site-product-jd-highlights__item {
    min-width: 0;
}

.site-product-jd-highlights__value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    word-break: break-word;
}

.site-product-jd-highlights__label {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #999;
}

/* 规格参数表（一行五项） */
.site-product-jd-spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.site-product-jd-spec-table tbody tr {
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.site-product-jd-spec-table tbody tr:first-child {
    border-top: none;
}

.site-product-jd-spec-table th,
.site-product-jd-spec-table td {
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.45;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

.site-product-jd-spec-table th {
    width: 7%;
    font-weight: 600;
    color: #333;
    background: #fff;
}

.site-product-jd-spec-table td {
    width: 13%;
    color: #333;
    background: #fff;
}

.site-product-jd-spec-table__empty {
    visibility: hidden;
}

.site-product-jd-spec-table--packing {
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.site-product-jd-spec-table--packing th {
    width: 7%;
}

.site-product-jd-spec-table--packing td {
    width: 93%;
}

.site-product-detail-html {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.site-product-detail-html__columns {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.site-product-detail-html__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-product-detail-html > * {
    margin: 0;
    min-width: 0;
}

.site-product-detail-html__item {
    min-width: 0;
}

.site-product-detail-html p {
    margin: 0;
}

.site-product-detail-html img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .site-product__main {
        grid-template-columns: 1fr;
    }

    .site-product__media {
        position: static;
        flex-direction: column-reverse;
    }

    .site-product__thumbs-col {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .site-product__thumbs-viewport {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
    }

    .site-product__thumbs {
        flex-direction: row;
        width: max-content;
    }

    .site-product__thumbs-nav {
        width: 24px;
        height: 108px;
        display: none;
    }

    .site-product__thumbs-nav--prev {
        margin: 0;
    }

    .site-product__thumbs-nav--next {
        margin: 0;
    }

    .site-product__thumbs-nav--prev span {
        display: inline-block;
        transform: rotate(-90deg);
    }

    .site-product__thumbs-nav--next span {
        display: inline-block;
        transform: rotate(-90deg);
    }

    .site-product__hero {
        min-height: 680px;
        height: auto;
        aspect-ratio: 1;
    }

    .site-product-jd-highlights__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-product-jd-highlights__value {
        font-size: 16px;
    }

    .site-product-jd-spec-table,
    .site-product-jd-spec-table tbody,
    .site-product-jd-spec-table tr,
    .site-product-jd-spec-table th,
    .site-product-jd-spec-table td {
        display: block;
        width: 100%;
    }

    .site-product-jd-spec-table tr {
        padding: 8px 0;
    }

    .site-product-jd-spec-table th {
        padding: 4px 14px 0;
        color: #333;
        font-weight: 600;
    }

    .site-product-jd-spec-table td {
        padding: 2px 14px 8px;
    }

    .site-product-jd-spec-table__empty {
        display: none;
    }

    .site-product-jd-spec-table--packing td {
        width: 100%;
    }

    .site-product-detail-html__columns {
        flex-direction: column;
    }

    .site-float-bar {
        right: 8px;
        bottom: 64px;
    }

    .site-float-bar__item {
        width: 44px;
        min-height: 44px;
        padding: 6px 2px;
    }

    .site-float-bar__icon svg {
        width: 18px;
        height: 18px;
    }

    .site-float-bar__text {
        font-size: 10px;
    }
}

.site-float-bar {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: 52px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.site-float-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 52px;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-float-bar__item:last-child {
    border-bottom: 0;
}

.site-float-bar__item:hover {
    color: var(--site-primary);
    background: #fff7f6;
}

.site-float-bar__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.site-float-bar__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.site-float-bar__badge {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--site-primary);
}

.site-float-bar__text {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.site-float-bar__item--top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    border-top: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease, max-height 0.2s ease, padding 0.2s ease;
}

.site-float-bar__item--top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 60px;
    min-height: 52px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #f0f0f0;
}
