/* ==========================================================================
   AI Director Studio - 3D Camera Fly-through Showcase Styles
   ========================================================================== */

.flagship-3d-scroll-container {
    position: relative;
    width: 100%;
    height: 480vh; /* Long scroll path to stretch out the 3D scroll stages */
    margin: 0.5rem 0 0 0;
    box-sizing: border-box;
}

.flagship-3d-sticky-view {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #020202;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1.2rem 0; /* Shrink padding to give more vertical space to UI page */
    box-sizing: border-box;
}

/* Ambient backdrop radial gradient to add drama */
.flagship-3d-sticky-view::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Top Header Text (Apple/Vivo Launch Event Style)
   ========================================================================== */
.flagship-intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    
    /* Initial state before JS entrance animation takes over */
    opacity: 0;
    transform: translateY(-45px);
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    will-change: opacity, transform;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.flagship-intro-text .intro-badge {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.24rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.35rem; /* Shrink badge margin */
}

.flagship-intro-text h2 {
    font-family: 'AlibabaPuHuiTi-Heavy', var(--font-ui) !important;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem); /* Slightly smaller header font */
    font-weight: 900 !important;
    margin: 0 0 0.35rem 0; /* Shrink header margin */
    letter-spacing: 0.12rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-stroke: 0.3px #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.flagship-intro-text .intro-subtitle {
    font-size: 0.82rem; /* Slightly smaller subtitle font */
    color: var(--text-soft);
    margin: 0 0 0.75rem 0; /* Shrink subtitle margin */
    letter-spacing: 0.06rem;
}

.flagship-intro-text .intro-quotes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem; /* Shrink quotes gap */
    margin-top: 0.2rem;
}

.flagship-intro-text .quote-item {
    font-family: var(--font-serif);
    font-size: 0.86rem; /* Slightly smaller quotes font */
    color: rgba(255, 255, 255, 0.85);
    opacity: 0.85;
    letter-spacing: 0.03rem;
}

/* ==========================================================================
   3D Scene Wrapper (Middle Area)
   ========================================================================== */
.scene-3d-wrapper {
    perspective: 620px; /* Reduced from 1200px for super-wide-angle impact */
    perspective-origin: 50% 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.scene-3d-root {
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Driven by JS translation along Z (strictly horizontal perspective) and offset vertically to avoid spec overlaps in Stage 1 */
    transform: translateZ(0px) rotateX(0deg) rotateZ(0deg) translateY(-1.0rem);
    will-change: transform;
}

/* ==========================================================================
   Tilted Canvas Plate (Mockup Editor Display - Compact & Horizontally Aligned)
   ========================================================================== */
.tilted-canvas-plate {
    position: absolute;
    transform-style: preserve-3d;
    
    /* Initial state before JS entrance animation takes over (hidden & offscreen bottom) */
    opacity: 0;
    transform: translate3d(0, 680px, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);

    width: 1020px; /* Expand width to make the UI page larger and more detailed */
    height: 560px; /* Expand height to capture the full interface details */
    background: rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.95), 0 0 100px rgba(123, 97, 255, 0.12);
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    box-sizing: border-box;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    will-change: transform, opacity;
}

/* Curved screen bezel overlay */
.tilted-canvas-plate::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Canvas Grid Pattern */
.canvas-grid-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* Mock Header */
.canvas-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
    font-family: var(--font-ui);
}

.canvas-mock-header .brand-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-mock-header .brand-title {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.canvas-mock-header .brand-badge {
    background: rgba(123, 97, 255, 0.12);
    border: 1px solid rgba(123, 97, 255, 0.25);
    color: #c4b6ff;
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.canvas-mock-header .status-bar {
    font-size: 9px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
}

/* Canvas Nodes */
.canvas-nodes-layer {
    position: relative;
    flex-grow: 1;
    width: 100%;
    z-index: 2;
    transform-style: preserve-3d;
}

.mock-canvas-node {
    position: absolute;
    width: 226px;
    padding: 15px 18px 13px;
    box-sizing: border-box;
    background: linear-gradient(155deg, rgba(18, 20, 26, 0.96) 0%, rgba(9, 10, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateZ(8px);
    font-family: var(--font-ui);
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.mock-canvas-node:hover {
    border-color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid #ffffff;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.98), 0 0 28px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: translateZ(16px) scale(1.02);
}

.mock-canvas-node .node-mock-hdr {
    display: block;
    margin-bottom: 12px;
}

.mock-canvas-node .node-hdr-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    word-break: break-word;
}

.mock-canvas-node .node-affordance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 9px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.06em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mock-canvas-node:hover .node-affordance-bar {
    color: rgba(255, 255, 255, 0.95);
}

.mock-canvas-node .affordance-arrow {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mock-canvas-node:hover .affordance-arrow {
    transform: translate(2.5px, -2.5px);
    color: #ffffff;
}

/* Node Handles */
.mock-node-dot-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #090a0e;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mock-canvas-node:hover .mock-node-dot-handle {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}
.mock-node-dot-handle.left { left: -3.5px; }
.mock-node-dot-handle.right { right: -3.5px; }

/* SVG Connection Overlay */
.canvas-svg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.svg-edge-line {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1.5;
    fill: none;
}

.svg-edge-pulse {
    stroke: rgba(255, 255, 255, 0.75);
    stroke-width: 1.5;
    fill: none;
    stroke-dasharray: 6, 18;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.45));
    animation: edgeDashPulse 4s linear infinite;
}

@keyframes edgeDashPulse {
    to {
        stroke-dashoffset: -100;
    }
}

/* ==========================================================================
   Bottom Technical Specifications Grid (Vivo Style)
   ========================================================================== */
.flagship-intro-specs {
    display: grid;
    grid-template-columns: repeat(6, 150px); /* 6 Column layout parallel, widened from 120px to 150px */
    gap: 28px; /* Increased gap from 16px to 28px for breathability */
    justify-content: center;
    align-items: end; /* Align items to bottom of grid row so expanding hovered cards grows upwards and does not stretch other items */
    z-index: 10;
    width: 100%;
    max-width: 1200px; /* Widened max-width from 900px */
    padding: 0 24px;
    box-sizing: border-box;
    will-change: opacity, transform;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;

    /* Absolute positioning to pin the cards to the bottom of the viewport, below the UI screen */
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Initial state before staggered entrance */
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    will-change: transform, border-color, background-color, box-shadow, opacity;
}

/* Staggered Entrance Animation for 6 Cards */
.flagship-intro-specs.stagger-in .spec-badge,
.flagship-intro-specs.entrance-done .spec-badge {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flagship-intro-specs.stagger-in .spec-badge:nth-child(1) { transition-delay: 0ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(2) { transition-delay: 80ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(3) { transition-delay: 160ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(4) { transition-delay: 240ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(5) { transition-delay: 320ms; }
.flagship-intro-specs.stagger-in .spec-badge:nth-child(6) { transition-delay: 400ms; }

.spec-badge:hover {
    border-color: rgba(255, 255, 255, 0.38); /* Pure titanium white border on hover */
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.08);
}

.spec-badge-val {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    font-family: var(--font-ui);
    transition: color 0.3s ease;
}

.spec-badge:hover .spec-badge-val {
    color: #ffffff; /* Pure white highlight on hover, no gold */
}

.spec-badge-lbl {
    font-size: 9px;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    font-family: var(--font-ui);
}

/* Collapsible Description Detail */
.spec-badge-desc {
    font-size: 9.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-badge:hover .spec-badge-desc {
    max-height: 120px; /* Expands to fit content */
    opacity: 1;
    margin-top: 10px;
    transform: translateY(0);
}

/* Summary Text Section above the cards */
.specs-summary-text {
    position: absolute;
    top: 4.8rem; /* Place below site nav (which is top: 1.25rem) */
    left: 0;
    right: 0;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 10;
    width: 100%;
    max-width: 720px; /* Limit width for elegant layout */
    box-sizing: border-box;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-45px);
    will-change: opacity, transform;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.specs-summary-text h3 {
    font-family: 'AlibabaPuHuiTi-SemiBold', var(--font-ui) !important;
    font-size: clamp(1.2rem, 2.1vw, 1.55rem) !important;
    font-weight: 500 !important; /* SemiBold/Regular rendering, no synthetic heavy weight */
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-stroke: none !important; /* Remove stroke border to look thinner */
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
    margin: 0 0 10px 0;
}

.specs-summary-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.specs-summary-desc {
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Responsive Layout */
@media (max-width: 1100px) {
    .flagship-intro-specs {
        grid-template-columns: repeat(3, 150px);
        gap: 24px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .spec-badge {
        backdrop-filter: blur(4px); /* Performance-sensitive blur downgrade */
        -webkit-backdrop-filter: blur(4px);
    }
}

@media (max-width: 600px) {
    .flagship-intro-specs {
        grid-template-columns: repeat(2, 140px);
        gap: 16px;
        max-width: 340px;
    }
}

/* ==========================================================================
   3D Constellation Dome and Node Styles
   ========================================================================== */

#dome-starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dome-canvas-nodes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transform-style: preserve-3d;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* Standardized Dome Node Card */
/* 3D Art Landscape Terrain Layering & Parallax */
.scene-3d-terrain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0.8; /* behind starry sky canvas and cards */
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-image: url('assets/app-dev-cosmos-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
}

.cosmos-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.terrain-ground-grid {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) perspective(300px) rotateX(76deg);
    transform-origin: center bottom;
    width: 160%;
    height: 320px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 85%);
    z-index: 0; /* behind all mountain ridges */
    opacity: 0.85;
    pointer-events: none;
}

.terrain-ridge {
    position: absolute;
    bottom: 0;
    left: -12%; /* Over-extend width slightly for horizontal rotation/pan visual safety margin */
    width: 124%;
    height: 100%;
    transform-origin: center bottom; /* Keep bottom aligned when scaled */
    will-change: transform;
}

.ridge-far {
    transform: translate3d(0, 30px, -300px) scale(2.0);
    z-index: 1;
    opacity: 0.75;
}

.ridge-mid {
    transform: translate3d(0, 50px, -150px) scale(1.6);
    z-index: 2;
    opacity: 0.88;
}

.ridge-near {
    transform: translate3d(0, 80px, 0px) scale(1.15);
    z-index: 3;
    opacity: 1;
}

/* Standardized Dome Node Card - Obsidian Machined Minimalist */
.dome-canvas-node {
    position: absolute;
    width: 226px;
    padding: 15px 18px 13px;
    box-sizing: border-box;
    background: linear-gradient(155deg, rgba(18, 20, 26, 0.96) 0%, rgba(9, 10, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-family: var(--font-ui);
    will-change: transform;
    contain: layout style;
    pointer-events: auto;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.3s ease;
}

/* Card Hover: High-contrast pure white/titanium glint */
.dome-canvas-node:hover {
    border-color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid #ffffff;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.98), 0 0 28px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dome-canvas-node .node-mock-hdr {
    display: block;
    margin-bottom: 12px;
}

.dome-canvas-node .node-hdr-title {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    word-break: break-word;
}

.dome-canvas-node .node-affordance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 9px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.06em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dome-canvas-node:hover .node-affordance-bar {
    color: rgba(255, 255, 255, 0.95);
}

.dome-canvas-node .affordance-arrow {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dome-canvas-node:hover .affordance-arrow {
    transform: translate(2.5px, -2.5px);
    color: #ffffff;
}

/* Dimming effect for non-focused nodes */
.dome-canvas-node.dimmed {
    opacity: 0.12;
    pointer-events: none;
    filter: blur(1.5px);
}

/* ==========================================================================
   Flagship Epilogue (Cinematic Typography)
   ========================================================================== */
.flagship-epilogue-section {
    position: relative;
    width: 100%;
    /* Act as the scroll buffer + final page */
    padding: 25vh 20px 20vh 20px;
    background: #020202;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 10;
}

.flagship-epilogue-section .epi-content {
    max-width: 540px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.epi-stanza {
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 2.6;
    letter-spacing: 0.25em;
    font-weight: 300;
    margin: 0 0 1.2rem 0;
    color: rgba(220, 220, 225, 0.9);
    transition-duration: 1.4s;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

.epi-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    margin: 4rem auto;
    transition-duration: 1.2s;
}

.epi-tips-intro {
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
    line-height: 2.2;
    letter-spacing: 0.2em;
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    transition-duration: 1.2s;
}

.epi-tips {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
}

.epi-tip-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 2.2;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    font-family: 'SimSun', 'Songti SC', 'STSong', serif;
    transition-duration: 1.2s;
}

.epi-tip-item:hover {
    border-left-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Contextual Floating Benchmark Sticky Note (Right Viewport Edge)
   Mounted only within Canvas / Starfield / Node Deep-Dive view
   ========================================================================== */
.benchmark-floating-tag {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 100050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 仅在画布页面/星空页面/节点详情时挂载就位 */
.benchmark-floating-tag.is-mounted {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.benchmark-tag-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.95rem 0.55rem 0.8rem;
    background: rgba(14, 15, 20, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3.5px solid #4ea57f; /* 便签索引高亮指示带 */
    border-right: none;
    border-radius: 4px 0 0 4px; /* 便签规整几何轮廓，摒弃简单圆形 */
    cursor: pointer;
    box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    writing-mode: horizontal-tb;
    text-orientation: initial;
    color: #e5e5ea;
    /* 默认收敛缩进，仅露出左端约 42px 的便签头（绿条 + 便签图标 + 指示灯） */
    transform: translateX(calc(100% - 42px));
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.36s ease;
}

.benchmark-floating-tag:hover .benchmark-tag-btn,
.benchmark-tag-btn:hover,
.benchmark-tag-btn:focus-visible {
    /* 鼠标悬停或聚焦时平滑探出完整便签卡片 */
    transform: translateX(0);
    background: rgba(20, 22, 28, 0.98);
    border-color: rgba(255, 255, 255, 0.25);
    border-left-color: #4ea57f;
    box-shadow: -10px 10px 32px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.note-tab-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease;
}

.benchmark-tag-btn:hover .note-tab-head {
    color: #ffffff;
}

.note-tab-icon {
    display: block;
    flex-shrink: 0;
}

.tag-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ea57f;
    box-shadow: 0 0 8px #4ea57f;
    flex-shrink: 0;
    animation: tagPulse 2s infinite ease-in-out;
}

@keyframes tagPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px #4ea57f; }
}

.tag-text {
    font-family: var(--font-ui), sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.benchmark-floating-tag:hover .tag-text,
.benchmark-tag-btn:hover .tag-text,
.benchmark-tag-btn:focus-visible .tag-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* ==========================================================================
   Modular imports for drawer and deepdive overlay
   ========================================================================== */
@import url('archive-app-dev-benchmark-drawer.css');
@import url('archive-app-dev-canvas-deepdive.css');

/* Responsive Degradation */
@media (max-width: 768px) {
    .benchmark-floating-tag {
        top: auto;
        bottom: 20px;
        right: 14px;
        transform: translateY(30px);
        opacity: 0;
        pointer-events: none;
    }

    .benchmark-floating-tag.is-mounted {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .benchmark-tag-btn {
        writing-mode: horizontal-tb;
        border-radius: 4px;
        padding: 0.5rem 0.85rem;
        flex-direction: row;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 3px solid #4ea57f;
        transform: none;
    }

    .benchmark-floating-tag:hover .benchmark-tag-btn,
    .benchmark-tag-btn:hover {
        transform: none;
    }

    .tag-pulse-dot {
        margin-bottom: 0;
        margin-right: 0.3rem;
    }

    .tag-text {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
