/* ===== 全局重置与变量 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-section: #f8fafc;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-section);
}

.section-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

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

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

.section-accent .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    padding: 16px 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text .badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-text h1 {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stats span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero 视觉区 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
    z-index: 2;
    position: relative;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: 1;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -30px;
    right: -40px;
    animation: blobMove 8s ease-in-out infinite alternate;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: -20px;
    left: -30px;
    animation: blobMove 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.card-ai { top: 10%; left: -5%; animation-delay: 0s; }
.card-cloud { bottom: 20%; right: -5%; animation-delay: 2s; }
.card-data { top: 50%; right: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== 案例 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.case-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-body {
    padding: 24px;
}

.tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.case-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.case-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.case-link:hover {
    gap: 12px;
}

/* ===== 团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 18px;
    border: 3px solid var(--primary-light);
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ===== 联系区 ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.contact-list i {
    width: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* 表单 */
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.form-row {
    position: relative;
    margin-bottom: 20px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border 0.3s;
    background: #f8fafc;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.form-row.error input,
.form-row.error textarea {
    border-color: #ef4444;
}

.form-row.error .error-msg {
    display: block;
}

.form-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-muted);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.footer-brand i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.footer-brand p {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 32px;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        display: none;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .hide-on-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 24px;
    }
    .nav-link {
        font-size: 1.1rem;
    }
    .hamburger {
        display: flex;
        z-index: 1100;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero {
        padding: 100px 0 60px;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
    .hero-text .badge {
        font-size: 0.75rem;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .hero-stats strong {
        font-size: 1.4rem;
    }
    .section {
        padding: 64px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-text h1 {
        font-size: 1.9rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 24px 20px;
    }
    .floating-card {
        display: none;
    }
}