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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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


/* LOGO */
.main-header {
    background-color: #EBE443;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    /* 移除之前的文本相关样式 */
}

.logo-image {
    max-height: 80px;
    /* 调整这个值以适应您的设计 */
    width: auto;
}



/* Banner 样式 */
.banner-section {
    background-image: url('imgs/bg.PNG');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-top: 60px;
}

.banner-content {
    max-width: 50%;
    color: #FFFFFF;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.highlight {
    color: #EBE443;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-button img {
    height: 40px;
}


/* Features 部分样式 */
.features-section {
    padding: 80px 0;
    /* 增加上下内边距 */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
    /* 增加标题下方的间距 */
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    /* 增加特性项之间的间距 */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
    /* 增加内容和图片之间的间距 */
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
}

.feature-number {
    color: #00bfa5;
    font-weight: bold;
    margin-right: 10px;
}

.feature-item h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    /* 增加标题和段落之间的间距 */
}

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        /* 在移动设备上减小字体大小 */
    }

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        /* 在移动设备上减少间距 */
    }

    .feature-image {
        order: -1;
        /* 在移动设备上将图片置于文本之上 */
    }
}

/* Contact 部分样式 */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #00bfa5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.icon-wrapper i {
    font-size: 24px;
    color: #ffffff;
}

.contact-details {
    flex: 1;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-item .highlight {
    font-weight: bold;
    color: #00bfa5;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: #00bfa5;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #008c7a;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }
}



/* 内容页面样式 */
.content-section {
    padding: 80px 0;
    margin-top: 40px;
}

.content-section h1 {
    color: #4A3500;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 页脚样式 */
.main-footer {
    background-color: #4A3500;
    color: #FFFFFF;
    padding: 1rem 0;
}

.main-footer .container {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .banner-content {
        max-width: 100%;
    }

    .loan-options {
        flex-direction: column;
        align-items: center;
    }

    .option {
        width: 100%;
        max-width: 200px;
    }
}


/* 信息删除页面设计 */
.info-remove-section {
    padding: 80px;
    margin-top: 60px;
    background-color: #f9f9f9;
}

.info-remove-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #FF0000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #CC0000;
}

.warning-text {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .info-remove-form {
        padding: 20px;
    }


}


/* 统一站内字体和颜色 */
:root {
    --primary-color: #EBE443;
    --secondary-color: #4A3500;
    --text-color: #333333;
    --background-color: #f9f9f9;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
}

a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.main-header {
    background-color: var(--primary-color);
}


.btn-loan,
.btn-submit {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-loan:hover,
.btn-submit:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.feature-number {
    color: var(--primary-color);
}

.main-footer {
    background-color: var(--secondary-color);
    color: #FFFFFF;
}

.page-title {
    color: #4A3500;
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 100px;
    padding-top: 60px;
}

@media (max-width: 768px) {

    .page-title,
    h1 {
        font-size: 2rem;
        padding-top: 30px;
    }
}


/* 滑动条 */
/* 贷款计算器样式 */

.loan-calculator {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;

}

.loan-title {
    color: #4A3500;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.currency-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: #EBE443;
    /* border: 2px solid #4A3500; */
    border-radius: 50%;
    color: #4A3500;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.title-text {
    display: inline-block;
}

.loan-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* 增加按钮间距 */
    margin-bottom: 30px;
}

.option {
    padding: 15px 30px;
    /* 增大按钮尺寸 */
    background-color: #f0f0f0;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    /* 增大按钮字体 */
    font-weight: bold;
}

.option.active {
    background-color: #EBE443;
    color: #4A3500;
}

.loan-amount h3 {
    font-size: 3rem;
    /* 增大贷款金额字体 */
    color: #4A3500;
    text-align: center;
    margin-bottom: 30px;
}

.custom-slider {
    position: relative;
    width: 100%;
    height: 8px;
    /* 稍微增加滑动条高度 */
    background-color: #e0e0e0;
    margin: 60px 0;
    /* 增加上下间距 */
    border-radius: 4px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-fill {
    position: absolute;
    height: 100%;
    background-color: #EBE443;
    left: 0;
    border-radius: 4px;
}


.slider-handle {
    position: absolute;
    width: 36px;
    height: 36px;
    background-color: #EBE443;
    /* border: 2px solid #4A3500; */
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.slider-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #4A3500;
    font-weight: bold;
    font-size: 18px;
}


.slider-handle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loan-details {
    text-align: center;
    color: #4A3500;
    font-size: 1.2rem;
    /* 增大文字大小 */
    margin-bottom: 30px;
}

.btn-loan {
    display: block;
    width: 100%;
    padding: 20px;
    /* 增大按钮高度 */
    background-color: #EBE443;
    color: #4A3500;
    border: none;
    border-radius: 30px;
    font-size: 1.3rem;
    /* 增大按钮字体 */
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-loan:hover {
    background-color: #d5ce3c;
}

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

/* 响应式设计调整 */
@media (max-width: 768px) {
    .loan-title {
        font-size: 1.8rem;
    }

    .currency-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .loan-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .option {
        width: 80%;
        max-width: 300px;
    }

    .loan-amount h3 {
        font-size: 2.5rem;
    }

    .custom-slider {
        margin: 40px 0;
    }
}


/* banner 文案 */
.banner-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0)), url('imgs/bg.PNG');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    margin-top: 60px;
}

.banner-content {
    max-width: 600px;
    color: #FFFFFF;
    text-align: left;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.banner-content .highlight {
    color: #EBE443;
    font-weight: 800;
    display: block;
    font-size: 3.5rem;
    margin-top: 0.5rem;
}

.banner-content .subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #F0F0F0;
    font-weight: 300;
    line-height: 1.5;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-button {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-button:hover {
    transform: translateY(-5px);
}

.app-button img {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .banner-section {
        padding: 80px 0;
    }

    .banner-content {
        max-width: 100%;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content .highlight {
        font-size: 3rem;
    }

    .banner-content .subtitle {
        font-size: 1.2rem;
    }

    .app-button img {
        height: 40px;
    }
}


/* 联系方式 */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #EBE443;
    /* 使用主题黄色作为背景 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.icon-wrapper i {
    font-size: 24px;
    color: #4A3500;
    /* 使用深棕色作为图标颜色 */
}

.contact-details {
    flex: 1;
}

.contact-item h3 {
    font-size: 1.3rem;
    color: #4A3500;
    /* 使用深棕色作为标题颜色 */
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-item .highlight {
    font-weight: bold;
    color: #4A3500;
    /* 使用深棕色作为高亮文字颜色 */
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: #4A3500;
    /* 使用深棕色作为链接颜色 */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #EBE443;
    /* 鼠标悬停时变为黄色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
    }
}


/* 响应式导航条 */
.main-header {
    background-color: #EBE443;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    /* justify-content: space-between; */
    align-items: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: inline-block;
}

.logo-image {
    max-height: 45px;
    width: auto;
}

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

.main-nav li {
    margin: 0 1.2rem;
}

.main-nav .nav-link {
    color: #4A3500;
    text-decoration: none;
    font-size: 1rem;
    font-weight:bolder;
    font-weight: 500;
    padding: 0.6rem 0;
    position: relative;
    transition: color 0.3s ease;
}


.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #ffffff;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.main-nav .nav-link::after {
    content: ''; 
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #4A3500;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right; 
    transition: transform 0.3s ease;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4A3500;
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .main-nav .nav-link {
        font-size: 1.1rem;
    }

    .main-nav li {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #EBE443;
        display: none;
        padding: 1rem 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav li {
        margin: 0.7rem 0;
    }

    .main-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .logo-image {
        max-height: 40px;
    }
}