/* 设计稿基准宽度 1920px，颜色与字号见更新说明文档 */
:root {
    --bg-page: #f8f9fb;
    --white: #ffffff;
    --text-primary: #101113;
    --text-secondary: #303133;
    --brand-blue: #4f68e3;
    --brand-blue-footer: #5c8aff;
    --header-h: 80px;
    --design-w: 1920px;
    --content-pad: clamp(16px, 13.85vw, 266px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-width: 320px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page {
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-page);
}

/* 滚轮分段滚动时，锚点滚动预留固定页眉高度 */
.snap-slide {
    scroll-margin-top: var(--header-h);
}

/* 桌面端分段浏览：每段至少占满「视口 − 页眉」，避免对齐后底部露出下一段 */
@media (min-width: 900px) {
    .hero.snap-slide,
    .section.snap-slide,
    .snap-slide--reviews-footer {
        min-height: calc(100svh - var(--header-h));
    }
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    background: var(--brand-blue);
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
    opacity: 0.92;
}

.btn:active {
    transform: scale(0.98);
}

.btn--header {
    width: 106px;
    height: 34px;
    font-size: 14px;
    line-height: 1.45;
}

.btn--hero,
.btn--section {
    width: 185px;
    height: 53px;
    font-size: 18px;
    line-height: 1.45;
    gap: 6px;
}

.btn--hero .btn__icon,
.btn--section .btn__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
    max-width: none;
}

.btn--footer {
    width: min(349px, 100%);
    height: 85px;
    border-radius: 12px;
    background: var(--brand-blue-footer);
    font-size: 22px;
    font-weight: 500;
    gap: 8px;
}

.btn--footer .btn__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
    max-width: none;
}

/* ---------- 页头 ---------- */
.site-header {
    height: var(--header-h);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    max-width: var(--design-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--content-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand-group {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 24px);
    min-width: 0;
}

.promo-site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.promo-site-logo:hover {
    opacity: 0.9;
}

.promo-site-logo__img {
    display: block;
    width: auto;
    height: clamp(34px, 2.85vw, 50px);
    max-height: calc(var(--header-h) - 12px);
    object-fit: contain;
    max-width: min(220px, 38vw);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #171f52;
}

.brand__icon {
    width: 44.1px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand__name {
    font-size: 20px;
    font-weight: 600;
    color: #171f52;
    letter-spacing: 0;
}

/* ---------- 第一部分 Hero ---------- */
.hero {
    position: relative;
    max-width: var(--design-w);
    margin: 0 auto;
    padding-bottom: clamp(72px, 8vw, 140px);
}

.hero__top {
    position: relative;
    width: 100%;
    height: clamp(320px, 32vw, 614px);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    background-image: url("../assets/images/元图CAD推广页背景.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero__inner {
    position: absolute;
    left: 0;
    right: 0;
    top: clamp(48px, 5.2vw, 100px);
    padding: 0 var(--content-pad);
    max-width: var(--design-w);
    margin: 0 auto;
    z-index: 1;
}

.hero__title {
    font-size: clamp(40px, 4.7vw, 90px);
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 0.15em;
}

.hero__subtitle {
    font-size: clamp(18px, 1.77vw, 34px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    max-width: 31rem;
    margin-bottom: clamp(24px, 2.5vw, 40px);
}

.hero__cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.3vw, 25px);
    padding: 0 var(--content-pad);
    margin-top: clamp(-72px, -4.3vw, -52px);
    max-width: var(--design-w);
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: clamp(20px, 1.88vw, 36px);
    min-height: clamp(160px, 10.16vw, 195px);
    padding: clamp(18px, 1.82vw, 35px) clamp(20px, 4.48vw, 86px) clamp(18px, 2.4vw, 46px) clamp(16px, 1.35vw, 26px);
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%) border-box;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feature-card__icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-sizing: border-box;
}

.feature-card--pdf .feature-card__icon-wrap {
    width: clamp(74px, 5.1vw, 98px);
    height: clamp(44px, 3.05vw, 58px);
    background: rgba(255, 255, 255, 1);
}

.feature-card--ocr .feature-card__icon-wrap {
    width: clamp(64px, 4.45vw, 86px);
    height: clamp(39px, 2.7vw, 52px);
    background: rgba(255, 255, 255, 1);
}

.feature-card--batch .feature-card__icon-wrap {
    width: clamp(78px, 5.45vw, 104px);
    height: clamp(53px, 3.7vw, 71px);
    background: rgba(255, 255, 255, 1);
}

.feature-card__icon {
    display: block;
    width: 88%;
    height: 88%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card__body {
    flex: 1;
    min-width: 0;
    max-width: clamp(268px, 15.6vw, 300px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-card__title {
    margin: 0 0 clamp(8px, 0.73vw, 12px);
    font-size: clamp(17px, 1.04vw, 20px);
    font-weight: 700;
    letter-spacing: 0.55px;
    line-height: 1.448;
    color: rgba(16, 17, 19, 1);
    text-align: left;
}

.feature-card__desc {
    margin: 0;
    font-size: clamp(13px, 0.73vw, 14px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.448;
    color: rgba(48, 49, 51, 1);
    text-align: left;
}

/* ---------- 通用区块 ---------- */
.section {
    max-width: var(--design-w);
    margin: 0 auto;
    padding: clamp(32px, 3.5vw, 64px) var(--content-pad);
}

.section-title {
    font-size: clamp(36px, 3.33vw, 64px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-primary);
}

.section-title--left .section-title__line {
    display: block;
}

.section-title--center {
    text-align: center;
}

/* ---------- 第二部分 ---------- */
.section--scenes__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
}

.section--scenes__copy .btn {
    margin-top: clamp(20px, 2vw, 32px);
    margin-bottom: clamp(24px, 2.5vw, 40px);
}

.section--scenes__desc {
    font-size: clamp(16px, 1.04vw, 20px);
    font-weight: 400;
    letter-spacing: 0.55px;
    line-height: 34px;
    color: var(--text-primary);
    max-width: 34em;
}

.section--scenes__images {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.15vw, 22px);
}

.scene-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 1.45vw, 26px);
    min-height: clamp(152px, 9.9vw, 190px);
    padding: clamp(12px, 1.85vw, 34px) clamp(10px, 1.1vw, 20px) clamp(12px, 1.85vw, 34px) clamp(14px, 2.1vw, 40px);
    box-sizing: border-box;
    border-radius: 12px;
    overflow: visible;
}

.scene-tile--white {
    background: rgba(255, 255, 255, 1);
}

.scene-tile--cream {
    background: rgba(255, 244, 217, 1);
}

.scene-tile--blue {
    background: rgba(127, 176, 219, 1);
}

.scene-tile__body {
    flex: 1;
    min-width: 0;
    max-width: min(400px, 54%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scene-tile__title {
    margin: 0 0 clamp(8px, 2.1vw, 20px);
    font-size: clamp(19px, 1.35vw, 27px);
    font-weight: 700;
    letter-spacing: 0.55px;
    line-height: 1.448;
    text-align: left;
}

.scene-tile__desc {
    margin: 0;
    font-size: clamp(13px, 0.75vw, 15px);
    font-weight: 400;
    line-height: 1.448;
    text-align: left;
}

.scene-tile--white .scene-tile__title {
    color: rgba(16, 17, 19, 1);
}

.scene-tile--white .scene-tile__desc {
    letter-spacing: 0;
    color: rgba(96, 98, 102, 1);
}

.scene-tile--cream .scene-tile__title,
.scene-tile--cream .scene-tile__desc {
    color: rgba(41, 30, 30, 1);
}

.scene-tile--cream .scene-tile__desc {
    letter-spacing: 0;
}

.scene-tile--blue .scene-tile__title,
.scene-tile--blue .scene-tile__desc {
    color: rgba(255, 255, 255, 1);
}

.scene-tile--blue .scene-tile__desc {
    letter-spacing: 0.55px;
}

.scene-tile__icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-tile__icon {
    display: block;
    height: auto;
    object-fit: contain;
    border-radius: clamp(9px, 0.85vw, 13px);
}

.scene-tile--white .scene-tile__icon {
    width: clamp(62px, 7.85vw, 154px);
}

.scene-tile--cream .scene-tile__icon {
    width: clamp(66px, 8.25vw, 162px);
}

.scene-tile--blue .scene-tile__icon {
    width: clamp(68px, 8.35vw, 164px);
}

/* ---------- 第三部分 ---------- */
.section--features {
    text-align: center;
}

.section--features__intro {
    margin: clamp(24px, 2.5vw, 40px) auto 0;
    max-width: 1007px;
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 34px;
    color: var(--text-primary);
}

.section--features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 1.25vw, 24px);
    margin-top: clamp(40px, 4vw, 64px);
}

.feature-showcase {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 458 / 296;
    isolation: isolate;
    background: #ccc;
}

.feature-showcase__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    border-radius: 12px;
}

.feature-showcase__copy {
    position: absolute;
    z-index: 1;
    left: 9.34%;
    top: 18.58%;
    right: 6%;
    max-width: min(331px, 86%);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-showcase__title {
    margin: 0 0 clamp(16px, 4.6vw, 28px);
    font-size: clamp(22px, 1.875vw, 36px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.448;
    color: rgba(255, 255, 255, 1);
}

.feature-showcase__desc {
    margin: 0;
    font-size: clamp(15px, 1.04vw, 20px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.448;
    color: rgba(255, 255, 255, 1);
}

/* ---------- 第四部分 插件 ---------- */
.section--plugin__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 32px);
    margin-bottom: clamp(28px, 2.5vw, 40px);
}

.section--plugin__head {
    margin-bottom: 0;
}

.section--plugin__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(12px, 1vw, 17px);
    margin-bottom: 0;
    flex-shrink: 0;
}

.plugin-tab {
    width: 120px;
    height: 120px;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plugin-tab:hover,
.plugin-tab:focus-visible {
    border-color: var(--brand-blue);
    outline: none;
}

.plugin-tab.is-active {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 16px rgba(79, 104, 227, 0.25);
}

.plugin-tab img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plugin-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
}

.plugin-panel.is-active {
    display: grid;
}

.plugin-panel__img {
    background: #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.plugin-panel__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 641 / 360;
    object-fit: cover;
}

.plugin-panel__title {
    font-size: clamp(24px, 1.67vw, 32px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: clamp(12px, 1.25vw, 20px);
}

.plugin-panel__desc {
    font-size: clamp(16px, 1.04vw, 20px);
    font-weight: 400;
    line-height: 34px;
    color: var(--text-secondary);
}

.plugin-panel__cta {
    margin-top: clamp(24px, 2.5vw, 40px);
}

/* ---------- 用户评价 ---------- */
.section--reviews .section-title {
    text-align: center;
    margin-bottom: clamp(40px, 4vw, 64px);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 1.45vw, 31px);
}

.review-card {
    border-radius: 12px;
    background: var(--white);
    box-shadow: 5px 6px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.review-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 407 / 187;
    object-fit: cover;
}

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative;
    max-width: var(--design-w);
    margin: 0 auto;
    min-height: clamp(365px, 22.2vw, 460px);
    color: var(--white);
}

.site-footer__bg {
    position: absolute;
    inset: 0;
    background-color: #1a2b4d;
    background-image: url("../assets/images/页脚.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    padding: clamp(38px, 4vw, 66px) var(--content-pad) clamp(32px, 3.4vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-footer__tagline {
    font-size: clamp(24px, 2.2vw, 42px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--white);
    max-width: 1200px;
    margin-bottom: clamp(22px, 2.1vw, 33px);
}

.site-footer__inner .btn--footer {
    margin-bottom: clamp(26px, 2.6vw, 40px);
    height: 72px;
    font-size: 20px;
}

.site-footer__meta {
    font-size: clamp(12px, 1.04vw, 18px);
    line-height: 1.45;
    color: var(--white);
    opacity: 0.95;
    max-width: 1321px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .hero__cards {
        margin-top: clamp(-48px, -6vw, -24px);
    }

    .section--scenes__grid {
        grid-template-columns: 1fr;
    }

    .section--features__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .plugin-panel.is-active {
        grid-template-columns: 1fr;
    }

    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .section--plugin__top {
        flex-direction: column;
        align-items: stretch;
    }

    .section--plugin__tabs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero__cards {
        grid-template-columns: 1fr;
    }

    .feature-card__body {
        max-width: none;
    }

    .section--plugin__tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .plugin-tab {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        padding: 0 16px;
    }

    .btn--footer,
    .site-footer__inner .btn--footer {
        height: 64px;
        font-size: 18px;
    }
}

