/* 下載區域現代化樣式 */
.download-section {
    margin: 2rem 0;
    padding: 0;
}

.download-header {
    text-align: center;
    margin-bottom: 2rem;
}

.download-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #aa3cff, #8a2be2, #9932cc);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.download-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 0;
}

/* 下載卡片基礎樣式 */
.download-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 免費下載卡片特殊樣式 */
.download-card.free-download {
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.2), rgba(170, 60, 255, 0.1));
    border-color: rgba(170, 60, 255, 0.3);
}

.download-card.free-download:hover {
    border-color: rgba(170, 60, 255, 0.5);
    box-shadow: 0 20px 40px rgba(170, 60, 255, 0.2);
}

/* 付費下載卡片特殊樣式 */
.download-card.paid-download {
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.2), rgba(170, 60, 255, 0.1));
    border-color: rgba(170, 60, 255, 0.3);
}

.download-card.paid-download:hover {
    border-color: rgba(170, 60, 255, 0.5);
    box-shadow: 0 20px 40px rgba(170, 60, 255, 0.2);
}

/* 卡片頭部 */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #aa3cff 0%, #8a2be2 100%);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: #fff;
}

.download-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.title-wrapper h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.warning {
    background: linear-gradient(45deg, #9932cc, #8a2be2);
}

/* 卡片內容 */
.card-content {
    margin-bottom: 1.5rem;
}

.description {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.price-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.user-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.vip-badge, .normal-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-badge {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    color: #fff;
}

.normal-badge {
    background: linear-gradient(45deg, #ba7bff, #aa3cff);
    color: #fff;
}

.price {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

/* 下載按鈕 */
.download-action {
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

.free-btn {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.free-btn:hover {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 12px 24px rgba(170, 60, 255, 0.4);
}

.paid-btn {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.paid-btn:hover {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 12px 24px rgba(170, 60, 255, 0.4);
}

/* 服務鏈接 */
.service-links {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.service-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

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

.service-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

.service-btn.recharge {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
}

.service-btn.recharge:hover {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.service-btn.vip {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    color: #fff;
}

.service-btn.vip:hover {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.service-btn.special {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
}

.service-btn.special:hover {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

/* 進度條容器 */
.progress-container {
    margin-top: 1rem;
}

.layui-progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.layui-progress-bar {
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .download-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .service-buttons {
        flex-direction: column;
    }
    
    .service-btn {
        justify-content: center;
    }
    
    .user-type {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card {
    animation: fadeInUp 0.6s ease-out;
}

.download-card:nth-child(1) { animation-delay: 0.1s; }
.download-card:nth-child(2) { animation-delay: 0.2s; }
.download-card:nth-child(3) { animation-delay: 0.3s; }

/* 加載動畫 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

/* 成功動畫 */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.download-success {
    animation: successPulse 0.5s ease-in-out;
}

/* 交互動畫類 */
.pulse { 
    animation: pulse 0.6s ease-in-out; 
}

.highlight { 
    transform: scale(1.02); 
    transition: transform 0.3s ease; 
}

.downloading .icon-wrapper { 
    animation: spin 1s linear infinite; 
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

.service-buttons.mobile .service-btn { 
    width: 100%; 
    justify-content: center; 
}

/* 下載狀態樣式 */
.download-complete {
    background: linear-gradient(45deg, #4caf50, #8bc34a) !important;
}

.download-error {
    background: linear-gradient(45deg, #f44336, #e91e63) !important;
}

.progress-update {
    animation: progressUpdate 0.3s ease-in-out;
}

@keyframes progressUpdate {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(1.02); }
    100% { transform: scaleX(1); }
}

/* ===== 新增：下載模態框樣式 ===== */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.download-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.download-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 2rem 2rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px 25px 0 0;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #aa3cff, #8a2be2, #9932cc);
    border-radius: 25px 25px 0 0;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-header h3::before {
    content: '📥';
    font-size: 1.5rem;
    animation: downloadPulse 2s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.download-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
    font-weight: 500;
}

.info-item .label i {
    font-size: 1rem;
    color: #aa3cff;
}

.info-item .value {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.download-actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-actions button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-actions button:hover::before {
    left: 100%;
}

.download-actions .confirm {
    background: linear-gradient(45deg, #aa3cff, #8a2be2);
    color: #fff;
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.download-actions .confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(170, 60, 255, 0.4);
}

.download-actions .cancel {
    background: linear-gradient(45deg, #ba7bff, #aa3cff);
    color: #fff;
    box-shadow: 0 8px 16px rgba(170, 60, 255, 0.3);
}

.download-actions .cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(170, 60, 255, 0.4);
}

/* ===== 新增：下載進度條樣式 ===== */
.download-progress {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.download-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #aa3cff, #8a2be2, #aa3cff);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #aa3cff;
    animation: progressPulse 1s ease-in-out infinite;
}

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

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #aa3cff, #8a2be2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== 新增：下載成功效果 ===== */
.download-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.9), rgba(138, 43, 226, 0.9));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    animation: successFadeIn 0.5s ease-out;
    z-index: 10;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.download-success-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: successBounce 0.6s ease-out 0.2s both;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.download-success-overlay span {
    animation: successSlideUp 0.6s ease-out 0.4s both;
}

@keyframes successSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== 新增：響應式優化 ===== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-actions button {
        width: 100%;
        padding: 1.2rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .download-progress {
        padding: 1.5rem;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .download-card {
        padding: 1rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .download-success-overlay {
        font-size: 1rem;
    }
    
    .download-success-overlay i {
        font-size: 2.5rem;
    }
}

/* ===== 新增：body 模態框狀態 ===== */
body.modal-open {
    overflow: hidden;
}

body.modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===== 新增：兼容性樣式 ===== */
/* 為了兼容之前的 .download-option 類名 */
.download-option {
    composes: download-card;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.option-header {
    composes: card-header;
}

.option-content {
    composes: card-content;
}

.feature-badge {
    composes: badge;
}

.option-details {
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.detail-item i {
    color: #aa3cff;
    font-size: 0.8rem;
} 

/* ===== 新增：K幣扣除顯示效果優化 ===== */

/* K幣扣除容器 */
.kcoin-deduction-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, rgba(170, 60, 255, 0.15), rgba(138, 43, 226, 0.1));
    border: 2px solid rgba(170, 60, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(170, 60, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: kcoinGlow 3s ease-in-out infinite;
}

@keyframes kcoinGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.kcoin-deduction-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.kcoin-deduction-container:hover::before {
    left: 100%;
}

.kcoin-deduction-container:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
}

/* K幣圖標 */
.kcoin-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #aa3cff, #8a2be2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(170, 60, 255, 0.4);
    animation: kcoinSpin 4s linear infinite;
    z-index: 2;
}

@keyframes kcoinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.kcoin-icon i {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.kcoin-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #aa3cff, #8a2be2, #aa3cff);
    border-radius: 50%;
    z-index: -1;
    animation: kcoinPulse 2s ease-in-out infinite;
}

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

/* K幣扣除文字 */
.kcoin-deduction-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    z-index: 2;
}

.kcoin-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: kcoinAmountGlow 2s ease-in-out infinite;
}

@keyframes kcoinAmountGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

.kcoin-label {
    font-size: 0.8rem;
    color: #b0b0b0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 扣除動畫效果 */
.kcoin-deduction-container.deducting {
    animation: kcoinDeduct 0.8s ease-in-out;
}

@keyframes kcoinDeduct {
    0% { 
        transform: scale(1);
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    }
    25% { 
        transform: scale(1.1);
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 87, 34, 0.15));
    }
    50% { 
        transform: scale(0.95);
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 87, 34, 0.2));
    }
    75% { 
        transform: scale(1.05);
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 87, 34, 0.15));
    }
    100% { 
        transform: scale(1);
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    }
}

/* 成功扣除效果 */
.kcoin-deduction-container.success {
    animation: kcoinSuccess 1s ease-in-out;
}

@keyframes kcoinSuccess {
    0% { 
        transform: scale(1);
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    }
    50% { 
        transform: scale(1.15);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.15));
    }
    100% { 
        transform: scale(1);
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(139, 195, 74, 0.1));
    }
}

/* 餘額不足效果 */
.kcoin-deduction-container.insufficient {
    animation: kcoinInsufficient 0.6s ease-in-out;
}

@keyframes kcoinInsufficient {
    0%, 100% { 
        transform: translateX(0);
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    }
    25% { 
        transform: translateX(-5px);
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(233, 30, 99, 0.15));
    }
    75% { 
        transform: translateX(5px);
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(233, 30, 99, 0.15));
    }
}

/* 大型K幣顯示 */
.kcoin-deduction-container.large {
    padding: 1.2rem 1.8rem;
    border-radius: 30px;
}

.kcoin-deduction-container.large .kcoin-icon {
    width: 40px;
    height: 40px;
}

.kcoin-deduction-container.large .kcoin-icon i {
    font-size: 1.5rem;
}

.kcoin-deduction-container.large .kcoin-amount {
    font-size: 1.6rem;
}

.kcoin-deduction-container.large .kcoin-label {
    font-size: 0.9rem;
}

/* 小型K幣顯示 */
.kcoin-deduction-container.small {
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
}

.kcoin-deduction-container.small .kcoin-icon {
    width: 24px;
    height: 24px;
}

.kcoin-deduction-container.small .kcoin-icon i {
    font-size: 0.9rem;
}

.kcoin-deduction-container.small .kcoin-amount {
    font-size: 1rem;
}

.kcoin-deduction-container.small .kcoin-label {
    font-size: 0.7rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .kcoin-deduction-container {
        padding: 0.6rem 1rem;
    }
    
    .kcoin-icon {
        width: 28px;
        height: 28px;
    }
    
    .kcoin-icon i {
        font-size: 1rem;
    }
    
    .kcoin-amount {
        font-size: 1.1rem;
    }
    
    .kcoin-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .kcoin-deduction-container {
        padding: 0.5rem 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
    
    .kcoin-deduction-text {
        align-items: center;
    }
    
    .kcoin-icon {
        width: 24px;
        height: 24px;
    }
    
    .kcoin-icon i {
        font-size: 0.9rem;
    }
    
    .kcoin-amount {
        font-size: 1rem;
    }
    
    .kcoin-label {
        font-size: 0.6rem;
    }
}

/* 兼容性樣式 - 為現有的價格標籤提供升級 */
.custom-price-tag,
.taoqu-price-tag,
.custom-taoqu-price {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.custom-price-tag::before,
.taoqu-price-tag::before,
.custom-taoqu-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.custom-price-tag:hover::before,
.taoqu-price-tag:hover::before,
.custom-taoqu-price:hover::before {
    left: 100%;
}

.custom-price-tag:hover,
.taoqu-price-tag:hover,
.custom-taoqu-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* 價格標籤圖標 */
.custom-price-tag i,
.taoqu-price-tag i,
.custom-taoqu-price i {
    font-size: 0.8rem;
    animation: priceIconPulse 2s ease-in-out infinite;
}

@keyframes priceIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
} 

/* ===== 針對 music_show.html 的K幣扣除顯示優化 ===== */

/* 價格信息容器優化 */
.price-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.price-info:hover::before {
    left: 100%;
}

.price-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

/* 用戶類型顯示優化 */
.user-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* VIP徽章優化 */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vip-badge::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.5s ease;
}

.vip-badge:hover::before {
    left: 100%;
}

.vip-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* 普通用戶徽章優化 */
.normal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: #fff;
    box-shadow: 0 4px 15px rgba(158, 158, 158, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.normal-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.normal-badge:hover::before {
    left: 100%;
}

.normal-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(158, 158, 158, 0.4);
}

/* K幣價格顯示優化 */
.price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% { 
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
        border-color: rgba(255, 215, 0, 0.6);
    }
}

.price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.price:hover::before {
    left: 100%;
}

.price:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
}

/* 價格文字漸變效果 */
.price {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: priceTextGlow 2s ease-in-out infinite;
}

@keyframes priceTextGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}



@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* 響應式優化 */
@media (max-width: 768px) {
    .user-type {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .price-info {
        padding: 1rem;
    }
    
    .vip-badge,
    .normal-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .price {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .price-info {
        padding: 0.8rem;
    }
    
    .vip-badge,
    .normal-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .price {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-type {
        gap: 0.6rem;
    }
}

/* 特殊狀態效果 */
.price-info.vip-discount {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.05));
    border-color: rgba(76, 175, 80, 0.3);
}

.price-info.vip-discount .price {
    color: #4caf50;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-info.free-period {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(3, 169, 244, 0.05));
    border-color: rgba(33, 150, 243, 0.3);
}

.price-info.free-period .price {
    color: #2196f3;
    background: linear-gradient(45deg, #2196f3, #03a9f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 動畫效果類 */
.price-info.animate-in {
    animation: priceInfoSlideIn 0.6s ease-out;
}

@keyframes priceInfoSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes priceInfoHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}