
/* 标题 */
.page-title {
    text-align: center;
    margin-bottom: 32px;
}
.page-title h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}
.page-title p {
    color: #6b7280;
    font-size: 14px;
}

/* 网格布局 */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
.col-main {
    flex: 1 1 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
}
.col-side {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
}

/* 模块标题 */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 推荐卡片 */
.recommend-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 24px;
}

/* 卡片列表 */
.card-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}
.card-item:hover {
    border-color: #165DFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.card-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* 按钮组 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}
.btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.btn-blue {
    background: #165DFF;
    color: #fff;
}
.btn-green {
    background: #10b981;
    color: #fff;
}
.btn-purple {
    background: #9333ea;
    color: #fff;
}
.btn:hover {
    opacity: 0.9;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.form-input:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22,93,255,0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 弹窗 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    display: none;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}
.btn-cancel {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.btn-submit {
    padding: 8px 16px;
    background: #165DFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* 免息期列表 */
.interest-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.interest-item {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.interest-item:hover {
    background: #f9fafb;
    border-radius: 6px;
}

/* 推荐卡片美化 */
.recommend-best {
    background: linear-gradient(to right, #eff6ff, #f0f9ff);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.recommend-best .tag {
    background: #165DFF;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.recommend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.recommend-grid .item {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* 安全声明 */
.tip-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: #374151;
    margin-top: 32px;
    line-height: 1.6;
}