/* ===== 基础变量与重置 ===== */
:root {
    --ink: #1e3a5f;
    --muted: #5b7a9d;
    --sky: #38bdf8;
    --sky-light: #e0f2fe;
    --sky-mid: #bae6fd;
    --yellow: #fbbf24;
    --yellow-light: #fffbeb;
    --pink: #f472b6;
    --pink-light: #fce7f3;
    --green: #34d399;
    --green-light: #d1fae5;
    --cream: #fffdf7;
    --white: #ffffff;
    --radius: 24px;
    --shadow: 6px 6px 0 rgba(30, 58, 95, 0.14);
    --shadow-hover: 9px 9px 0 rgba(30, 58, 95, 0.16);
    --transition: all 0.25s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    object-fit: cover;
    background: var(--yellow-light);
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.15);
}

.logo-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--sky-light);
}

.nav-cta {
    background: var(--yellow);
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.nav-cta:hover {
    background: var(--yellow);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
}

/* ===== 首页 Banner ===== */
.hero {
    position: relative;
    padding: 150px 0 120px;
    background: var(--sky-light);
    background-image: radial-gradient(rgba(56, 189, 248, 0.18) 2.5px, transparent 2.5px);
    background-size: 28px 28px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.15);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(transparent 62%, var(--yellow) 62%);
    padding: 0 4px;
}

.hero-desc {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
    50% { transform: translateY(-12px); }
}

.deco {
    position: absolute;
    font-size: 30px;
    animation: float 5s ease-in-out infinite;
    pointer-events: none;
}

.deco:nth-child(2) { animation-delay: 1s; }
.deco:nth-child(3) { animation-delay: 2s; }
.deco:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    50% { transform: translateY(-16px) rotate(8deg); }
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 70px;
    display: block;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 30px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
    background: var(--yellow);
}

.btn-outline {
    background: var(--white);
}

.btn-small {
    padding: 9px 20px;
    font-size: 13px;
    background: var(--sky);
    color: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
}

/* ===== 通用标题 ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.title-deco {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.15);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--muted);
}

/* ===== 核心业务 ===== */
.services {
    position: relative;
    padding: 90px 0 130px;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 70px;
}

.service-card {
    position: relative;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px 32px;
    transition: var(--transition);
}

.theme-sky {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 45%);
}

.theme-pink {
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 45%);
}

.service-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

.service-sticker {
    position: absolute;
    top: -16px;
    right: 24px;
    transform: rotate(3deg);
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.15);
}

.sticker-pink {
    background: var(--pink);
    color: var(--white);
    transform: rotate(-3deg);
}

.service-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.service-icon {
    width: 78px;
    height: 78px;
    border: 3px solid var(--ink);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    transform: rotate(-4deg);
    transition: var(--transition);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: rotate(4deg) scale(1.06);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 900;
}

.service-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.service-cta {
    display: inline-block;
    margin-top: 22px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    border-bottom: 3px dashed var(--sky);
    padding-bottom: 2px;
    transition: var(--transition);
}

.theme-pink .service-cta {
    border-bottom-color: var(--pink);
}

.service-cta:hover {
    transform: translateX(4px);
    border-bottom-style: solid;
}

/* 合作流程 */
.steps-title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--ink);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: "➜";
    position: absolute;
    top: 32px;
    right: -22px;
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
    opacity: 0.35;
}

.step-card {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 rgba(30, 58, 95, 0.14);
    transition: var(--transition);
}

.step:hover .step-card {
    transform: translateY(-6px) rotate(-4deg);
    box-shadow: 6px 8px 0 rgba(30, 58, 95, 0.16);
}

.step-emoji {
    font-size: 40px;
}

.step-num {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
}

.step h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
}

/* ===== 关于我们 ===== */
.about {
    position: relative;
    padding: 90px 0 130px;
    background: var(--yellow-light);
}

.about-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 40px;
}

.about-emoji {
    font-size: 72px;
    line-height: 1;
    flex-shrink: 0;
    animation: bob 3.5s ease-in-out infinite;
}

.about-mascot {
    width: 128px;
    height: 128px;
    object-fit: cover;
    background: var(--yellow-light);
    border: 3px solid var(--ink);
    border-radius: 36px;
    box-shadow: 5px 5px 0 rgba(30, 58, 95, 0.15);
}

.about-body .section-title {
    margin-bottom: 14px;
}

.about-text {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--sky-light);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.chip:nth-child(2) { background: var(--yellow-light); }
.chip:nth-child(3) { background: var(--pink-light); }
.chip:nth-child(4) { background: var(--green-light); }

.chip:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.15);
}

/* ===== 联系我们 ===== */
.contact {
    position: relative;
    padding: 90px 0 100px;
    background: var(--white);
    background-image: radial-gradient(rgba(56, 189, 248, 0.1) 2.5px, transparent 2.5px);
    background-size: 28px 28px;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
}

.contact-top {
    height: 64px;
    border-bottom: 3px dashed var(--ink);
}

.contact-emoji {
    position: relative;
    width: 72px;
    height: 72px;
    margin: -36px auto 0;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 3px 3px 0 rgba(30, 58, 95, 0.12);
}

.contact-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 14px 20px 26px;
}

.contact-card h3 {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 6px;
}

.contact-value {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
    word-break: break-all;
}

.contact-hint {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    color: var(--muted);
    opacity: 0.85;
}

.contact-tel {
    color: var(--muted);
    font-weight: 700;
    transition: var(--transition);
}

.contact-tel:hover {
    color: var(--ink);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--ink);
    color: #cfe8ff;
    padding: 56px 0 0;
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    margin: 4px 0;
}

.footer-bottom a {
    color: #cfe8ff;
}

.footer-bottom a:hover {
    color: var(--yellow);
}

.footer-note {
    font-size: 12px !important;
    opacity: 0.7;
}

.footer-beian {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.beian-divider {
    opacity: 0.4;
}

.beian-police {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beian-police svg {
    width: 14px;
    height: 14px;
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual svg {
        max-width: 300px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .step:not(:last-child)::after {
        display: none;
    }
    .about-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .chip-row {
        justify-content: center;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 3px solid var(--ink);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
        gap: 8px;
        transform: translateY(-120%);
        transition: var(--transition);
    }
    .nav-menu.open {
        transform: translateY(0);
    }
    .nav-link {
        text-align: center;
    }
    .hero {
        padding: 120px 0 100px;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-card {
        padding: 32px 24px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
