.ripro-download-widget {
    /* 移除背景和边框，使用主题的样式 */
    padding: 0;
    margin-bottom: 20px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

/* 当只有一个按钮时，移除网格列定义，让按钮全宽度显示 */
.download-buttons:has(.disk-button:only-child) {
    grid-template-columns: 1fr;
}

.disk-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    background: var(--ri-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    gap: 5px;
}

.disk-button:hover {
    background: var(--ri-primary);
    transform: translateY(-1px);
}

.disk-button.loading {
    opacity: 0.7;
    /* 🆕 修改：移除 cursor: not-allowed */
}

.disk-icon {
    font-weight: bold;
    font-size: 14px;
}

/* 🆕 新增：购买区域样式 */
.purchase-section {
    border-top: 1px solid #e8e8e8;
    padding: 12px 0;
    text-align: center;
}

.price-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.price-label {
    color: #666;
}

.price-value {
    color: #ff4d4f;
    font-weight: bold;
    font-size: 16px;
}

.password-tips {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #0050b3;
}

.password-tips p {
    margin: 0;
    line-height: 1.4;
}

.other-passwords {
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
}

.password-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.4;
}

.password-text {
    flex: 1;
    word-break: break-all;
}

.copy-password {
    background: #52c41a;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    white-space: nowrap;
}

.copy-password:hover {
    background: #73d13d;
}

.copy-all-passwords {
    width: 100%;
    background: #fa8c16;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.copy-all-passwords:hover {
    background: #faad14;
}

.download-status {
    display: none;
    margin-top: 8px;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.download-status.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.download-status.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .password-tips {
        background: #1d1d1d;
        border-color: #434343;
        color: #8c8c8c;
    }
    
    .other-passwords {
        border-top-color: #434343;
    }
    
    .purchase-section {
        border-top-color: #434343;
    }
    
    .price-label {
        color: #8c8c8c;
    }
    
    .download-status.success {
        background: #162312;
        border-color: #274916;
        color: #49aa19;
    }
    
    .download-status.error {
        background: #2a1215;
        border-color: #58181c;
        color: #a61d24;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-buttons {
        grid-template-columns: 1fr;
    }
}