/* ============================================
   TimelyTrader Official Website - Main Stylesheet
   Modern Deep-Blue Tech Theme
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a2236;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover { color: #0066ff; }

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ---------- CSS Variables ---------- */
:root {
    /* Primary - Deep Tech Blue */
    --primary: #0066ff;
    --primary-dark: #0047cc;
    --primary-light: #4d94ff;
    --accent: #00d4ff;
    --accent-2: #7c3aed;

    /* Backgrounds */
    --bg-dark: #0a0f1e;
    --bg-dark-2: #111830;
    --bg-card: #ffffff;
    --bg-section: #f7f9fc;

    /* Text */
    --text-primary: #1a2236;
    --text-secondary: #5a6478;
    --text-muted: #8a94a6;
    --text-white: #ffffff;
    --text-white-secondary: rgba(255, 255, 255, 0.75);

    /* Border & Shadow */
    --border-light: #e8ecf4;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.25);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --grad-dark: linear-gradient(160deg, #0a0f1e 0%, #111830 50%, #0d1428 100%);
    --grad-accent: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ---------- Typography ---------- */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--border-light);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.25s ease;
}

.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: var(--text-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--grad-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0, 102, 255, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 6s ease-in-out var(--d) infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 34px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-white-secondary);
    line-height: 1.7;
    margin-bottom: 52px;
}

.hero-subtitle strong {
    color: var(--text-white);
    font-weight: 700;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 28px 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    padding: 0 28px;
    text-align: center;
}

.stat-num {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-white-secondary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white-secondary);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollHint 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-white-secondary);
    border-bottom: 2px solid var(--text-white-secondary);
    transform: rotate(45deg);
}

@keyframes scrollHint {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--bg-section);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.35s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-num {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-family: 'Consolas', monospace;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.feature-highlight {
    display: inline-block;
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.82rem;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.06);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.feature-highlight span {
    color: var(--accent-2);
    font-weight: 600;
}

/* ============================================
   WORKFLOW SECTION
   ============================================ */
.workflow-section {
    padding: 100px 0;
    background: var(--text-white);
}

.workflow-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.workflow-text .section-title {
    text-align: left;
    font-size: clamp(1.6rem, 2.4vw, 1.9rem);
}
.workflow-text .section-desc { margin: 0 0 32px; text-align: left; }

.workflow-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-points li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.point-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: var(--text-white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.workflow-points li strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.workflow-points li p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Workflow Preview Window */
.workflow-preview {
    perspective: 1000px;
}

.preview-window {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    transform: rotateY(-2deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.preview-window:hover {
    transform: rotateY(0) rotateX(0);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.window-dots { display: flex; gap: 6px; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Consolas', monospace;
}

.window-actions {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.preview-body {
    position: relative;
    height: 430px;
    padding: 20px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.wf-canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 纯SVG节点图：等比缩放，端口与连线由同一坐标系构造保证对齐 */
.wf-diagram {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wf-node {
    position: absolute;
    box-sizing: border-box;
    min-width: 110px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-size: 0.84rem;
    z-index: 2;
}

.wf-node .node-header {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
}

.wf-node .node-body {
    padding: 10px 12px;
    font-size: 0.78rem;
    color: var(--text-primary);
    font-family: 'Consolas', monospace;
    line-height: 1.5;
}

.node-type-instrument .node-header { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.node-type-condition .node-header { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.node-type-trade .node-header { background: linear-gradient(135deg, #22c55e, #16a34a); }
.node-type-risk .node-header { background: linear-gradient(135deg, #f59e0b, #d97706); }
.node-type-plan .node-header { background: linear-gradient(135deg, #ec4899, #db2777); }

.node-port {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.port-right { right: -6px; }
.port-left { left: -6px; }
.port-bottom {
    top: auto;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.wf-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wf-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: none;
}

.wf-line-dashed {
    stroke-dasharray: 6 4;
    opacity: 0.7;
}

/* ============================================
   DISTRIBUTED SECTION
   ============================================ */
.distributed-section {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.distributed-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.distributed-section .section-title { color: var(--text-white); }
.distributed-section .section-desc { color: var(--text-white-secondary); }

.distributed-grid {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.dist-card {
    background: linear-gradient(160deg, #263650 0%, #1e293b 70%);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
    min-width: 160px;
}

.dist-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
}

.dist-icon { font-size: 2rem; margin-bottom: 12px; }

.dist-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.dist-spec {
    font-size: 0.8rem;
    color: var(--text-white-secondary);
    margin-bottom: 14px;
}

.dist-power {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.power-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--w);
    background: var(--grad-accent);
    border-radius: 3px;
    transition: width 1s ease;
}

.power-result {
    background: linear-gradient(90deg, #22c55e, #00d4ff);
}

.power-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.dist-result {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    border-color: rgba(0, 212, 255, 0.3);
}

.dist-arrow {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    padding: 0 4px;
}

.distributed-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.benefit-item {
    text-align: center;
    padding: 24px 16px;
}

.benefit-num {
    font-family: 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.88rem;
    color: var(--text-white-secondary);
    line-height: 1.6;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.comparison-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead th {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.comparison-table thead th.th-ours {
    background: var(--grad-primary);
    position: relative;
}

.ours-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    padding: 1px 8px;
    border-radius: 100px;
    margin-right: 4px;
    vertical-align: middle;
}

.ours-crown {
    font-size: 1.15rem;
    margin-right: 4px;
    vertical-align: middle;
}

.th-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.comparison-table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 102, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.td-feature {
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(247, 249, 252, 0.5);
}

.td-ours {
    background: rgba(0, 102, 255, 0.04);
    border-left: 3px solid var(--primary);
}

.td-ours strong {
    color: var(--primary);
    display: block;
}

.muted {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   AUDIENCE SECTION
   ============================================ */
.audience-section {
    padding: 100px 0;
    background: var(--text-white);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.audience-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-section);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.audience-card:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.audience-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.audience-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.metric {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.metric-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.2);
}

.highlight-num {
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.highlight-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download-section {
    padding: 100px 0;
    background: var(--text-white);
}

.download-card {
    position: relative;
    background: var(--grad-dark);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    overflow: hidden;
    text-align: center;
}

.download-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(0, 212, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 0% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.download-content p {
    color: var(--text-white-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn-download {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-download:hover {
    background: var(--bg-section);
    transform: translateY(-2px);
    color: var(--bg-dark);
}

/* 🔥 2026-11-05 安卓扫码下载弹窗：点「安卓版下载」弹出，PC 扫码安装 */
.qr-dialog {
    border: none;
    border-radius: 16px;
    padding: 36px 44px 26px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.qr-dialog::backdrop {
    background: rgba(10, 14, 24, 0.66);
}

.qr-dialog h3 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: #1f2430;
}

.qr-dialog img {
    width: 220px;
    height: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e8f0;
    border-radius: 12px;
}

.qr-dialog-tip {
    margin: 14px 0 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #6b7280;
}

.qr-dialog-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.qr-dialog-link:hover {
    text-decoration: underline;
}

.qr-dialog-icp {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: #9ca3af;
}

.qr-dialog-icp a {
    color: inherit;
    text-decoration: none;
}

.qr-dialog-icp a:hover {
    text-decoration: underline;
}

.qr-dialog-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    padding: 4px;
    font-size: 1.5rem;
    line-height: 1;
    color: #9aa1b1;
    cursor: pointer;
}

.qr-dialog-close:hover {
    color: #1f2430;
}

.download-notes {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-white-secondary);
    font-size: 0.88rem;
}

.download-notes span {
    display: inline-flex;
    align-items: center;
}

/* 下载按钮附近显著风险提示 */
.download-risk-note {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding: 72px 0 32px;
    color: var(--text-white-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--text-white); }

.footer-slogan {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    color: var(--text-white-secondary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: var(--grad-primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    font-size: 0.88rem;
    color: var(--text-white-secondary);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-col.footer-contact ul li {
    font-size: 0.85rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
}

.icp-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.icp-link:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

/* 公安备案徽章 */
.ga-beian-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.ga-beian-link .ga-beian-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* ============================================
   右侧悬浮联系方式
   ============================================ */
/* 右侧常驻联系工具条（🔥 2026-11-28 改版：myquant 式竖条，原悬浮圆钮+hover大面板取消）
   在线咨询/技术支持 → kf-widget（js/kf-widget.js 暴露 window.TTKf）；
   商务合作/公众号 → hover（桌面）或点击（触屏）弹出二维码卡 */
.side-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, var(--primary), var(--accent-2));
    border-radius: 12px 0 0 12px;
    box-shadow: -8px 0 24px rgba(0, 102, 255, 0.35);
}

.side-tool-item {
    position: relative;
    width: 64px;
    padding: 12px 4px 10px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    font-size: 0.68rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.side-tool-item:first-child {
    border-radius: 12px 0 0 0;
}

.side-tool-item:last-child {
    border-bottom: none;
    border-radius: 0 0 0 12px;
}

.side-tool-item:hover,
.side-tool-item.open {
    background: rgba(255, 255, 255, 0.16);
}

.side-tool-item svg {
    width: 20px;
    height: 20px;
}

.side-tool-item span {
    line-height: 1.2;
    white-space: nowrap;
}

/* 二维码弹出卡（悬停/点击展开于工具条左侧） */
.side-qr-pop {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    width: 170px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 10;
}

.side-tool-item:hover .side-qr-pop,
.side-tool-item.open .side-qr-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.side-qr-pop img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.side-qr-label {
    font-size: 0.72rem;
    color: #475569;
    text-align: center;
    margin-top: 6px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .side-tool-item {
        width: 52px;
        padding: 10px 2px 8px;
        font-size: 0.62rem;
    }

    .side-tool-item svg {
        width: 17px;
        height: 17px;
    }

    .side-qr-pop {
        right: 54px;
        width: 150px;
    }
}

/* ============================================
   版本升级提示弹窗
   ============================================ */
.upgrade-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    background: transparent;
    max-width: 90vw;
}

.upgrade-dialog::backdrop {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(4px);
}

.upgrade-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    width: min(420px, 86vw);
}

.upgrade-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 12px;
}

.upgrade-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0 0 20px;
}

.upgrade-actions {
    display: flex;
    gap: 12px;
}

.upgrade-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: #98a2b8;
    cursor: pointer;
}

.upgrade-close:hover {
    color: #1a2233;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .workflow-wrapper,
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 700px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        gap: 16px;
        padding: 20px;
    }

    .stat-item {
        padding: 0 16px;
    }

    .stat-divider {
        display: none;
    }

    .features,
    .workflow-section,
    .distributed-section,
    .comparison-section,
    .audience-section,
    .about-section,
    .download-section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .download-card {
        padding: 48px 24px;
    }

    .preview-body {
        height: 320px;
    }

    .wf-node {
        min-width: 110px;
        font-size: 0.7rem;
    }

    .wf-node .node-header {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .wf-node .node-body {
        font-size: 0.65rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
    .hero-ctas { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .distributed-grid { flex-direction: column; }
    .dist-arrow { transform: rotate(90deg); }
    .about-highlights { grid-template-columns: 1fr; }
}

/* ============================================
   HERO DISCLAIMER
   ============================================ */
.hero-disclaimer {
    margin-top: -26px;
    margin-bottom: 44px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
}

.hero-disclaimer strong {
    color: var(--text-white);
    font-weight: 600;
}

/* 独家/自研勋章标签：品牌蓝实心底、白字，醒目前置 */
.tag-exclusive {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-white);
    background: var(--primary);
    border: none;
    padding: 3px 12px;
    border-radius: 100px;
    vertical-align: middle;
    margin-right: 8px;
    margin-left: 0;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.35);
}

/* 进阶亮点红色标签 */
.tag-hot {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 8px;
    border-radius: 100px;
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 100px 0;
    background: var(--text-white);
}

/* 定价对比表：纵向卡片化（列间隙 + 圆角卡片头尾） */
.pricing-table {
    border-collapse: separate;
    border-spacing: 6px 0;
    table-layout: fixed;
}

/* 列宽比例：版本权益 17%，四个版本列均分 20.75%（基本等宽） */
.pricing-table thead th:first-child {
    width: 17%;
}

.pricing-table thead th:not(:first-child) {
    width: 20.75%;
}

.pricing-table thead th {
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.pricing-table thead th:first-child {
    text-align: center;
}

.pricing-table thead th .th-sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

/* 免费版表头：浅银灰 #64748B，轻盈基础感 */
.pricing-table thead th:nth-child(2) {
    background: #64748b;
    border-top: 1px solid #7c8aa0;
    border-left: 1px solid #7c8aa0;
    border-right: 1px solid #7c8aa0;
}

/* 免费版表头副标题：亮白加粗稍大（覆盖全局 .th-sub 的 opacity:0.7） */
.pricing-table thead th:nth-child(2) .th-sub {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 1;
}

/* 版本权益表头：与免费版一致的深灰蓝底 */
.pricing-table thead th.th-feature {
    background: #1e293b;
    color: var(--text-white);
    border-top: 1px solid #334155;
    border-left: 1px solid #334155;
    border-right: 1px solid #334155;
}

.pricing-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.pricing-table tbody td:first-child {
    text-align: left;
}

/* 各列卡片边框 */
.pricing-table td.td-feature {
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

/* 免费版列：白底灰边卡片 */
.pricing-table tbody td:nth-child(2) {
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* 末行收口：底边 + 圆角底 */
.pricing-table tbody tr:last-child td {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

.pricing-table tbody tr:last-child td.td-ours {
    border-bottom: 1px solid rgba(0, 102, 255, 0.35);
}

.pricing-table tbody tr:last-child td.td-premium {
    border-bottom: 1px solid rgba(124, 58, 237, 0.35);
}

.pricing-table tbody tr:last-child td.td-gold {
    border-bottom: 1px solid #f0e4c0;
}

/* 第一列分类文字：放大加粗居中，收窄左右内边距补偿列宽（允许在 · 处换行） */
.pricing-table th.th-feature,
.pricing-table td.td-feature {
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
}

.pricing-table tbody td.td-feature {
    text-align: center;
}

.pricing-table tbody td strong {
    color: var(--primary);
    font-size: 0.9rem;
}

.pricing-table .muted {
    display: block;
    font-size: 0.84rem;
    line-height: 1.6;
    margin-top: 4px;
}

/* 普惠版整列淡蓝底 + 描边加粗，凸显视觉中心 */
.pricing-table tbody td.td-ours {
    background: #f0f7ff;
    border-left: 3px solid var(--primary);
    border-right: 3px solid rgba(0, 102, 255, 0.35);
    box-shadow: inset 0 0 14px rgba(0, 102, 255, 0.04);
}

/* 底部按钮统一尺寸 */
.pricing-table tbody td .btn {
    min-width: 120px;
    justify-content: center;
}

/* 定价/差异表窄屏横向滚动 */
@media (max-width: 900px) {
    .comparison-table-wrapper { overflow-x: auto; }
    .pricing-table { min-width: 820px; }
    .diff-table { min-width: 680px; }
}

.btn-outline-dark {
    background: var(--text-white);
    color: var(--text-primary);
    border: 1px solid #d0d5dd;
}

.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.price-card-featured .btn-primary {
    background: var(--grad-primary);
}

.pricing-note {
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.pricing-note p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.pricing-note p:last-child { margin-bottom: 0; }

.pricing-note strong { color: var(--text-primary); }

.persona-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.persona-card {
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.persona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.25);
}

/* 顶部图标锚点：淡蓝底 + 品牌蓝单色 SVG */
.persona-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    margin-bottom: 14px;
}

.persona-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.persona-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.persona-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* 痛点：浅灰小字；解法：深色粗体 + 品牌蓝箭头 */
.persona-pain {
    color: #9aa4b2;
    margin-bottom: 10px;
}

.persona-solution {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.persona-solution svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--primary);
    margin-top: 3px;
}

.persona-solution strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover { border-color: rgba(0, 102, 255, 0.25); }

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 22px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   PRICING / FAQ RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .persona-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pricing-section,
    .faq-section { padding: 72px 0; }
}

/* ============================================
   信任背书（三列指标）
   ============================================ */
.about-metrics.metrics-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   Hero 卖点标签胶囊
   ============================================ */
.hero-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

/* Hero 主标题三行配色 */
.hero-line-action {
    color: var(--primary-light);
}

.hero-line-result {
    color: var(--accent);
    font-size: 1.08em;
}

.nowrap {
    white-space: nowrap;
}

/* Hero 专利背书：徽章样式 */
.hero-patent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #b0b0b0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(77, 148, 255, 0.35);
    padding: 8px 20px;
    border-radius: 100px;
    margin-top: 0;
    margin-bottom: 44px;
}

.hero-patent svg {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
    flex-shrink: 0;
}

.hero-patent strong {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   核心差异：三大卖点大字报卡片
   ============================================ */
.key-diffs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.key-diff-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    overflow: hidden;
    transition: all 0.35s ease;
}

.key-diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.key-diff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.key-diff-card:hover::before {
    transform: scaleX(1);
}

.key-diff-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    transition: all 0.35s ease;
}

.key-diff-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 核心卖点：降维打击——更强的蓝色高亮 */
.key-diff-card.is-core .key-diff-icon {
    background: rgba(0, 102, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.28);
}

.key-diff-card.is-core .key-diff-title {
    color: var(--primary);
}

.key-diff-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.key-diff-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   三步成策：Step 卡片
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-badge {
    display: inline-block;
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-white);
    background: var(--grad-primary);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.steps-advanced-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 56px 0 24px;
}

.steps-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 差异表：垂直居中，去内部横线，靠斑马线分区 */
.diff-table tbody td {
    vertical-align: middle;
    border-bottom: none;
}

/* 第一列“对比维度”：浅灰蓝底 + 右缘竖线，加粗右对齐紧贴蓝色主列 */
.diff-table td.td-feature {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    padding-right: 20px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

/* 斑马线（奇数行极浅灰、偶数行纯白），我方列与第一列各有专属底色 */
.diff-table tbody tr:nth-child(odd) td:not(.td-ours):not(.td-feature) {
    background: #f8fafc;
}

/* 表头：水平居中、垂直居中、加高 */
.diff-table thead th {
    text-align: center;
    vertical-align: middle;
    padding: 26px 24px;
}

/* 表头：TimelyTrader 列纯品牌蓝、大字加粗 */
.diff-table thead th.th-ours {
    background: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 22px 24px;
}

.diff-table .th-ours {
    border-left: 2px solid rgba(0, 102, 255, 0.35);
    border-right: 2px solid rgba(0, 102, 255, 0.35);
}

.diff-table .td-ours {
    background: rgba(0, 102, 255, 0.06);
    border-left: 2px solid rgba(0, 102, 255, 0.35);
    border-right: 2px solid rgba(0, 102, 255, 0.35);
}

/* 我方列文字层次：主句加粗放大，解释句更小更浅 */
.diff-table .td-ours strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.diff-table .td-ours .muted {
    display: block;
    font-size: 0.8rem;
    color: #9aa4b2;
    margin-top: 8px;
}

/* 我方列首行：绿勾与蓝字 flex 水平居中对齐 */
.diff-table .td-ours .ours-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 我方列勾选图标：绿色对勾 + 圆形背景 */
.diff-table .td-ours .check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 700;
}

/* 竞品列：灰色叉号前缀，弱化但形成左右对比 */
.diff-table thead th:last-child {
    background: #2b2f3a;
}

.diff-table tbody td:last-child {
    color: #8a8a8a;
    font-size: 0.92rem;
    line-height: 1.8;
}

.diff-table tbody td:last-child::before {
    content: '✕';
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: rgba(138, 138, 138, 0.12);
    color: #b6bcc6;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: -3px;
}

/* 对比维度列固定单行宽度 */
.diff-table .th-feature {
    width: 140px;
    white-space: nowrap;
}

/* 手机端横滑时固定“对比维度”和“TimelyTrader”两列 */
@media (max-width: 900px) {
    .diff-table th.th-feature,
    .diff-table td.td-feature {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .diff-table th.th-feature {
        background: #f8fafc;
    }

    .diff-table td.td-feature {
        background: #f8fafc;
    }

    .diff-table th.th-ours,
    .diff-table td.td-ours {
        position: sticky;
        left: 140px;
        z-index: 2;
    }
}

/* ============================================
   定价表：尊享版列（紫罗兰渐变）
   ============================================ */
.pricing-table thead th.th-premium {
    position: relative;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #a855f7 100%);
}

/* 尊享版“主推”角标：极小右上角标，不占标题空间 */
.th-flag {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 1px 7px;
    border-radius: 100px;
    letter-spacing: 0.04em;
}

.pricing-table tbody td.td-premium {
    background: #faf5ff;
    border-left: 3px solid var(--accent-2);
    border-right: 3px solid rgba(124, 58, 237, 0.35);
}

.pricing-table tbody td.td-premium strong {
    color: var(--accent-2);
}

.btn-premium {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #a855f7 100%);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: var(--text-white);
}

/* ============================================
   定价表：机构版列（黑金）
   ============================================ */
.pricing-table thead th.th-gold {
    background: linear-gradient(135deg, #23252b 0%, #8a6a17 100%);
}

.pricing-table tbody td.td-gold {
    background: #fffbf0;
    border-left: 1px solid #f0e4c0;
    border-right: 1px solid #f0e4c0;
    line-height: 1.7;
}

.pricing-table tbody td.td-gold strong {
    color: #a07808;
}

.btn-gold {
    background: linear-gradient(135deg, #1c1e24 0%, #8a6a17 55%, #d4af37 100%);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--text-white);
}

/* FAQ 区块：适用人群卡片与问题列表间距 */
.faq-section .persona-row {
    margin-top: 0;
    margin-bottom: 64px;
}

/* 新增组件响应式 */
@media (max-width: 1024px) {
    .steps-advanced-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .key-diffs,
    .steps-grid { grid-template-columns: 1fr; }
}

/* ============================================
   透明回测引擎（深色专业板块）
   ============================================ */
.transparent-backtest {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.transparent-backtest::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 102, 255, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.transparent-backtest .section-header { position: relative; z-index: 1; }
.transparent-backtest .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.transparent-backtest .section-title { color: #ffffff; }
.transparent-backtest .section-desc { color: var(--text-white-secondary); }

.tb-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.tb-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-lg);
    padding: 36px 34px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tb-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* 图标与标题同行：左图标右标题，垂直居中 */
.tb-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tb-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-bottom: 0;
}

.tb-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tb-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.tb-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.12);
    padding: 2px 10px;
    border-radius: 100px;
}

.tb-desc {
    font-size: 0.92rem;
    color: var(--text-white-secondary);
    line-height: 1.8;
}

/* 前后对比示意图 */
.tb-compare {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 40px;
}

.tb-compare-col { text-align: center; }

.tb-compare-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.tb-fake .tb-compare-label { color: #f87171; }
.tb-real .tb-compare-label { color: #4ade80; }

.tb-chart {
    height: 140px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tb-chart svg { width: 100%; height: 100%; display: block; }

.tb-compare-cap {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 14px;
}

.tb-compare-vs {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.tb-quote {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* 进阶亮点独立板块 */
.advanced-section {
    padding: 100px 0;
    background: var(--bg-section);
}

/* 进阶亮点两张卡片底部标签宽度对齐 */
.steps-advanced-grid .feature-highlight {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    word-spacing: 3px;
}

/* 三步走顶部断点续跑通栏横幅（主色渐变·荣誉牌匾版） */
.steps-banner {
    max-width: 880px;
    margin: 0 auto 44px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.9;
    color: #ffffff;
    background: var(--grad-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 18px 44px;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.3);
}

@media (max-width: 720px) {
    .steps-banner {
        border-radius: 20px;
        font-size: 0.95rem;
        padding: 14px 22px;
    }
}

/* 对比表：主标题加粗品牌亮蓝；解释文字深灰、行距 1.8 */
.diff-table .td-ours strong.ours-main {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1a8cff;
    line-height: 1.6;
    margin-bottom: 8px;
}

.diff-table .td-ours .muted {
    display: block;
    font-size: 0.92rem;
    color: #56607a;
    line-height: 1.8;
    margin-top: 6px;
}

/* 压缩第一列“对比维度”，给中间列让出展示空间；宽度保证最长维度词不折行 */
.diff-table .th-feature {
    width: 150px;
    white-space: nowrap;
}

.diff-table td.td-feature {
    white-space: nowrap;
}

.diff-table thead th.th-feature {
    background: #f8fafc;
    color: var(--text-primary);
    border-right: 1px solid #e2e8f0;
}

/* 透明回测板块响应式 */
@media (max-width: 900px) {
    .tb-cards { grid-template-columns: 1fr; }
    .tb-compare { grid-template-columns: 1fr; }
    .tb-compare-vs { justify-self: center; }
}

/* ============================================
   核心差异对比：横向卡片流（替代原生表格）
   ============================================ */
.diff-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

/* 悬浮表头：复用卡片三分结构，灰-蓝-白明显分列 */
.diff-cards-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.diff-cards-header .dc-feature {
    justify-content: center;
    padding: 16px 12px;
    font-size: 1.02rem;
}

.diff-cards-header .dc-ours,
.diff-cards-header .dc-them {
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.dh-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
}

.dh-pill-ours {
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 9px 32px;
    box-shadow: 0 8px 22px rgba(0, 102, 255, 0.35);
}

.dh-pill-ours .ours-crown {
    font-size: 1.3rem;
}

.dh-pill-them {
    background: #eef1f5;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 9px 24px;
}

/* 单张横向长条卡片 */
.diff-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.diff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* 统一行高：内容行卡片等高平整（表头卡除外） */
.diff-card:not(.diff-cards-header) {
    min-height: 110px;
}

/* 区块 A：对比维度（稍深灰底，右对齐贴近中间高亮区） */
.dc-feature {
    flex: 0 0 14%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #f1f5f9;
    border-right: 1px solid #e5e7eb;
    padding: 20px 16px;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
}

/* 区块 B：TimelyTrader 优势（淡蓝高光带：底色调淡，靠左右蓝描边勾出轨道） */
.dc-ours {
    flex: 0 0 52%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #edf4ff;
    border-left: 1px solid #c9ddfa;
    border-right: 1px solid #c9ddfa;
    padding: 22px 26px 22px 24px;
}

.dc-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 700;
}

.dc-text strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0a5bd3;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* 标题后的“仅 TimelyTrader 支持”小标签 */
.dc-tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 102, 255, 0.3);
    padding: 1px 9px;
    border-radius: 100px;
    vertical-align: 2px;
    white-space: nowrap;
}

.dc-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #56607a;
    line-height: 1.7;
}

/* 区块 C：传统软件劣势（纯白底） */
.dc-them {
    flex: 0 0 34%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 26px;
}

.dc-x {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(138, 138, 138, 0.12);
    color: #b6bcc6;
    font-size: 0.7rem;
    font-weight: 700;
}

.dc-them p {
    margin: 0;
    font-size: 0.9rem;
    color: #8a8a8a;
    line-height: 1.7;
}

/* 移动端：卡片内部上下堆叠 */
@media (max-width: 900px) {
    .diff-cards-header { display: none; }

    .diff-card {
        flex-direction: column;
    }

    .dc-feature,
    .dc-ours,
    .dc-them {
        flex: 1 1 auto;
        width: 100%;
    }

    .dc-feature {
        padding: 14px 20px;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    .dc-ours {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        align-items: flex-start;
    }

    .dc-them {
        align-items: flex-start;
    }
}

/* 对比表窄屏：同步第一列宽度变化 */
@media (max-width: 900px) {
    .diff-table th.th-ours,
    .diff-table td.td-ours {
        left: 150px;
    }
}

/* ============================================
   首发宣传横幅（Hero 顶部 · 新用户专享 3 个月全功能免费）
   金色礼盒配色：在深蓝 Hero 上醒目，同时保持和谐
   ============================================ */
.promo-banner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 10px 24px 10px 18px;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(245, 185, 66, 0.5);
    border-radius: 100px;
    box-shadow: 0 0 28px rgba(245, 185, 66, 0.18);
}

.promo-gift {
    font-size: 1.35rem;
    line-height: 1;
}

.promo-text {
    font-size: 0.98rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.promo-text strong {
    color: #f7c96b;
    font-weight: 700;
}

.promo-cta {
    flex-shrink: 0;
    display: inline-block;
    background: linear-gradient(135deg, #f5b942, #e89b1f);
    color: #1a1206;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 100px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-cta:hover {
    color: #1a1206;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 185, 66, 0.4);
}

@media (max-width: 640px) {
    .promo-banner {
        border-radius: 18px;
        padding: 12px 18px;
        gap: 8px;
    }

    .promo-text {
        font-size: 0.88rem;
    }

    .promo-cta {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}

/* ============================================
   🔥 2026-11-19 功能演示下拉菜单（hero 区「观看功能演示」）
   hover 展开为主通道；触屏无 hover，由 main.js 切 .open 类兜底
   ============================================ */
.demo-menu {
    position: relative;
    display: inline-block;
}

.demo-menu-caret {
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.demo-menu:hover .demo-menu-caret,
.demo-menu.open .demo-menu-caret {
    transform: rotate(180deg);
}

.demo-dropdown {
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    transform: translateX(-6px);
    width: 320px;
    padding: 8px;
    background: rgba(13, 20, 34, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(2, 6, 16, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 60;
}

/* hover 主通道（桌面端） */
.demo-menu:hover .demo-dropdown,
.demo-menu.open .demo-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* 按钮与菜单之间的空隙会导致 hover 断链：用透明桥补上 */
.demo-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 12px;
}

/* 中屏（≤1024px）：右侧空间可能不够，改为向左展开，同样是侧边不遮挡 */
@media (max-width: 1024px) and (min-width: 641px) {
    .demo-dropdown {
        left: auto;
        right: calc(100% + 12px);
        transform: translateX(6px);
    }

    .demo-menu:hover .demo-dropdown,
    .demo-menu.open .demo-dropdown {
        transform: translateX(0);
    }

    .demo-dropdown::before {
        left: auto;
        right: -12px;
    }
}

.demo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.demo-dropdown-item:hover {
    background: rgba(56, 132, 255, 0.14);
    transform: translateX(3px);
}

.demo-dropdown-icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(56, 132, 255, 0.16);
    color: #6ea8ff;
}

.demo-dropdown-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-dropdown-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: #f1f5f9;
}

.demo-dropdown-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.demo-dropdown-arrow {
    flex: none;
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.18s ease, transform 0.18s ease;
}

.demo-dropdown-item:hover .demo-dropdown-arrow {
    color: #6ea8ff;
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .demo-menu,
    .demo-menu .demo-menu-btn {
        width: 100%;
    }

    .demo-dropdown {
        left: 0;
        transform: translateY(6px);
        width: 100%;
    }

    .demo-menu:hover .demo-dropdown,
    .demo-menu.open .demo-dropdown {
        transform: translateY(0);
    }
}
