/* =========================================================
   DealBreakerHub — 前端全局样式
   设计定位：面向欧美用户、简洁明亮欢快的 Blog 风格
   ========================================================= */

:root {
    /* 品牌色板：明快的橙红 + 清爽湖绿，衬托折扣/欢快氛围 */
    --brand: #ff6b35;
    --brand-dark: #e8531f;
    --brand-soft: #fff0ea;

    --teal: #2ec4b6;
    --teal-dark: #1aa99b;
    --teal-soft: #e8f8f6;

    --ink: #20262e;
    --ink-soft: #5b6472;
    --muted: #8a94a3;

    --bg: #f7f9fb;
    --card: #ffffff;

    --border: #e7ecf1;
    --line: #eef2f6;

    --green: #17a673;
    --green-soft: #e6f7f0;

    --danger: #ff3d5a;
    --discount-grad: linear-gradient(135deg, #ff3d5a, var(--brand));

    --shadow-sm: 0 2px 8px rgba(32, 38, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(32, 38, 46, 0.08);
    --shadow-lg: 0 16px 40px rgba(32, 38, 46, 0.12);

    --radius: 16px;
    --radius-sm: 10px;

    --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Poppins", var(--font-body);
}

/* ---------- 基础 ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--brand-dark);
}

#content {
    min-height: 60vh;
}

/* ---------- 通用按钮 ---------- */
.btn {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    transition: all 0.2s ease;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand), #ff8a5c);
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.28);
}

.btn-brand:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.34);
}

.btn-soft {
    background: var(--brand-soft);
    color: var(--brand);
    border: none;
}

.btn-soft:hover {
    background: #ffe2d6;
    color: var(--brand-dark);
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    border: none;
}

.btn-teal:hover {
    background: var(--teal-dark);
    color: #fff;
}

/* ---------- 徽章 / 标签 ---------- */
.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    background: #ff3d5a;
    background: linear-gradient(135deg, #ff3d5a, #ff6b35);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(255, 61, 90, 0.5);
    letter-spacing: 0.02em;
    border: 2px solid #fff;
    z-index: 3;
}

.badge-platform {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--teal-soft);
    color: var(--teal-dark);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.tag-pill {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    margin: 0 0.4rem 0.4rem 0;
    transition: all 0.18s ease;
}

a.tag-pill:hover,
.tag-pill:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* =========================================================
   Header / 导航栏
   ========================================================= */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--ink);
    text-decoration: none;
}
.site-header .navbar-brand:hover { color: var(--ink); }
.site-header .navbar-brand img {
    height: 38px;
    width: auto;
    display: block;
}
.site-header .brand-text {
    display: inline-block;
    font-size: 1.35rem;
    line-height: 1.1;
    background: linear-gradient(92deg, var(--brand) 0%, #ff8a5c 50%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}
.site-header .brand-text .brand-accent {
    font-weight: 800;
}
.site-header .brand-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    background: linear-gradient(92deg, var(--brand), var(--teal));
    border-radius: 999px;
    opacity: .35;
    transform: scaleX(1);
    transform-origin: left;
    transition: opacity .25s ease;
}
.site-header .navbar-brand:hover .brand-text::after {
    opacity: .85;
}

.site-nav .nav-link {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--ink-soft);
    padding: 0.5rem 0.9rem !important;
    margin: 0 0.15rem;
    border-radius: 999px;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease;
}

.site-nav .nav-link:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.site-nav .nav-link.active {
    color: var(--brand);
}

.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.btn-language {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-language:hover,
.btn-language.show {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand);
}

.lang-dropdown .dropdown-item {
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.45rem 1rem;
    border-radius: 8px;
}

.lang-dropdown .dropdown-item:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.lang-dropdown .dropdown-item.active,
.lang-dropdown .dropdown-item:active {
    background: var(--brand);
    color: #fff;
}

.site-header .navbar-toggler {
    border: none;
    color: var(--ink);
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: #16202b;
    color: #aeb9c6;
    margin-top: 4rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #aeb9c6;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: #fff;
}
.footer-brand .brand-text-footer {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    background: linear-gradient(92deg, #fff 0%, #e8f2ff 60%, #bfe8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-brand:hover .brand-text-footer {
    filter: brightness(1.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aeb9c6;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--brand);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 0;
    color: #7f8a96;
    font-size: 0.9rem;
}

/* =========================================================
   Hero（首页）
   ========================================================= */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 107, 53, 0.18), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(46, 196, 182, 0.2), transparent 45%),
        linear-gradient(135deg, #fff6f1, #f0fbfa 55%, #ffffff);
    padding: 4rem 0 3.5rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--teal-dark);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    margin: 1.1rem 0 0.9rem;
}

.hero h1 .accent {
    color: var(--brand);
}

.hero p {
    color: var(--ink-soft);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto 1.6rem;
}

/* Section 标题 */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-size: 1.5rem;
    margin: 0;
}

.section-head .section-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================================
   商品卡片（Blog 风格）
   ========================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.4);
}

.product-card__img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f4f6f9, #eceff4);
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.06);
}

.product-card__noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-card__body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.45rem;
}

.product-card__cat {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a {
    color: var(--ink);
}

.product-card__title a:hover {
    color: var(--brand);
}

.product-card__excerpt {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__tags {
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    border-top: 1px dashed var(--line);
    padding-top: 0.8rem;
}

.product-card__foot .btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
}

.price-current {
    color: var(--brand);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    display: block;
    line-height: 1.2;
}

.price-original {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: line-through;
}

.price-save {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--green);
    background: var(--green-soft);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
}

/* 分类标签条 */
.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.2rem;
}

/* =========================================================
   搜索结果空状态
   ========================================================= */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.empty-state h3 {
    margin-bottom: 0.4rem;
}

/* =========================================================
   搜索表单
   ========================================================= */
.search-bar {
    display: flex;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}

.search-bar .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
}

.search-bar .btn {
    flex-shrink: 0;
    padding: 0.55rem 1.4rem;
}

/* 带分类筛选的搜索栏：加宽以容纳分类下拉 */
.search-bar--wide {
    max-width: 760px;
}

.search-bar .form-select {
    flex: 0 0 auto;
    width: auto;
    max-width: 220px;
    border: none;
    border-right: 1px solid var(--border);
    border-radius: 999px 0 0 999px;
    background-color: transparent;
    box-shadow: none;
    font-weight: 500;
    padding-left: 1.1rem;
    cursor: pointer;
}

.search-bar .form-select:focus {
    box-shadow: none;
    border-color: var(--border);
}

@media (max-width: 575.98px) {
    .search-bar--wide {
        max-width: 100%;
    }

    .search-bar .form-select {
        max-width: 132px;
        padding-left: 0.75rem;
    }
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
    justify-content: center;
    gap: 0.3rem;
    margin-top: 2.5rem !important;
}

.pagination .page-item .page-link {
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-weight: 600;
    border-radius: 999px !important;
    min-width: 2.2rem;
    text-align: center;
    margin: 0;
    transition: all 0.18s ease;
}

.pagination .page-item .page-link:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pagination .page-item.active .page-link,
.pagination .page-item.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled {
    color: #c3cbd6;
    pointer-events: none;
    background: transparent;
    border-color: var(--border);
}

/* =========================================================
   商品详情页
   ========================================================= */
.detail-hero {
    background: linear-gradient(135deg, #fff7f2, #f1fcfb);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
    margin-bottom: 2.5rem;
}

.breadcrumb-custom {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.breadcrumb-custom a {
    color: var(--muted);
}

.breadcrumb-custom a:hover {
    color: var(--brand);
}

.detail-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0.6rem 0 0.4rem;
}

.detail-meta {
    color: var(--muted);
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.gallery-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-main img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: #fff;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.gallery-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 0;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.gallery-thumbnail:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.gallery-thumbnail.active {
    border-color: var(--brand);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}

.price-panel .price-current {
    font-size: 2rem;
}

.price-panel .save-line {
    color: var(--green);
    background: var(--green-soft);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.detail-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
}

.detail-stat:last-child {
    border-bottom: none;
}

.detail-stat strong {
    color: var(--ink);
}

.section-block {
    margin-top: 0;
}

.section-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-block h3::before {
    content: "";
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: var(--brand);
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.pros-box,
.cons-box {
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    white-space: normal;
}

.pros-box {
    background: var(--green-soft);
    color: #0b7a4a;
}

.cons-box {
    background: #fff0ef;
    color: #cf1322;
}

.pros-box h4,
.cons-box h4 {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
}

.detail-description {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    white-space: normal;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

.alternative-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem;
    transition: all 0.18s ease;
}

.alternative-item:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.alternative-item img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.alternative-item .alt-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alternative-item .alt-price {
    color: var(--brand);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* =========================================================
   关于 / 联系 / 404 页面
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, var(--brand-soft), var(--teal-soft));
    padding: 3.5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
}

.page-hero p {
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0.6rem auto 0;
    font-size: 1.05rem;
}

.about-text,
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.about-text p {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px dashed var(--line);
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row .contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--brand-soft);
    color: var(--brand);
}

.contact-row strong {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-row .contact-value {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 600;
    word-break: break-word;
}

.error-404 {
    text-align: center;
    padding: 5rem 1rem;
}

.error-404 .code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 16vw, 10rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-404 h2 {
    font-size: 1.6rem;
    margin: 1rem 0 0.5rem;
}

.error-404 p {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 1.6rem;
}

/* =========================================================
   响应式微调
   ========================================================= */
@media (max-width: 767.98px) {
    .site-header .collapse.navbar-collapse {
        background: #fff;
        border-radius: var(--radius-sm);
        padding: 0.8rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--line);
    }

    .site-nav {
        margin: 0 !important;
    }

    .site-nav .nav-link {
        padding: 0.6rem 0.9rem !important;
    }

    .lang-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid var(--line);
        max-height: 260px;
        overflow-y: auto;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .price-panel {
        position: static;
    }
}

/* ---------- Back to Top ---------- */
.to-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease;
    z-index: 1050;
}
.to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.to-top-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}
.to-top-btn:active {
    transform: translateY(0);
}
@media (max-width: 575.98px) {
    .to-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* ---------- 版权声明（图片/商品信息） ---------- */
.copyright-notice-bar {
    background: var(--brand-soft);
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.55;
}

.copyright-notice-bar .container {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.copyright-notice-bar p {
    margin: 0;
}

.copyright-notice-bar strong {
    color: var(--ink);
}

.copyright-notice-bar .copyright-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--brand);
}

.copyright-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.85rem;
    margin-bottom: 0;
    padding: 0.7rem 0.85rem;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.copyright-notice .copyright-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--muted);
}
