/* 首页样式 */
.header-section {
    background: linear-gradient(135deg, #2947FF 0%, #5C7AFF 50%, #87CEEB 100%);
    color: #fff;
    padding: 20px 15px 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.app-name {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.app-name img,
.app-name .site-logo,
.site-logo {
    max-width: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    height: 24px !important;
    object-fit: contain !important;
    flex-shrink: 0;
    display: block;
    margin-right: 6px;
    vertical-align: middle;
}

.app-name i {
    margin-right: 8px;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-icon {
    font-size: 20px;
    cursor: pointer;
}

.loan-info {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.loan-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.loan-amount {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loan-rate {
    font-size: 14px;
    opacity: 0.9;
}

.login-btn-wrapper {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.login-btn {
    background: #fff;
    color: #667eea;
    padding: 14px 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 产品特点 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.feature-icon.fast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-icon.high {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-icon.low {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.feature-desc {
    font-size: 12px;
    color: #999;
}

/* 申请流程 */
.process {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
}

.process-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.process-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.process-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 10px;
    position: relative;
    z-index: 1;
}

.process-text {
    font-size: 14px;
    color: #333;
}

/* 逾期影响 */
.consequences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.consequence-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.consequence-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.consequence-icon.red {
    background: #fee;
    color: #f5576c;
}

.consequence-icon.orange {
    background: #fff4e6;
    color: #ff9800;
}

.consequence-icon.blue {
    background: #e3f2fd;
    color: #2196f3;
}

.consequence-icon.yellow {
    background: #fffde7;
    color: #ffc107;
}

.consequence-info {
    flex: 1;
}

.consequence-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
}

.consequence-desc {
    font-size: 12px;
    color: #999;
}

.view-details {
    text-align: right;
    margin-top: 15px;
}

.view-details a {
    color: #667eea;
    font-size: 14px;
}

/* 合作机构 */
.partners-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.partners-summary p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.partner-item {
    text-align: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.partner-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.partner-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-name {
    font-size: 12px;
    color: #333;
}

/* 内容区域 */
.content-wrapper {
    padding: 20px 15px;
    padding-bottom: 80px; /* 为底部导航留出空间 */
    min-height: calc(100vh - 60px); /* 确保内容区域至少占满屏幕高度减去头部 */
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px 15px;
    color: #999;
    font-size: 12px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)); /* 适配iPhone X等设备的底部安全区域 */
    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 5px;
    color: #999;
    transition: color 0.3s;
}

.nav-item.active {
    color: #667eea;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-text {
    font-size: 11px;
}

/* 响应式 */
@media (max-width: 768px) {
    .loan-amount {
        font-size: 36px;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .process {
        padding: 0 10px;
    }
    
    .process-item:not(:last-child)::after {
        display: none;
    }
    
    .consequences {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-wrapper {
        padding: 15px 10px 80px; /* 为底部导航留出足够空间 */
    }
}
