/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 375px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 20px;
}

.bank-logo {
    width: 100px;
    height: 30px;
    margin: 0 auto 10px;
}

.bank-logo svg {
    width: 100%;
    height: 100%;
}

h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* 卡片列表样式 */
.cards-list {
    margin-bottom: 20px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 10px 10px 30px #d9d9d9,
        -10px -10px 30px #ffffff;
    border-radius: 12px;
    padding: 15px;
}

/* 卡片样式 */
.card-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
}

.card-container:last-child {
    margin-bottom: 0;
}

.card-container:hover {
    background-color: #f0f0f0;
}

.card-item {
    position: relative;
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.card-container .card-icon {
    color: #666;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-info {
    flex: 1;
}

.card-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.card-number {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-weight: bold;
}

/* 复选框样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.selected-icon,
.unselected-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.selected-icon svg,
.unselected-icon svg {
    width: 100%;
    height: 100%;
}

/* 协议样式 */
.agreement {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 0 5px;
}

.agreement-link {
    color: #ff6b6b;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.agreement-checkbox {
    margin: 1px 5px 0 0;
    position: relative;
    width: 25px;
    height: 17px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0.5px solid #ccc;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.agreement-checkbox:checked {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

.agreement-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 按钮样式 */
.activate-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.activate-btn:hover {
    background-color: #ff5252;
}

.activate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 修复选中图标的显示/隐藏 */
.selected-icon[style*="display: none"],
.unselected-icon[style*="display: none"] {
    display: none !important;
}