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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 16px;
}

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

.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

/* ==================== 导航 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #0f172a;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.logo-text {
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #0f172a;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.hamburger:hover {
    color: #667eea;
}

/* ==================== Hero ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.btn-outline {
    background: transparent;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-3px);
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-shape {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #667eea30, #764ba230);
    border-radius: 50%;
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 260px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.hero-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-card p {
    font-size: 0.9rem;
    color: #64748b;
}

.hero-stat {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: white;
    border-radius: 20px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    z-index: 3;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

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

.service-card {
    background: white;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.12);
    border-color: #e0e7ff;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: #667eea;
    transition: all 0.3s;
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
}

/* ==================== 作品 ==================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.work-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.12);
}

.work-image {
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    position: relative;
}

.work-label {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.work-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
}

.work-link {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

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

/* ==================== 数据统计 ==================== */
.stats {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.8rem;
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ==================== 关于 ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.about-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #334155;
}

.about-features i {
    color: #667eea;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-shape {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 24px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.team-card {
    background: white;
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 16px;
}

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

.team-role {
    display: block;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 0.9rem;
    color: #64748b;
}

/* ==================== 客户评价 ==================== */
.testimonials {
    background: #f1f5f9;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.stars {
    color: #f59e0b;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-weight: 700;
    color: #0f172a;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: #64748b;
}

/* ==================== 联系 ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}

.contact-form {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #f8fafc;
    margin-bottom: 16px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #667eea;
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    color: #10b981;
}

.form-feedback.error {
    color: #ef4444;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-item i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #667eea;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.95rem;
    color: #64748b;
}

/* ==================== Footer ==================== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    margin: 16px 0 24px;
    font-size: 0.95rem;
    max-width: 300px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: #94a3b8;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-group a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .about-content {
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .hero-stat {
        right: 0;
    }

    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }

    .about-image {
        order: -1;
    }

    .about-shape {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}