:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}
a, img, button {
    -webkit-user-drag: none;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.loader {
    position: fixed; inset: 0; background: var(--white);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .45s ease, visibility .45s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
    font-size: 48px; font-weight: 800; margin-bottom: 24px;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loader-bar { width: 200px; height: 4px; background: var(--light); border-radius: 2px; overflow: hidden; }
.loader-progress { height: 100%; background: var(--gradient); animation: loading 1.4s ease-in-out infinite; }
@keyframes loading { 0%{width:0;transform:translateX(-100%)} 50%{width:100%;transform:translateX(0)} 100%{width:100%;transform:translateX(100%)} }

.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15,23,42,.06); transition: all .3s ease;
}
.navbar.scrolled { padding: 12px 0; box-shadow: var(--shadow); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display:flex; justify-content:space-between; align-items:center; }
.logo { display:flex; align-items:center; text-decoration:none; }
.logo-img {
    width: 190px;
    height: 56px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.nav-menu { display:flex; align-items:center; gap:34px; list-style:none; }
.nav-link { color: var(--gray); text-decoration:none; font-size:15px; font-weight:500; position:relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after { content:''; position:absolute; left:0; bottom:-4px; width:0; height:2px; background:var(--gradient); transition:width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width:100%; }
.nav-cta { padding: 10px 22px; background: var(--gradient); color: var(--white) !important; border-radius: 8px; }
.nav-cta::after { display:none; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; }
.hamburger span { width:24px; height:2px; background:var(--dark); transition: all .25s ease; }

.hero {
    min-height: 100vh; display:flex; align-items:center; padding:120px 0 80px; position:relative; overflow:hidden;
}
.hero-bg { position:absolute; inset:0; pointer-events:none; }
.gradient-orb {
    position:absolute; border-radius:50%; filter:blur(80px); opacity:.38;
}
.gradient-orb:first-child {
    width:620px; height:620px; background:#3b82f6; top:-220px; right:-180px; animation:float 18s ease-in-out infinite;
}
.orb-2 {
    width:420px; height:420px; background:#8b5cf6; bottom:-120px; left:-120px; animation:float 14s ease-in-out infinite reverse;
}
@keyframes float { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-24px)} }

.hero-content { position:relative; z-index:1; max-width: 860px; }
.hero-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 460px);
    gap: 36px;
    align-items: center;
}
.hero-content {
    opacity: 0;
    transform: translateX(-70px);
    animation: flyInLeft .9s cubic-bezier(.2,.78,.2,1) .2s forwards;
}
.hero-lobster-wrap {
    min-height: 420px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(241,245,249,.88));
    border: 1px solid rgba(59,130,246,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: translateX(90px) scale(.9);
    animation: flyInRight 1s cubic-bezier(.2,.78,.2,1) .35s forwards;
}
.hero-lobster {
    font-size: clamp(180px, 26vw, 290px);
    line-height: 1;
    filter: drop-shadow(0 16px 18px rgba(0,0,0,.14));
    transform: rotate(-10deg);
}
.hero-badge {
    display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px;
    background: rgba(59,130,246,.12); color: var(--primary); font-size:14px; font-weight:600; margin-bottom:22px;
}
.hero-title { font-size:58px; font-weight:800; line-height:1.16; margin-bottom:20px; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.hero-desc { font-size:18px; color:var(--gray); margin-bottom:34px; max-width: 880px; }
.hero-emphasis { color: #ef4444; font-weight: 800; }
.hero-actions { display:flex; gap:14px; margin-bottom:54px; }

.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 26px; border-radius:10px; border:0; text-decoration:none; font-size:15px; font-weight:600; transition:all .25s ease;
}
.btn-primary { background: var(--gradient); color:var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59,130,246,.35); }
.btn-secondary { background: var(--white); color: var(--dark); border:2px solid var(--light); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-full { width:100%; }

.hero-stats { display:flex; gap:42px; flex-wrap:wrap; }
.stat-num { font-size:36px; font-weight:800; }
.stat-label { font-size:14px; color:var(--gray); }

@keyframes flyInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes flyInRight {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

section { padding: 96px 0; }
.section-header { text-align:center; max-width:640px; margin:0 auto 54px; }
.section-tag {
    display:inline-block; padding:6px 16px; border-radius:999px; margin-bottom:14px;
    background: rgba(59,130,246,.1); color:var(--primary); font-size:13px; font-weight:600;
}
.section-title { font-size:40px; font-weight:800; margin-bottom:12px; }
.section-desc { font-size:17px; color:var(--gray); }

.services { background: var(--light); }
.services-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:20px; }
.service-card {
    background:var(--white); border-radius:16px; padding:30px; box-shadow: var(--shadow-sm);
    border:1px solid transparent; transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(59,130,246,.14); }
.service-card h3 { font-size:20px; font-weight:700; margin-bottom:10px; }
.service-card p { color:var(--gray); font-size:15px; }
.service-visual {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(139,92,246,.18));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.service-card::after {
    content: "";
    position: absolute;
    right: -26px;
    top: -26px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    opacity: .16;
    background: var(--primary);
}
.service-openclaw::after { background: #ff7f50; }
.service-ai::after { background: #6f8cff; }
.service-dev::after { background: #4f7cff; }
.service-miniapp::after { background: #22c55e; }
.service-transform::after { background: #a855f7; }
.service-data::after { background: #0ea5e9; }
.service-net::after { background: #3b82f6; }
.service-ops::after { background: #64748b; }

.cases-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap:26px; }
.case-card { background: var(--white); border-radius:16px; overflow:hidden; box-shadow: var(--shadow); transition:all .25s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.case-content { padding:22px; display:flex; flex-direction:column; }
.case-thumb-wrap {
    width: 100%;
    height: 166px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.case-thumb {
    max-width: 94%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.case-tag { display:inline-block; padding:4px 11px; border-radius:999px; background: rgba(59,130,246,.1); color:var(--primary); font-size:12px; font-weight:600; margin-bottom:10px; }
.case-content h3 { font-size:19px; margin-bottom:8px; line-height: 1.35; }
.case-brief { color: var(--gray); font-size:14px; margin-bottom:10px; line-height:1.7; }
.case-meta {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 7px;
}
.case-meta b {
    color: var(--dark);
}

.about { background: var(--light); }
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap:70px; align-items:center; }
.about-content h2 { font-size:40px; font-weight:800; margin-bottom:20px; line-height:1.2; }
.about-content p { color: var(--gray); margin-bottom:14px; }
.process-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
}
.process-panel h3 {
    font-size: 24px;
    margin-bottom: 16px;
}
.process-panel::before {
    content: "";
    position: absolute;
    left: 46px;
    top: 78px;
    bottom: 28px;
    width: 3px;
    background: linear-gradient(180deg, rgba(37,99,235,.78), rgba(59,130,246,.62), rgba(139,92,246,.56), rgba(139,92,246,.2));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(59,130,246,.45), 0 0 20px rgba(139,92,246,.22);
    animation: lineGlow 2.4s ease-in-out infinite;
}
.process-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 13px 0;
    position: relative;
    z-index: 1;
}
.process-step:last-child { padding-bottom: 0; }
.step-index {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(59,130,246,.46);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 7px rgba(59,130,246,.14), 0 8px 18px rgba(37,99,235,.14);
    transition: all .22s ease;
}
.process-step h4 {
    font-size: 16px;
    margin: 1px 0 4px;
    transition: color .25s ease;
}
.process-step p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
    line-height: 1.55;
}
.process-step:first-child .step-index {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 0 8px rgba(59,130,246,.18), 0 0 24px rgba(59,130,246,.4), 0 0 42px rgba(139,92,246,.26);
}
.process-step:first-child h4 {
    color: var(--primary-dark);
}
.process-step:hover .step-index {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 0 8px rgba(59,130,246,.2), 0 0 26px rgba(59,130,246,.44), 0 0 48px rgba(139,92,246,.3);
    transform: scale(1.1);
}
.process-step:hover h4 {
    color: var(--primary-dark);
}

@keyframes lineGlow {
    0%, 100% {
        filter: brightness(1);
        opacity: .95;
    }
    50% {
        filter: brightness(1.28);
        opacity: 1;
    }
}

.contact-wrapper { display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
.contact-info h2 { font-size:40px; font-weight:800; margin-bottom:14px; line-height:1.2; }
.contact-info > p { color:var(--gray); margin-bottom:28px; }
.contact-methods { display:flex; flex-direction:column; gap:16px; }
.method { display:flex; gap:14px; align-items:center; }
.method i {
    width:46px; height:46px; border-radius:12px; background:var(--gradient); color:var(--white);
    display:flex; align-items:center; justify-content:center;
}
.method-label { display:block; font-size:13px; color:var(--gray); }
.method-value, .method-link { font-size:15px; font-weight:600; color:var(--dark); text-decoration:none; }
.method-link:hover { color: var(--primary); }
.contact-card {
    background: var(--white); border-radius:16px; box-shadow: var(--shadow-lg); padding:30px;
}
.contact-card h3 { font-size:24px; margin-bottom:18px; }
.contact-card ul { list-style:none; margin-bottom:22px; }
.contact-card li { display:flex; gap:8px; align-items:center; color:var(--gray); margin-bottom:10px; }
.contact-card li i { color: var(--primary); }
.wx-mini-tip {
    margin-top: 4px;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59,130,246,.06);
}

.chat-panel {
    position:fixed; right:20px; top:50%; transform: translateY(-50%);
    width:290px; background:var(--white); border-radius:12px;
    box-shadow: var(--shadow-xl); padding:16px; z-index:40; border:1px solid rgba(0,0,0,.05);
}
.chat-panel h4 { margin-bottom:8px; }
.chat-panel p { color:var(--gray); font-size:14px; margin-bottom:10px; }
.chat-note { font-size:12px !important; margin-top:8px; }
.wx-qr {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 6px auto 8px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,.1);
}
.footer { background: var(--dark); color: var(--white); padding: 26px 0; margin-top: 20px; }
.footer-bottom {
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.footer-bottom p { color: var(--gray-light); font-size:14px; }
.footer-bottom a { color: var(--gray-light); text-decoration:none; }
.footer-bottom a:hover { color: var(--white); }

.devtools-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
}
body.devtools-open .critical-module {
    visibility: hidden !important;
}
body.devtools-open .devtools-mask {
    display: flex;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].show { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .nav-menu {
        position:fixed; top:72px; left:0; right:0; background:var(--white);
        flex-direction:column; padding:22px; gap:14px; box-shadow: var(--shadow-lg);
        transform: translateY(-150%); transition: transform .3s ease;
    }
    .nav-menu.active { transform: translateY(0); }
    .hamburger { display:flex; }
    .hero-title { font-size:42px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-lobster-wrap { min-height: 300px; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size:34px; }
    .hero-actions { flex-direction:column; }
    .hero-stats { gap:20px; }
    .section-title { font-size:32px; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .process-panel::before { left: 44px; top: 76px; }
    .chat-panel { right: 12px; top: auto; bottom: 12px; transform: none; width: min(92vw, 290px); }
    .logo-img { width: 140px; height: 42px; }
}

