/* ===================== 通用重置 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: #faf5ff;
    color: #222;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== 顶部导航 ===================== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s;
}
.navbar.scrolled {
    background: #7c3aed;
    color: #fff;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo h2 {
    color: #7c3aed;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 2px;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu li a {
    color: #222;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}
.navbar.scrolled .nav-menu li a {
    color: #fff;
}
.nav-menu li a:hover {
    color: #7c3aed;
}

/* ===================== Banner/英雄区 ===================== */
.hero {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 400px;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
    padding: 1rem 2.2rem;
    border-radius: 32px;
    font-size: 1.08rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    letter-spacing: 1px;
}
.btn-primary {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}
.btn-primary:hover {
    background: #6d28d9;
}
.btn-secondary {
    background: #fff;
    color: #7c3aed;
    border: 1.5px solid #7c3aed;
}
.btn-secondary:hover {
    background: #e0e7ff;
}
.hero-image {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    z-index: 2;
}
.app-mockup {
    border-radius: 24px; /* 圆角更大，现代感 */
    box-shadow: 0 12px 36px rgba(37,99,235,0.18); /* 更柔和阴影 */
    max-width: 380px;
}

/* ===================== Section 标题 ===================== */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 2rem;
    color: #7c3aed;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: #555;
    font-size: 1.1rem;
}

/* ===================== 关于我们 ===================== */
.about-content {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.about-text {
    flex: 1 1 320px;
}
.about-text h3 {
    color: #7c3aed;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.about-text ul {
    list-style: disc inside;
    color: #333;
    font-size: 1.05rem;
    line-height: 2;
}
.about-img {
    flex: 1 1 260px;
    min-width: 180px;
}
.about-img img {
    border-radius: 18px; /* 圆角更大 */
    box-shadow: 0 8px 28px rgba(37,99,235,0.13);
}

/* ===================== 服务项目 ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.service-card {
    background: #fff;
    border-radius: 20px; /* 更大圆角 */
    box-shadow: 0 4px 18px rgba(37,99,235,0.10);
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #a855f7;
}
.service-card h3 {
    color: #7c3aed;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}
.service-card p {
    color: #444;
    font-size: 1rem;
}

/* ===================== 行业案例 ===================== */
.cases {
    background: #faf5ff;
    padding: 80px 0 60px;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
    margin-top: 2.5rem;
}
.case-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.2rem;
}
.case-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
.case-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-bottom: 1rem;
}
.case-card h3 {
    color: #7c3aed;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
}
.case-card p {
    color: #444;
    font-size: 1rem;
    padding: 0 1rem;
}

/* ===================== 联系我们（优化版） ===================== */
.contact-enhanced {
    background: #f3f6fa;
    padding: 80px 0 60px;
}
.contact-flex {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}
.contact-info {
    flex: 1 1 320px;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.08);
    padding: 2.2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 1.5rem 0;
}
.contact-list li {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}
.contact-map {
    margin-top: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.contact-map img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}
.contact-form-enhanced {
    flex: 1 1 340px;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.08);
    padding: 2.2rem 2rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.contact-form-enhanced h3 {
    color: #7c3aed;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}
.contact-form-enhanced input,
.contact-form-enhanced textarea {
    background: #faf5ff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    transition: border 0.2s;
}
.contact-form-enhanced input:focus,
.contact-form-enhanced textarea:focus {
    border: 1.5px solid #7c3aed;
    background: #fff;
}
.contact-form-enhanced button {
    margin-top: 0.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 32px;
    padding: 1rem 2.2rem;
}
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===================== 页脚 ===================== */
.footer {
    background: #1e293b;
    color: #fff;
    padding: 48px 0 18px;
    margin-top: 3rem;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.footer-section h3, .footer-section h4 {
    color: #38bdf8;
    margin-bottom: 0.7rem;
}
.footer-section p, .footer-section ul li a {
    color: #e0e7ef;
    font-size: 1rem;
    text-decoration: none;
}
.footer-section ul {
    list-style: none;
    padding-left: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* 科技感动画效果 */
@keyframes techGlow {
    0% { box-shadow: 0 0 5px #7c3aed; }
    50% { box-shadow: 0 0 20px #7c3aed, 0 0 30px #7c3aed; }
    100% { box-shadow: 0 0 5px #7c3aed; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    animation: techScan 3s infinite;
}

@keyframes techScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn-primary {
    animation: techGlow 2s infinite;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .hero-container, .about-content, .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-image {
        margin-top: 2rem;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .hero-content h2 {
        font-size: 1.2rem;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .about-img {
        min-width: 120px;
    }
    .service-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .contact-form {
        padding: 1.2rem 0.5rem;
    }
}

/* 移动端菜单（可选，需配合JS实现） */
@media (max-width: 700px) {
    .nav-menu {
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 64px;
        right: 0;
        width: 180px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-container {
        position: relative;
    }
    .hamburger {
        display: block;
        cursor: pointer;
        width: 32px;
        height: 32px;
        margin-left: 1rem;
    }
    .hamburger span {
        display: block;
        height: 4px;
        width: 100%;
        background: #7c3aed;
        margin: 6px 0;
        border-radius: 2px;
        transition: all 0.3s;
    }
}
.hamburger {
    display: none;
} 