/* =========================================================
   Potato Theme - Main Stylesheet
   原生 CSS、移动优先、性能与可访问性优先。
   ========================================================= */

:root {
    --pt-primary: #ff5722;
    --pt-accent:  #ff8a65;
    --pt-text:    #1a1a1a;
    --pt-muted:   #5a6470;
    --pt-line:    #e8ecef;
    --pt-bg:      #ffffff;
    --pt-bg-soft: #f7f9fb;
    --pt-bg-dark: #0f1419;
    --pt-radius:  14px;
    --pt-radius-sm: 8px;
    --pt-shadow:  0 6px 24px rgba(15, 20, 25, 0.06);
    --pt-shadow-lg: 0 18px 48px rgba(15, 20, 25, 0.10);
    --pt-container: 1200px;
    --pt-font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
                    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --pt-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --pt-text: #f4f6f8;
        --pt-muted: #9aa4b1;
        --pt-line: #20272e;
        --pt-bg: #0f1419;
        --pt-bg-soft: #161c23;
        --pt-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
        --pt-shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--pt-font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--pt-text);
    background: var(--pt-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pt-primary); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--pt-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--pt-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
pre, code { font-family: var(--pt-font-mono); }
pre {
    background: var(--pt-bg-soft);
    padding: 16px 20px;
    border-radius: var(--pt-radius-sm);
    overflow: auto;
    font-size: .92em;
}
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: -10000px; top: -10000px;
    background: #fff;
    color: var(--pt-primary);
    padding: 10px 16px;
    border-radius: var(--pt-radius-sm);
    z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--pt-container);
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: clamp(48px, 7vw, 96px) 0;
}
.section--features { background: var(--pt-bg-soft); }
.section--scenarios { background: var(--pt-bg); }
.section--news { background: var(--pt-bg-soft); }
.section--cta { background: linear-gradient(135deg, var(--pt-primary), var(--pt-accent)); color: #fff; }
.section__header { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section__header--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; max-width: none; margin-bottom: 32px; }
.section__title { margin-bottom: 12px; }
.section__subtitle { color: var(--pt-muted); font-size: 1.05rem; margin: 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-weight: 600;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 14px; font-size: .92rem; }
.btn--primary {
    background: var(--pt-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 87, 34, .25);
}
.btn--primary:hover { background: var(--pt-accent); color: #fff; }
.btn--ghost {
    background: transparent;
    color: var(--pt-text);
    border-color: var(--pt-line);
}
.btn--ghost:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.btn--outline:hover { background: #fff; color: var(--pt-primary); }
.btn__icon { display: inline-flex; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--pt-line);
}
@media (prefers-color-scheme: dark) {
    .site-header { background: rgba(15,20,25,.8); }
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    max-width: var(--pt-container);
    margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-title-link { display: flex; align-items: center; gap: 10px; color: inherit; }
.site-title-link:hover { color: inherit; }
.site-title { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 6px;
}
.primary-menu li { position: relative; }
.primary-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--pt-text);
    font-weight: 500;
    border-radius: var(--pt-radius-sm);
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--pt-primary); background: rgba(255,87,34,.08); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher { position: relative; }
.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--pt-line);
    border-radius: 999px;
    color: var(--pt-text);
    cursor: pointer;
    font-weight: 500;
}
.lang-switcher__toggle:hover { border-color: var(--pt-primary); color: var(--pt-primary); }
.lang-switcher__list {
    list-style: none;
    margin: 0; padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 140px;
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow);
    display: none;
}
.lang-switcher.is-open .lang-switcher__list { display: block; }
.lang-switcher__list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--pt-text); }
.lang-switcher__list a:hover { background: var(--pt-bg-soft); color: var(--pt-primary); }

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 40px; height: 40px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute;
    left: 8px;
    width: 24px; height: 2px;
    background: var(--pt-text);
    transition: transform .2s ease, top .2s ease;
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { content: ""; top: -8px; }
.nav-toggle__bars::after  { content: ""; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .main-navigation { position: fixed; inset: 64px 0 0; background: var(--pt-bg); flex-direction: column; padding: 24px; transform: translateX(100%); transition: transform .3s ease; }
    .main-navigation.is-open { transform: translateX(0); }
    .primary-menu { flex-direction: column; gap: 4px; width: 100%; }
    .primary-menu a { padding: 14px 16px; font-size: 1.1rem; }
    .header-cta { display: none; }
}

/* ===== Hero ===== */
.hero {
    padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(255,138,101,.18), transparent 60%),
                radial-gradient(900px 600px at 0% 110%, rgba(255,87,34,.12), transparent 60%);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}
.hero__title { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; margin-bottom: 16px; }
.hero__subtitle { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--pt-muted); max-width: 56ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__os-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--pt-muted); }
.hero__os-list li { display: inline-flex; align-items: center; gap: 8px; }
.hero__os-list svg { color: var(--pt-text); }

.hero__visual { display: flex; justify-content: center; }
.hero__phone {
    width: 280px; height: 560px;
    background: linear-gradient(180deg, var(--pt-primary), var(--pt-accent));
    border-radius: 40px;
    padding: 14px;
    box-shadow: var(--pt-shadow-lg);
    position: relative;
}
.hero__phone::before {
    content: "";
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 22px;
    background: rgba(0,0,0,.35);
    border-radius: 0 0 14px 14px;
}
.hero__phone-screen {
    background: #fff;
    width: 100%; height: 100%;
    border-radius: 28px;
    padding: 70px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero__bubble { padding: 10px 14px; border-radius: 18px; font-size: .9rem; max-width: 80%; }
.hero__bubble--in { background: #f1f5f8; color: #1a1a1a; align-self: flex-start; border-bottom-left-radius: 4px; }
.hero__bubble--out { background: var(--pt-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

@media (max-width: 800px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; }
    .hero__phone { width: 220px; height: 440px; }
}

/* ===== Download grid ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    color: var(--pt-text);
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--pt-primary);
    box-shadow: var(--pt-shadow);
    color: var(--pt-text);
}
.download-card__icon { color: var(--pt-primary); }
.download-card__title { font-size: 1.05rem; }
.download-card__desc { color: var(--pt-muted); font-size: .9rem; }

/* ===== Feature grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    padding: 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pt-shadow);
    border-color: var(--pt-primary);
}
.feature-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255,87,34,.12), rgba(255,138,101,.12));
    color: var(--pt-primary);
    margin-bottom: 16px;
}
.feature-card__title { margin-bottom: 6px; }
.feature-card__desc { color: var(--pt-muted); margin: 0; }

/* ===== Scenario grid ===== */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.scenario-card {
    padding: 32px 28px;
    background: var(--pt-bg-soft);
    border-radius: var(--pt-radius);
    border: 1px solid var(--pt-line);
}
.scenario-card h3 { color: var(--pt-primary); }

/* ===== News grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.news-grid--lg { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.news-card {
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pt-shadow);
    border-color: var(--pt-primary);
}
.news-card__media {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,87,34,.15), rgba(255,138,101,.15));
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__placeholder { display: block; width: 100%; height: 100%; }
.news-card__body { padding: 20px 22px 24px; }
.news-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.news-card__title a { color: var(--pt-text); }
.news-card__title a:hover { color: var(--pt-primary); }
.news-card__excerpt { color: var(--pt-muted); margin: 0 0 12px; font-size: .96rem; }
.news-card__meta { color: var(--pt-muted); font-size: .85rem; }

/* ===== CTA banner ===== */
.cta-banner {
    text-align: center;
    padding: 24px 0;
}
.cta-banner__title { color: #fff; }
.cta-banner__text { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto 24px; }
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
    background: var(--pt-bg-dark);
    color: #cfd6dd;
    padding: 60px 0 24px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
    gap: 32px;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col--brand, .footer-col--subscribe { grid-column: 1 / -1; } }

.footer-col h3.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cfd6dd; }
.footer-col a:hover { color: var(--pt-accent); }
.footer-brand { font-size: 1.4rem; color: #fff; }
.footer-tagline { color: #8a96a3; }
.footer-subtle { color: #8a96a3; font-size: .92rem; }
.social-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a {
    display: inline-flex;
    padding: 6px 12px;
    border: 1px solid #2a323b;
    border-radius: 999px;
    font-size: .85rem;
}
.social-links a:hover { border-color: var(--pt-primary); color: var(--pt-primary); }

.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subscribe-form input[type="email"] {
    flex: 1; min-width: 180px;
    padding: 12px 14px;
    background: #1a2129;
    border: 1px solid #2a323b;
    border-radius: 999px;
    color: #fff;
}
.subscribe-form input::placeholder { color: #6c7682; }
.subscribe-form__msg { width: 100%; min-height: 1.4em; font-size: .85rem; margin: 6px 0 0; color: var(--pt-accent); }

.site-footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1f262d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #8a96a3;
    font-size: .9rem;
}
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-menu a { color: #cfd6dd; }
.footer-menu a:hover { color: var(--pt-accent); }

/* ===== Breadcrumbs ===== */
.page-breadcrumbs { padding: 14px 24px 0; }
.breadcrumbs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--pt-muted); font-size: .9rem; }
.breadcrumbs__item.is-current { color: var(--pt-text); }
.breadcrumbs__sep { padding: 0 6px; opacity: .5; }

/* ===== Article / Single / Page ===== */
.archive-layout, .single-layout, .page-layout { padding: 40px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; max-width: var(--pt-container); margin: 0 auto; }
.single-layout, .page-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
@media (max-width: 900px) { .archive-layout { grid-template-columns: 1fr; } }

.archive-header { margin-bottom: 28px; }
.archive-title { margin-bottom: 8px; }
.archive-description { color: var(--pt-muted); }

.post-list { display: grid; gap: 24px; }
.post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    overflow: hidden;
}
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; } }
.post-card__media { aspect-ratio: 4/3; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px; }
.post-card__meta { display: flex; gap: 12px; align-items: center; color: var(--pt-muted); font-size: .85rem; margin-bottom: 8px; flex-wrap: wrap; }
.post-card__category { color: var(--pt-primary); font-weight: 600; }
.post-card__title { margin: 0 0 10px; font-size: 1.4rem; }
.post-card__title a { color: var(--pt-text); }
.post-card__title a:hover { color: var(--pt-primary); }
.post-card__excerpt { color: var(--pt-muted); margin: 0 0 12px; }
.post-card__more { font-weight: 600; }

/* Single article */
.single-article__header { margin-bottom: 24px; }
.single-article__category { display: inline-block; color: var(--pt-primary); font-weight: 700; margin-bottom: 14px; }
.single-article__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.single-article__meta { color: var(--pt-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .92rem; margin-top: 14px; }
.single-article__cover { margin: 24px 0 32px; border-radius: var(--pt-radius); overflow: hidden; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content blockquote { border-left: 4px solid var(--pt-primary); padding: 8px 18px; margin: 1.5em 0; background: var(--pt-bg-soft); border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0; }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border-radius: var(--pt-radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--pt-line); text-align: left; }
.single-article__footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--pt-line); display: flex; gap: 20px; flex-wrap: wrap; }
.cat-links a, .tags-links a { display: inline-block; margin-right: 6px; padding: 4px 10px; background: var(--pt-bg-soft); border-radius: 999px; font-size: .85rem; }

.related-posts { margin-top: 64px; }
.related-posts__title { margin-bottom: 24px; }

.comments-area { margin-top: 64px; }
.comments-title { margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--pt-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius-sm);
    background: var(--pt-bg);
    color: var(--pt-text);
}
.comment-form .submit { padding: 10px 20px; background: var(--pt-primary); color: #fff; border: 0; border-radius: 999px; cursor: pointer; }

/* ===== Page hero (二级页面统一) ===== */
.page-hero {
    background: linear-gradient(135deg, rgba(255,87,34,.08), rgba(255,138,101,.08));
    padding: clamp(40px, 6vw, 80px) 0;
    text-align: center;
}
.page-hero__title { margin-bottom: 12px; }
.page-hero__subtitle { color: var(--pt-muted); font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }

/* Apps page */
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .apps-grid { grid-template-columns: 1fr; } }
.apps-platform { background: var(--pt-bg-soft); padding: 32px; border-radius: var(--pt-radius); }
.apps-platform__title { margin-bottom: 20px; }
.apps-platform__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }

/* Developer page */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.dev-card { background: var(--pt-bg-soft); padding: 28px; border-radius: var(--pt-radius); }
.dev-card pre { background: #0f1419; color: #e6e9ed; }

/* FAQ page */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--pt-bg); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); padding: 18px 22px; margin-bottom: 12px; }
.faq-item[open] { border-color: var(--pt-primary); box-shadow: var(--pt-shadow); }
.faq-item__q { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--pt-primary); transition: transform .2s ease; }
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a { padding-top: 12px; color: var(--pt-muted); }

/* Privacy page */
.privacy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 900px) { .privacy-layout { grid-template-columns: 1fr; } }
.privacy-toc { position: sticky; top: 96px; background: var(--pt-bg-soft); padding: 22px; border-radius: var(--pt-radius); }
.privacy-toc__title { font-size: 1rem; margin-bottom: 12px; }
.privacy-toc__list { list-style: decimal; padding-left: 1.2em; color: var(--pt-muted); }
.privacy-toc__list a { color: var(--pt-text); display: block; padding: 4px 0; }
.privacy-toc__list a:hover { color: var(--pt-primary); }
.privacy-content h2 { margin-top: 2em; }

/* Search page */
.search-card { padding: 20px 0; border-bottom: 1px solid var(--pt-line); }
.search-card__title { font-size: 1.25rem; margin: 0 0 6px; }
.search-card__title a { color: var(--pt-text); }
.search-card__title a:hover { color: var(--pt-primary); }
.search-card__meta { color: var(--pt-muted); font-size: .85rem; margin-bottom: 8px; }
.search-card__type { background: var(--pt-bg-soft); padding: 2px 8px; border-radius: 999px; margin-right: 8px; }
.search-card__url { color: var(--pt-muted); font-size: .85rem; }

/* 404 */
.error-404-page { padding: 80px 24px; text-align: center; max-width: 720px; margin: 0 auto; }
.error-404__code { font-size: clamp(96px, 18vw, 180px); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--pt-primary), var(--pt-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404__title { margin: 8px 0 12px; }
.error-404__desc { color: var(--pt-muted); margin-bottom: 24px; }
.error-404__search { max-width: 460px; margin: 0 auto 24px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-404__suggestion { margin-top: 48px; text-align: left; }
.error-404__suggestion-title { font-size: 1.1rem; margin-bottom: 12px; }
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li { padding: 10px 0; border-bottom: 1px solid var(--pt-line); }

/* Search form */
.search-form { display: flex; gap: 8px; align-items: center; background: var(--pt-bg-soft); border: 1px solid var(--pt-line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.search-form .search-field { flex: 1; border: 0; background: transparent; padding: 10px 0; outline: none; color: var(--pt-text); }

/* Pagination */
.pagination, .navigation.pagination { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pt-line); color: var(--pt-text); }
.page-numbers.current { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }
.page-numbers:hover { border-color: var(--pt-primary); color: var(--pt-primary); }

/* Sidebar widgets */
.widget-area .widget { background: var(--pt-bg-soft); padding: 22px; border-radius: var(--pt-radius); margin-bottom: 20px; }
.widget-title { font-size: 1.05rem; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--pt-line); }
.widget li:last-child { border-bottom: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* =========================================================
   §10  统计数据条 / Stats Strip
   ========================================================= */
.stats-strip {
    border-top: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
    background: var(--pt-bg);
    padding: 0;
    overflow: hidden;
}
.stats-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 36px;
    gap: 4px;
    flex: 1;
    min-width: 130px;
}
.stat-item__num {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pt-primary), var(--pt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-item__label { font-size: .8rem; color: var(--pt-muted); text-align: center; }
.stats-divider {
    width: 1px;
    background: var(--pt-line);
    margin: 16px 0;
    align-self: stretch;
}
@media (max-width: 600px) {
    .stat-item { padding: 16px 20px; }
    .stats-divider { display: none; }
}

/* =========================================================
   §11  悬浮通知卡（Hero Notifs）
   ========================================================= */
.hero__notifs {
    position: absolute;
    right: -16px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}
.notif-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    min-width: 210px;
    animation: notif-float 4s ease-in-out infinite alternate;
}
.notif-card:nth-child(2) { animation-delay: -2s; }
.notif-card__emoji { font-size: 1.4rem; flex-shrink: 0; }
.notif-card__strong { display: block; font-weight: 700; font-size: .85rem; }
.notif-card__sub { display: block; font-size: .75rem; color: var(--pt-muted); }
@keyframes notif-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}
.hero__bubble-time {
    font-size: .7rem;
    opacity: .55;
    margin-left: 8px;
}
@media (max-width: 900px) { .hero__notifs { display: none; } }

/* =========================================================
   §12  信任徽章横条 / Trust Bar
   ========================================================= */
.trust-bar {
    border-top: 1px solid var(--pt-line);
    border-bottom: 1px solid var(--pt-line);
    background: var(--pt-bg);
    overflow: hidden;
    position: relative;
}
.trust-bar::before,
.trust-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.trust-bar::before { left:  0; background: linear-gradient(to right, var(--pt-bg), transparent); }
.trust-bar::after  { right: 0; background: linear-gradient(to left,  var(--pt-bg), transparent); }
.trust-bar__track {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: trust-scroll 40s linear infinite;
}
.trust-bar__track:hover { animation-play-state: paused; }
@keyframes trust-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    border-right: 1px solid var(--pt-line);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s;
    cursor: default;
}
.trust-badge:hover { background: var(--pt-bg-soft); }
.trust-badge__logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.trust-badge__title { display: block; font-weight: 700; font-size: .85rem; line-height: 1.2; }
.trust-badge__sub   { display: block; font-size: .75rem; color: var(--pt-muted); margin-top: 2px; }
.trust-badge--cert         .trust-badge__logo { background: linear-gradient(135deg,#0284c7,#38bdf8); color: #fff; }
.trust-badge--store-apple  .trust-badge__logo { background: #000; color: #fff; }
.trust-badge--store-android .trust-badge__logo { background: #00c853; color: #fff; }
.trust-badge--award        .trust-badge__logo { background: linear-gradient(135deg,#d97706,#fbbf24); color: #fff; }
.trust-badge--user         .trust-badge__logo { background: linear-gradient(135deg,var(--pt-primary),var(--pt-accent)); color: #fff; }
.trust-badge--uptime       .trust-badge__logo { background: linear-gradient(135deg,#059669,#34d399); color: #fff; }
.trust-badge--g2           .trust-badge__logo { background: linear-gradient(135deg,#ff492c,#ff7d6b); color: #fff; }
.trust-badge--press        .trust-badge__logo { background: linear-gradient(135deg,#7c3aed,#a78bfa); color: #fff; }

/* =========================================================
   §13  用户评价 / Testimonials
   ========================================================= */
.section--testimonials { background: var(--pt-bg-soft); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--pt-bg);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.testimonial-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--pt-primary), var(--pt-accent), #a78bfa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--pt-shadow-lg); }
.testimonial-card:hover::after { transform: scaleX(1); }
.testimonial-card__stars { color: #f59e0b; font-size: .85rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card__text { color: var(--pt-text); line-height: 1.7; margin-bottom: 20px; font-size: .97rem; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.testimonial-card__info-name { font-weight: 700; font-size: .9rem; }
.testimonial-card__info-role { font-size: .8rem; color: var(--pt-muted); }

/* =========================================================
   §14  卡片发光渐变动态边框
   ========================================================= */
@keyframes card-glow-grad {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.feature-card {
    isolation: isolate;
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.feature-card::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: calc(var(--pt-radius) + 2px);
    background: linear-gradient(135deg,
        var(--pt-primary) 0%, var(--pt-accent) 25%,
        #a78bfa 50%, #38bdf8 75%, var(--pt-primary) 100%);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity .35s;
    animation: card-glow-grad 3s ease infinite paused;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.13), 0 0 28px rgba(255,87,34,.18); }
.feature-card:hover::before { opacity: 1; animation-play-state: running; }

.download-card {
    isolation: isolate;
    position: relative;
    overflow: hidden;
}
.download-card::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: calc(var(--pt-radius) + 2px);
    background: linear-gradient(135deg,
        var(--pt-primary) 0%, var(--pt-accent) 30%,
        #a78bfa 60%, #38bdf8 80%, var(--pt-accent) 100%);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity .35s;
    animation: card-glow-grad 3.5s ease infinite paused;
}
.download-card::after {
    content: '';
    position: absolute;
    top: -60%; left: -100%;
    width: 45%; height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}
.download-card:hover::before { opacity: 1; animation-play-state: running; }
.download-card:hover::after  { opacity: 1; animation: btn-shimmer .7s cubic-bezier(.4,0,.2,1) forwards; }
.download-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.12), 0 0 24px rgba(255,87,34,.15); }

.news-card { transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 0 0 1px var(--pt-primary); }

.scenario-card {
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.scenario-card::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--pt-primary), var(--pt-accent), #a78bfa);
    opacity: 0;
    transition: opacity .3s;
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card:hover { transform: translateX(4px); box-shadow: 4px 0 24px rgba(255,87,34,.12); }

/* =========================================================
   §15  滚动入场动画
   ========================================================= */
.sa {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .55s cubic-bezier(.4,0,.2,1),
        transform .55s cubic-bezier(.4,0,.2,1);
    transition-delay: calc(var(--sa-i, 0) * 70ms);
}
.sa.is-visible { opacity: 1; transform: none; }

.sa-hd {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .45s cubic-bezier(.4,0,.2,1),
        transform .45s cubic-bezier(.4,0,.2,1);
}
.sa-hd.is-visible { opacity: 1; transform: none; }

.sa-left {
    opacity: 0;
    transform: translateX(-28px);
    transition:
        opacity .5s cubic-bezier(.4,0,.2,1),
        transform .5s cubic-bezier(.4,0,.2,1);
}
.sa-left.is-visible { opacity: 1; transform: none; }

/* =========================================================
   §16  首屏 Canvas 光斑 / 粒子
   ========================================================= */
.hero { overflow: hidden; }
.hero .container.hero__inner { position: relative; z-index: 1; }
#hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================================
   §17  按钮光扫 & 导航微交互
   ========================================================= */
@keyframes btn-shimmer {
    0%   { left: -100%; opacity: 1; }
    80%  { left:  130%; opacity: 1; }
    100% { left:  140%; opacity: 0; }
}
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    top: -60%; left: -100%;
    width: 55%; height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    opacity: 0;
}
.btn:not(:disabled):hover::after { opacity: 1; animation: btn-shimmer .6s cubic-bezier(.4,0,.2,1) forwards; }
.btn--primary { transition: transform .18s, box-shadow .18s, filter .18s; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,87,34,.35); filter: brightness(1.06); }
.btn--primary:active { transform: translateY(0); filter: brightness(.96); }

.primary-menu > li > a { position: relative; overflow: hidden; }
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--pt-primary), var(--pt-accent));
    border-radius: 1px;
    transition: left .22s cubic-bezier(.4,0,.2,1), right .22s cubic-bezier(.4,0,.2,1);
}
.primary-menu > li > a:hover::after { left: 0; right: 0; }

/* =========================================================
   §18  首屏文字逐字入场
   ========================================================= */
.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) skewY(3deg);
    transition:
        opacity .44s cubic-bezier(.4,0,.2,1),
        transform .44s cubic-bezier(.4,0,.2,1);
    will-change: transform, opacity;
}
.hero-char.in { opacity: 1; transform: none; }

.hero-entrance {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .5s cubic-bezier(.4,0,.2,1),
        transform .5s cubic-bezier(.4,0,.2,1);
    will-change: transform, opacity;
}
.hero-entrance.in { opacity: 1; transform: none; }

/* =========================================================
   §19  视差层 will-change
   ========================================================= */
.hero__visual, .hero__content, .hero__notifs, #hero-canvas { will-change: transform; }

/* =========================================================
   §20  FAQ 自定义箭头（覆盖基础层 + 号）
   ========================================================= */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { display: none; content: ''; }
.faq-item__q {
    cursor: pointer;
    padding-right: 2.2rem;
    position: relative;
    user-select: none;
    list-style: none;
}
.faq-item__q::after {
    content: '' !important;
    position: absolute;
    right: 4px; top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--pt-primary);
    border-bottom: 2px solid var(--pt-primary);
    transform: translateY(-70%) rotate(45deg) !important;
    transition: transform .32s cubic-bezier(.4,0,.2,1), border-color .2s;
    font-size: inherit;
}
.faq-item[data-faq-open="1"] .faq-item__q::after,
.faq-item[open] .faq-item__q::after {
    transform: translateY(-30%) rotate(-135deg) !important;
}
.faq-item__a { overflow: hidden; }
