/* =============================================================
   QuickQ 全站公共样式 v2.5
   最近更新:2026-08-23
   设计原则:CSS 变量主色 + 渐变 + 高光 + 阴影 + SVG hover 交互
   ============================================================= */

:root {
    /* 主色系:科技蓝紫渐变 */
    --q-primary: #4a6cf7;
    --q-primary-deep: #2d4ed1;
    --q-accent: #6a4cf7;
    --q-accent-2: #b94cf7;

    /* 中性色 */
    --q-ink: #0f1d3a;        /* 主标题深墨 */
    --q-ink-2: #1a2b4c;     /* 副标题 */
    --q-text: #3a4a63;      /* 正文 */
    --q-muted: #6c7a8a;     /* 弱化文字 */
    --q-line: #e6ebf5;     /* 分割线 */

    /* 背景层 */
    --q-bg: #f5f8ff;
    --q-bg-soft: #eef2ff;
    --q-card: #ffffff;
    --q-card-2: #fbfcff;
    --q-footer: #0d1a36;

    /* 状态色 */
    --q-success: #10c97a;
    --q-warning: #ffb020;
    --q-danger: #f4516c;

    /* 渐变 */
    --q-grad-primary: linear-gradient(135deg, #4a6cf7 0%, #6a4cf7 50%, #b94cf7 100%);
    --q-grad-soft: linear-gradient(135deg, #eef2ff 0%, #f8e9ff 100%);
    --q-grad-ink: linear-gradient(180deg, #0d1a36 0%, #1a2b4c 100%);

    /* 阴影 */
    --q-shadow-sm: 0 2px 8px rgba(15, 29, 58, 0.06);
    --q-shadow: 0 8px 24px rgba(74, 108, 247, 0.12);
    --q-shadow-lg: 0 18px 50px rgba(74, 108, 247, 0.18);
    --q-shadow-glow: 0 0 30px rgba(106, 76, 247, 0.35);

    /* 圆角 */
    --q-r-sm: 10px;
    --q-r: 16px;
    --q-r-lg: 24px;
    --q-r-pill: 999px;

    /* 字体 */
    --q-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
              "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------- 重置 ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--q-font);
    color: var(--q-text);
    background: var(--q-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--q-ink); font-weight: 700; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--q-primary-deep); text-decoration: none; transition: color .25s; }
a:hover { color: var(--q-accent); }
img, svg { max-width: 100%; display: block; }
ul, ol { padding-left: 1.2em; }

/* ---------------- 容器 ---------------- */
.container, .q-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.q-section { padding: 72px 0; }
.q-section--soft { background: var(--q-bg-soft); }
.q-section--ink { background: var(--q-grad-ink); color: #c8d0dc; }
.q-section--ink h2, .q-section--ink h3 { color: #fff; }

.q-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(74, 108, 247, .12);
    color: var(--q-primary-deep);
    font-size: .8rem; font-weight: 600;
    padding: 6px 14px; border-radius: var(--q-r-pill);
    letter-spacing: .04em;
}
.q-section-title { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.q-section-title h2 { margin-bottom: .35em; }
.q-section-title p { color: var(--q-muted); font-size: 1.05rem; margin: 0; }
.q-section-title .q-eyebrow { margin-bottom: 16px; }

/* ---------------- 按钮 ---------------- */
.q-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border: none; border-radius: var(--q-r-pill);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: transform .25s, box-shadow .25s, color .25s;
    text-decoration: none;
}
.q-btn--primary {
    background: var(--q-grad-primary);
    color: #fff;
    box-shadow: var(--q-shadow);
}
.q-btn--primary:hover { transform: translateY(-3px); box-shadow: var(--q-shadow-lg), var(--q-shadow-glow); color: #fff; }
.q-btn--ghost {
    background: transparent;
    color: var(--q-primary-deep);
    border: 2px solid var(--q-primary);
}
.q-btn--ghost:hover { background: var(--q-primary); color: #fff; transform: translateY(-2px); }

/* ---------------- 导航 ---------------- */
.q-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--q-line);
}
.q-nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.q-nav__brand { display: flex; align-items: center; gap: 10px; color: var(--q-ink); font-weight: 800; font-size: 1.15rem; }
.q-nav__brand svg { height: 36px; width: auto; }
.q-nav__links { display: flex; gap: 4px; align-items: center; }
.q-nav__links a {
    padding: 8px 14px; border-radius: var(--q-r-sm);
    color: var(--q-text); font-weight: 500; font-size: .95rem;
}
.q-nav__links a:hover, .q-nav__links a.is-active {
    color: var(--q-primary-deep); background: rgba(74, 108, 247, .08);
}
.q-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.q-nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
    .q-nav__links {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; padding: 12px; gap: 4px;
        box-shadow: var(--q-shadow);
        display: none;
    }
    .q-nav__links.is-open { display: flex; }
    .q-nav__toggle { display: inline-flex; }
}

/* ---------------- 面包屑 ---------------- */
.q-breadcrumb {
    padding: 14px 0; font-size: .85rem; color: var(--q-muted);
}
.q-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.q-breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--q-line); }
.q-breadcrumb li:last-child::after { content: ""; }
.q-breadcrumb a { color: var(--q-muted); }
.q-breadcrumb a:hover { color: var(--q-primary-deep); }
.q-breadcrumb li:last-child { color: var(--q-ink-2); }

/* ---------------- 卡片网格 ---------------- */
.q-grid { display: grid; gap: 24px; }
.q-grid--2 { grid-template-columns: repeat(2, 1fr); }
.q-grid--3 { grid-template-columns: repeat(3, 1fr); }
.q-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .q-grid--4 { grid-template-columns: repeat(2, 1fr); } .q-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .q-grid--2, .q-grid--3, .q-grid--4 { grid-template-columns: 1fr; } }

.q-card {
    background: var(--q-card);
    border-radius: var(--q-r);
    padding: 28px;
    box-shadow: var(--q-shadow-sm);
    border: 1px solid var(--q-line);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}
.q-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--q-shadow);
    border-color: rgba(74, 108, 247, .35);
}
.q-card__icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--q-grad-soft);
    margin-bottom: 16px;
    transition: transform .3s;
}
.q-card:hover .q-card__icon { transform: scale(1.08) rotate(-4deg); }
.q-card__icon svg { width: 32px; height: 32px; }
.q-card h3 { margin-bottom: .4em; }
.q-card p { margin: 0; color: var(--q-text); }

/* ---------------- Hero ---------------- */
.q-hero {
    position: relative; overflow: hidden;
    background: var(--q-grad-soft);
    padding: 60px 0 70px;
}
.q-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(74, 108, 247, .18), transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(185, 76, 247, .18), transparent 40%);
    pointer-events: none;
}
.q-hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.q-hero h1 { margin-bottom: 20px; }
.q-hero h1 .q-grad-text {
    background: var(--q-grad-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.q-hero__lead { font-size: 1.15rem; color: var(--q-text); margin-bottom: 28px; max-width: 540px; }
.q-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.q-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.q-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--q-ink-2);
    padding: 6px 14px; border-radius: var(--q-r-pill);
    font-size: .85rem; font-weight: 500;
    box-shadow: var(--q-shadow-sm);
}
.q-tag svg { width: 16px; height: 16px; color: var(--q-primary); }

@media (max-width: 860px) {
    .q-hero__grid { grid-template-columns: 1fr; }
    .q-hero__art { order: -1; }
}

/* ---------------- 步骤 ---------------- */
.q-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 700px) { .q-steps { grid-template-columns: 1fr; } }
.q-step {
    background: #fff; border-radius: var(--q-r);
    padding: 22px; border: 1px solid var(--q-line);
    position: relative; transition: transform .3s, box-shadow .3s;
}
.q-step:hover { transform: translateY(-4px); box-shadow: var(--q-shadow); }
.q-step__num {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--q-grad-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 12px;
    box-shadow: var(--q-shadow-glow);
}
.q-step h4 { margin: 0 0 .3em; font-size: 1.05rem; }
.q-step p { margin: 0; color: var(--q-muted); font-size: .92rem; }

/* ---------------- 表格 ---------------- */
.q-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--q-r); overflow: hidden; box-shadow: var(--q-shadow-sm); }
.q-table th, .q-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--q-line); }
.q-table thead th { background: var(--q-grad-soft); color: var(--q-ink); font-weight: 700; }
.q-table tbody tr:hover { background: rgba(74, 108, 247, .04); }
.q-table--compare th:nth-child(2) { background: linear-gradient(135deg, rgba(74, 108, 247, .15), rgba(185, 76, 247, .15)); }

/* ---------------- FAQ ---------------- */
.q-faq { background: #fff; border-radius: var(--q-r); padding: 24px; margin-bottom: 18px; border: 1px solid var(--q-line); box-shadow: var(--q-shadow-sm); }
.q-faq summary {
    cursor: pointer; font-weight: 700; color: var(--q-ink);
    display: flex; align-items: center; gap: 10px;
    list-style: none;
}
.q-faq summary::-webkit-details-marker { display: none; }
.q-faq summary .q-faq__icon { color: var(--q-primary); transition: transform .25s; }
.q-faq[open] summary .q-faq__icon { transform: rotate(45deg); }
.q-faq__answer { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--q-line); color: var(--q-text); }

/* ---------------- 新闻网格 ---------------- */
.q-news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 992px) { .q-news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .q-news { grid-template-columns: 1fr; } }
.q-news__item {
    background: #fff; border-radius: var(--q-r); overflow: hidden;
    border: 1px solid var(--q-line);
    box-shadow: var(--q-shadow-sm);
    transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.q-news__item:hover { transform: translateY(-5px); box-shadow: var(--q-shadow); }
.q-news__art {
    height: 160px; position: relative;
    background: var(--q-grad-primary);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.q-news__item--lg .q-news__art { height: 240px; }
.q-news__art svg { width: 70%; height: 70%; }
.q-news__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.q-news__meta { color: var(--q-muted); font-size: .8rem; margin-bottom: 8px; display: flex; gap: 10px; }
.q-news__title { font-weight: 700; color: var(--q-ink); margin: 0 0 10px; font-size: 1rem; line-height: 1.4; }
.q-news__title a { color: inherit; }
.q-news__title a:hover { color: var(--q-primary-deep); }
.q-news__desc { color: var(--q-text); font-size: .9rem; margin: 0 0 14px; flex: 1; }
.q-news__more { color: var(--q-primary-deep); font-weight: 600; font-size: .85rem; }

/* ---------------- CTA 横幅 ---------------- */
.q-cta {
    background: var(--q-grad-primary);
    border-radius: var(--q-r-lg);
    padding: 40px 32px; color: #fff;
    text-align: center; position: relative; overflow: hidden;
    box-shadow: var(--q-shadow-lg);
}
.q-cta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .2), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .15), transparent 30%);
}
.q-cta > * { position: relative; }
.q-cta h3 { color: #fff; margin-bottom: 10px; }
.q-cta p { color: rgba(255, 255, 255, .9); margin-bottom: 22px; }
.q-cta .q-btn--primary { background: #fff; color: var(--q-primary-deep); }
.q-cta .q-btn--primary:hover { background: #fff; color: var(--q-accent); }

/* ---------------- 信任数字 ---------------- */
.q-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .q-stats { grid-template-columns: repeat(2, 1fr); } }
.q-stat { text-align: center; }
.q-stat__num {
    font-size: 2.4rem; font-weight: 800;
    background: var(--q-grad-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.q-stat__label { color: var(--q-muted); font-size: .9rem; }

/* ---------------- 页脚 ---------------- */
.q-footer {
    background: var(--q-footer); color: #b8c2d6;
    padding: 60px 0 24px;
}
.q-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 700px) { .q-footer__grid { grid-template-columns: 1fr 1fr; } }
.q-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.q-footer a { color: #b8c2d6; }
.q-footer a:hover { color: #fff; }
.q-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.q-footer__brand svg { height: 36px; width: auto; }
.q-footer__brand span { color: #fff; font-weight: 800; font-size: 1.15rem; }
.q-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); margin-right: 8px;
    transition: background .25s, transform .25s;
}
.q-footer__social a:hover { background: var(--q-primary); transform: translateY(-3px); }
.q-footer__social svg { width: 18px; height: 18px; color: #fff; }
.q-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px; text-align: center;
    font-size: .85rem; color: #8a96aa;
}
.q-footer__bottom a { color: #8a96aa; }
.q-footer__update { text-align: right; margin-top: 8px; color: #6c7a8a; font-size: .8rem; }

/* ---------------- 返回顶部 ---------------- */
.q-totop {
    position: fixed; right: 24px; bottom: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--q-grad-primary);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--q-shadow-lg);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
    z-index: 90;
}
.q-totop.is-visible { opacity: 1; visibility: visible; }
.q-totop:hover { transform: translateY(-4px); }
.q-totop svg { width: 22px; height: 22px; color: #fff; }

/* ---------------- 文章排版 ---------------- */
.q-article { max-width: 820px; margin: 0 auto; }
.q-article__head { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--q-line); }
.q-article__head h1 { margin-bottom: 14px; }
.q-article__meta { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; color: var(--q-muted); font-size: .85rem; }
.q-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.q-toc {
    background: var(--q-bg-soft); border-radius: var(--q-r);
    padding: 20px 24px; margin-bottom: 32px;
    border-left: 4px solid var(--q-primary);
}
.q-toc h4 { margin: 0 0 10px; color: var(--q-ink-2); font-size: .95rem; }
.q-toc ol { margin: 0; padding-left: 22px; }
.q-toc li { margin-bottom: 6px; }
.q-article__body h2 { margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--q-line); }
.q-article__body h3 { margin-top: 1.6em; color: var(--q-ink-2); }
.q-article__body p, .q-article__body li { font-size: 1.02rem; color: var(--q-text); }
.q-article__body ul, .q-article__body ol { padding-left: 1.4em; }
.q-article__body li { margin-bottom: .5em; }
.q-callout {
    background: linear-gradient(135deg, rgba(74, 108, 247, .08), rgba(185, 76, 247, .08));
    border-left: 4px solid var(--q-primary);
    padding: 18px 22px; border-radius: var(--q-r-sm);
    margin: 1.5em 0;
}
.q-callout strong { color: var(--q-primary-deep); }
.q-related {
    margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--q-line);
}
.q-related h4 { margin-bottom: 16px; }
.q-related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.q-related li a { display: flex; align-items: center; gap: 8px; color: var(--q-text); }
.q-related li a:hover { color: var(--q-primary-deep); }
.q-related li svg { color: var(--q-primary); flex-shrink: 0; }

/* ---------------- SVG hover 交互(主图形鼠标悬停变色) ---------------- */
.q-art-svg .q-art-shape {
    transition: fill .35s, transform .35s, filter .35s;
}
.q-art-svg:hover .q-art-shape--primary { fill: var(--q-accent); }
.q-art-svg:hover .q-art-shape--accent { fill: var(--q-accent-2); }
.q-art-svg:hover .q-art-shape--rotate { transform: translate(2px, -2px); }

/* ---------------- 工具类 ---------------- */
.q-text-center { text-align: center; }
.q-mt-3 { margin-top: 1rem; }
.q-mt-4 { margin-top: 1.5rem; }
.q-mb-3 { margin-bottom: 1rem; }
.q-lead { font-size: 1.1rem; color: var(--q-text); }
.q-muted { color: var(--q-muted); }
.q-grad-text {
    background: var(--q-grad-primary);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
