/* 
* 云海信用 - 网站样式表
* 主色调：黑色和白色，体现金融行业的专业与可靠
*/

/* 基础样式 */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #0056b3;
    --light-color: #fff;
    --gray-color: #f8f9fa;
    --dark-gray: #6c757d;
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "思源黑体", sans-serif;
    color: var(--secondary-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    padding: 12px 30px;
    border-radius: 0;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* 导航栏 */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-shrink {
    padding: 10px 0;
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 8px 15px;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--light-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: 30px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--light-color);
}

.btn-consultation {
    background-color: var(--accent-color);
    color: var(--light-color) !important;
    padding: 8px 20px;
    border-radius: 4px;
    margin-left: 15px;
}

.btn-consultation:hover {
    background-color: var(--primary-color);
}

/* 轮播图 */
#mainCarousel {
    height: 100vh;
    margin-bottom: 0;
}

.carousel-item {
    height: 100vh;
    position: relative;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    left: 0;
    right: 0;
    padding: 0 15%;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
}

.carousel-indicators {
    z-index: 3;
}

.bg-1 {
    background-image: url('../images/slider-1.jpg');
}

.bg-2 {
    background-image: url('../images/slider-2.jpg');
}

.bg-3 {
    background-image: url('../images/slider-3.jpg');
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* 关于我们 */
.about-section {
    background-color: var(--light-color);
}

.about-content {
    padding: 30px 0;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-content .lead {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: none;
    width: 600px;
    margin: 0 auto;
}

.about-image img {
    height: 250px;
    width: 600px;
    object-fit: cover;
    display: block;
}

/* 业务范围 */
.services-section {
    background-color: var(--gray-color);
}

.service-box {
    background-color: var(--light-color);
    padding: 40px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: var(--transition);
    text-align: center;
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-box p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

.read-more i {
    transition: var(--transition);
    margin-left: 5px;
}

.read-more:hover i {
    margin-left: 10px;
}

/* 数据统计 */
.stats-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-color);
    text-align: center;
    padding: 100px 0;
}

.stat-item h3 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    text-transform: uppercase;
}

/* 成功案例 */
.cases-section {
    background-color: var(--light-color);
}

.case-box {
    margin-bottom: 30px;
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    transition: var(--transition);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.case-image:hover .case-overlay {
    opacity: 1;
}

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

.case-content {
    padding: 20px;
    background-color: var(--light-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.case-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* 合作伙伴 */
.partners-section {
    background-color: var(--gray-color);
    padding: 60px 0;
}

.partner-logo {
    text-align: center;
    margin-bottom: 30px;
    transition: var(--transition);
    opacity: 0.7;
}

.partner-logo:hover {
    opacity: 1;
}

/* 联系我们 */
.contact-section {
    background-color: var(--light-color);
}

.contact-info {
    padding: 30px 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-list li i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary-color);
}

.map-container {
    padding: 30px 0;
    height: 100%;
}

.map-container iframe {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 5px !important;
}

.contact-form {
    background-color: var(--gray-color);
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer h3 {
    color: var(--light-color);
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--light-color);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter form {
    position: relative;
}

.footer-newsletter input {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-color);
}

.footer-newsletter button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: var(--accent-color);
    border: none;
    color: var(--light-color);
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--secondary-color);
}

.footer-newsletter .about-image {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 150px;
    height: 150px;
    margin: 0 0;
}

.footer-newsletter .about-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    line-height: 50px;
    z-index: 99;
    font-size: 20px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* 响应式样式 */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .btn-consultation {
        margin: 10px 15px;
        display: inline-block;
    }
    
    .carousel-caption h1 {
        font-size: 36px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .carousel-caption h1 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .service-box {
        margin-bottom: 30px;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer h3 {
        margin-top: 30px;
    }
}

/* 联系我们弹窗 */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: none;
    padding: 25px 30px 10px;
    background-color: var(--light-color);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-body {
    padding: 20px 30px 30px;
}

.qrcode-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    display: block;
}

.modal-footer {
    border-top: none;
    padding: 0 30px 25px;
    justify-content: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.modal-footer .btn {
    padding: 10px 30px;
    border-radius: 16px;
    font-weight: 500;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.modal-footer .btn:hover {
    background-color: #f0f0f0;
    border-color: var(--secondary-color);
}

.btn-close {
    color: var(--primary-color);
    opacity: 0.8;
    filter: none;
}

.btn-close:hover {
    opacity: 1;
} 