/*
 * Site shell for standalone tool pages (/zhuangche/).
 *
 * The portal home page (templates/dqzgc/index.html) keeps its styles inline.
 * This file mirrors the effective brand tokens, navbar and footer rules of
 * that page so that templates/dqzgc/_site_nav.html and _site_footer.html look
 * the same here. Keep it in sync when the home page shell is restyled.
 * Loaded after the site's Bootstrap 5.3 build.
 */
:root {
    --brand-1: #4f46e5;
    --brand-2: #7c3aed;
    --brand-3: #06b6d4;
    --brand-4: #a855f7;
    --brand-ink: #0b1020;
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --bg-light: #f4f5fb;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e6e8f2;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 24px -10px rgba(79, 70, 229, 0.35);
    --shadow-lg: 0 20px 44px -20px rgba(79, 70, 229, 0.42);
    --grad-brand: linear-gradient(120deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 100%);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background:
        radial-gradient(1000px 620px at 88% -6%, rgba(124, 58, 237, 0.08) 0%, transparent 62%),
        radial-gradient(900px 560px at 4% 16%, rgba(6, 182, 212, 0.07) 0%, transparent 60%),
        var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { background: rgba(124, 58, 237, 0.22); color: #1e1b4b; }
a { text-decoration: none; }

/* ---------- Navbar (glass, as on the home page) ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 8px 26px -20px rgba(15, 23, 42, 0.6);
}
.navbar-brand { font-weight: 700; font-size: 1.25rem; transition: transform 0.2s ease; }
.navbar-brand:hover { transform: scale(1.03); }
.navbar-brand img { display: block; height: 40px; width: auto; }
.navbar .nav-link {
    position: relative;
    font-weight: 600;
    color: var(--text-dark) !important;
    border-radius: 10px;
    padding: 0.5rem 0.8rem !important;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.navbar .nav-link:hover { color: var(--brand-1) !important; background: rgba(79, 70, 229, 0.07); }
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}
.navbar .nav-link:hover::after { transform: scaleX(1); }
/* Current page (the home page never marks one). */
.navbar .nav-link.active { color: var(--brand-1) !important; background: rgba(79, 70, 229, 0.08); }
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.navbar .nav-link-wb { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; color: var(--brand-2) !important; }
.navbar .nav-link-wb:hover { color: var(--brand-1) !important; }

.navbar .nav-act { display: flex; align-items: center; gap: 0.5rem; margin-left: 1rem; }
.navbar .btn-outline-primary {
    border: 1.5px solid rgba(79, 70, 229, 0.34);
    color: var(--brand-1);
    border-radius: 999px !important;
    padding: 0.4rem 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    background: transparent;
    transition: all 0.25s ease;
}
.navbar .btn-outline-primary:hover {
    background: var(--grad-brand) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 16px 32px -16px rgba(79, 70, 229, 0.95);
}
.navbar .ai-nav-app {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.44rem 1.05rem;
    border-radius: 999px;
    white-space: nowrap;
    color: #fff !important;
    font-weight: 700;
    font-size: max(0.82rem, 13.5px);
    background: linear-gradient(120deg, #3384f8, #1257c9);
    box-shadow: 0 10px 22px -12px rgba(18, 87, 201, 0.8);
    transition: transform 0.18s, box-shadow 0.18s;
}
.navbar .ai-nav-app:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(18, 87, 201, 0.95); }
.navbar .ai-nav-app i { font-size: 1.06rem; }
.navbar-toggler { border-color: rgba(79, 70, 229, 0.25); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25); }

/* One more item than the home page: tighten the row so it never wraps. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img { height: 32px; }
    .navbar .nav-link { padding: 0.4rem 0.36rem !important; font-size: 0.8rem; }
    .navbar .nav-link::after { left: 0.36rem; right: 0.36rem; }
    .navbar .nav-act { margin-left: 0.4rem; }
    .navbar .btn-outline-primary { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
    .navbar .ai-nav-app { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar .nav-link { padding: 0.45rem 0.42rem !important; font-size: 0.86rem; }
    .navbar .nav-link::after { left: 0.42rem; right: 0.42rem; }
    .navbar .nav-act { margin-left: 0.5rem; gap: 0.4rem; }
    .navbar .btn-outline-primary { padding: 0.36rem 0.75rem; font-size: 0.82rem; }
    .navbar .ai-nav-app { padding: 0.4rem 0.8rem; }
}
@media (min-width: 1400px) {
    .navbar .nav-link { padding: 0.5rem 0.62rem !important; font-size: 0.95rem; }
    .navbar .nav-link::after { left: 0.62rem; right: 0.62rem; }
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav { padding-top: 0.6rem; }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-act { margin: 0.85rem 0 0 !important; padding-top: 0.85rem; width: 100%; flex-wrap: wrap; border-top: 1px solid #e8eaf6; }
    .navbar .nav-act > a { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* ---------- Footer (deep band, CTA strip + four columns, as on the home page) ---------- */
.footer {
    position: relative;
    overflow: hidden;
    padding: 2.6rem 0 1.6rem;
    color: rgba(206, 222, 248, 0.82);
    background:
        radial-gradient(760px 400px at 8% 0%, rgba(51, 132, 248, 0.26) 0%, transparent 62%),
        radial-gradient(700px 400px at 96% 6%, rgba(19, 72, 173, 0.3) 0%, transparent 60%),
        linear-gradient(165deg, #061c40 0%, #0a2350 100%);
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3384f8, #1257c9);
}
.footer a { text-decoration: none; }
.ft-cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
    padding: 1.15rem 1.5rem; margin: 0 0 2.3rem; border-radius: 18px;
    border: 1px solid rgba(120, 175, 255, 0.26);
    background: linear-gradient(100deg, rgba(38, 110, 224, 0.34) 0%, rgba(12, 44, 102, 0.2) 58%, rgba(11, 127, 74, 0.18) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ft-cta-txt { flex: 1 1 320px; }
.ft-cta-txt h6 { margin: 0 0 0.3rem; color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.01em; }
.ft-cta-txt p { margin: 0; color: rgba(206, 222, 248, 0.76); font-size: max(0.86rem, 13px); }
.ft-cta-act { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ft-cta-btn {
    display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
    padding: 0.62rem 1.2rem; border-radius: 999px; font-weight: 700;
    font-size: max(0.88rem, 14px); transition: 0.22s ease;
}
.ft-cta-btn i { font-size: 1.06rem; }
.ft-cta-btn--solid { background: #fff; color: #0f3f9e; box-shadow: 0 12px 26px -14px rgba(2, 12, 32, 0.9); }
.ft-cta-btn--solid:hover { color: #0b7f4a; transform: translateY(-1px); }
.ft-cta-btn--ghost { border: 1px solid rgba(160, 200, 255, 0.5); color: #dbe9ff; }
.ft-cta-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.72); }

.ft-main {
    display: grid; gap: 2.1rem 2.4rem;
    grid-template-columns: minmax(260px, 1.55fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(232px, 1.25fr);
}
.ft-col--brand img { display: block; height: 38px; width: auto; }
.ft-desc { margin: 1.05rem 0 1.15rem; color: rgba(206, 222, 248, 0.76); font-size: max(0.86rem, 13.5px); line-height: 1.85; }
.ft-desc strong { color: #fff; font-weight: 700; }
.ft-social { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ft-social a {
    display: inline-flex; width: 38px; height: 38px; border-radius: 10px;
    align-items: center; justify-content: center; font-size: 1.16rem; transition: 0.22s ease;
    background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
}
.ft-social a:hover { background: #fff; color: #1257c9; border-color: #fff; transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(2, 12, 32, 0.9); }
.ft-h { position: relative; margin: 0 0 1.15rem; padding-bottom: 0.6rem; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; }
.ft-h::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #3384f8, #1257c9); }
.ft-links { list-style: none; margin: 0; padding: 0; }
.ft-links li + li { margin-top: 0.62rem; }
.ft-links a { display: inline-flex; align-items: center; gap: 0.32rem; color: rgba(206, 222, 248, 0.8); font-size: max(0.86rem, 13.5px); transition: 0.2s ease; }
.ft-links a i { color: #6fa8f5; font-size: 1.06rem; }
.ft-links a:hover { color: #fff; transform: translateX(3px); }
.ft-contact { list-style: none; margin: 0; padding: 0; }
.ft-contact li { display: flex; align-items: flex-start; gap: 0.7rem; }
.ft-contact li + li { margin-top: 0.85rem; }
.ft-contact .ft-ico {
    flex: 0 0 auto; display: inline-flex; width: 32px; height: 32px;
    align-items: center; justify-content: center; border-radius: 9px; font-size: 1.02rem;
    background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.16); color: #8fc0ff;
}
.ft-contact .ft-txt { color: rgba(206, 222, 248, 0.8); font-size: max(0.86rem, 13.5px); line-height: 1.7; }
.ft-contact .ft-txt a { color: #fff; }
.ft-contact .ft-txt a:hover { color: #9ecbff; }
.ft-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.7rem 1.4rem; margin-top: 2.3rem; padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.ft-copy { margin: 0; color: rgba(190, 210, 240, 0.78); font-size: max(0.82rem, 13px); }
.ft-copy i { font-size: 1rem; vertical-align: -0.12em; }
.ft-copy a { color: #9ecbff; }
.ft-copy a:hover { color: #fff; }
.ft-keys { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.ft-keys span {
    padding: 0.24rem 0.7rem; border-radius: 999px;
    color: rgba(206, 222, 248, 0.82); font-size: max(0.76rem, 12.5px);
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 1199.98px) {
    .ft-main { grid-template-columns: minmax(240px, 1.5fr) 1fr 1fr; }
    .ft-col--contact { grid-column: 1 / -1; }
    .ft-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.6rem; }
    .ft-contact li + li { margin-top: 0; }
}
@media (max-width: 767.98px) {
    .footer { padding: 2rem 0 1.3rem; }
    .ft-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1.4rem; }
    .ft-col--brand { grid-column: 1 / -1; }
    .ft-contact { grid-template-columns: 1fr; }
    .ft-cta { padding: 1rem 1.1rem; margin-bottom: 1.8rem; }
    .ft-cta-act { width: 100%; }
    .ft-cta-btn { flex: 1 1 auto; justify-content: center; }
    .ft-bottom { justify-content: flex-start; }
}
