/**
 * ============================================
 * Luna 主题 - 苹果透明玻璃流光风格升级
 * Apple Glass Effect with Purple-Blue Gradient
 * ============================================
 * 
 * 特性：
 * - 紫色到深蓝色动态渐变背景
 * - 毛玻璃态效果 (Glassmorphism)
 * - 流光动画效果
 * - 高对比度按钮和卡片
 * - 完整保留所有功能逻辑
 */

/* ============================================
   1. CSS 变量定义 - 方便全局调整
   ============================================ */
:root {
    /* 主题色 - 紫蓝渐变 */
    --primary-purple: #8B5CF6;
    --primary-indigo: #6366F1;
    --primary-blue: #3B82F6;
    --primary-deep-blue: #1E40AF;
    
    /* 玻璃效果 */
    --glass-white: rgba(255, 255, 255, 0.20);
    --glass-white-hover: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-strong: rgba(255, 255, 255, 0.5);
    
    /* 阴影 */
    --shadow-soft: 0 8px 32px rgba(139, 92, 246, 0.15);
    --shadow-medium: 0 12px 48px rgba(99, 102, 241, 0.2);
    --shadow-heavy: 0 20px 60px rgba(30, 64, 175, 0.25);
    
    /* 文字颜色 - 确保对比度 */
    --text-dark: #1a1a2e;
    --text-medium: #2d3748;
    --text-light: #64748b;
    --text-white: #ffffff;
    --text-white-soft: rgba(255, 255, 255, 0.95);
    
    /* 按钮颜色 - 高对比度 */
    --btn-bg: rgba(59, 130, 246, 0.95);
    --btn-hover: rgba(37, 99, 235, 1);
    --btn-active-bg: rgba(255, 255, 255, 0.95);
    --btn-active-border: #3B82F6;
    --btn-active-text: #1E40AF;
}

/* ============================================
   2. 动态渐变背景 + 流光动画
   ============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 1000px;
    z-index: -10;
    
    /* 紫蓝渐变背景 */
    background: linear-gradient(
        135deg,
        #8B5CF6 0%,
        #7C3AED 15%,
        #6366F1 30%,
        #4F46E5 45%,
        #3B82F6 60%,
        #2563EB 75%,
        #1E40AF 90%,
        #1E3A8A 100%
    );
    background-size: 400% 400%;
    
    /* 流光动画 */
    animation: gradientFlow 20s ease infinite;
}

/* 添加粒子效果层 */
.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
    opacity: 0.6;
}

/* 流光扫过效果 */
.background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shineMove 8s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(30px, -30px) scale(1.1); opacity: 0.8; }
    66% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.5; }
}

@keyframes shineMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, 50%) rotate(360deg); }
}

/* ============================================
   3. 玻璃态主卡片 - 高对比度
   ============================================ */
.main .main-box {
    background: var(--glass-white);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    
    border: 1.5px solid var(--glass-border);
    border-radius: 24px;
    
    box-shadow: 
        var(--shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    
    padding: 35px 30px;
    margin-top: 20px;
    
    position: relative;
    overflow: hidden;
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 卡片顶部光泽效果 */
.main .main-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
}

/* 卡片悬停效果 */
.main .main-box:hover {
    background: var(--glass-white-hover);
    border-color: var(--glass-border-strong);
    box-shadow: 
        var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
}

/* ============================================
   4. 标题优化 - 深色文字确保可读性
   ============================================ */
.main .title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.main .title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    border-radius: 2px;
}

.main .title span {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.main .title svg,
.main .title img {
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

/* ============================================
   5. 分类卡片 - 玻璃态 + 高对比度
   ============================================ */
.main .cate {
    padding-top: 20px;
    margin: 0 10px;
    font-size: 0;
}

.main .cate .cate-box {
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    min-width: 130px;
    
    /* 未选中：白色玻璃态 */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.2);
    
    border-radius: 16px;
    height: 75px;
    padding: 0 20px;
    margin: 0 10px;
    margin-bottom: 15px;
    cursor: pointer;
    
    position: relative;
    
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
}

.main .cate .cate-box:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary-purple);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.2);
}

/* 选中状态 - 紫蓝渐变背景 */
.main .cate .cate-box-select {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 28px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.main .cate .cate-box-select img {
    position: absolute;
    right: -6px;
    bottom: -19px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* 分类文字 - 深色确保可读 */
.main .cate .cate-box p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 14px;
    transition: color 0.3s;
}

.main .cate .cate-box-select p {
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.main .cate .cate-box div {
    opacity: 0.8;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
    transition: color 0.3s;
}

.main .cate .cate-box-select div {
    color: var(--text-white-soft);
    opacity: 1;
}

/* ============================================
   6. 商品卡片 - 玻璃态 + 清晰边界
   ============================================ */
.main .goods {
    margin-top: 10px;
    border-top: 2px solid rgba(139, 92, 246, 0.15);
    padding-top: 20px;
}

.main .goods .goods-box {
    padding: 20px;
    vertical-align: middle;
    min-width: 185px;
    min-height: 90px;
    
    /* 白色玻璃态 - 确保内容可见 */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    
    margin-right: 12px;
    margin-bottom: 15px;
    
    cursor: pointer;
    position: relative;
    display: inline-flex;
    
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
    
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main .goods .goods-box:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.2);
}

/* 商品图片 */
.main .goods .picture {
    vertical-align: top;
    margin-right: 14px;
    display: inline-block;
    min-width: 80px;
    width: 80px;
    height: 80px;
}

.main .goods .picture img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.main .goods .goods-box:hover .picture img {
    transform: scale(1.05);
}

/* 商品信息 */
.main .goods .msg {
    vertical-align: top;
    display: inline-block;
}

.main .goods .msg .goods-name {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

.main .goods .msg .goods-price {
    /* 商品列表价格 - 深黑色 */
    color: #1F2937;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.main .goods .msg .goods-price span {
    font-size: 13px;
    vertical-align: bottom;
}

.main .goods .msg .goods-price div {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA06B 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* ============================================
   7. 头部导航 - 玻璃态
   ============================================ */
.header .header-box {
    padding-top: 20px;
    padding-bottom: 15px;
}

.header .header-box img {
    max-width: 150px;
    max-height: 50px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.header .header-box .info {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    display: inline-block;
    margin-left: 12px;
    vertical-align: middle;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 查询按钮 - 玻璃态 */
.header .header-box .query a {
    color: var(--text-white);
    display: inline-block;
    width: 130px;
    line-height: 42px;
    border-radius: 21px;
    cursor: pointer;
    
    /* 玻璃态按钮 */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .header-box .query a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 公告框 */
.header .header-box .notice {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header .header-box .notice .tit {
    color: var(--text-white);
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header .header-box .notice .tips {
    margin-top: 8px;
    color: var(--text-white-soft);
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ============================================
   8. 支付区域 - 高对比度
   ============================================ */
.pay-section {
    margin-top: 40px;
    border-top: 2px solid rgba(139, 92, 246, 0.2);
    padding-top: 30px;
}

.pay-channel-row,
.pay-method-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
}

.pay-label {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    width: 100%;
}

.pay-label svg,
.pay-label img {
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

/* 支付通道列表 */
.pay-channel-list,
.pay-method-list,
.pay-category-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

/* 支付通道按钮 - 白色玻璃态，未选中 */
.pay-channel-btn,
.pay-method-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    
    /* 白色玻璃态背景 - 确保可见 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    
    border: 2px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 110px;
    justify-content: center;
    overflow: hidden;
    
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

.pay-channel-btn:hover,
.pay-method-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
}

/* 支付通道按钮 - 选中状态：紫蓝渐变 */
.pay-channel-btn.pay-channel-active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 24px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pay-channel-btn.pay-channel-active .pay-channel-name {
    color: var(--text-white);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 支付方式按钮 - 选中状态：绿色渐变（保留原逻辑） */
.pay-method-btn.pay-method-active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 24px rgba(16, 185, 129, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pay-method-btn.pay-method-active .pay-method-name {
    color: var(--text-white);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 支付通道名称 */
.pay-channel-name,
.pay-method-name {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

/* 图标 */
.pay-method-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-method-icon svg,
.pay-method-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 勾选标记 - 紫色 */
.pay-channel-check {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 28px 28px;
    border-color: transparent transparent rgba(255, 255, 255, 0.9) transparent;
}

.pay-channel-check::after {
    content: '✓';
    position: absolute;
    right: 3px;
    bottom: -26px;
    font-size: 14px;
    color: var(--primary-purple);
    font-weight: bold;
}

.pay-channel-btn.pay-channel-active .pay-channel-check {
    display: block;
}

/* 支付方式勾选 - 绿色 */
.pay-method-check {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 28px 28px;
    border-color: transparent transparent rgba(255, 255, 255, 0.9) transparent;
}

.pay-method-check::after {
    content: '✓';
    position: absolute;
    right: 3px;
    bottom: -26px;
    font-size: 14px;
    color: #059669;
    font-weight: bold;
}

.pay-method-btn.pay-method-active .pay-method-check {
    display: block;
}

/* ============================================
   9. 下单按钮 - 醒目渐变
   ============================================ */
.buy {
    text-align: center;
    margin-top: 35px;
}

.buy button {
    border: none;
    color: var(--text-white);
    display: inline-block;
    width: 100%;
    max-width: 320px;
    font-size: 20px;
    font-weight: 700;
    line-height: 56px;
    height: 56px;
    border-radius: 28px;
    cursor: pointer;
    
    /* 紫蓝渐变 */
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    
    box-shadow: 
        0 8px 28px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    position: relative;
    overflow: hidden;
}

/* 按钮光泽效果 */
.buy button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s;
}

.buy button:hover::before {
    left: 100%;
}

.buy button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.buy button:active {
    transform: translateY(-1px);
}

/* ============================================
   10. 输入框 - 玻璃态
   ============================================ */
.input input,
.layui-input,
.layui-textarea,
.layui-select {
    display: inline-block;
    padding: 0 16px;
    height: 46px;
    width: 300px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    
    /* 白色玻璃态 */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input input:focus,
.layui-input:focus,
.layui-textarea:focus,
.layui-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-purple);
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 4px 16px rgba(139, 92, 246, 0.2);
}

.input input::placeholder {
    color: var(--text-light);
}

/* ============================================
   11. 标签和提示 - 渐变色
   ============================================ */
.small-tips {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
    line-height: initial;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tips-cyan {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: white;
}

.tips-pink {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: white;
}

.tips-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.tips-yellow {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.tips-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-deep-blue) 100%);
    color: white;
}

.tips-red {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.tips-black {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
}

/* 价格标签（折扣等） */
.price .small-tips {
    vertical-align: middle;
}

/* ============================================
   12. 滚动条美化 - 紫蓝风格
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
}

/* ============================================
   13. 底部 Footer
   ============================================ */
.footer {
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* ============================================
   14. 弹窗样式优化
   ============================================ */
.home-tips {
    border-radius: 20px !important;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3) !important;
}

.home-tips .layui-layer-title {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%) !important;
    color: white !important;
    height: 50px;
    line-height: 50px;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.home-tips .layui-layer-content {
    padding: 20px 25px;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

/* ============================================
   15. 商品详情页特殊样式
   ============================================ */

/* SKU 选择器样式 */
.sku-wrapper {
    margin: 20px 0;
}

.sku-label {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.sku-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sku-item {
    padding: 10px 20px;
    
    /* 白色玻璃态 */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

.sku-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
}

/* SKU 选中状态 - 紫蓝渐变 */
.sku-item.active {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 700;
    box-shadow: 
        0 6px 24px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.main-box .goods-img {
    margin-left: 20px;
    margin-right: 10px;
    margin-top: 10px;
    width: calc(100% - 30px);
    height: 0;
    position: relative;
    padding-bottom: calc(100% - 40px);
}

.main-box .goods-img img {
    width: calc(100% - 10px);
    border-radius: 16px;
    margin-top: 5px;
    height: 100%;
    position: absolute;
    object-fit: cover;
    
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.2);
    
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-box .goods-img img:hover {
    transform: scale(1.02);
}

.main-box .goods-msg {
    margin-right: 20px;
    margin-left: 40px;
    margin-top: 20px;
}

.main-box .goods-msg .goods-name {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.main-box .goods-msg .price {
    margin-bottom: 25px;
    line-height: 1;
}

.main-box .goods-msg .price .price-sign {
    /* 深黑色 - 低调高级 */
    color: #1F2937;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-box .goods-msg .price .price-num {
    /* 深黑色 - 清晰有力 */
    color: #1F2937;
    font-size: 42px;
    font-weight: bold;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 划线价格 */
.main-box .goods-msg .price .price-c {
    color: #6B7280;
    font-size: 16px;
    margin-left: 10px;
}

.main-box .goods-msg .price .price-c del {
    color: #9CA3AF;
}

/* ============================================
   16. 订单确认页面优化 - 高对比度
   ============================================ */

/* 订单确认页面的卡片 - 更高不透明度 */
.layui-card-body {
    padding: 25px 20px;
}

/* 订单确认页面主卡片 - 白色不透明背景 */
body .main .main-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(30px) saturate(180%);
}

/* 订单表格样式优化 */
.layui-table {
    background: transparent;
    color: var(--text-dark);
}

.layui-table td,
.layui-table th {
    border: none;
    padding: 12px 8px;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

/* 表格行间隔 */
.layui-table tbody tr {
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.layui-table tbody tr:last-child {
    border-bottom: none;
}

/* 表格左侧标签 */
.layui-table td[style*="text-align: right"] {
    color: #4B5563;
    font-weight: 600;
}

/* 表格右侧内容 */
.layui-table td:not([style*="text-align: right"]) {
    color: var(--text-dark);
    font-weight: 600;
}

/* 订单信息标签 - 绿色高对比度 */
.layui-table .small-tips.tips-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    display: inline-block;
}

/* 提示信息优化 */
.product-info p {
    color: var(--primary-purple) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: rgba(139, 92, 246, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-purple);
}

/* 立即支付按钮优化 */
.layui-card-body .btn a,
.layui-card-body .btn button {
    border: none;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    line-height: 56px;
    height: 56px;
    margin-top: 25px;
    border-radius: 28px;
    cursor: pointer;
    text-decoration: none;
    
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    
    box-shadow: 
        0 8px 28px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.layui-card-body .btn a:hover,
.layui-card-body .btn button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.layui-card-body .btn a:active {
    transform: translateY(-1px);
}
/* ============================================
   17. 订单查询页面优化
   ============================================ */
.pay-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 22px;
    margin: 0 15px 25px;
    display: flex;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.15);
}

.pay-title svg {
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

/* 订单查询输入框优化 */
.entry {
    margin-top: 20px;
    margin-bottom: 20px;
}

.entry .l-msg {
    display: inline-block;
    width: 90px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    text-align: right;
    vertical-align: middle;
}

/* 订单信息文本域 */
.order-info {
    width: calc(100% - 12px);
    min-height: 80px;
    padding: 12px 15px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
    resize: vertical;
}

.order-info:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.15),
        0 4px 16px rgba(139, 92, 246, 0.2);
}

/* 信息列表优化 */
.info-ui {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 2;
}

.info-ui strong {
    color: #4B5563;
    font-weight: 600;
    min-width: 30%;
    margin-bottom: 8px;
    text-align: right;
    display: inline-block;
    padding-right: 15px;
}

.btn a,
.btn button {
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: inline-block;
    width: 180px;
    line-height: 50px;
    height: 50px;
    margin-top: 20px;
    border-radius: 25px;
    cursor: pointer;
    
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    
    box-shadow: 
        0 6px 24px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn a:hover,
.btn button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ============================================
   17. Tab 标签页优化
   ============================================ */
.layui-tab-title li {
    color: var(--text-medium);
    font-weight: 600;
    transition: all 0.3s;
}

.layui-tab-title .layui-this {
    color: var(--primary-purple) !important;
}

.layui-tab-title .layui-this:after {
    border-radius: 5px 5px 0 0;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
}

/* ============================================
   18. 移动端适配 - 响应式优化
   ============================================ */
@media (max-width: 768px) {
    /* 背景适配 */
    .background {
        min-width: 100%;
    }
    
    /* 头部适配 */
    .header {
        background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
        color: white;
        height: 220px;
        margin-bottom: -150px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    }
    
    .header .info {
        color: white !important;
    }
    
    /* 主卡片适配 */
    .main .main-box {
        padding: 25px 18px;
        border-radius: 20px;
    }
    
    /* 分类卡片适配 */
    .main .cate .cate-box {
        min-width: calc(50% - 30px);
        height: 70px;
        margin: 0 5px 12px;
    }
    
    /* 支付按钮适配 - 两列布局 */
    .pay-channel-list,
    .pay-method-list {
        gap: 10px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* 支付通道按钮 - 两列 */
    .pay-channel-btn {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        padding: 12px 10px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    /* 支付方式按钮 - 两列（核心） */
    .pay-method-btn {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        padding: 12px 10px;
        font-size: 14px;
        box-sizing: border-box;
        display: inline-flex !important;
    }
    
    /* 支付分类组 - flex布局，两列显示 */
    .pay-method-list .pay-category-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* 被隐藏的分类组 - 强制隐藏（优先级最高） */
    .pay-method-list .pay-category-group[style*="display: none"],
    .pay-method-list .pay-category-group[style*="display:none"],
    .pay-method-list .pay-category-group[style*="display : none"] {
        display: none !important;
    }
    
    /* 可见的分类组确保是flex */
    .pay-method-list .pay-category-group[style=""],
    .pay-method-list .pay-category-group:not([style*="none"]) {
        display: flex !important;
    }
    
    /* 分类组内的按钮 - 两列 */
    .pay-category-group .pay-method-btn {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    
    /* 输入框适配 */
    .input input {
        width: calc(100% - 95px);
    }
    
    /* 下单按钮适配 */
    .buy button {
        width: 100%;
        max-width: 100%;
        font-size: 18px;
    }
    
    .buy {
        margin-top: 30px;
    }
    
    /* 商品详情适配 */
    .main-box .goods-msg {
        margin-left: 25px;
        margin-right: 15px;
    }
    
    .main-box .goods-msg .goods-name {
        font-size: 20px;
    }
    
    .main-box .goods-msg .price .price-num {
        font-size: 36px;
    }
}

@media (max-width: 425px) {
    .main .cate .cate-box {
        min-width: calc(50% - 25px);
    }
    
    /* 超小屏 - 支付按钮两列（更强的规则） */
    .pay-channel-btn {
        flex: 0 0 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        justify-content: center;
    }
    
    .pay-method-btn {
        flex: 0 0 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        justify-content: center;
    }
    
    .pay-category-group .pay-method-btn {
        flex: 0 0 calc(50% - 6px) !important;
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }
    
    .pay-method-list .pay-category-group {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* ============================================
   19. 性能优化 - GPU 加速
   ============================================ */
.main-box,
.cate-box,
.goods-box,
.pay-channel-btn,
.pay-method-btn,
.buy button {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   20. 打印样式保护
   ============================================ */
@media print {
    .background,
    .background::before,
    .background::after {
        display: none;
    }
    
    .main-box {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ============================================
   END - 苹果玻璃流光风格样式
   ============================================ */

