/* 能工门户通用样式 */
:root {
    --brand: #1a73e8;
    --brand-dark: #0f5fc4;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --accent: #10b981;
    --danger: #ef4444;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, "Noto Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    flex: 1;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 7px 12px;
    border-radius: 13px;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn.secondary {
    background: var(--accent);
}

/* 头部导航 */
.topbar {
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.9rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 50;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: var(--text);
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 首页覆盖在轮播上的透明导航 */
.header.overlay {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    z-index: 100;
}

.header.overlay .logo {
    color: #fff;
}

.header.overlay .nav-links a {
    color: #fff;
}

.header.overlay .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.header.overlay .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 过渡效果 */
.header,
.header .logo,
.header .nav-links a,
.header .btn {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease
}

.ctrl {
    transition: background-color .2s ease, transform .2s ease
}

.dot {
    transition: background-color .3s ease, transform .3s ease
}

.card {
    transition: transform .2s ease, box-shadow .2s ease
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08)
}

html {
    scroll-behavior: smooth
}

.slide .overlay {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .6s ease, transform .6s ease
}

.slide.active .overlay {
    opacity: 1;
    transform: translateY(0)
}

/* 轮播 */
.fullscreen-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.carousel-track {
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide .overlay {
    position: absolute;
    bottom: 12%;
    left: 8%;
    color: #fff;
    max-width: 560px;
}

.slide .overlay h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
}

.slide .overlay p {
    margin: 0 0 14px;
    color: #e5e7eb;
}

.carousel-controls {
    position: absolute;
    inset: auto 0 50% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    transform: translateY(50%);
}

.ctrl {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.ctrl:hover {
    background: rgba(0, 0, 0, 0.5);
}

.dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #9ca3af;
    border: none;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

@media (max-width: 640px) {
    .slide .overlay {
        left: 5%;
        bottom: 10%;
        max-width: 90%;
    }

    .slide .overlay h1 {
        font-size: 1.6rem;
    }
}

/* 首屏 */
.hero {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 48px 0;
}

.hero .content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.hero p {
    color: var(--muted);
    margin: 0 0 16px;
}

.hero .card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.select,
.input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.hint {
    color: var(--muted);
    font-size: 0.9rem;
}

/* 二维码 */
.qr-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.qr-box img {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #fff;
}

/* 特性 */
.features {
    padding: 32px 0;
    background: #fff;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

/* 流程 */
.process {
    padding: 32px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.step {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.step .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 服务网格 */
.services {
    padding: 32px 0;
    background: var(--bg-soft);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

/* 口碑 */
.testimonials {
    padding: 32px 0;
}

.quote {
    border-left: 4px solid var(--brand);
    padding-left: 12px;
    color: var(--muted);
}

/* FAQ */
.faq {
    padding: 32px 0;
    background: #fff;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.faq-item h4 {
    margin: 0;
}

.faq-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* Footer */
.footer {
    background: #f7f7f9;
    color: #555;
    padding: 40px 0;
    text-align: center;
}

.footer .cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.footer a {
    color: #555
}

.footer h4 {
    margin: 0 0 8px
}

/* Map embed */
.map-embed {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    background: #eef2f5
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.hint {
    color: #888;
    font-size: .9rem;
    margin-top: 8px
}

/* 关于页增强模块 */
.assurances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.assurance {
    text-align: left;
}

.assurance-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    text-align: center;
}

.stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
}

.stat .label {
    color: var(--muted);
}

.timeline {
    margin: 24px 0;
}

.timeline .items {
    position: relative;
    padding-left: 24px;
}

.timeline .items:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline .item {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.timeline .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    position: relative;
    top: 6px;
}

.timeline .content strong {
    display: block;
    margin-bottom: 4px;
}

/* 响应式 */
@media (max-width: 960px) {
    .hero .content {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer .cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }
}

/* Mobile nav toggle and drawer */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff
}

.nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    margin: 2px 0;
    border-radius: 2px
}

.header.overlay .nav-toggle {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4)
}

.header.overlay .nav-toggle .bar {
    background: #fff
}

/* Drawer overlay centered */
.nav-drawer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center
}

.nav-drawer .drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .25s ease
}

.nav-drawer .drawer-panel {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    background: linear-gradient(180deg, rgba(55, 55, 55, .96) 0%, rgba(26, 26, 26, .96) 100%);
    color: #fff;
    padding: 12px;
    overflow: auto;
    transform: scale(.98);
    transition: transform .25s ease
}

.nav-drawer .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 8px
}

.nav-drawer .drawer-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #fff
}

.nav-drawer .drawer-close {
    position: static;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer
}

.nav-drawer .drawer-links {
    padding: 4px;
    display: flex;
    flex-direction: column
}

.nav-drawer .drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 8px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.nav-drawer .drawer-links a .text {
    display: flex;
    flex-direction: column
}

.nav-drawer .drawer-links a .text .title {
    font-size: 1rem;
    font-weight: 700
}

.nav-drawer .drawer-links a .text .sub {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7)
}

.nav-drawer .drawer-links a::after {
    content: '\203A';
    /* › */
    font-size: 22px;
    color: rgba(255, 255, 255, .7)
}

.nav-drawer .drawer-links .btn {
    margin: 16px 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-align: center;
    font-weight: 700
}

body.nav-open {
    overflow: hidden
}

body.nav-open .nav-drawer {
    display: flex
}

body.nav-open .nav-drawer .drawer-backdrop {
    opacity: 1
}

body.nav-open .nav-drawer .drawer-panel {
    transform: scale(1)
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none
    }

    .nav-toggle {
        display: inline-flex
    }
}

@media (max-width: 768px) {
    .topbar {
        font-size: 13px
    }
}
/* Wider container for desktop */
.container.wide{width:100%}
@media (min-width:1024px){.map-embed{height:480px}}

/* 404 page */
.notfound{min-height:60vh;display:grid;place-items:center;text-align:center}
.notfound .actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.notfound .hint{color:#777}