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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #FF0050;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #FF0050, #2575fc);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF0050, #2575fc);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #2575fc, #FF0050);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 80, 0.4);
}

.copy-btn {
    padding: 8px 15px;
    font-size: 14px;
    margin-left: 15px;
}

.copy-btn-small {
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 10px;
    background: #FF0050;
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
}

.bg-light {
    background-color: #f0f2f5;
}

/* 页头样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-link {
    color: #FF0050;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 0, 80, 0.3);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav ul li a:hover {
    color: #FF0050;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #FF0050, #2575fc);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* 首屏大图 */
.hero {
    background: linear-gradient(135deg, #2575fc 0%, #FF0050 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    color: rgba(255, 255, 255, 0.9);
}

.hero-contact {
    margin: 40px 0;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: #FF0050;
    margin: 25px 0 15px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* 服务项目 */
.services-tabs {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #fff;
    color: #FF0050;
    border-bottom: 3px solid #FF0050;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail {
    text-align: center;
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #FF0050;
}

.service-detail h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FF0050;
}

.service-detail p {
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* 办理流程 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #FF0050, #2575fc);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF0050, #2575fc);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #FF0050;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* 贷款计算器 */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.calculator-form .form-group {
    margin-bottom: 20px;
}

.calculator-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.calculator-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.calculator-form input:focus {
    border-color: #FF0050;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 80, 0.2);
}

.calculator-result h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FF0050;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.result-item span:last-child {
    font-weight: 500;
    color: #FF0050;
}

/* 服务优势 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FF0050;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #FF0050;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 成功案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FF0050;
}

.case-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 客户评价 */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonial-slide {
    display: none;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eee;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.client-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF0050, #2575fc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto;
}

.rating {
    color: #FFEB3B;
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.client-info h4 {
    color: #FF0050;
    margin-bottom: 5px;
}

.client-info p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    color: #FF0050;
    border: 1px solid #eee;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: linear-gradient(135deg, #FF0050, #2575fc);
    color: #fff;
    transform: scale(1.1);
    border: 1px solid #FF0050;
}

/* 常见问题 */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion .accordion-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-accordion .accordion-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-header:hover {
    background: #e9ecef;
}

.faq-accordion .accordion-header h3 {
    font-size: 18px;
    color: #FF0050;
    margin: 0;
    text-align: left;
}

.faq-accordion .accordion-icon {
    font-size: 24px;
    color: #FF0050;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-accordion .accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.faq-accordion .accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 200px;
}

.faq-accordion .accordion-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* 贷款资讯 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.article-content h3 a {
    color: #FF0050;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #2575fc;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
}

/* 合作伙伴 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.partner-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.partner-item h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 32px;
    color: #FF0050;
    margin-right: 20px;
}

.info-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #FF0050;
}

.info-content p {
    color: #666;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #FF0050;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 80, 0.2);
}

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

/* 页脚 */
.footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF0050;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 20px;
    }
    
    .hero-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-wrapper,
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .features-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .process-steps,
    .features-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .slider-nav {
        gap: 10px;
    }
    
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .calculator-wrapper {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-content h3 {
        font-size: 18px;
    }
    
    .hero-contact {
        font-size: 16px;
    }
    
    .copy-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-left: 10px;
    }
}