/* 全局样式 */
:root {
    --primary-color: #409EFF;
    --secondary-color: #67C23A;
    --accent-color: #F56C6C;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --border-color: #DCDFE6;
    --background-color: #F5F7FA;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-regular);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    transition: all 0.3s ease;
    height: 80px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.logo-container {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #66b1ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(64,158,255,0.2);
}

.logo-container:hover {
    transform: rotate(10deg) scale(1.05);
}

.logo-text {
    color: white;
    font-size: 26px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.brand-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    margin-left: 12px;
}

.navbar-brand:hover .brand-text {
    color: var(--primary-color);
}

.nav-link {
    position: relative;
    padding: 8px 20px !important;
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, var(--primary-color), #66b1ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link i {
    margin-right: 6px;
    font-size: 16px;
}

/* 首页横幅样式 */
.hero-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    padding: 200px 0 150px;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(64,158,255,0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(64,158,255,0.4);
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #1a2a6c, #2C3E50);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

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

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 服务卡片样式 */
.service-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    background: #fff;
    height: 100%;
}

.service-card .el-card__body {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), #66b1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-regular);
    margin-bottom: 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 服务区域容器样式 */
#services {
    background-color: var(--background-color);
    padding: 100px 0;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--background-color));
}

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

#services .text-center {
    margin-bottom: 4rem;
}

#services .text-center h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

#services .text-center p {
    color: var(--text-regular);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 联系我们表单样式 */
.el-input__inner {
    border-radius: 8px;
    height: 45px;
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.el-input__inner:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.el-textarea__inner {
    border-radius: 8px;
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.el-textarea__inner:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64,158,255,0.2);
}

.el-button--primary {
    background: linear-gradient(135deg, var(--primary-color), #66b1ff);
    border: none;
    height: 45px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.el-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(64,158,255,0.3);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a2a6c, #2C3E50);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 16px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #66b1ff);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(64,158,255,0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* 为不同的社交平台设置不同的悬停颜色 */
.social-link[title="微信"]:hover::before {
    background: linear-gradient(135deg, #07C160, #0AAD4F);
}

.social-link[title="QQ"]:hover::before {
    background: linear-gradient(135deg, #12B7F5, #0E9FD6);
}

.social-link[title="微博"]:hover::before {
    background: linear-gradient(135deg, #E6162D, #C00);
}

.social-link[title="Github"]:hover::before {
    background: linear-gradient(135deg, #333, #24292e);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0;
}

/* 动画效果 */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}
[data-aos][data-aos][data-aos-duration="400"], body[data-aos-duration="400"] [data-aos] {
    transition-duration: 400ms;
}
[data-aos][data-aos][data-aos-delay="400"], body[data-aos-delay="400"] [data-aos] {
    transition-delay: 0s;
}
[data-aos][data-aos][data-aos-delay="400"].aos-animate, body[data-aos-delay="400"] [data-aos].aos-animate {
    transition-delay: 400ms;
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

/* 针对含二维码的微信项，保证图标和二维码垂直居中 */
.footer-contact li:has(img[alt="微信二维码"]) {
    align-items: center;
    min-height: 100px;
}

.footer-contact li i {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 28px;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 针对微信二维码图片的样式，保证与图标对齐 */
.footer-contact li img[alt="微信二维码"] {
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px;
    margin-left: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(7,193,96,0.15);
    background: #fff;
    display: block;
}

.footer-contact li span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact li:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact li:hover i {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(64,158,255,0.3);
}

/* 为不同的联系方式设置不同的悬停颜色 */
.footer-contact li:nth-child(1):hover i {
    background: linear-gradient(135deg, #07C160, #0AAD4F);
    box-shadow: 0 0 15px rgba(7,193,96,0.3);
}

.footer-contact li:nth-child(2):hover i {
    background: linear-gradient(135deg, #409EFF, #66b1ff);
    box-shadow: 0 0 15px rgba(64,158,255,0.3);
}

.footer-contact li:nth-child(3):hover i {
    background: linear-gradient(135deg, #E6A23C, #f0b64f);
    box-shadow: 0 0 15px rgba(230,162,60,0.3);
}

.footer-contact li:nth-child(4):hover i {
    background: linear-gradient(135deg, #07C160, #0AAD4F);
    box-shadow: 0 0 15px rgba(7,193,96,0.3);
}

/* 关于我们部分样式优化 */
.about-section {
    background-color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--background-color), #fff);
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

.about-content {
    padding: 30px;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #66b1ff);
    border-radius: 3px;
}

.about-content p {
    color: var(--text-regular);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-box {
    background: var(--background-color);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

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

.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.feature-box h4 i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.4rem;
}

.feature-box p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* 案例展示样式 */
.portfolio-card {
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
}

.portfolio-hover {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-hover ul li {
    margin-bottom: 5px;
}

.portfolio-hover ul li i {
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .about-section {
        padding: 40px 0;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .about-image img {
        height: 350px;
    }

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

    .about-content h2 {
        font-size: 2rem;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar-collapse.collapse.show {
        display: block;
        width: 100%;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
    }

    .nav-link:hover {
        background-color: var(--background-color);
    }

    .navbar-toggler {
        margin-left: auto;
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }
}

/* 动画关键帧 */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 发展历程时间轴样式 */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}
.timeline li {
    position: relative;
    margin-bottom: 22px;
    font-size: 1.08rem;
    color: var(--text-regular);
    padding-left: 18px;
}
.timeline li:last-child {
    margin-bottom: 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), #66b1ff);
    border-radius: 2px;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

/* about-section 标题下划线 */
.page-header h1, .about-content h2, .about-content h3, .about-content h4, .about-content h5 {
    position: relative;
}
.page-header h1::after, .about-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #66b1ff);
    border-radius: 3px;
    margin: 16px auto 0 0;
}

/* 团队图片优化 */
.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(64,158,255,0.10);
    transition: transform 0.3s;
}
.about-image img:hover {
    transform: scale(1.04);
}

/* about-content 区块优化 */
.about-content {
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* 响应式优化 */
@media (max-width: 991.98px) {
    .about-image img {
        height: 260px;
    }
    .about-content {
        padding: 18px 8px;
    }
}
@media (max-width: 767.98px) {
    .about-image img {
        height: 180px;
    }
    .timeline {
        padding-left: 16px;
    }
    .about-content {
        padding: 10px 2px;
    }
}

/* 备案号美化 */
.icp-link {
  font-weight: bold;
  font-size: 0.95em;
  color: #6ca0dc;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  margin-left: 8px;
}
.icp-link:hover {
  color: #205081;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .icp-link {
    display: inline-block;
    margin-top: 6px;
    margin-left: 0;
  }
}

.phone-svg svg text {
  fill: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 1em;
}
.footer-contact li .phone-svg svg text {
  fill: rgba(255,255,255,0.8);
}
.contact-info .phone-svg svg text {
  fill: var(--text-primary);
}

.navbar-collapse.collapse.show {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 0 0 16px 16px;
  padding: 16px 0 12px 0;
  z-index: 1001;
}
@media (max-width: 991.98px) {
  .navbar-collapse.collapse.show {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
  }
}

.navbar-toggler {
  margin-left: auto;
  z-index: 1100;
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
  padding: 8px 12px;
  height: 40px;
  align-self: center;
  position: relative;
}
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: block !important;
  }
  .navbar-collapse {
    width: 100%;
  }
}
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Font Awesome 图标样式覆盖 */
.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

.fa-weixin:before {
    content: "\f1d7" !important;
}

.fa-qq:before {
    content: "\f1d6" !important;
}

.fa-weibo:before {
    content: "\f18a" !important;
}

.fa-github:before {
    content: "\f09b" !important;
}

/* 确保社交链接中的Font Awesome图标正确显示 */
.social-link .fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}