*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip !important; }
body {
    -webkit-font-smoothing: antialiased;
    background: #fdfcfc;
    color: #555;
    font-family: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, sans-serif;
}
h1,h2,h3,h4,h5,h6 { color: #333; letter-spacing: -.02em; }
::selection { background: #CBFCC0; color: #333; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f3f0; }
::-webkit-scrollbar-thumb { background: rgba(216,137,162,.35); border-radius: 99px; }

@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.anim-in { animation: fadeUp .65s cubic-bezier(.16,1,.3,1) both; }
.reveal-up {
    opacity: 0; transform: translateY(14px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-up.visible { opacity:1; transform:none; }

#blog-art-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 3000;
    background: rgba(253,252,252,.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .3s ease;
}
#blog-art-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: .875rem 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
    display: flex; align-items: center; gap: .5rem;
    text-decoration: none; flex-shrink: 0;
}
.nav-cta {
    display: inline-flex; align-items: center; gap: .375rem;
    background: #F9B2C0; color: #333;
    padding: .5rem 1.125rem; border-radius: 999px;
    font-size: .72rem; font-weight: 800; text-decoration: none;
    letter-spacing: .02em; text-transform: uppercase;
    transition: background .2s, color .2s, transform .15s;
    box-shadow: 0 2px 8px rgba(249,178,192,.4);
    flex-shrink: 0;
}
.nav-cta:hover { background: #D889A2; color: #fff; transform: translateY(-1px); }

.art-hero {
    position: relative;
    min-height: 650px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.art-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20,20,40,.35) 0%,
        rgba(20,20,40,.55) 50%,
        rgba(10,10,25,.82) 100%
    );
    pointer-events: none;
}
.art-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 1040px;
    margin: 0 auto;
    padding: 4rem 2rem 3.5rem;
    text-align: center;
}
@media (max-width: 640px) {
    .art-hero { min-height: 546px; }
    .art-hero-inner { padding: 3rem 1.25rem 2.5rem; }
}

.art-layout {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

.art-content-col {
    padding: 3rem 2rem 5rem;
    background: #fff;
}
@media (max-width: 640px) { .art-content-col { padding: 2rem 1.25rem 4rem; } }

.breadcrumb-row {
    display: flex; align-items: center; gap: .5rem;
    font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #ccc; margin-bottom: 2rem; flex-wrap: wrap;
}
.breadcrumb-row a { color: #ccc; text-decoration: none; transition: color .18s; }
.breadcrumb-row a:hover { color: #D889A2; }
.breadcrumb-row .bc-sep { font-size: 7px; opacity: .5; }

.art-lead {
    font-size: 1.125rem; line-height: 1.9; color: #555;
    border-left: 3px solid #D889A2;
    padding: 1rem 1.375rem;
    background: rgba(216,137,162,.04); border-radius: 0 12px 12px 0; margin-bottom: 3rem;
}
.art-lead strong { color: #333; font-weight: 700; }

.art-section { margin-bottom: 3rem; }
.section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.sec-badge {
    font-size: .55rem; font-weight: 800; letter-spacing: .1em;
    font-family: 'JetBrains Mono', monospace;
    color: #D889A2; background: rgba(216,137,162,.1);
    border: 1px solid rgba(216,137,162,.22); padding: 3px 8px; border-radius: 4px; flex-shrink: 0;
}
.prose-h2 {
    font-size: 1.4375rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.3;
    color: #333; margin: 0; padding-left: .875rem; border-left: 3px solid #D889A2;
    scroll-margin-top: 80px;
}
.prose-p { font-size: 1.0625rem; line-height: 1.95; color: #555; margin: 0 0 1rem; }
.prose-p:last-child { margin-bottom: 0; }
.prose-p strong { color: #333; font-weight: 700; }
.prose-p a { color: #D889A2; font-weight: 500; text-decoration: none; }
.prose-p a:hover { text-decoration: underline; }
.prose-p code {
    font-family: 'JetBrains Mono', monospace; font-size: .82em;
    background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.09);
    border-radius: 4px; padding: 1px 6px; color: #D889A2;
}

.step-item {
    display: flex; gap: .875rem; align-items: flex-start;
    padding: .875rem 1.125rem; border-radius: 12px; margin-bottom: .5rem;
    background: #fdfcfc; border: 1px solid rgba(0,0,0,.07);
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.step-item:hover {
    background: #fff; border-color: rgba(216,137,162,.25);
    box-shadow: 0 2px 12px rgba(216,137,162,.08);
}
.step-badge {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: rgba(203,252,192,.4); border: 1px solid rgba(203,252,192,.6);
    display: flex; align-items: center; justify-content: center;
    font-size: .58rem; font-weight: 800; letter-spacing: .05em;
    font-family: 'JetBrains Mono', monospace; color: #4a7a52;
}
.step-item p { margin: 0; font-size: 1.0625rem; line-height: 1.85; color: #555; }
.step-item p strong { color: #333; }
.step-item p code {
    font-family: 'JetBrains Mono', monospace; font-size: .82em;
    background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.09);
    border-radius: 4px; padding: 1px 5px; color: #D889A2;
}

.code-block { background: #1e1c2e; border-radius: 12px; overflow: hidden; margin: 1.75rem 0; border: 1px solid rgba(0,0,0,.1); }
.code-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem 1.125rem; background: #18162a;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.code-lang {
    font-family: 'JetBrains Mono', monospace; font-size: .56rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.22);
}
.code-dots { display: flex; gap: 5px; }
.code-dot { width: 9px; height: 9px; border-radius: 50%; }
.code-body {
    font-family: 'JetBrains Mono', monospace; font-size: .875rem;
    line-height: 1.9; color: #b8b4d0; padding: 1.25rem 1.5rem;
    overflow-x: auto; white-space: pre; margin: 0;
}

.callout { display: flex; gap: .875rem; align-items: flex-start; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.75rem 0; border: 1px solid; }
.callout p { margin: 0; font-size: 1rem; line-height: 1.85; }
.callout p strong { font-weight: 700; }
.callout p a { font-weight: 500; text-decoration: none; }
.callout p a:hover { text-decoration: underline; }
.callout p code { font-family: 'JetBrains Mono', monospace; font-size: .82em; border-radius: 4px; padding: 1px 5px; }
.co-info { background: rgba(203,252,192,.15); border-color: rgba(116,185,129,.25); color: #555; }
.co-info strong { color: #333; }
.co-info .cico { color: #4a7a52; }
.co-info a { color: #D889A2; }
.co-info code { background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.09); color: #D889A2; }
.co-warn { background: rgba(249,178,192,.1); border-color: rgba(216,137,162,.25); color: #555; }
.co-warn strong { color: #D889A2; }
.co-warn .cico { color: #D889A2; }
.co-warn code { background: rgba(216,137,162,.08); border: 1px solid rgba(216,137,162,.18); color: #D889A2; }
.cico { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.tbl-wrap { border-radius: 12px; overflow-y: hidden; overflow-x: auto; border: 1px solid rgba(0,0,0,.07); margin: 1.75rem 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl thead tr { background: rgba(203,252,192,.15); }
.tbl th {
    text-align: left; padding: .75rem 1.125rem;
    font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #888; border-bottom: 1px solid rgba(0,0,0,.07);
}
.tbl td { padding: .75rem 1.125rem; color: #555; border-bottom: 1px solid rgba(0,0,0,.05); background: #fff; line-height: 1.75; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(203,252,192,.06); color: #333; }
.tbl td strong { color: #333; font-weight: 700; }

.pull-quote {
    margin: 1.75rem 0; padding: 1.125rem 1.625rem;
    border-left: 3px solid #CBFCC0;
    background: rgba(203,252,192,.12); border-radius: 0 12px 12px 0;
}
.pull-quote p { font-size: 1.125rem; line-height: 1.8; font-weight: 600; color: #4a7a52; margin: 0; font-style: italic; }

.faq-item {
    background: #fdfcfc; border: 1px solid rgba(0,0,0,.07);
    border-radius: 12px; overflow: hidden; margin-bottom: .5rem;
    transition: border-color .22s, box-shadow .22s;
}
.faq-item.open { border-color: rgba(216,137,162,.3); box-shadow: 0 2px 12px rgba(216,137,162,.08); }
.faq-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 1.125rem 1.375rem; background: none; border: none;
    cursor: pointer; font-family: inherit; text-align: left;
}
.faq-q { font-size: 1.0625rem; font-weight: 700; color: #333; line-height: 1.5; }
.faq-icon {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.06); color: rgba(0,0,0,.35);
    transition: background .2s, transform .35s cubic-bezier(.16,1,.3,1), color .2s;
}
.faq-item.open .faq-icon { background: rgba(249,178,192,.3); color: #D889A2; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-body { max-height: 600px; }
.faq-ans { padding: .25rem 1.375rem 1.25rem; font-size: 1rem; line-height: 1.9; color: #555; }
.faq-ans a { color: #D889A2; font-weight: 500; text-decoration: none; }
.faq-ans a:hover { text-decoration: underline; }
.faq-ans code {
    font-family: 'JetBrains Mono', monospace; font-size: .82em;
    background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.08);
    border-radius: 4px; padding: 1px 5px; color: #D889A2;
}

.art-bottom-bar {
    border-top: 1px solid rgba(0,0,0,.07); margin-top: 3rem; padding-top: 1.75rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.back-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; color: #ccc;
    text-decoration: none; letter-spacing: .04em; text-transform: uppercase; transition: color .18s;
}
.back-link:hover { color: #D889A2; }
.rent-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #F9B2C0; color: #333; font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    padding: .75rem 1.75rem; border-radius: 999px; text-decoration: none;
    transition: background .2s, color .2s, transform .18s;
    box-shadow: 0 3px 12px rgba(249,178,192,.45);
}
.rent-btn:hover { background: #D889A2; color: #fff; transform: translateY(-1px); }

#float-btn {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 4000;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .3s, transform .3s;
}
#float-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-btn-inner {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #F9B2C0; color: #333; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
    padding: .625rem 1.25rem; border-radius: 999px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(249,178,192,.55); transition: background .2s, color .2s;
}
.float-btn-inner:hover { background: #D889A2; color: #fff; }

.dev-grid-bg {
    background-size: 30px 30px;
    background-image: radial-gradient(circle, rgba(51,51,51,.07) 1px, transparent 1px);
}

/* ── 移动端补充响应式规则 ── */
@media (max-width: 640px) {
    .nav-inner { padding: .75rem 1rem; }
    .art-layout { width: 100%; overflow-x: hidden; }
    .art-content-col { overflow-x: hidden; }
    .prose-h2 { font-size: 1.2rem; }
    .prose-p, .step-item p, .callout p, .faq-ans, .art-lead {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .step-item, .callout { overflow-x: hidden; }
    .step-item p, .callout p { min-width: 0; }
    .code-block { overflow-x: hidden; }
    .code-body { font-size: .78rem; padding: 1rem; overflow-x: auto; }
    .tbl th, .tbl td { padding: .6rem .75rem; font-size: .85rem; }
    .art-lead { font-size: 1rem; padding: .875rem 1rem; }
    .pull-quote p { font-size: 1rem; }
    .faq-q { font-size: .95rem; }
}
