:root {
    --ink: #0b0d12;
    --ink-soft: #232832;
    --paper: #f5f6f8;
    --panel: #ffffff;
    --muted: #6a7280;
    --line: rgba(11, 13, 18, .12);
    --blue: #002fa7;
    --blue-soft: #e6ecff;
    --green: #a8ff2a;
    --gray: #d9dee7;
    --shadow: 0 24px 70px rgba(0, 0, 0, .12);
    --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(245, 246, 248, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--ink);
    color: var(--green);
    box-shadow: 8px 8px 0 var(--blue);
}
.brand-text { font-size: 20px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 15px;
    transition: .2s ease;
}
.site-nav a:hover, .site-nav a.active { background: var(--ink); color: white; }
.nav-toggle { display: none; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.container.narrow { width: min(920px, calc(100% - 36px)); }
.section-pad { padding: clamp(64px, 9vw, 118px) 0; }
.hero {
    min-height: calc(100svh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    padding: clamp(46px, 8vw, 88px) clamp(18px, 5vw, 72px);
    overflow: hidden;
}
.hero-copy h1, .page-hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: .98;
    letter-spacing: -.06em;
    margin: 12px 0 24px;
}
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 760px; }
.eyebrow {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--green); box-shadow: 0 0 0 5px rgba(168,255,42,.15); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.btn.primary { background: var(--ink); color: white; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: white; color: var(--ink); border-color: white; }
.text-link { display: inline-flex; margin-top: 18px; font-weight: 900; color: var(--blue); }
.text-link::after { content: "→"; margin-left: 8px; }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-stats span { padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 35px rgba(0,0,0,.06); }
.hero-stats b { color: var(--blue); margin-right: 4px; }
.hero-visual { position: relative; }
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 8% -8% -8% 10%;
    background: var(--blue);
    border-radius: 42px;
    transform: rotate(4deg);
}
.hero-visual img { position: relative; border-radius: 42px; box-shadow: var(--shadow); }
.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head h2, .two-col h2, .contact-panel h2 {
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 0 0 18px;
}
.section-head p, .two-col p { color: var(--muted); }
.card-grid { display: grid; gap: 20px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .info-card, .detail-card, .solution-grid article, .review-card, .contact-panel, .contact-form, .video-card, .work-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 45px rgba(0,0,0,.06);
}
.service-card { padding: 24px; min-height: 300px; }
.service-card img { height: 118px; width: 100%; object-fit: contain; margin-bottom: 16px; }
h2, h3 { color: var(--ink); }
h3 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.dark-section { background: var(--ink); color: white; }
.dark-section h2, .dark-section h3 { color: white; }
.dark-section p { color: rgba(255,255,255,.72); }
.invert .eyebrow { color: var(--green); }
.masonry-preview { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: stretch; }
.work-card {
    min-height: 260px;
    border-radius: 32px;
    overflow: hidden;
    background: #151922;
    border: 1px solid rgba(255,255,255,.14);
    display: grid;
    grid-template-columns: .95fr 1fr;
}
.work-card:not(.large) { grid-template-columns: 1fr; }
.work-card.large { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; background: #10131a; }
.work-card div { padding: 24px; }
.work-card span, .work-item span { color: var(--green); font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.timeline.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline.full { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.timeline li {
    position: relative;
    padding: 24px;
    min-height: 210px;
    border-radius: 28px;
    background: white;
    border: 1px solid var(--line);
}
.timeline li::before { content: ""; position: absolute; top: 34px; left: 24px; right: -16px; height: 2px; background: var(--blue); opacity: .25; }
.timeline li:last-child::before { display: none; }
.timeline b { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 18px; background: var(--blue); color: white; margin-bottom: 20px; }
.timeline span { display: block; font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.timeline p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.rounded-visual { width: 100%; border-radius: 34px; box-shadow: var(--shadow); background: white; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 34px; position: relative; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--ink); line-height: 1; }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.solution-grid article, .info-card { padding: 30px; }
.review-card { padding: clamp(28px, 5vw, 52px); border-left: 10px solid var(--blue); }
.faq-list { display: grid; gap: 14px; }
details { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 18px 22px; }
summary { cursor: pointer; font-size: 18px; font-weight: 900; }
details p { color: var(--muted); margin-top: 12px; }
.band-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 54px); background: var(--blue); color: white; border-radius: 34px; box-shadow: var(--shadow); }
.band-card h2 { color: white; }
.band-card p { color: rgba(255,255,255,.78); }
.page-hero { background: radial-gradient(circle at 15% 20%, rgba(168,255,42,.24), transparent 26%), linear-gradient(135deg, #f7f8fb, #e6ecff); border-bottom: 1px solid var(--line); }
.soft-section { background: #eceff5; }
.method-list { display: grid; gap: 16px; }
.method-list div { display: grid; grid-template-columns: 64px 220px 1fr; align-items: start; gap: 18px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 24px; }
.method-list b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: var(--green); }
.method-list span { font-weight: 900; font-size: 20px; }
.method-list p { color: var(--muted); }
.service-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.detail-card { padding: 26px; }
.detail-card img { height: 160px; width: 100%; object-fit: contain; margin-bottom: 20px; }
.detail-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.works-masonry { columns: 3 300px; column-gap: 20px; }
.work-item { display: inline-block; width: 100%; margin: 0 0 20px; overflow: hidden; }
.work-item img { width: 100%; background: #10131a; }
.work-item div { padding: 22px; }
.work-item.tall img { min-height: 380px; object-fit: cover; }
.work-item.wide img { min-height: 260px; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.video-card { overflow: hidden; }
.video-card h2, .video-card p { padding-left: 22px; padding-right: 22px; }
.video-card h2 { font-size: 22px; line-height: 1.25; margin-top: 18px; }
.video-card p { color: var(--muted); padding-bottom: 22px; }
.video-frame { position: relative; aspect-ratio: 16/10; background: #10131a; overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    box-shadow: 0 0 0 12px rgba(255,255,255,.16);
}
.video-frame::before {
    content: "";
    position: absolute;
    left: calc(50% - 7px); top: calc(50% - 13px);
    z-index: 2;
    width: 0; height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid var(--blue);
}
.video-frame span { position: absolute; left: 14px; top: 14px; z-index: 3; padding: 6px 10px; border-radius: 999px; background: var(--green); font-size: 13px; font-weight: 900; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.contact-panel, .contact-form { padding: clamp(24px, 4vw, 38px); }
.domain-line, [data-current-domain] { word-break: break-all; }
.contact-note { margin-top: 28px; padding: 22px; border-radius: 22px; background: var(--blue-soft); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 900; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font: inherit; background: #f8f9fb; }
textarea { resize: vertical; }
.form-result { display: none; padding: 18px; border-radius: 18px; background: #edf8d8; white-space: pre-wrap; color: var(--ink-soft); }
.form-result.show { display: block; }
.site-footer { background: #080a0e; color: white; padding: 48px clamp(18px, 5vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .7fr; gap: 28px; max-width: 1180px; margin: 0 auto; }
.footer-grid p { color: rgba(255,255,255,.68); margin: 8px 0 0; }
.footer-label { color: var(--green); font-weight: 900; font-size: 13px; letter-spacing: .08em; }
@media (max-width: 1080px) {
    .card-grid.four, .timeline.compact, .timeline.full, .service-detail-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { max-width: 680px; }
    .masonry-preview { grid-template-columns: 1fr; }
    .work-card, .work-card.large { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        gap: 4px;
        align-items: center;
        justify-items: center;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: var(--ink);
        color: white;
        border: 0;
    }
    .nav-toggle span { width: 20px; height: 2px; background: white; }
    .nav-toggle em { display: none; }
    .site-nav {
        position: fixed;
        inset: 74px 18px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: white;
        border: 1px solid var(--line);
        border-radius: 24px;
        padding: 14px;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a { text-align: center; }
    .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .reverse-mobile img { order: 2; }
    .solution-grid, .card-grid.three { grid-template-columns: 1fr; }
    .method-list div { grid-template-columns: 56px 1fr; }
    .method-list p { grid-column: 2; }
    .band-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .site-header { min-height: 66px; padding: 12px 16px; }
    .brand-mark { width: 38px; height: 38px; border-radius: 14px; }
    .hero { padding: 38px 18px 64px; }
    .hero-stats { flex-direction: column; }
    .card-grid.four, .timeline.compact, .timeline.full, .service-detail-grid, .video-grid { grid-template-columns: 1fr; }
    .hero-copy h1, .page-hero h1 { font-size: clamp(38px, 14vw, 56px); }
    .section-pad { padding: 58px 0; }
    .work-item.tall img, .work-item.wide img { min-height: auto; }
}
