* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 响应式容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 蓝色背景块 */
.blue-header {
    background-color: #2e61f6;
    color: white;
    padding: 60px 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.blue-header-small {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

/* 白色卡片 */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin: -90px 15px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #898b8a;
    font-size: 16px;
    margin-bottom: 15px;
}

.card-amount {
    color: #d8ab74;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-amount-unit {
    font-size: 14px;
    color: #d8ab74;
}

.card-rate {
    color: #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.card-desc {
    color: #898b8a;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 图标行 */
.icon-row {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.icon-item img {
    width: 50px;
    height: 50px;
/*    margin-bottom: 10px;*/
}

.icon-item-text {
    font-size: 12px;
    color: #666;
}

/* 图片 */
.full-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
/*    margin: 30px 0;*/
}

/* 风险提示 */
.risk-warning {
/*    background-color: #f9f9f9;*/
    padding: 2px 15px;
    text-align: center;
    margin: 2px 0;
}

.risk-warning p {
    color: #2e61f6;
    font-size: 9px;
    line-height: 1.8;
/*    margin-bottom: 10px;*/
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: #0b57ca;
    color: white;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

.btn-primary:hover {
    background-color: #0a4aa8;
}

.btn-secondary {
    background-color: #2e61f6;
    color: white;
}

.btn-secondary:hover {
    background-color: #1e4fd1;
}

/* 导航栏 */
.navbar {
    background-color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.navbar-back {
    font-size: 24px;
    cursor: pointer;
    color: #2e61f6;
}

.navbar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
}

/* 步骤指示器 */
.steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 15px;
/*    background-color: white;*/
    margin-bottom: 20px;
}

.step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
}

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

.step-line {
    flex: 1;
    height: 2px;
    background-color: #2e61f6;
    margin: 0 10px;
    margin-bottom: 30px;
}

.step-text {
    font-size: 12px;
    color: #666;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-label-required::before {
    content: '*';
    color: red;
    margin-right: 5px;
    font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: none;
/*    border: 1px solid #ddd;*/
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2e61f6;
    box-shadow: 0 0 0 3px rgba(46, 97, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 上传框 */
.upload-box {
/*    border: 2px dashed #ddd;*/
    border-radius: 4px;
/*    padding: 20px;*/
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #2e61f6;
    background-color: #f0f4ff;
}

.upload-box img {
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 10px;
}

.upload-box-text {
    font-size: 12px;
    color: #999;
}

/* 双栏上传 */
.upload-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: space-between;
    flex-direction: row;
}

.upload-col {
    flex: 1;
}

/* 切换按钮 */
.toggle-switch {
    display: inline-block;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: #2e61f6;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s ease;
}

.toggle-switch.active::after {
    left: 24px;
}

/* 补充信息项 */
.supplement-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.supplement-item-label {
    font-size: 14px;
    color: #333;
}

.supplement-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.supplement-content.active {
    display: block;
}

/* 选择框 */
.picker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #ddd;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.picker-cancel,
.picker-confirm {
    color: #2e61f6;
    cursor: pointer;
    font-size: 14px;
}

.picker-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.picker-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.picker-option {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.picker-option:hover,
.picker-option.active {
    background-color: #f0f4ff;
    color: #2e61f6;
}

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #2e61f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 15px;
    color: #2e61f6;
    font-size: 16px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 20px;
}

.table th {
    background-color: #f0f0f0;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background-color: #f9f9f9;
}

/* 操作按钮 */
.action-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-edit {
    background-color: #2e61f6;
    color: white;
}

.action-btn-edit:hover {
    background-color: #1e4fd1;
}

.action-btn-delete {
    background-color: #ff6b6b;
    color: white;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .blue-header {
        padding: 40px 15px;
        font-size: 20px;
        height: 200px;
    }
    
    .card {
        margin: -120px 10px 20px;
        padding: 20px;
    }
    
    .icon-row {
        margin-top: 20px;
    }
    
    .upload-row {
/*        flex-direction: column;*/
    }
    
    .upload-col {
        width: 100%;
    }
    
    .step-line {
/*        display: none;*/
    }
    
    .steps {
/*        flex-direction: column;*/
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .blue-header {
        padding: 30px 10px;
        font-size: 18px;
    }
    
    .card {
        margin: -120px 10px 20px;
        padding: 15px;
                text-align: center;
    }
    
    .card-amount {
        font-size: 50px;
    }
    
    .btn-primary {
        max-width:70%;
    }
    
    .navbar {
        padding: 10px;
    }
    
    .navbar-title {
        font-size: 16px;
    }
}

/* 技术支持提示 */
.tech-support {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2e61f6;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    z-index: 100;
}

.tech-support-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 10px;
    display: none;
    z-index: 101;
}

.tech-support:hover .tech-support-tooltip {
    display: block;
}
