:root {
    --qw-bg: #07111c;
    --qw-bg-2: #0c1827;
    --qw-panel: rgba(12, 23, 39, .92);
    --qw-panel-2: rgba(9, 18, 31, .96);
    --qw-line: rgba(91, 227, 255, .16);
    --qw-line-strong: rgba(91, 227, 255, .35);
    --qw-text: #dcecff;
    --qw-muted: #89a4c6;
    --qw-accent: #5be3ff;
    --qw-accent-2: #7c8cff;
    --qw-accent-3: #8fffc2;
    --qw-shadow: 0 0 0 1px rgba(91,227,255,.06), 0 22px 50px rgba(0,0,0,.34);
    --qw-radius: 22px;
    --qw-radius-sm: 14px;
    --qw-wrap: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100%;
    color: var(--qw-text);
    font-family: "Inter", "PingFang SC", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at left top, rgba(124,140,255,.14), transparent 30%),
        radial-gradient(circle at right top, rgba(91,227,255,.12), transparent 26%),
        linear-gradient(180deg, #050c15 0%, #07111c 45%, #091523 100%);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 28px 28px;
}
a {
    color: var(--qw-accent);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, opacity .2s ease;
}
a:hover { color: #b8f7ff; text-decoration: none; }
img { max-width: 100%; display: block; }

.qw-wrap {
    width: min(var(--qw-wrap), calc(100% - 32px));
    margin: 0 auto;
}
.qw-main {
    position: relative;
    z-index: 1;
    padding: 24px 0 56px;
}
.qw-shell,
.qw-page,
.qw-detail-wrap {
    display: grid;
    gap: 22px;
}
.qw-panel,
.qw-hero,
.qw-editorial,
.qw-feature-card,
.qw-article-card,
.qw-side-panel,
.qw-page-head,
.qw-search-shell,
.qw-tag-shell,
.qw-detail-card,
.qw-so-hero,
.qw-so-results-wrap,
.qw-diy-card,
.qw-empty-card {
    background: var(--qw-panel);
    border: 1px solid var(--qw-line);
    border-radius: var(--qw-radius);
    box-shadow: var(--qw-shadow);
    backdrop-filter: blur(12px);
}
.qw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(91,227,255,.10);
    border: 1px solid rgba(91,227,255,.18);
    color: var(--qw-accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 700;
}
.qw-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--qw-accent);
    box-shadow: 0 0 12px rgba(91,227,255,.9);
}
.qw-meta,
.qw-breadcrumb,
.qw-breadcrumb a,
.qw-breadcrumb li {
    color: var(--qw-muted);
    font-size: 13px;
}
.qw-main-grid,
.qw-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}
.qw-side-col,
.qw-detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}
.qw-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 10, 20, .82);
    border-bottom: 1px solid var(--qw-line);
    backdrop-filter: blur(14px);
}
.qw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0 14px;
}
.qw-brand-box { min-width: 0; }
.qw-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f5fbff;
    font-size: 24px;
    font-weight: 800;
}
.qw-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #04111b;
    background: linear-gradient(135deg, var(--qw-accent), var(--qw-accent-2));
    box-shadow: 0 0 16px rgba(91,227,255,.45);
}
.qw-brand-desc {
    margin: 8px 0 0;
    color: var(--qw-muted);
    font-size: 13px;
}
.qw-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qw-search,
.qw-search-wide,
.qw-so-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.qw-search input,
.qw-search-wide input,
.qw-so-form input {
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(91,227,255,.18);
    background: rgba(255,255,255,.03);
    color: var(--qw-text);
    outline: none;
}
.qw-search button,
.qw-search-wide button,
.qw-so-form button,
.qw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 0;
    font-weight: 700;
    color: #04111b;
    background: linear-gradient(135deg, var(--qw-accent), var(--qw-accent-2));
}
.qw-btn-light {
    color: var(--qw-text);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(91,227,255,.18);
}
.qw-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(91,227,255,.18);
    background: rgba(255,255,255,.03);
    color: var(--qw-text);
}
.qw-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 16px;
}
.qw-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--qw-muted);
    border: 1px solid transparent;
    background: rgba(255,255,255,.025);
}
.qw-nav a:hover,
.qw-nav .qw-nav-home {
    color: #f2fbff;
    border-color: var(--qw-line);
}

.qw-editorial {
    padding: 24px;
}
.qw-editorial-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.qw-editorial h2,
.qw-hero-copy h1,
.qw-page-head h1,
.qw-page-head h2,
.qw-detail-head h1 {
    margin: 0;
    color: #f4fbff;
}
.qw-editorial p,
.qw-hero-copy p,
.qw-page-head p,
.qw-feature-body p,
.qw-article-body p,
.qw-side-link span,
.qw-so-item p,
.qw-empty-card p,
.qw-diy-card p {
    color: var(--qw-muted);
}
.qw-editorial-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
}
.qw-side-panel {
    padding: 18px;
}
.qw-side-title {
    margin-bottom: 14px;
    color: var(--qw-accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
}
.qw-side-list {
    display: grid;
    gap: 12px;
}
.qw-side-link {
    display: grid;
    gap: 4px;
    padding: 0 0 12px;
    border-bottom: 1px dashed rgba(91,227,255,.14);
}
.qw-side-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.qw-side-link strong {
    color: #eef8ff;
    line-height: 1.6;
}

.qw-hero {
    display: grid;
    grid-template-columns: 1.25fr .85fr;
    gap: 22px;
    padding: 28px;
}
.qw-hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}
.qw-hero-copy p {
    max-width: 760px;
    line-height: 1.85;
}
.qw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.qw-hero-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(91,227,255,.14);
    background: rgba(255,255,255,.025);
}
.qw-card-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(124,140,255,.12);
    color: #c9d0ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.qw-hero-card h2 {
    margin: 14px 0 10px;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
}
.qw-section {
    display: grid;
    gap: 16px;
}
.qw-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}
.qw-section-head h2 {
    margin: 6px 0 0;
    font-size: 30px;
    color: #f4fbff;
}
.qw-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.qw-feature-card {
    overflow: hidden;
}
.qw-feature-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.qw-feature-thumb img,
.qw-article-thumb img,
.qw-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qw-feature-fallback,
.qw-article-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(91,227,255,.16), rgba(124,140,255,.16));
    color: #eef9ff;
    font-weight: 800;
    letter-spacing: .18em;
    font-size: 13px;
}
.qw-feature-body {
    padding: 16px 16px 18px;
}
.qw-feature-body h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.45;
    color: #fff;
}

.qw-article-list {
    display: grid;
    gap: 16px;
}
.qw-article-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    overflow: hidden;
}
.qw-article-thumb {
    display: block;
    aspect-ratio: 16 / 11;
}
.qw-article-body {
    padding: 18px 20px;
}
.qw-article-body h3 {
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.35;
    color: #fff;
}
.qw-article-actions {
    margin-top: 14px;
}
.qw-article-actions a {
    color: var(--qw-accent);
    font-weight: 700;
}

.qw-page-head,
.qw-search-shell,
.qw-tag-shell,
.qw-detail-card,
.qw-so-hero,
.qw-so-results-wrap {
    padding: 24px;
}
.qw-page-head {
    display: grid;
    gap: 12px;
}
.qw-page-head h1,
.qw-page-head h2 {
    font-size: 34px;
    line-height: 1.15;
}
.qw-page-kicker {
    justify-self: start;
}
.qw-breadcrumb {
    margin-bottom: 0;
}
.qw-tag-cloud,
.qw-tag-mini,
.qw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.qw-tag-cloud a,
.qw-tag-mini a,
.qw-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(91,227,255,.15);
    background: rgba(255,255,255,.03);
    color: var(--qw-text);
    font-size: 13px;
}
.qw-tag-cloud a span,
.qw-tag-mini a span { color: var(--qw-muted); }

.qw-detail-grid {
    align-items: start;
}
.qw-detail-card {
    display: grid;
    gap: 18px;
}
.qw-detail-head {
    display: grid;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 20px;
    border: 1px solid rgba(91,227,255,.16);
    background: linear-gradient(135deg, rgba(91,227,255,.08), rgba(124,140,255,.10));
}
.qw-detail-head h1 {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
}
.qw-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--qw-muted);
    font-size: 13px;
}
.qw-detail-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 8;
}
.qw-article-content {
    color: #c8dbef;
    font-size: 16px;
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.qw-article-content > :first-child { margin-top: 0 !important; }
.qw-article-content h1,
.qw-article-content h2,
.qw-article-content h3,
.qw-article-content h4,
.qw-article-content h5,
.qw-article-content h6 {
    color: #f1f9ff;
    margin: 1.5em 0 .8em;
    line-height: 1.35;
}
.qw-article-content h1 { font-size: 28px; }
.qw-article-content h2 { font-size: 24px; border-bottom: 1px solid rgba(91,227,255,.12); padding-bottom: 8px; }
.qw-article-content h3 { font-size: 20px; }
.qw-article-content h4 { font-size: 18px; }
.qw-article-content p,
.qw-article-content ul,
.qw-article-content ol,
.qw-article-content pre,
.qw-article-content blockquote {
    margin-bottom: 1.1em;
}
.qw-article-content ul { list-style: disc; padding-left: 28px; }
.qw-article-content ol { list-style: decimal; padding-left: 28px; }
.qw-article-content li { margin-bottom: 6px; }
.qw-article-content a {
    color: var(--qw-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.qw-article-content strong,
.qw-article-content b { color: #eef9ff; font-weight: 700; }
.qw-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 18px auto;
    border-radius: 14px;
}
.qw-article-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--qw-accent);
    border-radius: 0 14px 14px 0;
    background: rgba(255,255,255,.03);
    color: #d2e2f2;
}
.qw-article-content code,
.qw-article-content pre {
    font-family: Consolas, Monaco, monospace;
}
.qw-article-content code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
}
.qw-article-content pre {
    padding: 16px;
    overflow: auto;
    border-radius: 14px;
    background: #08111d;
    border: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
    line-height: 1.6;
}
.qw-article-content pre code {
    padding: 0;
    border: 0;
    background: none;
}
.qw-article-content hr {
    border: 0;
    border-top: 1px solid var(--qw-line);
    margin: 24px 0;
}
.qw-article-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 20px 0;
}
.qw-article-content td,
.qw-article-content th {
    min-width: 60px;
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--qw-line);
}
.qw-article-content th {
    background: rgba(255,255,255,.04);
    color: #eef8ff;
    font-weight: 700;
}
.qw-detail-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(91,227,255,.12);
}
.qw-detail-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}
.qw-detail-nav-card {
    flex: 1;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(91,227,255,.14);
    background: rgba(255,255,255,.025);
}
.qw-detail-nav-card a,
.qw-detail-nav-card span {
    display: block;
    line-height: 1.7;
}
.qw-detail-nav-card span {
    color: var(--qw-muted);
}
.qw-detail-nav-card.next { text-align: right; }
.qw-detail-nav-label {
    margin-bottom: 6px;
    color: var(--qw-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.qw-detail-related-title {
    margin: 0 0 14px;
    font-size: 24px;
    color: #f2fbff;
}
.qw-comments-box { margin-top: 24px; }

.qw-search-top,
.qw-so-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}
.qw-search-results,
.qw-so-results,
.qw-diy-grid {
    display: grid;
    gap: 16px;
}
.qw-search-card,
.qw-so-item,
.qw-diy-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(91,227,255,.12);
    background: rgba(255,255,255,.025);
}
.qw-search-card h3,
.qw-so-item h3 {
    margin: 8px 0 10px;
    color: #eef8ff;
    font-size: 22px;
    line-height: 1.35;
}
.qw-empty-card {
    padding: 26px;
    text-align: center;
}
.qw-empty-card h4 {
    margin: 0 0 8px;
    color: #f2fbff;
    font-size: 20px;
}
.qw-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.qw-pagination a,
.qw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(91,227,255,.18);
    background: rgba(255,255,255,.03);
    color: var(--qw-text);
}
.qw-pagination a:hover,
.qw-pagination span {
    border-color: var(--qw-line-strong);
    background: rgba(91,227,255,.12);
    color: #f1fbff;
}

.qw-so-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.qw-so-shell {
    width: min(980px, 100%);
}
.qw-so-brand {
    display: inline-flex;
    margin-bottom: 18px;
    color: #f4fbff;
    font-size: 22px;
    font-weight: 800;
}
.qw-so-hero,
.qw-so-results-wrap {
    padding: 34px;
}
.qw-so-hot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.qw-so-hot a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(91,227,255,.15);
    background: rgba(255,255,255,.03);
    color: var(--qw-text);
}
.qw-diy-grid {
    grid-template-columns: repeat(3, 1fr);
}
.qw-diy-card strong {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--qw-accent);
}

.qw-footer {
    margin-top: 26px;
    border-top: 1px solid var(--qw-line);
    background: rgba(255,255,255,.02);
}
.qw-footer-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 14px;
}
.qw-footer-inner p,
.qw-footer-copy {
    color: var(--qw-muted);
}
.qw-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.qw-footer-copy {
    padding: 0 0 26px;
    font-size: 13px;
}
.qw-scrolltop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qw-accent), var(--qw-accent-2));
    color: #05111b;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--qw-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s ease;
    cursor: pointer;
}
.qw-scrolltop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .qw-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .qw-main-grid,
    .qw-detail-grid,
    .qw-hero,
    .qw-editorial-grid,
    .qw-search-top,
    .qw-so-header {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 991px) {
    .qw-article-card,
    .qw-diy-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .qw-wrap { width: min(var(--qw-wrap), calc(100% - 20px)); }
    .qw-main { padding-top: 20px; }
    .qw-header-inner,
    .qw-footer-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .qw-header-actions,
    .qw-search,
    .qw-search-wide,
    .qw-so-form {
        width: 100%;
    }
    .qw-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .qw-nav { display: none; }
    .qw-nav.open {
        display: flex;
        flex-direction: column;
        padding-bottom: 18px;
    }
    .qw-feature-grid { grid-template-columns: 1fr; }
    .qw-editorial,
    .qw-hero,
    .qw-page-head,
    .qw-search-shell,
    .qw-tag-shell,
    .qw-detail-card,
    .qw-so-hero,
    .qw-so-results-wrap,
    .qw-diy-card,
    .qw-empty-card {
        padding: 18px;
    }
    .qw-page-head h1,
    .qw-page-head h2,
    .qw-detail-head h1,
    .qw-hero-copy h1 {
        font-size: 26px;
    }
    .qw-hero-card h2,
    .qw-search-card h3,
    .qw-so-item h3,
    .qw-article-body h3,
    .qw-detail-related-title {
        font-size: 20px;
    }
    .qw-detail-nav,
    .qw-detail-nav-card.next {
        text-align: left;
    }
    .qw-article-content { font-size: 15px; }
    .qw-article-content h1 { font-size: 24px; }
    .qw-article-content h2 { font-size: 20px; }
    .qw-article-content h3 { font-size: 18px; }
    .qw-article-content pre { font-size: 12px; padding: 12px; }
    .qw-article-content td,
    .qw-article-content th { padding: 6px 8px; min-width: 40px; }
}