/*
 * @Project      家具展示网站与小程序接口预留项目
 * @File         components.css
 * @Description  可复用组件样式：公告条、USP 条、Header 导航、Mega 菜单、
 *               Hero Banner 轮播、分类入口网格、商品卡片、Tab 切换、
 *               信任条带、页脚等。所有类名以 fg- 前缀防御性命名。
 * @Author       易商企
 * @Date         2026
 */

/* ============================================================
 * 一、顶部公告条（Announcement Bar）
 *    橙色渐变通栏，文案自动轮播（淡入淡出）。
 * ============================================================ */
.fg-announcement-bar {
    position: relative;
    background: linear-gradient(90deg, var(--fg-primary), var(--fg-primary-dark));
    color: var(--fg-white);
    text-align: center;
    font-size: var(--fg-font-size-xs);
    padding: 10px 0;
    overflow: hidden;
    z-index: 1001;
}

.fg-announcement-bar__inner {
    position: relative;
    height: 16px;
    line-height: 16px;
}

.fg-announcement-item {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.fg-announcement-item.fg-active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
 * 二、USP 条（独特卖点）
 *    白底半透明，5 个等宽图标+文案，表示服务优势。
 * ============================================================ */
.fg-usp-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--fg-border);
    padding: 12px 0;
}

.fg-usp-bar__grid {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
}

.fg-usp-bar__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--fg-space-sm);
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    padding: 0 var(--fg-space-md);
    border-right: 1px solid var(--fg-border);
}

.fg-usp-bar__item:last-child {
    border-right: none;
}

.fg-usp-bar__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--fg-primary);
}

/* ============================================================
 * 三、Header 主导航（Logo + 导航菜单 + 操作图标）
 *    粘性顶栏，Logo、分类导航（含 Mega 菜单）、搜索按钮和
 *    操作图标在同一行排列。搜索条展开后位于 Header 下方。
 * ============================================================ */
.fg-header {
    position: sticky;
    top: 0;
    background: var(--fg-white);
    border-bottom: 1px solid var(--fg-border);
    z-index: 1000;
}

.fg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--fg-header-height);
}

/* Logo 区域 */
.fg-logo {
    display: flex;
    align-items: center;
    gap: var(--fg-space-sm);
    flex-shrink: 0;
}

.fg-logo__text {
    font-size: var(--fg-font-size-xl);
    font-weight: 600;
    color: var(--fg-dark);
    letter-spacing: -0.5px;
}

.fg-logo__text span {
    color: var(--fg-primary);
}

.fg-logo__tagline {
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    font-weight: 300;
}

.fg-logo__img {
    display: block;
    height: 40px;
    width: auto;
}

.fg-logo__uen {
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    white-space: nowrap;
    margin-left: var(--fg-space-md);
    padding-left: var(--fg-space-md);
    border-left: 1px solid var(--fg-border);
    line-height: 1.2;
}

/* 搜索按钮（点击展开搜索条） */
.fg-search-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--fg-text);
    transition: color 0.3s ease;
    font-size: var(--fg-font-size-sm);
    background: none;
    border: none;
    padding: 0;
}

.fg-search-toggle:hover {
    color: var(--fg-primary);
}

.fg-search-toggle svg {
    width: 22px;
    height: 22px;
}

/* 搜索条展开/折叠过渡 */
.fg-search-bar {
    position: relative;
    background: var(--fg-white);
    border-bottom: 1px solid var(--fg-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.fg-search-bar--open {
    max-height: 80px;
}

.fg-search-bar__inner {
    display: flex;
    align-items: center;
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    gap: var(--fg-space-md);
}

.fg-search-bar__input {
    flex: 1;
    padding: 12px 16px;
    background: var(--fg-light);
    border-radius: var(--fg-radius-pill);
    font-size: var(--fg-font-size-base);
    color: var(--fg-text);
    transition: background 0.3s ease;
}

.fg-search-bar__input::placeholder {
    color: var(--fg-muted);
}

.fg-search-bar__input:focus {
    background: #eee;
}

.fg-search-bar__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--fg-muted);
}

.fg-search-bar__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--fg-muted);
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.fg-search-bar__close:hover {
    background: var(--fg-light);
    color: var(--fg-text);
}

.fg-search-bar__close svg {
    width: 20px;
    height: 20px;
}

/* 操作图标组 */
.fg-header-actions {
    display: flex;
    align-items: center;
    gap: var(--fg-space-lg);
}

.fg-header-actions__item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--fg-text);
    transition: color 0.3s ease;
    font-size: var(--fg-font-size-sm);
    position: relative;
}

.fg-header-actions__item:hover {
    color: var(--fg-primary);
}

.fg-header-actions__item svg {
    width: 22px;
    height: 22px;
}

/* 语言切换按钮 */
.fg-lang-switch {
    padding: 6px 12px;
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-pill);
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    transition: all 0.3s ease;
}

.fg-lang-switch:hover {
    border-color: var(--fg-primary);
    color: var(--fg-primary);
}

/* ============================================================
 * 四、分类导航菜单 + Mega 菜单
 *    位于 Header 内同一行（Logo 与操作图标之间），
 *    hover 显示全宽下拉面板。
 * ============================================================ */
.fg-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0;
    padding: 0;
    list-style: none;
}

.fg-nav__item {
    position: relative;
}

.fg-nav__link {
    display: block;
    padding: 10px 18px;
    font-size: var(--fg-font-size-sm);
    color: var(--fg-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Hover 下划线动画 */
.fg-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--fg-primary);
    transition: width 0.3s ease;
}

.fg-nav__item:hover .fg-nav__link {
    color: var(--fg-primary);
}

.fg-nav__item:hover .fg-nav__link::after {
    width: 60%;
}

/* Mega 菜单下拉面板 */
.fg-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--fg-white);
    border: 1px solid var(--fg-border);
    border-radius: var(--fg-radius-md);
    box-shadow: var(--fg-shadow-lg);
    padding: var(--fg-space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 600px;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fg-space-lg);
}

.fg-nav__item:hover .fg-mega-menu {
    opacity: 1;
    visibility: visible;
}

.fg-mega-menu__group h4 {
    font-size: var(--fg-font-size-sm);
    font-weight: 600;
    color: var(--fg-dark);
    margin-bottom: var(--fg-space-sm);
    padding-bottom: var(--fg-space-xs);
    border-bottom: 1px solid var(--fg-border);
}

.fg-mega-menu__group a {
    display: block;
    padding: 6px 0;
    font-size: var(--fg-font-size-sm);
    color: var(--fg-muted);
    transition: color 0.3s ease;
}

.fg-mega-menu__group a:hover {
    color: var(--fg-primary);
}

/* ============================================================
 * 五、Hero Banner 全屏轮播
 *    全宽图片铺满视区，文字叠加于图片底部，底部指示器圆点。
 *    未来可由 /api/banners.php 返回的 JSON 渲染轮播数据。
 * ============================================================ */
.fg-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 6;
    height: auto;
    min-height: 280px;
    max-height: 520px;
}

.fg-hero__track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.fg-hero__slide {
    min-width: 100%;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* 全宽背景图 — 撑满整个 slide */
.fg-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

/* 文字叠加 — 左下角文字区域，黑色渐变遮罩保证文字可读性，四周自然过渡 */
.fg-hero__text {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 64px 64px 72px 64px;
    max-width: 640px;
    background: radial-gradient(ellipse at left bottom, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
}

.fg-hero__subtitle {
    font-size: var(--fg-font-size-sm);
    color: var(--fg-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--fg-space-sm);
}

.fg-hero__title {
    font-size: var(--fg-font-size-3xl);
    font-weight: 600;
    color: var(--fg-white);
    line-height: var(--fg-line-height-tight);
    margin-bottom: var(--fg-space-sm);
}

.fg-hero__desc {
    font-size: var(--fg-font-size-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--fg-line-height-loose);
    margin-bottom: var(--fg-space-lg);
}

/* Banner 指示器圆点 */
.fg-hero__dots {
    position: absolute;
    bottom: 24px;
    right: 40px;
    display: flex;
    gap: var(--fg-space-sm);
    z-index: 2;
}

.fg-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fg-hero__dot.fg-active {
    background: var(--fg-primary);
    width: 28px;
    border-radius: var(--fg-radius-pill);
}

/* —— 未来接口对接占位 —— */
/* fetch('/api/banners.php').then(r => r.json()).then(data => renderSlides(data)); */

/* ============================================================
 * 六、Section 标题
 *    用于首页各区块的标题与副标题。
 * ============================================================ */
.fg-section {
    padding: var(--fg-space-4xl) 0;
}

.fg-section-header {
    text-align: center;
    margin-bottom: var(--fg-space-3xl);
}

.fg-section-header__title {
    font-size: var(--fg-font-size-2xl);
    font-weight: 600;
    color: var(--fg-dark);
    margin-bottom: var(--fg-space-sm);
}

.fg-section-header__sub {
    font-size: var(--fg-font-size-base);
    color: var(--fg-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
 * 七、Tab 切换（商品分类 Tab）
 * ============================================================ */
.fg-tabs {
    display: flex;
    justify-content: center;
    gap: var(--fg-space-xs);
    margin-bottom: var(--fg-space-xl);
    flex-wrap: wrap;
}

.fg-tab {
    padding: 8px 24px;
    font-size: var(--fg-font-size-sm);
    color: var(--fg-muted);
    border-radius: var(--fg-radius-pill);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.fg-tab:hover {
    color: var(--fg-primary);
    background: var(--fg-primary-pale);
}

.fg-tab.fg-active {
    background: var(--fg-primary);
    color: var(--fg-white);
}

/* ============================================================
 * 八、分类入口网格（Category Grid）
 *    方形图片网格，hover 放大效果。
 * ============================================================ */
.fg-category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--fg-space-sm);
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
}

.fg-category-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fg-category-card:hover {
    transform: translateY(-4px);
}

.fg-category-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--fg-radius-md);
    overflow: hidden;
    margin-bottom: var(--fg-space-sm);
    background: var(--fg-light);
}

.fg-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fg-category-card:hover .fg-category-card__image img {
    transform: scale(1.05);
}

.fg-category-card__name {
    font-size: var(--fg-font-size-sm);
    font-weight: 500;
    color: var(--fg-text);
}

/* ============================================================
 * 九、商品卡片网格（Products Grid）
 *    1:1 正方形图片，hover 图片放大 + 卡片上浮 + 阴影。
 * ============================================================ */
.fg-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fg-space-lg);
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
}

/* 商品卡片 */
.fg-product-card {
    position: relative;
    background: var(--fg-white);
    border-radius: var(--fg-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fg-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fg-shadow-md);
}

/* 商品图片容器 */
.fg-product-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--fg-light);
}

.fg-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fg-product-card:hover .fg-product-card__image img {
    transform: scale(1.05);
}

/* 收藏按钮（右上角心形） */
.fg-product-card__fav {
    position: absolute;
    top: var(--fg-space-sm);
    right: var(--fg-space-sm);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: none;
}

.fg-product-card__fav svg {
    width: 18px;
    height: 18px;
    color: var(--fg-muted);
    transition: color 0.3s ease;
}

.fg-product-card__fav:hover svg,
.fg-product-card__fav.fg-active svg {
    color: var(--fg-sale);
}

.fg-product-card__fav.fg-active {
    background: rgba(209, 39, 39, 0.1);
}

/* 商品角标（NEW / SALE / 热销） */
.fg-product-card__badge {
    position: absolute;
    top: var(--fg-space-sm);
    left: var(--fg-space-sm);
    padding: 4px 12px;
    font-size: var(--fg-font-size-xs);
    font-weight: 600;
    border-radius: var(--fg-radius-pill);
    z-index: 2;
    text-transform: uppercase;
}

.fg-product-card__badge--new {
    background: var(--fg-new);
    color: var(--fg-dark);
}

.fg-product-card__badge--sale {
    background: var(--fg-sale);
    color: var(--fg-white);
}

.fg-product-card__badge--hot {
    background: var(--fg-hot);
    color: var(--fg-white);
}

/* 商品信息区域 */
.fg-product-card__info {
    padding: var(--fg-space-md);
}

.fg-product-card__title {
    font-size: var(--fg-font-size-sm);
    font-weight: 500;
    color: var(--fg-text);
    margin-bottom: var(--fg-space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--fg-line-height-base);
}

.fg-product-card__meta {
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    margin-bottom: var(--fg-space-sm);
}

.fg-product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--fg-space-sm);
}

.fg-product-card__price-current {
    font-size: var(--fg-font-size-lg);
    font-weight: 600;
    color: var(--fg-dark);
}

.fg-product-card__price-original {
    font-size: var(--fg-font-size-sm);
    color: var(--fg-muted);
    text-decoration: line-through;
}

.fg-product-card__discount {
    font-size: var(--fg-font-size-xs);
    color: var(--fg-sale);
    font-weight: 600;
}

.fg-product-card__installment {
    font-size: var(--fg-font-size-xs);
    color: var(--fg-muted);
    margin-top: var(--fg-space-xs);
}

/* ============================================================
 * 十、信任条带（Trust Band）
 *    展示品牌背书数据，如全球买家数等。
 * ============================================================ */
.fg-trust-band {
    background: var(--fg-bg-cream);
    padding: var(--fg-space-3xl) 0;
}

.fg-trust-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fg-space-xl);
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
    text-align: center;
}

.fg-trust-band__number {
    font-size: var(--fg-font-size-3xl);
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: var(--fg-space-xs);
}

.fg-trust-band__label {
    font-size: var(--fg-font-size-sm);
    color: var(--fg-muted);
}

/* ============================================================
 * 十一、页脚（Footer）
 *    深色背景，Newsletter + 多列链接 + 版权条。
 * ============================================================ */
.fg-footer {
    background: var(--fg-dark);
    color: rgba(255, 255, 255, 0.8);
}

/* Newsletter 订阅区 */
.fg-footer__newsletter {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--fg-space-3xl) 0;
}

.fg-footer__newsletter-inner {
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fg-space-xl);
}

.fg-footer__newsletter-text h3 {
    font-size: var(--fg-font-size-lg);
    font-weight: 600;
    color: var(--fg-white);
    margin-bottom: var(--fg-space-xs);
}

.fg-footer__newsletter-text p {
    font-size: var(--fg-font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.fg-footer__newsletter-form {
    display: flex;
    gap: var(--fg-space-sm);
    flex-shrink: 0;
}

.fg-footer__newsletter-form input {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--fg-radius-pill);
    color: var(--fg-white);
    min-width: 280px;
    font-size: var(--fg-font-size-sm);
}

.fg-footer__newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fg-footer__newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
}

/* 页脚多列链接 */
.fg-footer__links {
    padding: var(--fg-space-3xl) 0;
}

.fg-footer__links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--fg-space-xl);
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
}

.fg-footer__col h4 {
    font-size: var(--fg-font-size-sm);
    font-weight: 600;
    color: var(--fg-white);
    margin-bottom: var(--fg-space-md);
}

.fg-footer__col a {
    display: block;
    padding: 6px 0;
    font-size: var(--fg-font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.fg-footer__col a:hover {
    color: var(--fg-primary);
}

/* 页脚版权条 */
.fg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--fg-space-lg) 0;
}

.fg-footer__bottom-inner {
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fg-font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.fg-footer__social {
    display: flex;
    gap: var(--fg-space-md);
}

.fg-footer__social a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.fg-footer__social a:hover {
    color: var(--fg-primary);
}

.fg-footer__social svg {
    width: 20px;
    height: 20px;
}

/* ============================================================
 * 十二、面包屑导航（Breadcrumb）
 *    用于分类页和商品详情页。
 * ============================================================ */
.fg-breadcrumb {
    font-size: var(--fg-font-size-sm);
    color: var(--fg-muted);
    max-width: var(--fg-max-width);
    margin: 0 auto;
    padding: var(--fg-space-md) var(--fg-space-lg);
}

.fg-breadcrumb a {
    color: var(--fg-muted);
    transition: color 0.3s ease;
}

.fg-breadcrumb a:hover {
    color: var(--fg-primary);
}

.fg-breadcrumb span {
    color: var(--fg-text);
}

.fg-breadcrumb__sep {
    margin: 0 var(--fg-space-sm);
    color: var(--fg-border);
}

/* ============================================================
 * 十三、分页器（Pagination）
 *    用于分类页商品列表分页。
 * ============================================================ */
.fg-pagination {
    display: flex;
    justify-content: center;
    gap: var(--fg-space-xs);
    padding: var(--fg-space-3xl) 0;
}

.fg-pagination__item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fg-radius-sm);
    font-size: var(--fg-font-size-sm);
    color: var(--fg-text);
    transition: all 0.3s ease;
    cursor: pointer;
}

.fg-pagination__item:hover {
    background: var(--fg-primary-pale);
    color: var(--fg-primary);
}

.fg-pagination__item.fg-active {
    background: var(--fg-primary);
    color: var(--fg-white);
}

/* ============================================================
 * 十四、响应式适配 — 平板端（768px - 1024px）
 * ============================================================ */
@media (max-width: 1024px) {
    /* —— Header 导航 —— */
    .fg-header__inner {
        padding: 0 16px;
        height: 56px;
    }
    .fg-logo__uen {
        display: none;
    }
    .fg-logo__text {
        font-size: var(--fg-font-size-lg);
    }
    .fg-logo__img {
        height: 32px;
    }
    .fg-header-actions {
        gap: var(--fg-space-md);
    }
    .fg-header-actions__item svg {
        width: 20px;
        height: 20px;
    }
    .fg-nav__link {
        padding: 8px 12px;
        font-size: var(--fg-font-size-xs);
    }

    /* —— Mega 菜单 —— */
    .fg-mega-menu {
        min-width: min(520px, calc(100vw - 32px));
        grid-template-columns: repeat(2, 1fr);
        padding: var(--fg-space-lg);
        gap: var(--fg-space-md);
    }

    /* —— Hero Banner —— */
    .fg-hero__text {
        padding: 48px 48px 56px 48px;
        max-width: 520px;
    }

    /* —— Section 标题 —— */
    .fg-section {
        padding: var(--fg-space-3xl) 0;
    }
    .fg-section-header {
        margin-bottom: var(--fg-space-2xl);
    }
    .fg-section-header__title {
        font-size: var(--fg-font-size-xl);
    }

    /* —— Tab 切换 —— */
    .fg-tab {
        padding: 6px 18px;
        font-size: var(--fg-font-size-xs);
    }

    /* —— USP 条 —— */
    .fg-usp-bar {
        padding: 8px 0;
    }
    .fg-usp-bar__item {
        font-size: 11px;
        gap: var(--fg-space-xs);
        padding: 0 var(--fg-space-sm);
    }
    .fg-usp-bar__item svg {
        width: 16px;
        height: 16px;
    }

    /* —— Newsletter 表单 —— */
    .fg-footer__newsletter-form input {
        min-width: 220px;
    }

    /* —— 面包屑 —— */
    .fg-breadcrumb {
        padding: var(--fg-space-sm) var(--fg-space-md);
    }

    /* —— 分页器 —— */
    .fg-pagination {
        padding: var(--fg-space-2xl) 0;
    }
}

/* ============================================================
 * 十五、响应式适配 — 移动端（< 768px）
 * ============================================================ */
@media (max-width: 767px) {
    /* —— Header 导航 —— */
    .fg-header__inner {
        height: 52px;
        padding: 0 12px;
    }
    .fg-logo__text {
        font-size: var(--fg-font-size-base);
    }
    .fg-logo__img {
        height: 28px;
    }
    .fg-header-actions {
        gap: var(--fg-space-sm);
    }
    .fg-header-actions__item svg {
        width: 18px;
        height: 18px;
    }
    .fg-nav__link {
        padding: 10px 12px;
        font-size: var(--fg-font-size-xs);
    }

    /* —— 公告条 —— */
    .fg-announcement-bar {
        padding: 8px 0;
        font-size: 11px;
    }
    .fg-announcement-bar__inner {
        height: 14px;
        line-height: 14px;
    }

    /* —— Hero Banner —— */
    .fg-hero__subtitle {
        font-size: var(--fg-font-size-xs);
        letter-spacing: 1px;
    }

    /* —— Section 标题 —— */
    .fg-section {
        padding: var(--fg-space-2xl) 0;
    }
    .fg-section-header {
        margin-bottom: var(--fg-space-xl);
    }
    .fg-section-header__title {
        font-size: var(--fg-font-size-lg);
    }
    .fg-section-header__sub {
        font-size: var(--fg-font-size-sm);
        max-width: 320px;
    }

    /* —— Tab 切换 —— */
    .fg-tabs {
        gap: 6px;
        margin-bottom: var(--fg-space-lg);
        padding: 0 12px;
    }
    .fg-tab {
        padding: 6px 14px;
        font-size: var(--fg-font-size-xs);
    }

    /* —— 商品卡片 —— */
    .fg-product-card__info {
        padding: var(--fg-space-sm);
    }
    .fg-product-card__title {
        font-size: var(--fg-font-size-xs);
    }
    .fg-product-card__price-current {
        font-size: var(--fg-font-size-base);
    }
    .fg-product-card__fav {
        width: 30px;
        height: 30px;
        top: var(--fg-space-xs);
        right: var(--fg-space-xs);
    }
    .fg-product-card__fav svg {
        width: 16px;
        height: 16px;
    }

    /* —— 分类入口 —— */
    .fg-category-card__name {
        font-size: var(--fg-font-size-xs);
    }

    /* —— 面包屑 —— */
    .fg-breadcrumb {
        padding: var(--fg-space-sm) var(--fg-space-md);
        font-size: var(--fg-font-size-xs);
    }

    /* —— 分页器 —— */
    .fg-pagination {
        padding: var(--fg-space-xl) 0;
        gap: 4px;
    }
    .fg-pagination__item {
        width: 36px;
        height: 36px;
        font-size: var(--fg-font-size-xs);
    }

    /* —— Footer —— */
    .fg-footer__newsletter-inner {
        flex-direction: column;
        text-align: center;
    }
    .fg-footer__newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
    }
    .fg-footer__newsletter-form input {
        min-width: unset;
        width: 100%;
    }
    .fg-footer__newsletter {
        padding: var(--fg-space-2xl) 0;
    }
    .fg-footer__links {
        padding: var(--fg-space-2xl) 0;
    }
    .fg-footer__bottom-inner {
        flex-direction: column;
        gap: var(--fg-space-md);
        text-align: center;
    }

    /* —— 信任条 —— */
    .fg-trust-band {
        padding: var(--fg-space-2xl) 0;
    }

    /* —— 商品描述 Tab —— */
    .fg-product-description {
        padding: 0 var(--fg-space-md) var(--fg-space-2xl);
    }
    .fg-product-description__tab {
        padding: 10px 18px;
        font-size: var(--fg-font-size-xs);
    }
    .fg-product-description__content {
        max-width: 100%;
    }
}

/* ============================================================
 * 十六、响应式适配 — 小屏手机（< 480px）
 *      覆盖极小屏幕场景（iPhone SE、老旧安卓等 320-480px）
 * ============================================================ */
@media (max-width: 480px) {
    /* —— Header 极致紧凑 —— */
    .fg-header__inner {
        padding: 0 10px;
        height: 48px;
    }
    .fg-logo__text {
        display: none;
    }
    .fg-logo__img {
        height: 26px;
    }
    .fg-header-actions {
        gap: 6px;
    }
    .fg-header-actions__item svg {
        width: 16px;
        height: 16px;
    }
    .fg-lang-switch {
        padding: 4px 8px;
        font-size: 10px;
    }
    .fg-nav__link {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* —— 公告条 —— */
    .fg-announcement-bar {
        padding: 6px 0;
        font-size: 10px;
    }
    .fg-announcement-bar__inner {
        height: 12px;
        line-height: 12px;
    }

    /* —— Hero Banner —— */
    .fg-hero__title {
        font-size: var(--fg-font-size-lg);
    }
    .fg-hero__desc {
        font-size: var(--fg-font-size-xs);
    }
    .fg-hero__dots {
        right: 12px;
        bottom: 10px;
        gap: 6px;
    }
    .fg-hero__dot {
        width: 8px;
        height: 8px;
    }
    .fg-hero__dot.fg-active {
        width: 22px;
    }

    /* —— Section 标题 —— */
    .fg-section-header__title {
        font-size: var(--fg-font-size-base);
    }
    .fg-section-header__sub {
        font-size: var(--fg-font-size-xs);
        max-width: 280px;
    }

    /* —— Tab 切换 —— */
    .fg-tab {
        padding: 5px 12px;
        font-size: 11px;
    }

    /* —— 商品卡片更小信息 —— */
    .fg-product-card__info {
        padding: var(--fg-space-xs);
    }
    .fg-product-card__price-current {
        font-size: var(--fg-font-size-sm);
    }
    .fg-product-card__price-original {
        font-size: var(--fg-font-size-xs);
    }

    /* —— 分类入口 —— */
    .fg-category-card {
        min-width: 80px;
    }
    .fg-category-card__name {
        font-size: 11px;
    }

    /* —— 页脚 —— */
    .fg-footer__newsletter {
        padding: var(--fg-space-xl) 0;
    }
    .fg-footer__links {
        padding: var(--fg-space-xl) 0;
    }
    .fg-footer__col h4 {
        font-size: var(--fg-font-size-xs);
    }
    .fg-footer__col a {
        font-size: var(--fg-font-size-xs);
        padding: 4px 0;
    }
    .fg-footer__bottom-inner {
        font-size: var(--fg-font-size-xs);
    }
    .fg-footer__social svg {
        width: 18px;
        height: 18px;
    }

    /* —— 分页器 —— */
    .fg-pagination__item {
        width: 32px;
        height: 32px;
    }
    .fg-pagination {
        gap: 2px;
    }

    /* —— 面包屑 —— */
    .fg-breadcrumb {
        padding: var(--fg-space-xs) var(--fg-space-md);
        font-size: var(--fg-font-size-xs);
    }

    /* —— 搜索条 —— */
    .fg-search-bar__inner {
        padding: 0 12px;
        height: 48px;
    }

    /* —— 商品描述 Tab —— */
    .fg-product-description__tab {
        padding: 8px 14px;
        font-size: 11px;
    }
}