:root {
    --ptc-bg: #f5f5f7;
    --ptc-surface: #ffffff;
    --ptc-surface-soft: #fbfbfd;
    --ptc-text: #1d1d1f;
    --ptc-muted: #6e6e73;
    --ptc-border: rgba(0, 0, 0, 0.08);
    --ptc-border-strong: rgba(0, 0, 0, 0.14);
    --ptc-blue: #0071e3;
    --ptc-green: #248a3d;
    --ptc-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    --ptc-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44));
    --ptc-glass-border: rgba(255, 255, 255, 0.68);
    --ptc-glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    --ptc-radius: 8px;
    --ptc-shell: 1480px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ptc-bg);
    color: var(--ptc-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.ptc-site {
    background:
        radial-gradient(circle at 14% 8%, rgba(0, 113, 227, 0.1), transparent 30%),
        radial-gradient(circle at 84% 18%, rgba(52, 199, 89, 0.12), transparent 32%),
        var(--ptc-bg);
}

body.admin-bar .ptc-site-header {
    top: 32px;
}

a {
    color: inherit;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.ptc-shell {
    width: min(100% - 40px, var(--ptc-shell));
    margin-inline: auto;
}

.ptc-skip-link {
    position: absolute;
    left: 20px;
    top: 12px;
    z-index: 999;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: var(--ptc-radius);
    background: var(--ptc-text);
    color: #fff;
    text-decoration: none;
}

.ptc-skip-link:focus {
    transform: translateY(0);
}

.ptc-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 251, 253, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: saturate(180%) blur(18px);
}

.ptc-site-header__inner {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ptc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ptc-text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ptc-brand img {
    display: block;
    max-height: 34px;
    width: auto;
}

.ptc-brand__mark {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 7px;
    background:
        linear-gradient(135deg, rgba(0, 113, 227, 0.92), rgba(52, 199, 89, 0.82)),
        #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}

.ptc-brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptc-nav__list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ptc-nav a {
    color: rgba(29, 29, 31, 0.78);
    font-size: 14px;
    text-decoration: none;
    transition: color 160ms ease;
}

.ptc-nav a:hover,
.ptc-nav a:focus {
    color: var(--ptc-text);
}

.ptc-main {
    min-height: 72vh;
}

.ptc-hero,
.ptc-archive-head {
    padding-top: 30px;
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 113, 227, 0.12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f7f7f8 100%);
    border-bottom: 0;
}

.ptc-hero__inner,
.ptc-archive-head .ptc-shell {
    position: relative;
    overflow: hidden;
    max-width: 980px;
    padding: 58px 40px 44px;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 30px;
    background: var(--ptc-glass-bg);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    text-align: center;
}

.ptc-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    color: var(--ptc-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.ptc-category-head .ptc-kicker {
    color: var(--ptc-category-accent, var(--ptc-blue));
}

.ptc-hero h1,
.ptc-archive-head h1,
.ptc-single-hero h1 {
    margin: 0;
    color: var(--ptc-text);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.04;
}

.ptc-hero p:not(.ptc-kicker),
.ptc-archive-head p:not(.ptc-kicker),
.ptc-term-description {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--ptc-muted);
    font-size: 19px;
    line-height: 1.55;
}

.ptc-listing {
    padding-block: 28px 72px;
}

.ptc-filter {
    position: sticky;
    top: 74px;
    z-index: 30;
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    margin: 0 auto 26px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    background: rgba(235, 235, 240, 0.76);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px) saturate(160%);
    scrollbar-width: none;
    --ptc-filter-indicator-left: 6px;
    --ptc-filter-indicator-width: 0px;
}

.ptc-filter::-webkit-scrollbar {
    display: none;
}

.ptc-filter__indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    z-index: 0;
    width: var(--ptc-filter-indicator-width);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(var(--ptc-filter-indicator-left), 0, 0);
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        width 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 160ms ease;
}

.ptc-filter.is-ready .ptc-filter__indicator {
    opacity: 1;
}

.ptc-filter__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: rgba(29, 29, 31, 0.78);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease, transform 180ms ease;
}

.ptc-filter__button:hover,
.ptc-filter__button:focus {
    color: var(--ptc-text);
}

.ptc-filter__button.is-active,
.ptc-filter__button.is-hovered {
    color: var(--ptc-blue);
}

.ptc-filter.has-hover .ptc-filter__button.is-active:not(.is-hovered) {
    color: rgba(29, 29, 31, 0.78);
}

.ptc-filter:not(.is-ready) .ptc-filter__button.is-active {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.ptc-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.ptc-card {
    min-width: 0;
}

.ptc-card.is-ready {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 360ms ease, transform 360ms ease;
}

.ptc-card.is-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ptc-card__link {
    position: relative;
    display: grid;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 24px;
    background: var(--ptc-glass-bg);
    color: var(--ptc-text);
    text-decoration: none;
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ptc-hero__inner::after,
.ptc-archive-head .ptc-shell::after,
.ptc-card__link::after,
.ptc-empty::after,
.ptc-single-hero__grid::after,
.ptc-single-hero__media::after,
.ptc-content-panel::after,
.ptc-category-content::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.56), transparent 42%);
    opacity: 0.7;
}

.ptc-hero__inner > *,
.ptc-archive-head .ptc-shell > *,
.ptc-card__link > *,
.ptc-empty > *,
.ptc-single-hero__grid > *,
.ptc-single-hero__media > *,
.ptc-content-panel > *,
.ptc-category-content > * {
    position: relative;
    z-index: 1;
}

.ptc-card__link:hover,
.ptc-card__link:focus {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    outline: none;
}

.ptc-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.46);
}

.ptc-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.ptc-card__link:hover .ptc-card__media img,
.ptc-card__link:focus .ptc-card__media img {
    transform: scale(1.035);
}

.ptc-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background:
        linear-gradient(135deg, rgba(0, 113, 227, 0.92), rgba(52, 199, 89, 0.76) 48%, rgba(255, 149, 0, 0.72)),
        #f5f5f7;
}

.ptc-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ptc-text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

.ptc-card__body {
    display: flex;
    min-height: 202px;
    flex-direction: column;
    padding: 14px;
}

.ptc-card__eyebrow {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--ptc-muted);
    font-size: 12px;
    line-height: 1.3;
}

.ptc-card__eyebrow span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ptc-card__title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--ptc-text);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ptc-card__summary {
    display: -webkit-box;
    flex: 1;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--ptc-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ptc-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.ptc-card__chips span,
.ptc-meta-strip span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    background: var(--ptc-surface-soft);
    color: rgba(29, 29, 31, 0.76);
    font-size: 12px;
    font-weight: 650;
}

.ptc-card__chips span:nth-child(2) {
    color: var(--ptc-green);
}

.ptc-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.ptc-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    color: var(--ptc-text);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.ptc-pagination .current {
    border-color: rgba(0, 113, 227, 0.26);
    color: var(--ptc-blue);
}

.ptc-empty {
    position: relative;
    overflow: hidden;
    max-width: 720px;
    margin: 36px auto 0;
    padding: 42px 28px;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 24px;
    background: var(--ptc-glass-bg);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    text-align: center;
}

.ptc-empty h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

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

.ptc-single-hero {
    padding-block: 50px;
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 113, 227, 0.12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f7f7f8 100%);
    border-bottom: 0;
}

.ptc-single-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 44px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 30px;
    background: var(--ptc-glass-bg);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.ptc-single-hero__copy {
    min-width: 0;
}

.ptc-single-hero__lead {
    margin: 18px 0 0;
    color: var(--ptc-muted);
    font-size: 20px;
    line-height: 1.55;
}

.ptc-single-hero__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.ptc-single-hero__media img,
.ptc-single-hero__media .ptc-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ptc-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.ptc-primary-link,
.ptc-video-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ptc-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.ptc-primary-link:hover,
.ptc-primary-link:focus,
.ptc-video-link:hover,
.ptc-video-link:focus {
    background: #005bb8;
    transform: translateY(-1px);
}

.ptc-single-layout {
    display: grid;
    gap: 26px;
    padding-block: 42px 78px;
}

.ptc-content-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 24px;
    background: var(--ptc-glass-bg);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.ptc-category-content {
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
    padding: 30px;
    border: 1px solid var(--ptc-glass-border);
    border-radius: 24px;
    background: var(--ptc-glass-bg);
    box-shadow: var(--ptc-glass-shadow);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.ptc-category-content .ptc-section-heading span {
    color: var(--ptc-category-accent, var(--ptc-blue));
}

.ptc-section-heading {
    margin-bottom: 24px;
}

.ptc-section-heading span {
    color: var(--ptc-blue);
    font-size: 13px;
    font-weight: 750;
}

.ptc-section-heading h2 {
    margin: 4px 0 0;
    font-size: 30px;
    line-height: 1.18;
}

.ptc-entry-content {
    max-width: 880px;
    color: #242426;
    font-size: 17px;
    line-height: 1.78;
}

.ptc-entry-content > *:first-child {
    margin-top: 0;
}

.ptc-entry-content h2,
.ptc-entry-content h3,
.ptc-entry-content h4 {
    color: var(--ptc-text);
    line-height: 1.22;
}

.ptc-entry-content a {
    color: var(--ptc-blue);
}

.ptc-entry-content img {
    border-radius: var(--ptc-radius);
}

.ptc-video-frame,
.ptc-native-video {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--ptc-border);
    border-radius: var(--ptc-radius);
    background: #000;
}

.ptc-video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.ptc-native-video {
    display: block;
}

.ptc-site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.ptc-site-footer__inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    color: var(--ptc-muted);
    font-size: 13px;
}

.ptc-site-footer p {
    margin: 0;
}

.ptc-site-footer a {
    color: var(--ptc-text);
    text-decoration: none;
}

@media (max-width: 1320px) {
    .ptc-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .ptc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ptc-single-hero__grid {
        grid-template-columns: 1fr;
    }

    .ptc-single-hero__copy {
        max-width: 820px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .ptc-site-header {
        top: 46px;
    }
}

@media (max-width: 720px) {
    .ptc-shell {
        width: min(100% - 28px, var(--ptc-shell));
    }

    .ptc-site-header__inner {
        min-height: 54px;
    }

    .ptc-nav {
        display: none;
    }

    .ptc-hero__inner,
    .ptc-archive-head .ptc-shell {
        padding-block: 44px 30px;
        text-align: left;
    }

    .ptc-hero h1,
    .ptc-archive-head h1,
    .ptc-single-hero h1 {
        font-size: 40px;
    }

    .ptc-hero p:not(.ptc-kicker),
    .ptc-archive-head p:not(.ptc-kicker),
    .ptc-term-description,
    .ptc-single-hero__lead {
        font-size: 17px;
    }

    .ptc-filter {
        top: 64px;
        justify-content: flex-start;
        width: 100%;
        margin-bottom: 18px;
        border-radius: var(--ptc-radius);
    }

    .ptc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ptc-card__link {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .ptc-card__media {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .ptc-card__body {
        min-height: 156px;
        padding: 13px;
    }

    .ptc-card__title {
        min-height: auto;
        font-size: 17px;
    }

    .ptc-card__summary {
        -webkit-line-clamp: 2;
    }

    .ptc-card__chips {
        gap: 5px;
    }

    .ptc-card__chips span:nth-child(n+3) {
        display: none;
    }

    .ptc-single-hero {
        padding-block: 32px;
    }

    .ptc-single-hero__grid {
        gap: 26px;
    }

    .ptc-content-panel {
        padding: 24px 18px;
    }

    .ptc-category-content {
        padding: 24px 18px;
    }

    .ptc-section-heading h2 {
        font-size: 25px;
    }

    .ptc-entry-content {
        font-size: 16px;
        line-height: 1.72;
    }

    .ptc-site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-block: 18px;
    }
}

@media (max-width: 430px) {
    .ptc-card__link {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .ptc-card__body {
        min-height: 148px;
    }

    .ptc-card__summary {
        margin-bottom: 10px;
    }

    .ptc-card__chips span {
        font-size: 11px;
        min-height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
