/* ========================================
   充值页面样式
   ======================================== */

/* 
 * 主体样式设置
 * 创建与游戏主题匹配的鲜艳渐变背景
 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 
 * 头部导航样式
 * 固定头部，采用玻璃拟态效果，呈现现代化外观
 */
.recharge-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(102, 126, 234, 0.9); /* 简约蓝紫色 */
    backdrop-filter: blur(10px); /* 玻璃拟态效果 */
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.recharge-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recharge-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.recharge-logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    border-radius: 8px;
    object-fit: cover;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transform: translateX(-5px);
}

/* 主要内容区域 */
.recharge-main {
    padding-top: 100px;
    min-height: 100vh;
}

.recharge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 页面标题 */
.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 充值卡片 */
.recharge-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #ffd700;
    font-size: 1.5rem;
}

/* 钻石套餐区域 */
.diamond-section {
    margin-bottom: 2rem;
}

.diamond-section-title {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #ffd700;
}

.diamond-packages {
    display: grid;
    gap: 1.2rem;
    margin-top: 1rem;
    justify-items: center;
}

.small-packages {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

.large-packages {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .small-packages {
        max-width: 1400px;
        gap: 2rem;
    }

    .large-packages {
        max-width: 1400px;
        gap: 2rem;
    }

    .diamond-card {
        max-width: 350px;
    }

    .large-packages .diamond-card {
        max-width: 700px;
    }
}

.diamond-option {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.diamond-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 0.1rem 0.2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

/* 礼包卡片特殊样式 - 保持图片全尺寸显示 */
.large-packages .diamond-card {
    max-width: 600px;
    width: 100%;
    padding: 0.1rem 0.2rem;
    aspect-ratio: auto;
}

.large-packages .diamond-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.diamond-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.diamond-card:hover::before {
    transform: translateX(100%);
}

.diamond-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.diamond-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.diamond-card:hover img {
    transform: scale(1.05);
}

.price-overlay {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    color: white;
    font-weight: 900;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* 金币数量覆盖层 - 适配 price_common.png */
.coin-overlay {
    position: absolute;
    left: 22%;
    top: 45%;
    transform: translateY(-50%);
    color: white;
    font-weight: 900;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -3px 0 0 #000,
        3px 0 0 #000,
        0 -3px 0 #000,
        0 3px 0 #000;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* 礼包名称覆盖层 - 金币套餐不显示，只用于接口调用 */
.package-name-overlay {
    display: none;
}

/* 价格覆盖层 - 放在绿色按钮区域 */
.price-overlay {
    position: absolute;
    right: 9%;
    top: 46%;
    transform: translateY(-50%);
    left: auto;
    bottom: auto;
    color: white;
    font-weight: 900;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -3px 0 0 #000,
        3px 0 0 #000,
        0 -3px 0 #000,
        0 3px 0 #000;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* 礼包套餐特殊样式 - 显示礼包名称和价格在绿色按钮区域 */
.large-packages .package-name-overlay {
    display: block;
    position: absolute;
    left: 8%;
    bottom: 14%;
    top: auto;
    transform: none;
    color: white;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

/* 礼包套餐的价格位置 - 在绿色按钮区域下方 */
.large-packages .price-overlay {
    right: 8%;
    bottom: 5%;
    top: auto;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    text-align: left;
}

/* 选中状态 */
.diamond-option.selected .diamond-card {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.diamond-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 支付方式区域 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover {
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 选中的支付方式 */
.payment-option.selected .payment-card {
    border: 2px solid #4ecdc4;
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.25), rgba(78, 205, 196, 0.1));
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.4);
    transform: translateY(-3px);
    position: relative;
}

.payment-option.selected .payment-card::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.4);
}

/* 订单摘要 */
.order-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.summary-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.3rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 确认按钮 */
.recharge-confirm {
    width: 100%;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.recharge-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6);
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.recharge-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 账号输入样式 */
.account-input-section {
    margin-top: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.input-label i {
    color: #f39c12;
}

.account-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.account-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.account-input:focus {
    outline: none;
    border-color: #f39c12;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.account-input:valid {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.input-help i {
    color: #f39c12;
    flex-shrink: 0;
}

/* 
 * 无障碍辅助工具
 * 仅供屏幕阅读器使用的内容，提升可访问性
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 
 * 焦点管理
 * 为键盘导航提供增强的焦点指示器
 */
.account-input:focus,
.diamond-option:focus,
.payment-option:focus,
.recharge-confirm:focus {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}

/* 自定义金额输入区域 */
.custom-amount-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.custom-amount-title {
    color: #f39c12;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-amount-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.custom-amount-input:focus {
    outline: none;
    border-color: #f39c12;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.custom-amount-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .small-packages {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .large-packages {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .recharge-container {
        padding: 1.5rem;
    }

    .small-packages {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .large-packages {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .diamond-card {
        max-width: 240px;
    }

    .large-packages .diamond-card {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .recharge-nav-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .recharge-logo {
        font-size: 1.3rem;
    }

    .recharge-logo-icon {
        width: 28px;
        height: 28px;
    }

    .back-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .recharge-container {
        padding: 1rem;
    }

    .page-hero {
        margin-bottom: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .recharge-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .diamond-section-title {
        font-size: 1.1rem;
    }

        .small-packages {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .large-packages {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

    .diamond-card {
        max-width: 500px;
        /* padding: 0.8rem; */
    }

    .large-packages .diamond-card {
        max-width: 600px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .payment-card {
        padding: 1.2rem;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
    }

    .payment-logo {
        width: 35px;
        height: 35px;
    }

    .payment-name {
        font-size: 1.1rem;
    }

    .account-input {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .input-label {
        font-size: 1rem;
    }

    .input-help {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .recharge-nav-container {
        padding: 0.5rem;
        justify-content: center;
        text-align: center;
    }

    .recharge-logo {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .back-btn {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .back-btn span {
        display: none;
    }

    .recharge-container {
        padding: 0.5rem;
    }

    .page-hero {
        margin-bottom: 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    .recharge-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .diamond-section-title {
        font-size: 1rem;
        padding-left: 0.8rem;
    }

        .small-packages {
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }

        .large-packages {
            grid-template-columns: 1fr;
            gap: 1.2rem;
        }

    .diamond-card {
        padding: 0.1rem;
        max-width: 400px;
    }

    .large-packages .diamond-card {
        max-width: 500px;
    }

    .price-overlay {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
        border-width: 1.5px;
    }

    .payment-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .payment-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto;
    }

    .payment-logo {
        width: 30px;
        height: 30px;
    }

    .payment-name {
        font-size: 1rem;
    }

    .payment-desc {
        font-size: 0.8rem;
    }

    .account-input {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .input-label {
        font-size: 0.95rem;
    }

    .input-help {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .order-summary {
        padding: 1rem;
    }

    .summary-item {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .summary-item:last-child {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        font-size: 1.2rem;
    }

    .recharge-confirm {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
        .small-packages {
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

        .large-packages {
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

    .diamond-card {
        /* padding: 0.8rem; */
        max-width: 140px;
    }

    .price-overlay {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
        border-width: 1px;
    }

    .recharge-card {
        padding: 0.8rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }
}

/* 静态样式 - 无动画 */
.recharge-card {
    opacity: 1;
    transform: translateY(0);
}

/* 钻石闪烁效果 */
.diamond-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff, transparent);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* 脉冲动画 */
.pulse-animation {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 输入错误样式 */
.account-input.error {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3) !important;
}

.input-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    animation: shake 0.5s ease;
}

.input-error::before {
    content: '⚠️';
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 加载动画 */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 成功状态 */
.success-state {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.3) !important;
}

/* 悬停增强效果 */
.diamond-option:hover .diamond-card {
    box-shadow: 0 25px 50px rgba(243, 156, 18, 0.4);
}

.payment-option:hover .payment-card {
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.3);
}

/* 选中状态增强 - 使用静态样式，保持简约 */

/* 按钮状态动画 */
.recharge-confirm:not(:disabled):hover {
    animation: buttonPulse 1s ease infinite;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(243, 156, 18, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .diamond-card::after {
        display: none; /* 移动端隐藏闪烁效果以提升性能 */
    }
    
    .pulse-animation {
        animation: none; /* 移动端简化动画 */
    }

    /* 移动端文字大小调整 */
    .coin-overlay {
        font-size: clamp(0.8rem, 3vw, 1.1rem);
    }

    .large-packages .package-name-overlay {
        font-size: clamp(1rem, 2vw, 1.2rem);
        left: 10%;
        bottom: 15%;
        white-space: nowrap;
    }

    .price-overlay {
        font-size: clamp(0.8rem, 3vw, 1.1rem);
        right: 10%;
    }

    .large-packages .price-overlay {
        /* font-size: clamp(0.7rem, 2.5vw, 1rem); */
        right: 12%;
        bottom: 10%;
        text-align: right;
    }

    .large-packages .diamond-card {
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .large-packages .diamond-card {
        max-width: 100%;
        aspect-ratio: auto;
    }

    .coin-overlay {
        font-size: clamp(1.2rem, 4vw, 1rem);
    }

    .large-packages .package-name-overlay {
        font-size: clamp(1rem, 3vw, 1.2rem);
        left: 10%;
        bottom: 15%;
        white-space: nowrap;
    }

    .price-overlay {
        font-size: clamp(0.7rem, 4vw, 1rem);
        right: 8%;
    }

    .large-packages .price-overlay {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        right: 10%;
        bottom: 6%;
        text-align: right;
    }
}

/* 全局禁用布局动画 */
.recharge-card,
.page-hero {
    animation: none !important;
    transition: none !important;
}
