/* 首页特定样式 */

/* Banner区域 */
.banner-section {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.banner-section img {
    width: 100%;
    height: auto;
}

/* 首页标题区域 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: "";
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 8px;
}

.section-more {
    color: var(--primary);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.section-more i {
    margin-left: 4px;
    font-size: 14px;
}

/* 兑换卡片 */
.exchange-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.exchange-card:active {
    transform: translateY(2px);
    box-shadow: var(--shadow);
}

.exchange-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.exchange-icon img {
    width: 32px;
    height: 32px;
}

.exchange-icon.wechat-icon {
    background: #07c160;
}

.exchange-icon.alipay-icon {
    background: #1677ff;
}

.exchange-content {
    flex: 1;
}

.exchange-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.exchange-title i {
    margin: 0 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.exchange-button {
    margin-top: 8px;
}

.exchange-button a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 13px;
}

.exchange-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 安全提示区域 */
.safety-tips {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.safety-tips-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.safety-tips-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22, 108, 224, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    margin-right: 12px;
}

.safety-tips-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.safety-tips-list {
    padding-left: 4px;
}

.safety-tips-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.safety-tips-item:last-child {
    margin-bottom: 0;
}

.safety-tips-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* 兑换模态框样式 */
.exchange-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 360px;
    background: white;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.exchange-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.exchange-modal-container {
    width: 100%;
}

.exchange-modal-header {
    text-align: center;
    padding: 20px 16px 12px;
}

.exchange-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.exchange-warning {
    font-size: 13px;
    color: var(--text-secondary);
}

.text-danger {
    color: var(--danger);
    font-weight: 600;
}

.exchange-modal-body {
    padding: 12px 16px 20px;
}

.exchange-option {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.exchange-option:last-child {
    margin-bottom: 0;
}

.exchange-option:hover {
    background-color: rgba(22, 108, 224, 0.05);
}

.exchange-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.exchange-option-icon img {
    width: 100%;
    height: 100%;
}

.exchange-option-content {
    flex: 1;
    padding: 0 12px;
}

.exchange-option-title {
    margin-bottom: 4px;
}

.exchange-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.exchange-badge.wechat {
    background-color: rgba(7, 193, 96, 0.1);
    color: #07c160;
}

.exchange-badge.alipay {
    background-color: rgba(22, 119, 255, 0.1);
    color: #1677ff;
}

.exchange-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.exchange-option-desc p {
    margin: 2px 0;
}

.exchange-option-tips {
    font-size: 12px;
    color: var(--text-light);
}
