/* ===== 云原生架构师 · 浅色商务风 ===== */
:root {
    --bg: #ffffff;
    --panel: #f8fafc;
    --panel2: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent2: #6366f1;
    --grad: linear-gradient(90deg, #2563eb, #6366f1);
    --ok: #10b981;
    --err: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 导航 ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; gap: 24px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.brand:hover { color: var(--accent); }
.brand-logo { width: 40px; height: 40px; display: inline-block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 16px; cursor: pointer; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ===== 按钮 ===== */
.btn {
    display: inline-block; padding: 10px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600; transition: all .2s; cursor: pointer; border: none;
}
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-primary { background: var(--grad); color: #06121f; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(76, 201, 255, 0.25); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Hero ===== */
.hero { max-width: 1120px; margin: 0 auto; padding: 84px 20px 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent);
    border: 1px solid rgba(76, 201, 255, 0.35); padding: 4px 12px; border-radius: 999px;
    background: rgba(76, 201, 255, 0.06); margin-bottom: 18px;
}
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 800; letter-spacing: 0.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 520px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
    font-size: 12px; color: var(--muted); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace;
}

/* 终端装饰窗 */
.hero-term {
    background: #1e40af; border: 1px solid #1e3a8a; border-radius: 12px;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.25); overflow: hidden;
}
.term-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.15); background: #1e3a8a;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,0.7); font-family: ui-monospace, Consolas, monospace; }
.term-body {
    padding: 18px 20px; font-size: 12.5px; line-height: 1.8;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    color: #e0e7ff; overflow-x: auto;
}

/* ===== 信任数字 ===== */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: 1120px; margin: 0 auto; padding: 28px 20px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--panel2);
}
.stat { text-align: center; padding: 10px; }
.stat-num {
    font-size: 30px; font-weight: 800; background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ===== 区块通用 ===== */
.section { max-width: 1120px; margin: 0 auto; padding: 84px 20px; }
.section.alt { max-width: none; background: var(--panel2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 15px; }

/* ===== 服务卡片 ===== */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 30px 26px; transition: all .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(76, 201, 255, 0.5); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.card-icon { font-size: 26px; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.card li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.card-deliver {
    margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border);
    font-size: 12.5px; color: var(--accent2);
}

/* ===== 技术栈 ===== */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stack-group { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.stack-group h4 { font-size: 14px; color: var(--accent); margin-bottom: 14px; letter-spacing: 1px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span {
    font-size: 12.5px; padding: 5px 11px; border-radius: 6px;
    background: rgba(76, 201, 255, 0.07); border: 1px solid var(--border); color: var(--text);
    font-family: ui-monospace, Consolas, monospace;
}

/* ===== 流程 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; }
.step-num {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #06121f; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); }
.step-out { margin-top: 12px; font-size: 12px; color: var(--accent2); }

/* ===== 案例 ===== */
.case-card {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.case-img { background: var(--panel2); border-right: 1px solid var(--border); height: 280px; cursor: pointer; }
.case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-body { padding: 30px 28px; }
.case-tag {
    display: inline-block; font-size: 11px; color: var(--ok);
    border: 1px solid rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08);
    padding: 2px 8px; border-radius: 999px; margin-bottom: 6px;
}
.case-body h3 { font-size: 20px; margin-bottom: 10px; }
.case-desc { font-size: 14px; color: var(--muted); }
.case-result { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.case-result span { color: var(--text); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0 20px;
}
.faq-list summary {
    cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 600; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 18px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 16px; font-size: 14px; color: var(--muted); }

/* ===== 联系 ===== */
.contact { padding-bottom: 100px; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h4 { font-size: 16px; margin-bottom: 16px; }
.info-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-row span { color: var(--muted); width: 52px; }
.ph { color: var(--accent2); font-style: normal; }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; color: var(--text); font-size: 14px; font-family: inherit;
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.contact-form select option { background: var(--panel); }
.contact-form button { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-banner { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.form-banner.ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--ok); }
.form-banner.err { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.4); color: var(--err); }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13px; }
footer p + p { margin-top: 6px; }

/* ===== Lightbox ===== */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; animation: fadeIn 0.2s;
}
.lightbox-overlay img {
    max-width: 90%; max-height: 90%; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .case-card { grid-template-columns: 1fr; }
    .case-img { border-right: none; border-bottom: 1px solid var(--border); }
    .cards3, .stack-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 30px; }
    .nav-links {
        display: none; position: absolute; top: 58px; left: 0; right: 0;
        flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--border);
        padding: 12px 20px; gap: 12px;
    }
    .nav-links.open { display: flex; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .cards3, .stack-grid, .steps { grid-template-columns: 1fr; }
    .section { padding: 60px 20px; }
}
