/* 官网首页（根域名 /）：与商家后台同一套品牌色，纯静态样式，无外部依赖 */

:root {
    --pt-ink: #0b2b2a;
    --pt-ink-soft: #143f3d;
    --pt-primary: #0f766e;
    --pt-primary-600: #0d9488;
    --pt-primary-soft: #ecfdf5;
    --pt-accent: #2563eb;
    --pt-text: #1f2a2a;
    --pt-muted: #64748b;
    --pt-line: #e2e9e9;
    --pt-bg: #f6f8f9;
    --pt-card: #ffffff;
    --pt-radius: 16px;
    --pt-shadow: 0 18px 40px -24px rgba(11, 43, 42, .45);
    --pt-wrap: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.pt-body {
    margin: 0;
    background: var(--pt-bg);
    color: var(--pt-text);
    font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pt-body a {
    color: inherit;
    text-decoration: none;
}

.pt-wrap {
    width: 100%;
    max-width: var(--pt-wrap);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

.pt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 43, 42, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(215, 243, 238, .12);
}

.pt-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 66px;
}

.pt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eafaf6;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* body a 的颜色继承会盖掉 .pt-brand，这里提高一级权重 */
.pt-header .pt-brand {
    color: #eafaf6;
}

.pt-brand__logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
}

.pt-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 8px;
}

.pt-links a {
    color: rgba(234, 250, 246, .78);
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color .18s, border-color .18s;
}

.pt-links a:hover {
    color: #fff;
    border-color: var(--pt-primary-600);
}

.pt-nav__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-login {
    position: relative;
}

.pt-login__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(215, 243, 238, .26);
    border-radius: 9px;
    background: transparent;
    color: #eafaf6;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.pt-login__toggle:hover {
    border-color: rgba(215, 243, 238, .5);
}

.pt-login__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 176px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 22px 44px -20px rgba(11, 43, 42, .5);
    border: 1px solid var(--pt-line);
    display: none;
}

.pt-login.is-open .pt-login__menu {
    display: block;
}

.pt-login__menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--pt-text);
}

.pt-login__menu a:hover {
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
}

.pt-login__menu span {
    display: block;
    font-size: 11.5px;
    color: var(--pt-muted);
}

.pt-nav__cta {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 9px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 22px -12px rgba(20, 184, 166, .9);
}

.pt-burger {
    display: none;
    margin-left: auto;
    width: 36px;
    height: 34px;
    border: 1px solid rgba(215, 243, 238, .26);
    border-radius: 9px;
    background: transparent;
    color: #eafaf6;
    font-size: 16px;
    cursor: pointer;
}

/* ------------------------------------------------------------------ hero */

.pt-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 420px at 12% -10%, #155e57 0%, transparent 60%),
        radial-gradient(900px 380px at 92% 0%, #0e3f4d 0%, transparent 62%),
        linear-gradient(160deg, #0b2b2a 0%, #0a3230 55%, #082220 100%);
    color: #eafaf6;
    padding: 66px 0 78px;
}

.pt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(215, 243, 238, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 243, 238, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 85%);
    pointer-events: none;
}

.pt-hero .pt-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.pt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .16);
    border: 1px solid rgba(20, 184, 166, .38);
    color: #9ff0e2;
    font-size: 12.5px;
    letter-spacing: .02em;
}

.pt-h1 {
    margin: 18px 0 0;
    font-size: 44px;
    line-height: 1.18;
    letter-spacing: -.01em;
    font-weight: 800;
}

.pt-h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #5eead4, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pt-sub {
    margin: 16px 0 0;
    max-width: 33em;
    color: rgba(234, 250, 246, .8);
    font-size: 15.5px;
}

.pt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .16s, box-shadow .16s, background .16s;
}

.pt-btn:hover {
    transform: translateY(-1px);
}

.pt-btn--primary {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    box-shadow: 0 16px 30px -18px rgba(20, 184, 166, .95);
}

.pt-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(215, 243, 238, .28);
    color: #eafaf6;
}

.pt-btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.pt-hero__note {
    margin-top: 16px;
    font-size: 12.5px;
    color: rgba(234, 250, 246, .58);
}

/* hero 右侧：画册预览（纯 CSS mock） */
.pt-device {
    position: relative;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
    overflow: hidden;
    color: var(--pt-text);
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.pt-device__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #f1f5f5;
    border-bottom: 1px solid #e6ecec;
}

.pt-device__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5d5;
}

.pt-device__url {
    margin-left: 8px;
    flex: 1;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e9e9;
    font-size: 10px;
    line-height: 17px;
    padding: 0 8px;
    color: #94a3a3;
    overflow: hidden;
    white-space: nowrap;
}

.pt-device__hero {
    margin: 12px;
    border-radius: 12px;
    padding: 18px 16px;
    background: linear-gradient(150deg, #0b2b2a, #12504a);
    color: #eafaf6;
}

.pt-device__hero b {
    display: block;
    font-size: 15px;
    letter-spacing: .02em;
}

.pt-device__hero span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(234, 250, 246, .7);
}

.pt-device__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
}

.pt-device__card {
    border: 1px solid #e6ecec;
    border-radius: 10px;
    overflow: hidden;
}

.pt-device__thumb {
    height: 54px;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.pt-device__thumb--b {
    background: linear-gradient(135deg, #fde68a, #fbcfe8);
}

.pt-device__card b {
    display: block;
    padding: 6px 8px 0;
    font-size: 10.5px;
    font-weight: 600;
}

.pt-device__card i {
    display: block;
    padding: 2px 8px 8px;
    font-size: 10px;
    font-style: normal;
    color: #0f766e;
    font-weight: 700;
}

.pt-device__qr {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background:
        repeating-conic-gradient(#0b2b2a 0% 25%, #fff 0% 50%) 50% / 12px 12px,
        #fff;
    border: 1px solid #d7e3e3;
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .4);
}

/* --------------------------------------------------------------- stats */

.pt-stats {
    background: #fff;
    border-bottom: 1px solid var(--pt-line);
}

.pt-stats .pt-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.pt-stat {
    text-align: center;
}

.pt-stat b {
    display: block;
    font-size: 24px;
    letter-spacing: -.01em;
    color: var(--pt-ink);
}

.pt-stat span {
    font-size: 12.5px;
    color: var(--pt-muted);
}

/* ------------------------------------------------------------- sections */

.pt-section {
    padding: 76px 0;
}

.pt-section--alt {
    background: #fff;
    border-top: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
}

.pt-sec-head {
    max-width: 640px;
    margin-bottom: 38px;
}

.pt-sec-head span {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pt-primary);
}

.pt-sec-head h2 {
    margin: 10px 0 0;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--pt-ink);
}

.pt-sec-head p {
    margin: 12px 0 0;
    color: var(--pt-muted);
    font-size: 15px;
}

.pt-grid {
    display: grid;
    gap: 18px;
}

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

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

.pt-card {
    background: var(--pt-card);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    padding: 24px;
    box-shadow: var(--pt-shadow);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.pt-card:hover {
    transform: translateY(-3px);
    border-color: #cfe3e1;
}

.pt-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
}

.pt-card h3 {
    margin: 16px 0 8px;
    font-size: 16.5px;
    color: var(--pt-ink);
    letter-spacing: -.01em;
}

.pt-card p {
    margin: 0;
    color: var(--pt-muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.pt-card ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.pt-card li {
    position: relative;
    padding-left: 16px;
    font-size: 12.8px;
    color: var(--pt-text);
}

.pt-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pt-primary-600);
}

/* 版面模板 */
.pt-tpl {
    overflow: hidden;
    padding: 0;
}

.pt-tpl__preview {
    height: 118px;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .92);
}

.pt-tpl--business .pt-tpl__preview {
    background: linear-gradient(140deg, #1d4ed8, #0ea5e9);
}

.pt-tpl--industrial .pt-tpl__preview {
    background: linear-gradient(140deg, #1c1917, #57534e 70%, #d97706);
}

.pt-tpl--luxury .pt-tpl__preview {
    background: linear-gradient(140deg, #78350f, #b45309 60%, #fcd34d);
}

.pt-tpl__body {
    padding: 18px 20px 22px;
}

.pt-tpl__body h3 {
    margin: 0 0 6px;
}

.pt-tpl__body p {
    margin: 0;
}

.pt-tpl__meta {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.pt-swatch {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(15, 23, 42, .08);
}

/* 插件 */
.pt-plugins {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pt-plugin {
    background: #fff;
    border: 1px solid var(--pt-line);
    border-radius: 13px;
    padding: 18px;
    box-shadow: 0 12px 26px -22px rgba(11, 43, 42, .5);
}

.pt-plugin__head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pt-plugin__badge {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
    font-size: 12.5px;
    font-weight: 700;
}

.pt-plugin b {
    display: block;
    font-size: 14.5px;
    color: var(--pt-ink);
}

.pt-plugin > span {
    display: block;
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--pt-muted);
    line-height: 1.65;
}

.pt-plugin i {
    display: inline-block;
    margin-top: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
}

/* 价格 */
.pt-plan {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    position: relative;
}

.pt-plan--hot {
    border-color: #99f6e4;
    box-shadow: 0 26px 50px -34px rgba(13, 148, 136, .8);
}

.pt-plan__tag {
    position: absolute;
    top: -11px;
    right: 20px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    font-size: 11.5px;
    line-height: 22px;
    font-weight: 600;
}

.pt-plan h3 {
    margin: 0;
    font-size: 17px;
    color: var(--pt-ink);
}

.pt-plan__price {
    margin: 14px 0 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pt-plan__price b {
    font-size: 32px;
    letter-spacing: -.02em;
    color: var(--pt-ink);
}

.pt-plan__price span {
    font-size: 12.5px;
    color: var(--pt-muted);
}

.pt-plan__desc {
    margin: 10px 0 0;
    min-height: 44px;
    font-size: 13px;
    color: var(--pt-muted);
}

.pt-plan ul {
    margin: 16px 0 0;
    padding: 16px 0 0;
    list-style: none;
    border-top: 1px dashed var(--pt-line);
    display: grid;
    gap: 8px;
}

.pt-plan li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--pt-text);
}

.pt-plan li em {
    font-style: normal;
    color: var(--pt-ink);
    font-weight: 600;
}

.pt-plan .pt-btn {
    margin-top: 20px;
    height: 42px;
    font-size: 14px;
}

.pt-plan .pt-btn--ghost {
    background: #fff;
    border-color: var(--pt-line);
    color: var(--pt-ink);
}

.pt-plan .pt-btn--ghost:hover {
    border-color: #cfe3e1;
    background: #fbfdfd;
}

/* 入口 */
.pt-entry {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
}

.pt-entry .pt-ico {
    flex: none;
}

.pt-entry div {
    min-width: 0;
}

.pt-entry b {
    display: block;
    font-size: 15px;
    color: var(--pt-ink);
}

.pt-entry div span {
    display: block;
    font-size: 12.5px;
    color: var(--pt-muted);
}

.pt-entry__go {
    margin-left: auto;
    flex: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-primary);
}

/* --------------------------------------------------------------- footer */

.pt-footer {
    background: #082220;
    color: rgba(234, 250, 246, .72);
    padding: 46px 0 30px;
    font-size: 13px;
}

.pt-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(215, 243, 238, .12);
}

.pt-footer .pt-brand {
    margin-bottom: 10px;
}

.pt-footer p {
    margin: 0;
    max-width: 34em;
    line-height: 1.8;
}

.pt-footer__links {
    display: flex;
    gap: 46px;
}

.pt-footer__links b {
    display: block;
    margin-bottom: 10px;
    color: #eafaf6;
    font-size: 13px;
}

.pt-footer__links a {
    display: block;
    padding: 3px 0;
    color: rgba(234, 250, 246, .72);
}

.pt-footer__links a:hover {
    color: #fff;
}

.pt-footer__bottom {
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    color: rgba(234, 250, 246, .5);
    font-size: 12px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
    .pt-hero .pt-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pt-device {
        max-width: 420px;
        transform: none;
    }

    .pt-h1 {
        font-size: 34px;
    }

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

    .pt-grid--3 {
        grid-template-columns: 1fr;
    }

    .pt-links {
        display: none;
    }

    .pt-burger {
        display: block;
    }

    .pt-nav__right {
        display: none;
    }

    .pt-header.is-open .pt-links {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 66px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 20px 18px;
        background: #0b2b2a;
        border-bottom: 1px solid rgba(215, 243, 238, .12);
    }

    .pt-header.is-open .pt-nav__right {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: 246px;
        padding: 0 20px 18px;
        background: #0b2b2a;
        border-bottom: 1px solid rgba(215, 243, 238, .12);
    }
}

@media (max-width: 640px) {
    .pt-hero {
        padding: 44px 0 56px;
    }

    .pt-h1 {
        font-size: 28px;
    }

    .pt-sub {
        font-size: 14.5px;
    }

    .pt-section {
        padding: 52px 0;
    }

    .pt-sec-head h2 {
        font-size: 23px;
    }

    .pt-stats .pt-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .pt-grid--4,
    .pt-plugins {
        grid-template-columns: 1fr;
    }

    .pt-footer__links {
        gap: 28px;
        flex-wrap: wrap;
    }
}
