/* ===== Premium 大气商城模板 =====
   主色：深邃藏青 #0F172A
   点缀：香槟金 #D4AF37
   风格：大留白 · 高级感 · 精致细节
*/

:root {
    --pm-primary: #0F172A;
    --pm-primary-light: #1E293B;
    --pm-gold: #D4AF37;
    --pm-gold-light: #E8C872;
    --pm-gold-dark: #B8941F;
    --pm-text: #1a1a2e;
    --pm-text-secondary: #475569;
    --pm-text-muted: #94A3B8;
    --pm-border: #E2E8F0;
    --pm-border-light: #F1F5F9;
    --pm-bg: #F8FAFC;
    --pm-surface: #FFFFFF;
    --pm-radius-sm: 8px;
    --pm-radius: 12px;
    --pm-radius-lg: 16px;
    --pm-radius-xl: 24px;
    --pm-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
    --pm-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --pm-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --pm-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --pm-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #E8C872 50%, #D4AF37 100%);
    --pm-navy-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --pm-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-home {
    background: var(--pm-bg);
    padding-bottom: 4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--pm-text);
}

/* ===== 容器 ===== */
.pm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== 通用区块 ===== */
.pm-section {
    padding: 3rem 0;
}

.pm-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.pm-section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pm-section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pm-gold);
}

.pm-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pm-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.pm-section-title i {
    color: var(--pm-gold);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.pm-section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pm-text-secondary);
    text-decoration: none;
    transition: all 0.25s var(--pm-ease);
    padding: 0.5rem 0.75rem;
    border-radius: var(--pm-radius-sm);
}

.pm-section-more:hover {
    color: var(--pm-primary);
    background: var(--pm-border-light);
    transform: translateX(2px);
}

.pm-section-more i {
    font-size: 0.8rem;
    transition: transform 0.25s var(--pm-ease);
}

.pm-section-more:hover i {
    transform: translateX(3px);
}

.pm-section-head-center {
    text-align: center;
    justify-content: center;
}

.pm-section-head-center .pm-section-title-wrap {
    align-items: center;
}

/* ===== Hero + 幻灯片 组合区域 ===== */
.pm-hero-slider {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

/* 左侧分类菜单 — 浮在幻灯片上方 */
.pm-hero-slider .pm-cat-nav {
    position: absolute;
    left: max(0px, calc(50% - 640px));
    top: 20px;
    z-index: 20;
    width: 240px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--pm-radius-lg);
    overflow: visible;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

@media (max-width: 1199.98px) {
    .pm-hero-slider .pm-cat-nav {
        left: 12px;
        width: 220px;
    }
}

/* 分类导航标题 */
.pm-cat-nav-title {
    padding: 1rem 1.25rem;
    background: var(--pm-navy-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: var(--pm-radius-lg) var(--pm-radius-lg) 0 0;
}

.pm-cat-nav-title i {
    color: var(--pm-gold-light);
}

.pm-cat-nav-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.pm-cat-nav-item {
    position: relative;
}

.pm-cat-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--pm-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s var(--pm-ease);
    position: relative;
}

.pm-cat-nav-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--pm-gold-gradient);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s var(--pm-ease);
}

.pm-cat-nav-list li a:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
    color: var(--pm-primary);
    padding-left: 1.5rem;
}

.pm-cat-nav-list li a:hover::before {
    height: 24px;
}

.pm-cat-nav-list li a i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--pm-gold);
}

.pm-cat-nav-list li a span {
    flex: 1;
    font-weight: 500;
}

.pm-cat-arrow {
    font-size: 0.7rem;
    color: var(--pm-text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s var(--pm-ease);
}

.pm-cat-nav-list li a:hover .pm-cat-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--pm-gold);
}

/* ===== 分类 Mega Menu 弹窗 ===== */
.pm-cat-popup {
    position: absolute;
    left: calc(100% - 1px);
    top: 0;
    min-width: 400px;
    max-width: 620px;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-lg);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
}

.pm-cat-popup::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 24px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid var(--pm-border);
    border-bottom: 1px solid var(--pm-border);
    transform: rotate(45deg);
}

.pm-cat-nav-item.has-sub:hover > .pm-cat-popup,
.pm-cat-nav-item.has-sub:focus-within > .pm-cat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.pm-cat-popup-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem 1.75rem;
}

.pm-cat-popup-col {
    min-width: 0;
}

.pm-cat-popup-title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pm-navy-gradient);
}

.pm-cat-popup-title a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pm-primary);
    text-decoration: none;
    transition: color 0.2s var(--pm-ease);
}

.pm-cat-popup-title a:hover {
    color: var(--pm-gold-dark);
}

.pm-cat-popup-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pm-cat-popup-sublist li a {
    display: block;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    color: var(--pm-text-secondary);
    text-decoration: none;
    border-radius: var(--pm-radius-sm);
    transition: all 0.2s var(--pm-ease);
    line-height: 1.5;
    position: relative;
}

.pm-cat-popup-sublist li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--pm-gold-gradient);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.2s var(--pm-ease);
}

.pm-cat-popup-sublist li a:hover {
    color: var(--pm-gold-dark);
    background: rgba(212, 175, 55, 0.08);
    padding-left: 0.9rem;
}

.pm-cat-popup-sublist li a:hover::before {
    height: 14px;
}

.pm-cat-popup-empty .pm-cat-popup-sublist {
    gap: 0;
}

.pm-cat-popup-empty .pm-cat-popup-sublist li a {
    color: var(--pm-gold-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pm-cat-popup-empty .pm-cat-popup-sublist li a::before {
    display: none;
}

.pm-cat-popup-empty .pm-cat-popup-sublist li a:hover {
    background: rgba(212, 175, 55, 0.08);
}

.pm-cat-popup-empty .pm-cat-popup-sublist li a i {
    font-size: 0.7rem;
    transition: transform 0.2s var(--pm-ease);
}

.pm-cat-popup-empty .pm-cat-popup-sublist li a:hover i {
    transform: translateX(3px);
}

/* ===== 全屏幻灯片广告 ===== */
.pm-hero-slider .pm-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--pm-primary);
}

.pm-slider-empty {
    min-height: 300px;
}

.pm-slider-track {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.pm-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.pm-slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.pm-slider-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.pm-slider-img,
.pm-slider-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-slider-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.3) 50%, rgba(15, 23, 42, 0.15) 100%);
    pointer-events: none;
}

.pm-slider-content {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 560px;
    z-index: 2;
    color: #fff;
}

.pm-slider-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--pm-gold-gradient);
    color: var(--pm-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.pm-slider-tag i {
    font-size: 0.7rem;
}

.pm-slider-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.pm-slider-title em {
    font-style: normal;
    background: var(--pm-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-slider-desc {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.pm-slider-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--pm-gold-gradient);
    color: var(--pm-primary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--pm-ease);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.pm-slider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
}

.pm-slider-btn i {
    transition: transform 0.3s var(--pm-ease);
}

.pm-slider-btn:hover i {
    transform: translateX(4px);
}

.pm-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s var(--pm-ease);
}

.pm-slider-arrow:hover {
    background: var(--pm-gold-gradient);
    color: var(--pm-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.pm-slider-prev {
    left: 1.5rem;
}

.pm-slider-next {
    right: 1.5rem;
}

.pm-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.pm-slider-dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--pm-ease);
    padding: 0;
}

.pm-slider-dot.active {
    background: var(--pm-gold-gradient);
    width: 48px;
    height: 4px;
}

.pm-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.pm-slider-dot.active:hover {
    background: var(--pm-gold-gradient);
}

.pm-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--pm-gold-gradient);
    width: 0;
    z-index: 11;
    transition: width 0.1s linear;
}

.pm-slider-progress.playing {
    animation: pmSliderProgress 5s linear forwards;
}

@keyframes pmSliderProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== Hero 主内容 - 已移除，保留占位供兼容 ===== */
.pm-hero-main, .pm-hero-placeholder,
.pm-hero-banner, .pm-hero-grid, .pm-hero-card,
.pm-hero-banner-img, .pm-hero-banner-content,
.pm-hero-tag, .pm-hero-btn,
.pm-hero-card-text, .pm-hero-card-icon { display: none !important; }

/* ===== 服务承诺条 ===== */
.pm-trust {
    padding: 2rem 0;
    background: var(--pm-surface);
    border-bottom: 1px solid var(--pm-border-light);
}

.pm-trust-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.pm-trust-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.pm-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--pm-gold);
    flex-shrink: 0;
    transition: all 0.3s var(--pm-ease);
}

.pm-trust-item:hover .pm-trust-icon {
    background: var(--pm-gold-gradient);
    color: #fff;
    transform: scale(1.1);
}

.pm-trust-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pm-text);
    margin-bottom: 0.15rem;
}

.pm-trust-text span {
    font-size: 0.75rem;
    color: var(--pm-text-muted);
}

/* ===== 精选商品区 ===== */
.pm-featured {
    background: var(--pm-bg);
}

.pm-featured-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.pm-featured-big {
    position: relative;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    background: var(--pm-surface);
    box-shadow: var(--pm-shadow-sm);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.35s var(--pm-ease);
    border: 1px solid var(--pm-border-light);
}

.pm-featured-big:hover {
    transform: translateY(-6px);
    box-shadow: var(--pm-shadow-lg);
}

.pm-featured-big-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--pm-border-light);
    overflow: hidden;
}

.pm-featured-big-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--pm-ease);
}

.pm-featured-big:hover .pm-featured-big-img img {
    transform: scale(1.08);
}

.pm-featured-big-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--pm-gold-gradient);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.pm-featured-big-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-featured-big-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pm-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.pm-featured-big-info p {
    font-size: 0.875rem;
    color: var(--pm-text-secondary);
    margin: 0 0 1rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-featured-big-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.pm-featured-big-price .pm-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pm-primary);
}

.pm-featured-big-price .pm-price-current span {
    font-size: 0.875rem;
    font-weight: 600;
}

.pm-featured-big-price .pm-price-original {
    font-size: 0.875rem;
    color: var(--pm-text-muted);
    text-decoration: line-through;
}

.pm-featured-grid-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
}

.pm-featured-grid-right .pm-product-card {
    background: var(--pm-surface);
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow-sm);
    text-decoration: none;
    transition: all 0.3s var(--pm-ease);
    border: 1px solid var(--pm-border-light);
    display: flex;
    flex-direction: column;
}

.pm-featured-grid-right .pm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-md);
    border-color: var(--pm-gold);
}

.pm-featured-grid-right .pm-product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--pm-border-light);
    overflow: hidden;
}

.pm-featured-grid-right .pm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pm-ease);
}

.pm-featured-grid-right .pm-product-card:hover .pm-product-img img {
    transform: scale(1.06);
}

.pm-featured-grid-right .pm-product-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.pm-featured-grid-right .pm-product-info {
    padding: 0.625rem 0.75rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-featured-grid-right .pm-product-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pm-text);
    margin: 0 0 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.15em;
}

.pm-featured-grid-right .pm-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-top: auto;
}

.pm-featured-grid-right .pm-price-now {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pm-primary);
}

.pm-featured-grid-right .pm-price-old {
    font-size: 0.7rem;
    color: var(--pm-text-muted);
    text-decoration: line-through;
}

.pm-featured-grid-right .pm-tag-rec {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
}

.pm-featured-grid-right .pm-tag-sale {
    background: var(--pm-gold-gradient);
    color: #1a1a2e;
}

/* ===== 商品卡片 ===== */
.pm-product-card {
    position: relative;
    background: var(--pm-surface);
    border-radius: var(--pm-radius);
    overflow: hidden;
    box-shadow: var(--pm-shadow-sm);
    text-decoration: none;
    transition: all 0.3s var(--pm-ease);
    border: 1px solid var(--pm-border-light);
    display: flex;
    flex-direction: column;
}

.pm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-md);
    border-color: var(--pm-border);
}

.pm-product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--pm-border-light);
    overflow: hidden;
}

.pm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pm-ease);
}

.pm-product-card:hover .pm-product-img img {
    transform: scale(1.06);
}

.pm-product-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.pm-tag-hot {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
}

.pm-tag-new {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
}

.pm-tag-sale {
    background: var(--pm-gold-gradient);
    color: #1a1a2e;
}

.pm-tag-rec {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
}

.pm-product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pm-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: color 0.2s var(--pm-ease);
}

.pm-product-card:hover .pm-product-name {
    color: var(--pm-primary);
}

.pm-product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.pm-product-price .pm-price-now {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pm-primary);
}

.pm-product-price .pm-price-now::before {
    content: '¥';
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 1px;
}

.pm-product-price .pm-price-old {
    font-size: 0.75rem;
    color: var(--pm-text-muted);
    text-decoration: line-through;
}

/* ===== 限时优惠区 ===== */
.pm-promo {
    background: var(--pm-surface);
    border-radius: var(--pm-radius-xl);
    margin: 0 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--pm-shadow-sm);
    border: 1px solid var(--pm-border-light);
}

.pm-promo .pm-section-head {
    margin-bottom: 1.5rem;
}

.pm-promo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pm-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pm-countdown-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pm-text-secondary);
}

.pm-countdown-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 0.5rem;
    background: var(--pm-navy-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
}

.pm-countdown-sep {
    color: var(--pm-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.pm-flash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pm-flash-card {
    position: relative;
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s var(--pm-ease);
    border: 1px solid var(--pm-border-light);
}

.pm-flash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-md);
    border-color: var(--pm-border);
}

.pm-flash-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--pm-surface);
    overflow: hidden;
}

.pm-flash-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pm-ease);
}

.pm-flash-card:hover .pm-flash-img img {
    transform: scale(1.06);
}

.pm-flash-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 100px;
}

.pm-flash-info {
    padding: 1rem;
}

.pm-flash-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pm-text);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.pm-flash-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.pm-flash-price .pm-flash-price-now {
    font-size: 1.25rem;
    font-weight: 800;
    color: #EF4444;
}

.pm-flash-price .pm-flash-price-now::before {
    content: '¥';
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1px;
}

.pm-flash-price del {
    font-size: 0.75rem;
    color: var(--pm-text-muted);
}

/* ===== 分类商品区 ===== */
.pm-cat-section {
    padding: 3rem 0;
}

.pm-cat-section.pm-cat-alt {
    background: var(--pm-surface);
}

.pm-cat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.pm-cat-banner {
    position: relative;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cat-color, #0F2D6B), var(--pm-primary-light));
    transition: all 0.35s var(--pm-ease);
}

.pm-cat-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.pm-cat-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
    color: #fff;
}

.pm-cat-banner-text {
    position: relative;
    z-index: 1;
}

.pm-cat-banner-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.pm-cat-banner-text p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.pm-cat-banner-text span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--pm-ease);
}

.pm-cat-banner:hover .pm-cat-banner-text span {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.pm-cat-banner-text i {
    transition: transform 0.3s var(--pm-ease);
}

.pm-cat-banner:hover .pm-cat-banner-text i {
    transform: translateX(3px);
}

.pm-cat-banner-img {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 70%;
    height: 55%;
    object-fit: contain;
    opacity: 0.9;
    z-index: 0;
    transition: transform 0.5s var(--pm-ease);
}

.pm-cat-banner:hover .pm-cat-banner-img {
    transform: scale(1.1) rotate(-3deg);
}

.pm-cat-tabs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.pm-cat-tab {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pm-text-secondary);
    background: var(--pm-bg);
    border: 1px solid var(--pm-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s var(--pm-ease);
    white-space: nowrap;
}

.pm-cat-tab:hover {
    color: var(--pm-primary);
    border-color: var(--pm-gold);
    background: rgba(212, 175, 55, 0.08);
}

.pm-cat-tab.active {
    color: var(--pm-gold-dark);
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--pm-gold);
    font-weight: 600;
}

.pm-cat-tab-count {
    color: var(--pm-text-muted);
    font-weight: 400;
    font-size: 0.7rem;
}

.pm-cat-tab.active .pm-cat-tab-count {
    color: var(--pm-gold-dark);
}

.pm-cat-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    transition: opacity 0.3s var(--pm-ease);
}

.pm-cat-products.pm-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.pm-cat-products.pm-loading::after {
    content: '\F4F0';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pm-surface);
    border-radius: 50%;
    box-shadow: var(--pm-shadow);
    color: var(--pm-gold);
    font-size: 1.2rem;
    animation: pm-spin 0.8s linear infinite;
}

@keyframes pm-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pm-cat-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pm-text-muted);
}

.pm-cat-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.pm-cat-empty p {
    font-size: 0.9rem;
    margin: 0;
}

.pm-product-img-fallback {
    position: absolute;
    inset: 0;
    background: var(--pm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-text-muted);
    font-size: 2rem;
}

/* ===== 新闻资讯 ===== */
.pm-news-section {
    background: var(--pm-surface);
}

.pm-news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

/* 头条新闻大卡片 */
.pm-news-featured {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--pm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pm-border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--pm-ease);
    position: relative;
}

.pm-news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-lg);
    border-color: var(--pm-gold);
}

.pm-news-featured-img {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #334155);
}

.pm-news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--pm-ease);
}

.pm-news-featured:hover .pm-news-featured-img img {
    transform: scale(1.05);
}

.pm-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
}

.pm-news-featured-body {
    padding: 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pm-news-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    color: var(--pm-gold);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.pm-news-featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pm-text);
    margin: 0 0 0.75rem;
    line-height: 1.4;
    transition: color 0.3s var(--pm-ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-news-featured:hover .pm-news-featured-title {
    color: var(--pm-primary);
}

.pm-news-featured-summary {
    font-size: 0.875rem;
    color: var(--pm-text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-news-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--pm-text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--pm-border-light);
}

.pm-news-meta i {
    margin-right: 0.3rem;
}

/* 新闻列表 */
.pm-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pm-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--pm-ease);
}

.pm-news-item:hover {
    transform: translateX(4px);
    border-color: var(--pm-gold);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pm-news-item-img {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: var(--pm-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #334155);
}

.pm-news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pm-ease);
}

.pm-news-item:hover .pm-news-item-img img {
    transform: scale(1.08);
}

.pm-news-placeholder-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
}

.pm-news-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pm-news-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pm-text);
    margin: 0 0 0.35rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s var(--pm-ease);
}

.pm-news-item:hover .pm-news-item-title {
    color: var(--pm-primary);
}

.pm-news-item-summary {
    font-size: 0.8rem;
    color: var(--pm-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-news-item .pm-news-meta {
    padding-top: 0;
    border-top: none;
    margin-top: auto;
    font-size: 0.75rem;
    gap: 1rem;
}

/* ===== 友情链接 ===== */
.pm-links-section {
    background: var(--pm-bg);
    border-top: 1px solid var(--pm-border-light);
}

.pm-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.pm-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--pm-border-light);
    border-radius: var(--pm-radius);
    text-decoration: none;
    color: var(--pm-text);
    transition: all 0.3s var(--pm-ease);
}

.pm-link-card:hover {
    border-color: var(--pm-gold);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pm-link-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--pm-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1E293B, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-link-logo-fallback {
    color: var(--pm-gold);
    font-size: 1rem;
}

.pm-link-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s var(--pm-ease);
}

.pm-link-card:hover .pm-link-name {
    color: var(--pm-primary);
}

/* ===== 用户评价 ===== */
.pm-review-section {
    background: var(--pm-surface);
}

.pm-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pm-review-card {
    background: var(--pm-bg);
    border-radius: var(--pm-radius);
    padding: 1.5rem;
    border: 1px solid var(--pm-border-light);
    transition: all 0.3s var(--pm-ease);
}

.pm-review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pm-shadow);
    border-color: var(--pm-border);
}

.pm-review-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.875rem;
    color: var(--pm-gold);
    font-size: 0.85rem;
}

.pm-review-text {
    font-size: 0.85rem;
    color: var(--pm-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4em;
}

.pm-review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pm-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pm-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pm-review-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pm-text);
    margin-bottom: 0.1rem;
}

.pm-review-date {
    font-size: 0.75rem;
    color: var(--pm-text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 1199.98px) {
    .pm-container {
        max-width: 100%;
    }
    .pm-cat-layout {
        grid-template-columns: 220px 1fr;
    }
    .pm-cat-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-featured-grid-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .pm-hero-slider .pm-cat-nav {
        display: none;
    }
    .pm-slider-track {
        height: 340px;
    }
    .pm-slider-content {
        left: 6%;
        right: 6%;
        max-width: none;
    }
    .pm-slider-title {
        font-size: 2rem;
    }
    .pm-slider-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    .pm-slider-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .pm-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .pm-slider-prev {
        left: 0.75rem;
    }
    .pm-slider-next {
        right: 0.75rem;
    }
    .pm-trust-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .pm-featured-grid {
        grid-template-columns: 1fr;
    }
    .pm-featured-grid-right {
        grid-template-columns: repeat(3, 1fr);
    }
    .pm-cat-layout {
        grid-template-columns: 1fr;
    }
    .pm-flash-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pm-news-grid {
        grid-template-columns: 1fr;
    }
    .pm-news-featured-img {
        height: 220px;
    }
    .pm-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .pm-section {
        padding: 2rem 0;
    }
    .pm-section-title {
        font-size: 1.35rem;
    }
    .pm-slider-track {
        height: 260px;
    }
    .pm-slider-title {
        font-size: 1.5rem;
    }
    .pm-slider-desc {
        font-size: 0.85rem;
    }
    .pm-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .pm-slider-dots {
        bottom: 1rem;
    }
    .pm-trust-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-featured-grid-right {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-flash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-news-featured-img {
        height: 180px;
    }
    .pm-news-featured-title {
        font-size: 1.1rem;
    }
    .pm-news-item {
        padding: 0.875rem;
    }
    .pm-news-item-img {
        width: 90px;
        height: 64px;
    }
    .pm-cat-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-cat-tabs {
        gap: 0.25rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pm-cat-tabs::-webkit-scrollbar {
        display: none;
    }
    .pm-cat-tab {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    .pm-review-grid {
        grid-template-columns: 1fr;
    }
    .pm-promo {
        margin: 0;
        padding: 1.5rem;
    }
    .pm-promo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pm-countdown {
        justify-content: flex-start;
    }
}

@media (max-width: 479.98px) {
    .pm-slider-track {
        height: 220px;
    }
    .pm-trust-list {
        grid-template-columns: 1fr;
    }
    .pm-featured-grid-right {
        grid-template-columns: 1fr 1fr;
    }
    .pm-flash-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pm-news-featured-img {
        height: 160px;
    }
    .pm-news-item {
        flex-direction: column;
    }
    .pm-news-item-img {
        width: 100%;
        height: 140px;
    }
    .pm-cat-products {
        grid-template-columns: 1fr 1fr;
    }
}
