/* 基础样式 */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --gray: #6c757d;
    --gray-light: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.center {
    text-align: center;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(67, 97, 238, 0.2);
    z-index: -1;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.rounded {
    border-radius: 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bai{
	color: #fff;
}
/*边框修饰*/
	.x{
			/*边框*/
		border:solid 1px #e7e7e7;
	}
	.xl{border-left: solid 1px #000;}
	.xb{
		/*底线*/
		border-bottom-style: solid;
		border-bottom-width: 1px;
		border-bottom-color: #e7e7e7;
	}
	.xb1{
		/*底线虚线*/
		border-bottom-style:dashed;
		border-bottom-width: 1px;
		border-bottom-color: #e7e7e7;
		}
	.bor{
		/*默认圆角10*/
		border-radius:10px;
			}
	.bor10{
		/*默认圆角10*/
		border-radius:10px 10px 0px 0px;
		}
	.bor5{
		/*圆角5*/
		border-radius:5px;
		}
/*文字位置*/
.tal {
	 text-align: left;
	}
.tac {
		text-align: center;
	}
.tar {
		text-align: right;
	}
.logo {
  display: inline-flex;  /* 使用flex布局 */
  align-items: center;   /* 垂直居中 */
  gap: 8px;             /* 图片和文字之间的间距 */
  text-decoration: none;
  color: #fff;
  font-size: 24px;
}

.logo img {
  height: 80px;         /* 设置固定高度，保持与文字对齐 */
  width: auto;          /* 保持图片原始宽高比 */
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    padding-top: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
}

/* 服务展示区域 */
.services-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    height: 400px;
    max-width: 500px;
    margin: 0 auto;
}

.service-item {
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-item .content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.service-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.service-item h4 {
    font-size: 1.3rem;
    margin: 0;
}

/* 不同服务的背景样式 */
.web-dev {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

.app-dev {
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
}

.ai-dev {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
}

.mini-program {
    background: linear-gradient(135deg, #38b000 0%, #2b9348 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-showcase {
        height: 350px;
        max-width: 400px;
    }
    
    .service-item i {
        font-size: 2rem;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .services-showcase {
        height: 300px;
        max-width: 350px;
        gap: 15px;
    }
}

/* 服务区域 */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

/* AI应用图标样式 */
.icon-circle.ai {
    background-color: #7209b7; /* 科技紫 */
    box-shadow: 0 10px 20px rgba(114, 9, 183, 0.3);
}

/* 可选：添加AI卡片悬停特效 */
.service-card:nth-child(1):hover {
    box-shadow: 0 15px 30px rgba(114, 9, 183, 0.2);
}
.icon-circle.web {
    background-color: var(--primary);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.icon-circle.app {
    background-color: var(--accent);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

.icon-circle.mini {
    background-color: var(--success);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.3);
}

.icon-circle.ui {
    background-color: var(--warning);
    box-shadow: 0 10px 20px rgba(248, 150, 30, 0.3);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.learn-more i {
    transition: transform 0.3s ease;
}

.learn-more:hover {
    color: var(--secondary);
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 案例展示 */
.portfolio {
    background-color: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
}

.portfolio-icon.ecommerce {
    background-color: var(--primary);
}

.portfolio-icon.health {
    background-color: var(--accent);
}

.portfolio-icon.education {
    background-color: var(--success);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* 关于我们 */
.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.team-illustration {
    position: relative;
    width: 100%;
    height: 400px;
}

.person {
    position: absolute;
    width: 80px;
    height: 120px;
}

.person .head {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffd6a5;
    margin: 0 auto;
}

.person .body {
    width: 50px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    top: -10px;
}

.person1 {
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.person2 {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    z-index: 3;
}

.person3 {
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1.5rem;
}

.bubble1 {
    left: 10%;
    top: 20%;
    animation: floating 3s ease-in-out infinite;
}

.bubble2 {
    left: 40%;
    top: 70%;
    animation: floating 3s ease-in-out infinite 0.5s;
}

.bubble3 {
    right: 15%;
    top: 20%;
    animation: floating 3s ease-in-out infinite 1s;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* 客户评价 */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.testimonial {
    display: none;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote {
    position: relative;
    margin-bottom: 30px;
}

.quote i:first-child {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    color: var(--gray-light);
}

.quote i:last-child {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 2rem;
    color: var(--gray-light);
}

.quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark);
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray);
}

.client1 {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.client2 {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.client3 {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--accent);
}

.client-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.client-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-prev, .slider-next {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    color: var(--primary);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* 联系我们 */
.contact {
    background-color: #f8f9fa;
}

.contact .container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

/* 页脚 */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: white;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: inherit;
    font-size: 1rem;
}

.footer-newsletter button {
    padding: 0 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
	padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

/* 动画效果 */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container,
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .hero-content,
    .about-content,
    .contact-form {
        max-width: 100%;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 50px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
		padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}