/* ===================================
   优惠页面移动端特殊样式
   promotions.html 专用移动端优化
   =================================== */

/* === 平板尺寸优化 (992px以下) === */
@media screen and (max-width: 992px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
}

/* === 中等屏幕优化 (1200px以下) === */
@media screen and (max-width: 1200px) {
    .promo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    
    /* === 优惠页面Hero区域优化 === */
    
    .hero {
        background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
        position: relative;
    }
    
    .hero-title {
        background: linear-gradient(135deg, #E0B8A0, #FFD700);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.5rem !important; /* 严格遵循Hero标题规范 */
    }
    
    /* === 促销活动网格优化 === */
    
    .promo-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .promo-card {
        background: linear-gradient(145deg, #1c1c1c, #111) !important;
        border: 1px solid rgba(224, 184, 160, 0.2) !important;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .promo-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(224, 184, 160, 0.03) 0%, transparent 60%);
        pointer-events: none;
    }
    
    .promo-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border-color: rgba(224, 184, 160, 0.4);
    }
    
    .promo-card-img {
        width: 100%;
        height: 200px !important;
        object-fit: cover;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .promo-card:hover .promo-card-img {
        transform: scale(1.05);
    }
    
    .promo-card-content {
        padding: 2rem !important;
        position: relative;
        z-index: 2;
    }
    
    .promo-card-title {
        color: var(--primary-color, #E0B8A0) !important;
        font-size: 1.0rem !important; /* 严格遵循h3标题规范 */
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .promo-card-description {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .promo-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #000;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
        font-size: 0.7rem !important;
        font-weight: bold;
        z-index: 3;
    }
    
    /* === 品牌促销区域优化 === */
    
    .brand-promo-section {
        background: #050505;
        padding: 3rem 0;
        position: relative;
    }
    
    .brand-promo-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 70% 30%, rgba(224, 184, 160, 0.04) 0%, transparent 60%);
        pointer-events: none;
    }
    
    .brand-promo-title {
        text-align: center;
        color: var(--primary-color, #E0B8A0);
        font-size: 1.3rem !important; /* 遵循Section标题规范 */
        margin-bottom: 2rem;
        position: relative;
    }
    
    .brand-promo-title::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: var(--primary-color, #E0B8A0);
    }
    
    /* === VIP奖励区域优化 === */
    
    .vip-rewards-section {
        background: #000;
        padding: 3rem 0;
    }
    
    .vip-levels {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .vip-level-card {
        background: linear-gradient(145deg, #1c1c1c, #111);
        border: 1px solid rgba(224, 184, 160, 0.2);
        border-radius: 20px;
        padding: 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .vip-level-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(224, 184, 160, 0.03) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .vip-level-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
        border-color: rgba(224, 184, 160, 0.4);
    }
    
    .vip-icon {
        width: 80px;
        height: 80px;
        background: rgba(224, 184, 160, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 2rem;
        color: var(--primary-color, #E0B8A0);
        position: relative;
        z-index: 2;
    }
    
    .vip-level-name {
        font-size: 1.0rem !important; /* 严格遵循h3标题规范 */
        font-weight: 600;
        color: #fff;
        margin-bottom: 1rem;
        position: relative;
        z-index: 2;
    }
    
    .vip-benefits {
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 2;
    }
    
    .vip-benefits li {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
        position: relative;
        text-align: left;
    }
    
    .vip-benefits li::before {
        content: '✓';
        color: var(--primary-color, #E0B8A0);
        position: absolute;
        left: 0;
        font-weight: bold;
    }
    
    /* === 限时优惠区域 === */
    
    .limited-offers-section {
        background: #050505;
        padding: 3rem 0;
    }
    
    .countdown-timer {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        color: #000;
        padding: 1rem;
        border-radius: 15px;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    .countdown-timer::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shine 3s infinite;
    }
    
    @keyframes shine {
        0% { left: -100%; }
        100% { left: 100%; }
    }
    
    .countdown-title {
        font-size: 1rem !important;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }
    
    .countdown-display {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        background: rgba(0, 0, 0, 0.2);
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        text-align: center;
        min-width: 50px;
    }
    
    .countdown-number {
        font-size: 1.2rem !important;
        font-weight: bold;
        display: block;
    }
    
    .countdown-label {
        font-size: 0.7rem !important;
        display: block;
    }
    
    /* === 优惠条款区域 === */
    
    .terms-conditions-section {
        background: #000;
        padding: 3rem 0;
    }
    
    .terms-card {
        background: linear-gradient(145deg, #1c1c1c, #111);
        border: 1px solid rgba(224, 184, 160, 0.15);
        border-radius: 15px;
        padding: 2rem;
        position: relative;
        overflow: hidden;
    }
    
    .terms-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(224, 184, 160, 0.02) 0%, transparent 60%);
        pointer-events: none;
    }
    
    .terms-title {
        font-size: 1.1rem !important;
        font-weight: 600;
        color: var(--primary-color, #E0B8A0);
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 2;
    }
    
    .terms-list {
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 2;
    }
    
    .terms-list li {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1rem;
        padding-left: 1.5rem;
        position: relative;
        line-height: 1.6;
    }
    
    .terms-list li::before {
        content: '•';
        color: var(--primary-color, #E0B8A0);
        position: absolute;
        left: 0;
        font-weight: bold;
    }
    
    /* === 推荐奖励区域 === */
    
    .referral-program-section {
        background: #050505;
        padding: 3rem 0;
        position: relative;
    }
    
    .referral-program-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 70%, rgba(224, 184, 160, 0.04) 0%, transparent 60%);
        pointer-events: none;
    }
    
    .referral-steps {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .referral-step {
        background: linear-gradient(145deg, #1c1c1c, #111);
        border: 1px solid rgba(224, 184, 160, 0.15);
        border-radius: 15px;
        padding: 2rem;
        text-align: center;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .referral-step:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        border-color: rgba(224, 184, 160, 0.3);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        background: var(--primary-color, #E0B8A0);
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem !important;
        font-weight: bold;
        margin: 0 auto 1rem;
    }
    
    .step-title {
        font-size: 1rem !important;
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.8rem;
    }
    
    .step-description {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
    }
}

/* === 小屏手机特殊优化 (480px以下) === */
@media screen and (max-width: 480px) {
    
    .promo-card-content {
        padding: 1.5rem !important;
    }
    
    .promo-card-img {
        height: 150px !important;
    }
    
    .vip-level-card {
        padding: 1.5rem;
    }
    
    .vip-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .countdown-display {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 45px;
        padding: 0.4rem 0.6rem;
    }
    
    .terms-card {
        padding: 1.5rem;
    }
    
    .referral-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem !important;
    }
}

/* === 横屏模式特殊优化 === */
@media screen and (max-width: 768px) and (orientation: landscape) {
    
    .promo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .vip-levels {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .referral-steps {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .countdown-display {
        gap: 1.5rem;
    }
}
