/* =============================================
   亿梦科技 — 游戏商城专属样式
   暗黑魔幻风：深暗底色 + 金红主色调
   ============================================= */

/* =============================================
   导航激活状态
   ============================================= */
.nav-links a.nav-active {
    color: var(--color-gold) !important;
    position: relative;
}

.nav-links a.nav-active::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
}

/* =============================================
   商城 Hero Banner
   ============================================= */
.shop-hero {
    position: relative;
    width: 100%;
    height: 28vw;
    min-height: 200px;
    max-height: 420px;
    overflow: hidden;
    background: #080810;
    margin-top: 3.75rem; /* 导航高度补偿 */
}

.shop-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: brightness(0.45) saturate(0.8);
}

.shop-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 由上往下的深色渐变，产生"镜头景深"感 */
    background: linear-gradient(
        180deg,
        rgba(8, 8, 16, 0.2) 0%,
        rgba(192, 57, 43, 0.08) 50%,
        rgba(8, 8, 16, 0.9) 100%
    );
}

.shop-hero__content {
    text-align: center;
    animation: fadeInUp 0.6s ease both;
}

.shop-hero__title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent-2) 60%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 0.6rem;
}

.shop-hero__sub {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.1em;
}

/* =============================================
   商城主体区域
   ============================================= */
.shop-main {
    background-color: var(--color-surface-2);
    background-image: url('./img/pattern.svg');
    background-size: 160px 160px;
    background-repeat: repeat;
    padding: 2rem 1rem 5rem;
    min-height: 60vh;
}

/* =============================================
   公告栏
   ============================================= */
.shop-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 72rem;
    margin: 0 auto 1.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* 公告标签 */
.shop-notice__tag {
    flex-shrink: 0;
    padding: 0.15rem 0.6rem;
    background: linear-gradient(135deg, #8b0000, var(--color-accent));
    color: var(--color-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.shop-notice__text {
    font-size: 0.875rem;
    color: rgba(240, 192, 64, 0.85);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 跑马灯滚动 */
    animation: marquee 22s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-60%); }
}

@media (prefers-reduced-motion: reduce) {
    .shop-notice__text { animation: none; white-space: normal; text-overflow: unset; }
}

/* =============================================
   分类 Tab
   ============================================= */
.shop-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 72rem;
    margin: 0 auto 2.25rem;
    flex-wrap: wrap;
}

.shop-tab {
    padding: 0.45rem 1.5rem;
    border-radius: 2rem;
    border: 1.5px solid rgba(192, 57, 43, 0.35);
    background: rgba(19, 19, 31, 0.8);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}

.shop-tab:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.shop-tab.active {
    background: linear-gradient(135deg, #8b0000 0%, var(--color-accent) 100%);
    border-color: transparent;
    color: var(--color-gold);
    box-shadow: 0 4px 18px rgba(192, 57, 43, 0.45);
}

/* =============================================
   商品网格
   ============================================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 750px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 400px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* =============================================
   商品卡片
   ============================================= */
.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--color-card-shadow);
    overflow: hidden;
    cursor: default;
    transition: var(--transition);
    animation: fadeInUp 0.45s ease both;
}

.shop-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(240, 192, 64, 0.45);
    box-shadow: 0 20px 48px rgba(192, 57, 43, 0.35), 0 0 0 1px rgba(240, 192, 64, 0.15);
}

/* 顶部彩色光条 */
.shop-card::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-gold) 50%, var(--color-accent-2) 100%);
    flex-shrink: 0;
}

/* 图片区域 */
.shop-card__img-wrap {
    position: relative;
    width: 100%;
    padding: 1.5rem 1.5rem 0.75rem;
    display: flex;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 80%, rgba(192, 57, 43, 0.12) 0%, transparent 70%);
}

.shop-card__img {
    width: 6.5rem;
    height: 6.5rem;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card__img {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 10px 24px rgba(192, 57, 43, 0.5));
}

/* 徽章 */
.shop-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.3rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1.4;
}

.badge--first {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.55);
}

.badge--hot {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.55);
}

.badge--limit {
    background: linear-gradient(135deg, #6c3483, #9b59b6);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 52, 131, 0.55);
}

.badge--new {
    background: linear-gradient(135deg, #1a6b3c, #27ae60);
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.45);
}

/* 卡片信息区 */
.shop-card__info {
    width: 100%;
    padding: 0.75rem 1rem 1.25rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.shop-card__name {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.shop-card__amount {
    font-size: 0.8rem;
    color: rgba(240, 192, 64, 0.75);
    letter-spacing: 0.03em;
}

.shop-card__price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.shop-card__currency {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-2);
}

.shop-card__price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent-2);
    line-height: 1;
}

/* =============================================
   空状态
   ============================================= */
.shop-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--color-text-muted);
    max-width: 72rem;
    margin: 0 auto;
}

/* 空状态装饰线 */
.shop-empty__icon {
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(192, 57, 43, 0.5), transparent);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.shop-empty p {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* =============================================
   响应式调整
   ============================================= */
@media (max-width: 870px) {
    .shop-hero { height: 36vw; }
}

@media (max-width: 550px) {
    .shop-hero { height: 45vw; }
    .shop-card__img { width: 5rem; height: 5rem; }
    .shop-notice__text { animation: none; white-space: normal; text-overflow: unset; }
}

/* =============================================
   游戏介绍区块
   ============================================= */
.game-intro {
    max-width: 72rem;
    margin: 2.5rem auto 0;
    padding: 1.75rem 1.5rem;
    background: rgba(8, 8, 16, 0.6);
    border: 1px solid rgba(192, 57, 43, 0.25);
    border-left: 4px solid var(--color-accent);
    border-radius: 0.75rem;
}

.game-intro__inner {
    max-width: 56rem;
    margin: 0 auto;
}

.game-intro__title {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin-bottom: 0.6rem;
}

.game-intro__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin: 0;
}

/* =============================================
   点券说明区块
   ============================================= */
.coupon-intro {
    max-width: 72rem;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem;
    background: rgba(8, 8, 16, 0.6);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: 1rem;
}

.coupon-intro__inner {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.coupon-intro__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.coupon-intro__title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.coupon-intro__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.coupon-intro__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
    display: inline-flex;
}

.coupon-intro__list li {
    font-size: 0.9rem;
    color: rgba(240, 192, 64, 0.85);
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* =============================================
   购买须知与售后服务区块
   ============================================= */
.shop-service {
    max-width: 72rem;
    margin: 1.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.shop-service__card {
    padding: 1.5rem;
    background: rgba(19, 19, 31, 0.85);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 0.75rem;
    border-top: 3px solid rgba(192, 57, 43, 0.6);
}

.shop-service__icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.shop-service__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.shop-service__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.shop-service__list li {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    padding-left: 1em;
    position: relative;
}

.shop-service__list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: rgba(192, 57, 43, 0.8);
    font-weight: 900;
}

.shop-service__list li strong {
    color: rgba(240, 192, 64, 0.9);
    font-weight: 700;
}

.shop-service__list li a {
    color: rgba(240, 192, 64, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-service__list li a:hover {
    color: var(--color-gold);
}

@media (max-width: 640px) {
    .shop-service {
        grid-template-columns: 1fr;
    }
    .coupon-intro__list {
        display: flex;
    }
}
