/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 状态栏模拟 */
.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 999;
}

.status-left .time {
    font-size: 14px;
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-icon {
    width: 16px;
    height: 16px;
}

.battery-percent {
    font-size: 12px;
    margin-left: 4px;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #1a734c, #0f5132);
    color: white;
    padding: 60px 16px 20px;
    position: relative;
}

.profile-page .header {
    display: none;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
}

.header-right {
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.9;
}

.header-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 16px;
}

.btn-help,
.btn-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 主内容区 */
.main-content {
    padding: 0 16px 20px;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

/* 贷款卡片 */
.loan-card {
    background: linear-gradient(135deg, #1a734c, #0f5132);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.loan-title {
    font-size: 20px;
    font-weight: bold;
}

.loan-tag {
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
}

.loan-amount-section {
    text-align: center;
}

.loan-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.loan-amount {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.loan-rate {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-check-rate {
    width: 100%;
    height: 44px;
    background-color: white;
    color: #1a734c;
    font-size: 16px;
    font-weight: bold;
    border-radius: 22px;
    transition: all 0.3s ease;
}

.btn-check-rate:active {
    transform: scale(0.98);
}

/* 产品信息 */
.product-info {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1a734c;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.feature-label {
    color: #666;
}

.feature-content {
    color: #333;
}

/* 新人指南 */
.new-user-guide {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.guide-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-icon {
    width: 40px;
    height: 40px;
}

.guide-content {
    flex: 1;
}

.guide-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.guide-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

/* 借款流程 */
.loan-process {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.process-steps {
    display: flex;
    justify-content: space-between;
}

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

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -16px;
    width: 32px;
    height: 1px;
    background-color: #e0e0e0;
}

.step-icon {
    width: 36px;
    height: 36px;
    background-color: #1a734c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 8px;
}

.step-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

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

/* 品牌故事 */
.brand-story {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-banner {
    background: linear-gradient(135deg, #1a734c, #0f5132);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

.brand-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.brand-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.btn-learn-more {
    background-color: white;
    color: #1a734c;
    padding: 6px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

.certifications {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0;
}

.cert-icon {
    width: 48px;
    height: 24px;
}

.cert-content {
    text-align: center;
}

.cert-title {
    font-size: 14px;
    font-weight: bold;
    color: #1a734c;
}

.cert-desc {
    font-size: 12px;
    color: #666;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 20px;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

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

.nav-item.active .nav-text {
    color: #1a734c;
}

.footer-info {
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.footer-text {
    font-size: 14px;
    font-weight: bold;
    color: #1a734c;
    margin-bottom: 2px;
}

.footer-slogan {
    font-size: 12px;
    color: #666;
}

.footer-legal {
    text-align: center;
    padding: 8px 0 16px;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.legal-text {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

/* 个人中心页面样式 */
.profile-page {
    background-color: #f8f9fa;
}

.profile-header-actions {
    position: fixed;
    top: 44px;
    right: 16px;
    display: flex;
    gap: 16px;
    z-index: 100;
}

.btn-settings,
.btn-notification {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.login-section {
    background-color: white;
    margin-top: 80px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-info {
    flex: 1;
}

.login-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.login-desc {
    font-size: 14px;
    color: #666;
}

.btn-login {
    padding: 8px 24px;
    background-color: #1a734c;
    color: white;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

.product-title-section {
    padding: 20px 16px 0;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a734c;
}

.records-section {
    margin-top: 12px;
}

.records-tabs {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 16px;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.record-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 2px solid transparent;
}

.record-tab.active {
    border-bottom-color: #1a734c;
}

.tab-icon {
    font-size: 18px;
    margin-right: 8px;
}

.tab-text {
    flex: 1;
    font-size: 14px;
}

.tab-arrow {
    color: #999;
    font-size: 18px;
}

.more-functions {
    margin-top: 20px;
    padding: 0 16px;
}

.functions-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1a734c;
}

.function-list {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.function-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.function-item:last-child {
    border-bottom: none;
}

.function-text {
    font-size: 14px;
}

.function-status {
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}

.function-arrow {
    color: #999;
    font-size: 18px;
}

.profile-page .footer {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.profile-page .footer-info,
.profile-page .footer-legal {
    display: none;
}

/* 响应式设计 */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        background-color: #e0e0e0;
    }
    
    .header,
    .main-content {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info,
.new-user-guide,
.loan-process,
.brand-story,
.records-section,
.more-functions {
    animation: fadeIn 0.3s ease-out;
}

/* 触摸反馈 */
.btn-check-rate,
.btn-learn-more,
.btn-login,
.nav-item,
.record-tab,
.function-item {
    -webkit-tap-highlight-color: transparent;
}

.btn-check-rate:active,
.btn-learn-more:active,
.btn-login:active {
    transform: scale(0.98);
}

.nav-item:active,
.record-tab:active,
.function-item:active {
    background-color: rgba(0, 0, 0, 0.05);
}