﻿/* 基础设置 */
:root {
    --primary: #1a5f7a;
    --secondary: #2c88b0;
    --accent: #ff6b6b;
    --text: #333;
    --light: #fff;
    --gray: #f8f9fa;
    --border: #eaeaea;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部信息栏 */
.top-bar {
    background: var(--primary);
    padding: 12px 0;
}

.notice {
    color: var(--light);
    text-align: center;
    font-size: 16px;
}

/* 主要内容区域样式 */
.hero {
    padding: 60px 0;
    background: var(--gradient);
    color: var(--light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item .icon {
    font-size: 32px;
}

.feature-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text span {
    font-size: 14px;
    opacity: 0.9;
}

/* 联系卡片 */
.contact-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-title {
    color: var(--primary);
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 26px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    background: rgba(255,107,107,0.1);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: rgba(255,107,107,0.2);
    transform: translateY(-2px);
}

.manager-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.manager-name {
    background: rgba(26,95,122,0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.manager-status {
    background: #2ecc71;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.qr-box {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

/* 图片动态效果 */
.qr-img, .qr-code {
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    perspective: 1000px;
    will-change: transform, box-shadow;
}

.qr-img:hover, .qr-code:hover {
    transform: scale(1.1) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 20px rgba(255,107,107,0.3);
    border-radius: 16px;
    border-color: var(--accent);
    filter: brightness(1.1) contrast(1.1);
}

.qr-img::before, .qr-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.qr-img:hover::before, .qr-code:hover::before {
    left: 100%;
}

/* 图片呼吸灯效果 */
@keyframes breathe {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 4px 15px rgba(26,95,122,0.3);
    }
}

/* 图片加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片浮动效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* 图片加载时的骨架屏效果 */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 组合动画效果 */
.qr-img, .qr-code {
    animation: 
        fadeInUp 0.8s ease-out,
        breathe 4s ease-in-out infinite 0.8s,
        float 6s ease-in-out infinite 1.2s;
}

.qr-img:hover, .qr-code:hover {
    animation: none;
}

/* 图片容器动态效果 */
.qr-box, .qr-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.qr-box:hover, .qr-wrapper:hover {
    transform: translateY(-5px);
}

/* 图片点击效果 */
.qr-img:active, .qr-code:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 图片加载时的骨架屏效果 */
.qr-img::after, .qr-code::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: -1;
    border-radius: 12px;
}

/* 图片加载完成后隐藏骨架屏 */
.qr-img.loaded::after, .qr-code.loaded::after {
    display: none;
}

/* 图片加载时的渐变背景 */
.qr-img, .qr-code {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.qr-img.loaded, .qr-code.loaded {
    background: none;
}

/* 图片悬停时的额外效果 */
.qr-img:hover, .qr-code:hover {
    filter: brightness(1.1) contrast(1.1);
}

/* 响应式图片效果 */
@media (max-width: 768px) {
    .qr-img, .qr-code {
        width: 140px;
        height: 140px;
        animation: 
            fadeInUp 0.8s ease-out,
            breathe 4s ease-in-out infinite 0.8s;
    }
    
    .qr-img:hover, .qr-code:hover {
        transform: scale(1.05) rotateY(3deg) rotateX(3deg);
    }
}

@media (max-width: 480px) {
    .qr-img, .qr-code {
        width: 120px;
        height: 120px;
        animation: fadeInUp 0.8s ease-out;
    }
    
    .qr-img:hover, .qr-code:hover {
        transform: scale(1.03);
    }
}

.qr-tip {
    color: var(--text-light);
    font-size: 14px;
}

.apply-now {
    display: block;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.apply-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,95,122,0.3);
}

/* 贷款方案 */
.loan-plans {
    padding: 80px 0;
    background: var(--gray);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 50px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-card {
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.featured {
    background: var(--gradient);
    color: var(--light);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent);
}

.featured .amount {
    color: var(--light);
}

.features {
    list-style: none;
    margin-bottom: 30px;
}

.features li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
}

.featured .features li::before {
    color: var(--light);
}

.apply-btn {
    display: block;
    background: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.featured .apply-btn {
    background: var(--light);
    color: var(--primary);
}

.apply-btn:hover {
    transform: translateY(-3px);
}

/* 申请流程 */
.process {
    padding: 80px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    text-align: center;
}

.step {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* 联系方式区域 */
.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 左侧联系信息 */
.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-header {
    text-align: center;
    margin-bottom: 25px;
}

.contact-header h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-header p {
    color: #666;
    font-size: 16px;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
    color: var(--accent);
    text-decoration: none;
    background: rgba(255,107,107,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.contact-person {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.name {
    background: rgba(26,95,122,0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

.status {
    background: #2ecc71;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

.contact-btn {
    display: block;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

/* 右侧二维码 */
.contact-qr {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.qr-header {
    margin-bottom: 25px;
}

.qr-header h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.qr-header p {
    color: #666;
    font-size: 16px;
}

.qr-wrapper {
    max-width: 200px;
    margin: 0 auto;
}

.qr-code {
    width: 160px;
    height: 160px;
    display: block;
    margin: 0 auto 12px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qr-tip {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

/* 悬浮按钮 */
.float-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--light);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-item .icon {
        font-size: 28px;
    }
    
    .plans-grid,
    .process-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-phone {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-person {
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
} 