/* 全局样式 */
:root {
    --primary-color: #2EA82D;
    --secondary-color: #E3B931;
    --accent-color: #E3B931;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --header-height: 80px; /* 添加头部高度变量 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 当头部固定时，为body添加padding-top */
body.header-fixed {
    padding-top: var(--header-height);
}

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

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

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

p {
    margin-bottom: 15px;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-md-6 {
    position: relative;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

.section-bg {
    background-color: #f7f8fa;
}

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

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 25px);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .mt-md-0 {
        margin-top: 0 !important;
    }
}

/* 头部样式 */
#header {
    position: relative;
    height: 80px;
    transition: all 0.5s;
    z-index: 997;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* 添加固定头部样式 */
#header.header-scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.5s ease forwards;
}

/* 头部滑入动画 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-size: 28px;
    margin: 0;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
    display:flex;
    align-items: center;
    gap: 10px;
}
.logo h1 .img {
    height: 50px;
    width: 50px;
}
.logo h1 .registed {
    font-size: 16px;
    vertical-align: top;
}

.logo h1 a, .logo h1 a:hover {
    color: var(--dark-color);
    text-decoration: none;
}

.logo h1 span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a:hover, .navbar .active, .navbar li:hover > a {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
        position: absolute;
        top: 80px;
        right: 15px;
        left: 15px;
        background: #fff;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar li {
        width: 100%;
    }

    .navbar a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 英雄区域样式 */
.hero {
    width: 100%;
    height: 80vh;
    background: url('../img/hero-bg.svg') center center/cover no-repeat;
    position: relative;
    padding: 0;
    color: #fff;
}

.hero::before {
    content: '';
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

.hero .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    margin: 0 0 20px 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
}

.hero h2 {
    color: #eee;
    margin-bottom: 30px;
    font-size: 24px;
}

.hero-btn {
    margin-top: 30px;
}

.btn-get-started, .btn-contact {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    transition: 0.5s;
    margin: 10px;
    color: #fff;
    background: var(--primary-color);
}

.btn-get-started:hover {
    background: var(--secondary-color);
}

.btn-contact {
    background: transparent;
    border: 2px solid #fff;
}

.btn-contact:hover {
    background: #fff;
    color: var(--primary-color);
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: #ffffff;
    background-image: url('../img/about-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-img {
    position: relative;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 15px;
}

/* 服务样式 */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: url('../img/services-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.service-box {
    padding: 30px;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: 8px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 1;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(0, 86, 179, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15);
}

.service-box:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-box p {
    margin-bottom: 0;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background-image: url('../img/contact-bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info div {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    font-size: 20px;
    color: var(--primary-color);
    float: left;
    width: 44px;
    height: 44px;
    background: #e7f5fb;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    margin-right: 15px;
}

.contact-info h4 {
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px;
    color: var(--dark-color);
}

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

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

.contact-form .form-control {
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    border: 1px solid var(--border-color);
    width: 100%;
}

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

.contact-form textarea {
    resize: none;
}

.btn-submit {
    background: var(--primary-color);
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 50px;
    cursor: pointer;
}

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

/* 页脚样式 */
#footer {
    background: var(--dark-color);
    color: #fff;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

#footer .copyright {
    margin-bottom: 10px;
}

#footer .credits a {
    color: #fff;
    transition: 0.3s;
}

#footer .credits a:hover {
    color: var(--accent-color);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: #fff;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
        line-height: 36px;
    }
    .hero h2 {
        font-size: 18px;
        line-height: 24px;
    }
    .section-title h2 {
        font-size: 28px;
    }
}

/* 表单样式 */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* 图片流体样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 解决方案部分 */
.solutions {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    background-image: url('../img/solutions-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05) 0%, rgba(0, 86, 179, 0) 100%);
    z-index: 0;
}

.solution-intro {
    text-align: center;
    margin-bottom: 30px;
}

.solution-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.solution-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.15);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

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

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.solution-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.solution-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 10px;
}

.solution-features span {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
    width: calc(50% - 5px);
}

.solution-features span i {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 1rem;
}

.solution-actions {
    display: none;
    gap: 10px;
}

.btn-details, .btn-demo {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-details {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-demo {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-demo::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.7s ease;
    z-index: -1;
}

.btn-demo:hover {
    background-color: #218838;
    border-color: #218838;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-demo:hover::before {
    left: 100%;
}

.btn-demo:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.btn-details:hover {
    background-color: rgba(0, 86, 179, 0.1);
}

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

/* 解决方案详情模态框 */
.solution-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 50px 0;
}

.solution-modal.show {
    display: block;
    opacity: 1;
}

.solution-modal .modal-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.solution-modal.show .modal-content {
    transform: translateY(0);
}

.solution-modal-content {
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.4s ease;
}

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

.solution-modal-header {
    padding: 20px 30px;
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
}

.solution-modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
}

.solution-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.solution-modal-close:hover {
    transform: rotate(90deg);
}

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

.solution-modal-body p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.solution-modal-body h4 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: var(--heading-color);
}

.solution-modal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.solution-modal-body ul li {
    margin-bottom: 10px;
    position: relative;
}

.solution-modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
}

.solution-modal-footer .btn-demo {
    padding: 10px 20px;
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .solution-features span {
        width: 100%;
    }
    
    .solution-actions {
        flex-direction: column;
    }
    
    .solution-modal-content {
        margin: 0 15px;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: #2EA82D;
    border-color: #2EA82D;
    box-shadow: 0 5px 15px rgba(46, 168, 45, 0.3);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(46, 168, 45, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
        line-height: 36px;
    }
    .hero h2 {
        font-size: 18px;
        line-height: 24px;
    }
    .section-title h2 {
        font-size: 28px;
    }
}