/* ============================================================
   企速转 - 企业服务一站式平台 样式表
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #21a34a;
    --color-primary-dark: #1a8a3d;
    --color-primary-light: #e9f6ef;
    --color-accent: #f59e0b;
    --color-accent-light: #fef3c7;
    --color-bg: #f6f9fc;
    --color-bg-alt: #edf2f7;
    --color-text: #1e2a39;
    --color-text-secondary: #425066;
    --color-text-muted: #7a8798;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --section-gap: 88px;
    --header-height: 64px;
    --max-width: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
                 Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.btn--light:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-1px);
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-header__desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header--scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 22px;
    color: var(--color-primary);
}

.logo__icon {
    width: 28px;
    height: 28px;
}

/* Nav */
.nav__list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--color-primary);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger--active .hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger--active .hamburger__bar:nth-child(2) {
    opacity: 0;
}
.hamburger--active .hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ecfdf5 100%);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero__highlight {
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    gap: 16px;
}

.hero__visual {
    flex-shrink: 0;
}

.hero__phone {
    width: 200px;
    height: 380px;
    background: var(--color-text);
    border-radius: 28px;
    padding: 5px;
    box-shadow: var(--shadow-lg);
}

.hero__phone-screen {
    width: 100%;
    height: 100%;
    background: url('demo.jpg') center / cover no-repeat;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    gap: 6px;
}

.hero__phone-icon {
    font-size: 40px;
}

.hero__phone-screen small {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 400;
}

/* ============================================================
   STATS (数据概况)
   ============================================================ */
.stats {
    padding: 32px 0 64px;
}

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

.stats-card {
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stats-card--green {
    background: linear-gradient(135deg, #ffffff 0%, #edf9f1 100%);
}

.stats-card--blue {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.stats-card--gold {
    background: linear-gradient(135deg, #fffdfa 0%, #fff2df 100%);
}

.stats-card__label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.stats-card__value {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.stats-card--green .stats-card__value {
    color: #21a34a;
}

.stats-card--blue .stats-card__value {
    color: #2563eb;
}

.stats-card--gold .stats-card__value {
    color: #d97706;
}

.stats-card__hint {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ============================================================
   FEATURES (核心功能)
   ============================================================ */
.features {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.feature-card--download {
    cursor: pointer;
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card__desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-card__tags li {
    font-size: 13px;
    padding: 4px 12px;
    background: var(--color-bg-alt);
    color: var(--color-text-secondary);
    border-radius: 20px;
    font-weight: 500;
}

/* ============================================================
   DOWNLOAD MODAL (下载对话框)
   ============================================================ */
.download-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.download-modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 700px;
    padding: 36px 32px 28px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.download-overlay--visible .download-modal {
    transform: translateY(0);
}

.download-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 22px;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.download-modal__close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.download-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
    text-align: center;
}

.download-modal__body {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.download-modal__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
}

.download-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateX(4px);
}

.download-btn__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-btn__text {
    flex: 1;
}

.download-btn__text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.download-btn__text span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.download-btn__arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn__arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.download-btn:hover .download-btn__arrow img {
    opacity: 1;
    filter: invert(45%) sepia(85%) saturate(700%) hue-rotate(102deg) brightness(40%);
}

.download-modal__qrcode {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.qrcode-card--modal {
    text-align: center;
}

.qrcode-card--modal .qrcode-card__placeholder {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qrcode-card--modal .qrcode-card__icon {
    font-size: 40px;
}

.qrcode-card--modal .qrcode-card__text {
    font-size: 13px;
    color: var(--color-text-muted);
}

.qrcode-card--modal .qrcode-card__tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ============================================================
   SERVICES (服务详情)
   ============================================================ */
.services {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

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

.service-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.service-item__icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.service-item__body {
    flex: 1;
}

.service-item__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.service-item__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================================
   MINIAPP (小程序)
   ============================================================ */
.miniapp {
    padding: var(--section-gap) 0;
    background: var(--color-white);
}

.miniapp__inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.miniapp__content {
    flex: 1;
}

.miniapp__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.miniapp__desc {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.miniapp__desc strong {
    color: var(--color-primary);
}

.miniapp__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.miniapp__features li {
    font-size: 16px;
    color: var(--color-text-secondary);
    padding-left: 4px;
}

/* QR Code Card */
.miniapp__qrcode {
    flex-shrink: 0;
}

.qrcode-card {
    text-align: center;
}

.qrcode-card__placeholder {
    width: 220px;
    height: 220px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.qrcode-card__image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}

.qrcode-card__icon {
    font-size: 48px;
}

.qrcode-card__text {
    font-size: 14px;
    font-weight: 500;
}

.qrcode-card__tip {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================================
   WHY US
   ============================================================ */
.whyus {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

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

.whyus-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid var(--color-border);
}

.whyus-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.whyus-item__num {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.whyus-item__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.whyus-item__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta__inner {
    text-align: center;
}

.cta__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 14px;
}

.cta__desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding: 56px 24px;
}

.footer__brand {
    flex-shrink: 0;
}

.footer__brand .logo {
    color: var(--color-white);
    margin-bottom: 8px;
}

.footer__slogan {
    font-size: 14px;
    color: #94a3b8;
}

.footer__links {
    display: flex;
    gap: 64px;
}

.footer__col-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col li,
.footer__col a {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--color-white);
}

.footer__bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.footer__bottom a {
    color: #64748b;
    transition: color 0.2s;
}
.footer__bottom a:hover {
    color: #94a3b8;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__phone {
        width: 160px;
        height: 310px;
    }

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

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

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

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

    .stats__grid .stats-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }

    .miniapp__inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .miniapp__features {
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }

    .hero {
        padding: 110px 0 64px;
    }

    .hero__title {
        font-size: 30px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__phone {
        display: none;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .whyus__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stats__grid .stats-card:last-child {
        grid-column: span 1;
        max-width: none;
        justify-self: auto;
    }

    .section-header__title {
        font-size: 26px;
    }

    /* Download modal mobile */
    .download-modal {
        padding: 24px 20px 20px;
    }

    .download-modal__body {
        flex-direction: column;
        gap: 20px;
    }

    .download-modal__qrcode {
        flex-direction: row;
        gap: 16px;
        padding: 0;
    }

    .qrcode-card--modal .qrcode-card__placeholder {
        padding: 16px 12px;
    }

    /* Nav mobile */
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: 20px 0;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.25s ease;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: 14px 24px;
        font-size: 17px;
    }

    .nav__link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Miniapp */
    .miniapp__title {
        font-size: 26px;
    }

    .miniapp__features {
        align-items: flex-start;
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        gap: 36px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 36px;
    }

    /* Footer bottom: 版权 / ICP / 公安号各占一行 */
    .footer__bottom .container > div {
        flex-direction: column !important;
        gap: 8px;
    }
}

/* ============================================================
   PRINT / ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
