/* ============================================================
   PathTrace 官网 — Design System
   ============================================================ */
:root {
    --brand: #77feff;
    --brand-rgb: 119, 254, 255;
    --brand-soft: rgba(119, 254, 255, 0.14);
    --brand-hover: #4ee8ea;

    --text-primary:   #f4f6fa;
    --text-secondary: #a4adbe;
    --text-tertiary:  #6b7385;
    --text-quaternary:#475066;

    --bg:        #07090d;
    --bg-elev-1: #0b0e15;
    --bg-elev-2: #11151f;
    --bg-alt:    #090b11;

    --hairline:  rgba(255, 255, 255, 0.10);
    --hairline-strong: rgba(255, 255, 255, 0.18);
    --surface:   rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.08);

    --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring:cubic-bezier(0.34, 1.36, 0.64, 1);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;

    --content: 1180px;
    --content-narrow: 920px;
}

[data-theme="light"] {
    --text-primary:   #0d1220;
    --text-secondary: #4a536b;
    --text-tertiary:  #7a8294;
    --text-quaternary:#aab0c0;

    --bg:        #f5f5f7;
    --bg-elev-1: #ffffff;
    --bg-elev-2: #ffffff;
    --bg-alt:    #ececef;

    --hairline:  rgba(15, 20, 35, 0.08);
    --hairline-strong: rgba(15, 20, 35, 0.16);
    --surface:   rgba(15, 20, 35, 0.035);
    --surface-2: rgba(15, 20, 35, 0.06);

    /* 浅色模式下青色文字加深，保证对比度可读 */
    --brand:       #5ad9da;
    --brand-hover: #3fb8b9;
}

/* ===== 共用玻璃材质（dock + 搜索面板共享） ===== */
:root {
    --glass-bg:           rgba(38, 42, 54, 0.46);
    --glass-border:       rgba(255, 255, 255, 0.18);
    --glass-highlight:    rgba(255, 255, 255, 0.28);   /* 顶部白光 */
    --glass-rim-bottom:   rgba(255, 255, 255, 0.06);   /* 底部弱反光 */
    --glass-shadow:       0 18px 36px rgba(0, 0, 0, 0.5),
                          0 2px 8px rgba(0, 0, 0, 0.3);
    --glass-inner-bg:     rgba(255, 255, 255, 0.08);
    --glass-inner-border: rgba(255, 255, 255, 0.16);
}
[data-theme="light"] {
    --glass-bg:           rgba(252, 252, 254, 0.42);
    --glass-border:       rgba(255, 255, 255, 0.7);
    --glass-highlight:    rgba(255, 255, 255, 0.55);
    --glass-rim-bottom:   rgba(20, 26, 40, 0.04);
    --glass-shadow:       0 18px 36px rgba(20, 26, 40, 0.16),
                          0 2px 8px rgba(20, 26, 40, 0.06);
    --glass-inner-bg:     rgba(255, 255, 255, 0.55);
    --glass-inner-border: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
    transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

::selection { background: var(--brand-soft); color: var(--text-primary); }

/* ============================================================
   顶部导航 — 不再是浮动胶囊，而是贴边的克制条
   ============================================================ */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.topbar.scrolled { border-bottom-color: var(--hairline); }

.topbar-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.015em;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.7; }
.brand-logo { width: 22px; height: 22px; border-radius: 5px; }
.brand-name { font-size: 0.95rem; }

.topnav {
    display: flex;
    gap: 28px;
    margin-left: 12px;
}
.topnav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}
.topnav a:hover { color: var(--text-primary); }

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.icon-btn:active { transform: scale(0.94); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 72px 28px 96px;
    max-width: var(--content);
    margin: 0 auto;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -200px;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

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

.hero-copy { max-width: 580px; }
.hero h1 {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-wrap: balance;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hero-meta {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.005em;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    height: 48px;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    background: var(--text-primary);
    color: var(--bg);
    transition: transform 160ms var(--ease-out),
                box-shadow 220ms var(--ease-out),
                background 200ms var(--ease-out);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08),
                0 6px 24px rgba(var(--brand-rgb), 0.18);
    will-change: transform;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1),
                0 12px 36px rgba(var(--brand-rgb), 0.28);
}
.btn-primary:active { transform: scale(0.97); }

/* "敬请期待" / coming-soon 占位态 —— 视觉保留主按钮形态，禁用交互 */
.btn-primary.is-coming-soon,
.btn-primary[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
    background: var(--text-tertiary);
    box-shadow: none;
    pointer-events: none;
}
.btn-primary.is-coming-soon:hover,
.btn-primary[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
}
.btn-primary.is-coming-soon:active,
.btn-primary[aria-disabled="true"]:active {
    transform: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    padding: 0 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.18s var(--ease-out);
}
.btn-ghost:hover { color: var(--text-primary); transform: translateX(2px); }

/* ============================================================
   Hero Visual — 一张纯 CSS 的 macOS Save 弹窗 + PathTrace 助手
   ============================================================ */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
}
.mockup {
    position: relative;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
/* 仅给弹窗本体加 drop-shadow；dock/搜索面板用各自的 box-shadow */
.mockup .dialog {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}
[data-theme="light"] .mockup .dialog {
    filter: drop-shadow(0 24px 48px rgba(15, 20, 35, 0.12));
}

/* macOS dialog */
.dialog {
    background: var(--dialog-bg, var(--bg-elev-1));
    border: 1px solid var(--dialog-border, rgba(255, 255, 255, 0.18));
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
/* dark：提亮弹窗本体让边缘可见 */
:root .dialog { --dialog-bg: #161a26; }
[data-theme="light"] .dialog {
    --dialog-bg: #fbfbfd;
    --dialog-border: rgba(15, 20, 35, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(15, 20, 35, 0.04);
}

.dialog-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-elev-2);
    border-bottom: 1px solid var(--hairline);
    position: relative;
}
[data-theme="light"] .dialog-titlebar { background: #f1f1f4; border-bottom-color: rgba(15, 20, 35, 0.08); }
.traffic {
    width: 12px; height: 12px; border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
}
.traffic.red    { background: #ff5f57; }
.traffic.yellow { background: #febc2e; }
.traffic.green  { background: #28c840; }
.dialog-title {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
}

.dialog-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
}
.tb-chip {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.tb-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.dialog-body {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 240px;
}
.dialog-side {
    background: var(--bg-alt);
    border-right: 1px solid var(--hairline);
    padding: 12px 8px;
    font-size: 0.72rem;
}
[data-theme="light"] .dialog-side { background: #f6f6f9; }
.ds-label {
    color: var(--text-tertiary);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 8px 8px 4px;
    text-transform: uppercase;
    font-weight: 600;
}
.ds-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}
.ds-icon {
    width: 12px; height: 10px;
    background: var(--text-quaternary);
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
}
.ds-icon::before {
    content: '';
    position: absolute;
    top: -2px; left: 0;
    width: 5px; height: 2px;
    background: inherit;
    border-radius: 1px 1px 0 0;
}
.ds-icon.mac { background: #5b8bf3; }
.ds-icon.doc { background: #b0b6c6; border-radius: 1px; }
.ds-icon.doc::before { display: none; }
.ds-icon.app { background: linear-gradient(180deg, #5fb3ff, #2a72d3); border-radius: 2px; }
.ds-icon.app::before { display: none; }

.ds-item.active {
    background: #0a84ff;
    color: #fff;
}
.ds-item.active .ds-icon { background: rgba(255, 255, 255, 0.92); }

.dialog-main {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dm-row {
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--surface) 0%,
        var(--surface) 60%,
        transparent 100%);
}
.dm-row:nth-child(2) { width: 78%; }
.dm-row:nth-child(3) { width: 64%; }
.dm-row:nth-child(4) { width: 82%; }
.dm-row:nth-child(5) { width: 56%; }
.dm-row:nth-child(6) { width: 72%; }
.dm-row:nth-child(7) { width: 50%; }

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--hairline);
}
.df-btn {
    font-size: 0.74rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--hairline);
}
.df-btn.primary {
    background: #0a84ff;
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

/* ===== PathTrace 顶部双件套：左圆 + 右胶囊条 ===== */
.ptdock {
    display: flex;
    align-items: center;
    gap: 12px;             /* 圆与胶囊之间的呼吸 */
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 3;
    color: var(--text-primary);
    animation: dockFloat 7s ease-in-out infinite;
}

/* 左侧：独立圆形收藏按钮（玻璃材质）*/
.pt-fav {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(1.7);
    -webkit-backdrop-filter: blur(30px) saturate(1.7);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        inset 0 -1px 0 var(--glass-rim-bottom),
        var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
}
.pt-fav:hover { transform: scale(1.06); }

/* 右侧：胶囊条容器（玻璃材质）*/
.pt-bar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 56px;
    padding: 6px 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(1.7);
    -webkit-backdrop-filter: blur(30px) saturate(1.7);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        inset 0 -1px 0 var(--glass-rim-bottom),
        var(--glass-shadow);
}



/* 文件夹卡片列表 */
.pt-folders {
    display: flex;
    align-items: stretch;
    gap: 1px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pt-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    padding: 0 4px 2px;
    width: 54px;
    text-align: center;
    position: relative;
    cursor: pointer;
    border-radius: 7px;
    transition: background 0.18s ease;
}
.pt-card:hover { background: var(--surface-2); }

/* 顶部彩色 tag */
.pt-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 600;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.02em;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.pt-tag.recent   { background: #2f8df5; }
.pt-tag.favorite { background: #2f8df5; }
.pt-tag.open     { background: #ff5c5c; }

/* macOS 风格蓝色文件夹图标 */
.pt-folder {
    width: 30px;
    height: 23px;
    margin-top: 12px; /* 给 tag 留位置 */
    position: relative;
    background: linear-gradient(180deg, #5eb0ff 0%, #2484e8 65%, #1a6cc7 100%);
    border-radius: 3px 3px 4px 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 1px 1.5px rgba(0, 0, 0, 0.25);
}
.pt-folder::before {
    content: '';
    position: absolute;
    top: -3px; left: 0;
    width: 12px; height: 4px;
    background: linear-gradient(180deg, #4ea3f5 0%, #2c8be9 100%);
    border-radius: 3px 3px 0 0;
}
.pt-folder::after {
    content: '';
    position: absolute;
    inset: 1px 1px 2px 1px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0) 40%);
    border-radius: 2px 2px 3px 3px;
    pointer-events: none;
}

/* 文件夹下的名称 */
.pt-name {
    font-size: 0.6rem;
    color: var(--text-primary);
    opacity: 0.85;
    line-height: 1.25;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.005em;
}

/* 搜索框 */
.pt-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 200px;
    height: 32px;
    margin-left: auto;
    padding: 0 8px 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--glass-inner-bg);
    border: 1px solid var(--glass-inner-border);
    border-radius: 9999px;
    color: var(--text-tertiary);
    font-size: 0.72rem;
}
.pt-search-icon {
    width: 11px; height: 11px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.pt-search-icon::after {
    content: '';
    position: absolute;
    top: 9px; left: 6px;
    width: 4px; height: 1.6px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 1px;
}
.pt-search-placeholder {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pt-search-clear {
    flex-shrink: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ===== 搜索结果浮窗 —— 玻璃质感，深浅色自适应，循环浮动 ===== */
.pt-results {
    /* 共用 glass 材质，再叠一层主题专属变量 */
    --pr-text:        rgba(255, 255, 255, 0.92);
    --pr-text-soft:   rgba(255, 255, 255, 0.55);
    --pr-hover:       rgba(255, 255, 255, 0.05);
    --pr-active-bg:   rgba(34, 145, 175, 0.3);
    --pr-active-ring: rgba(34, 200, 220, 0.4);
    --pr-divider:     rgba(255, 255, 255, 0.08);

    position: absolute;
    top: 68px;
    right: 0;
    width: 270px;
    background: var(--glass-bg);
    backdrop-filter: blur(32px) saturate(1.7);
    -webkit-backdrop-filter: blur(32px) saturate(1.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 5px;
    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        inset 0 -1px 0 var(--glass-rim-bottom),
        var(--glass-shadow);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: var(--pr-text);
    animation: panelFloat 5s ease-in-out infinite;
    transform-origin: top right;
    will-change: transform;
}
[data-theme="light"] .pt-results {
    --pr-text:        rgba(20, 26, 40, 0.88);
    --pr-text-soft:   rgba(20, 26, 40, 0.5);
    --pr-hover:       rgba(20, 26, 40, 0.04);
    --pr-active-bg:   rgba(0, 136, 255, 0.16);
    --pr-active-ring: rgba(0, 136, 255, 0.34);
    --pr-divider:     rgba(20, 26, 40, 0.08);
}

.pt-result {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: 7px;
    color: inherit;
    font-size: 0.74rem;
    transition: background 0.15s ease;
}
.pt-result:hover { background: var(--pr-hover); }
.pt-result.active {
    background: var(--pr-active-bg);
    box-shadow: inset 0 0 0 1px var(--pr-active-ring);
    color: var(--pr-text);
    animation: activePulse 2.6s ease-in-out infinite;
}

.pt-r-icon {
    width: 18px; height: 18px;
    border-radius: 3.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.pt-r-icon.psd { background: linear-gradient(135deg, #2a4fd6 0%, #1a3aac 100%); }
.pt-r-icon.xls { background: linear-gradient(135deg, #1d8a4b 0%, #15673a 100%); }
.pt-r-icon.folder {
    background: linear-gradient(180deg, #5eb0ff 0%, #2484e8 100%);
    position: relative;
    border-radius: 2.5px;
}
.pt-r-icon.folder::before {
    content: '';
    position: absolute;
    top: -2.5px; left: 0;
    width: 8px; height: 3px;
    background: #4ea3f5;
    border-radius: 2px 2px 0 0;
}

.pt-r-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pt-r-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3.5px;
    background: linear-gradient(180deg, #f5a93b 0%, #e58a1f 100%);
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.pt-results-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 7px 4px 3px;
    margin-top: 2px;
    border-top: 1px solid var(--pr-divider);
    font-size: 0.62rem;
    color: var(--pr-text-soft);
}
.pt-results-footer kbd {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--surface-2);
    color: var(--pr-text);
    margin-right: 3px;
}

/* ===== 微动循环 ===== */
@keyframes panelFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes dockFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2.5px); }
}
@keyframes activePulse {
    0%, 100% { box-shadow: inset 0 0 0 1px var(--pr-active-ring); }
    50%      { box-shadow: inset 0 0 0 1.5px var(--pr-active-ring),
                            0 0 0 3px color-mix(in srgb, var(--pr-active-ring) 35%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .pt-results,
    .ptdock,
    .pt-result.active { animation: none; }
}

/* ============================================================
   Hero stats —— 给首屏增重
   ============================================================ */
.hero-stats {
    margin-top: 96px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--hairline);
    padding-top: 36px;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-num {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat-num span {
    font-size: 0.85em;
    color: var(--text-tertiary);
    margin-left: 2px;
    font-weight: 500;
}
.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    letter-spacing: 0.005em;
}

/* ============================================================
   Sections —— 大节奏 & 编辑型标题
   ============================================================ */
.section {
    padding: 120px 28px;
    max-width: var(--content);
    margin: 0 auto;
    position: relative;
}
/* 全宽背景带 —— 不挤压子元素的 max-width */
.section-alt::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--bg-alt);
    z-index: -1;
}
.section-cta { padding: 96px 28px 120px; }

.section-head {
    max-width: 680px;
    margin: 0 auto 72px;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-wrap: balance;
    margin-bottom: 16px;
}
.section-lede {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   Features —— 编号型 2×3 网格，无图标，强字号
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feat {
    background: var(--bg);
    padding: 36px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background 0.3s var(--ease-out);
    position: relative;
}
.feat:hover { background: var(--bg-elev-1); }
[data-theme="light"] .feat { background: var(--bg-elev-1); }
[data-theme="light"] .feat:hover { background: #ffffff; }
.feat-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand);
    letter-spacing: 0.06em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.feat h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.35;
    color: var(--text-primary);
}
.feat p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* ============================================================
   Compare —— 扁平 2×N grid，同一行天然同高
   ============================================================ */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 14px;
    max-width: var(--content-narrow);
    margin: 0 auto;
}

/* 顶部 badge */
.cmp-head { margin-bottom: 4px; }
.cmp-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 9999px;
}
.cmp-tag.bad  { color: #f87171;       background: rgba(248, 113, 113, 0.1); }
.cmp-tag.good { color: var(--brand);  background: var(--brand-soft); }

/* 每个 cell 是一个小卡片，左红右蓝 */
.cmp-cell {
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    row-gap: 6px;
    transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
[data-theme="light"] .cmp-cell { background: var(--bg-elev-1); }
.cmp-cell.before { border-color: rgba(248, 113, 113, 0.18); }
.cmp-cell.after  { border-color: rgba(var(--brand-rgb), 0.25); }
.cmp-cell.before:hover { border-color: rgba(248, 113, 113, 0.32); }
.cmp-cell.after:hover  { border-color: rgba(var(--brand-rgb), 0.42); }

.cmp-task {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.cmp-desc {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    align-self: start;
}
.cmp-metric {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cmp-metric.accent { color: var(--brand); }

/* ============================================================
   竞品对比表
   ============================================================ */
.table-wrap {
    max-width: 880px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
[data-theme="light"] .table-wrap { background: var(--bg-elev-1); }
.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.vs-table th, .vs-table td {
    padding: 16px 22px;
    text-align: left;
}
.vs-table thead th {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--hairline);
}
.vs-table .col-us {
    color: var(--brand);
    font-weight: 600;
}
.vs-table tbody td {
    border-bottom: 1px solid var(--hairline);
}
.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table tbody td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}
.vs-table .na { color: var(--text-quaternary); }
.vs-table .price { color: #4ade80; font-weight: 700; }
.vs-table tbody tr { transition: background 0.18s ease; }
.vs-table tbody tr:hover { background: var(--surface); }

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 48px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .cta-box { background: var(--bg-elev-1); }
.cta-box::after {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(circle, rgba(var(--brand-rgb), 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-wrap: balance;
    margin-bottom: 16px;
}
.cta-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}
.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.cta-version {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ============================================================
   更多提速功能 (extras)
   ============================================================ */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--content);
    margin: 0 auto;
}
.extra-card {
    background: var(--bg);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
[data-theme="light"] .extra-card { background: var(--bg-elev-1); }
.extra-card:hover {
    border-color: rgba(var(--brand-rgb), 0.3);
    transform: translateY(-2px);
}
.extra-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--brand-soft);
    margin-bottom: 4px;
}
.extra-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.35;
    color: var(--text-primary);
}
.extra-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-wrap: pretty;
}

/* "还有更多" 一行 pills */
.extras-more {
    margin: 44px auto 0;
    max-width: var(--content);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 8px;
}
.extras-more-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-right: 6px;
    letter-spacing: -0.005em;
}
.extras-pill {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.extras-pill:hover {
    color: var(--text-primary);
    background: var(--surface-2);
    border-color: var(--hairline-strong);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    border-top: 1px solid var(--hairline);
    padding: 48px 28px 36px;
}
.footer-inner {
    max-width: var(--content);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-text, .footer-links {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}
.footer-link {
    color: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
}
.footer-link:hover { color: var(--text-primary); text-decoration: underline; }
.footer-beian {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    opacity: 0.55;
    font-size: 0.75rem;
    margin-top: 8px;
}
.footer-beian a { transition: color 0.2s ease; }
.footer-beian a:hover { text-decoration: underline; }

/* ============================================================
   入场动画
   ============================================================ */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal { transition: opacity 0.15s ease; transform: none; }
    .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-visual { min-height: 0; }
    .mockup { margin: 0 auto; max-width: 560px; }
}

@media (max-width: 1080px) {
    .extras-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .section { padding: 88px 24px; }
    .section-alt { padding: 88px 24px; }
    .section-head { margin-bottom: 56px; }
    .topnav { display: none; }
}

/* compare 单列：保留任务的"前后"配对源序，隐藏顶部 badge，靠边框色区分 */
@media (max-width: 680px) {
    .compare { grid-template-columns: 1fr; row-gap: 10px; }
    .cmp-head { display: none; }
    .cmp-cell.before { border-left: 3px solid rgba(248, 113, 113, 0.45); }
    .cmp-cell.after  { border-left: 3px solid rgba(var(--brand-rgb), 0.55); }
}

@media (max-width: 640px) {
    .topbar-inner { padding: 12px 20px; gap: 12px; }
    .hero { padding: 48px 20px 72px; }
    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); letter-spacing: -0.03em; }
    .hero-desc { font-size: 1rem; }
    .hero-stats { margin-top: 72px; padding-top: 28px; }

    .mockup { max-width: 100%; }
    .ptdock { gap: 8px; }
    .pt-fav { width: 46px; height: 46px; }
    .pt-bar { height: 46px; padding: 4px 6px; }
    .pt-card { width: 48px; }
    .pt-folder { width: 26px; height: 20px; margin-top: 10px; }
    .pt-folder::before { width: 10px; height: 3px; }
    .pt-search { max-width: 130px; height: 28px; font-size: 0.68rem; }
    .pt-results { width: 240px; top: 62px; }

    .features { grid-template-columns: 1fr; }
    .feat { padding: 28px 24px; }

    .cta-box { padding: 44px 28px; margin: 0; }
    .cmp-cell { padding: 18px 20px; }
    .vs-table th, .vs-table td { padding: 12px 16px; font-size: 0.875rem; }
    .extras-grid { grid-template-columns: 1fr; gap: 12px; }
    .extra-card { padding: 22px 22px 24px; }
    .extras-more { margin-top: 32px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-num { font-size: 1.5rem; }
    /* 小屏隐藏后两张卡 + 搜索结果浮窗，避免 dock 过挤 */
    .pt-folders .pt-card:nth-child(n+5) { display: none; }
    .pt-results { display: none; }
}

/* ============================================================
   Page-side minimal section navigation
   —— 隐藏 → 优雅展开 → 当前板块的横线变青并向左延伸
   ============================================================ */
.page-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out);
}
.page-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.page-nav-line {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    padding: 0;
    margin: 0;
    border: 0;
    background: var(--text-quaternary);
    border-radius: 1px;
    cursor: pointer;
    opacity: 0;
    transform: translateX(8px) scaleX(0.25);
    transform-origin: right center;
    transition:
        opacity 0.45s var(--ease-out),
        transform 0.55s var(--ease-spring),
        width 0.4s var(--ease-spring),
        background 0.3s var(--ease-out);
}
/* 扩大点击命中区域（实际线只有 2px 高） */
.page-nav-line::before {
    content: '';
    position: absolute;
    inset: -8px -6px;
}

.page-nav.is-visible .page-nav-line {
    opacity: 1;
    transform: translateX(0) scaleX(1);
}

/* 入场节奏：第一条立刻出现，下方依次展开 */
.page-nav.is-visible .page-nav-line:nth-child(1) { transition-delay: 0ms; }
.page-nav.is-visible .page-nav-line:nth-child(2) { transition-delay: 240ms; }
.page-nav.is-visible .page-nav-line:nth-child(3) { transition-delay: 300ms; }
.page-nav.is-visible .page-nav-line:nth-child(4) { transition-delay: 360ms; }
.page-nav.is-visible .page-nav-line:nth-child(5) { transition-delay: 420ms; }
.page-nav.is-visible .page-nav-line:nth-child(6) { transition-delay: 480ms; }
.page-nav.is-visible .page-nav-line:nth-child(7) { transition-delay: 540ms; }

.page-nav-line:hover {
    width: 28px;
    background: var(--text-secondary);
}
.page-nav-line.is-active {
    width: 34px;
    background: var(--brand);
}
.page-nav-line.is-active:hover {
    background: var(--brand);
}

/* 移动端隐藏：极简侧栏只服务桌面阅读体验 */
@media (max-width: 900px) {
    .page-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .page-nav,
    .page-nav-line { transition-duration: 0.001s !important; }
    .page-nav-line { transform: none !important; }
    .page-nav.is-visible .page-nav-line { transition-delay: 0ms !important; }
}
