/**
 * 组件样式
 * 包含各种UI组件：Logo、卡片、按钮、标签、插画等
 */

/* ============================================
   顶部全宽公告条 (Top Banner)
   ============================================ */

/* CSS 变量：公告条高度，dismissed 后归零供 nav/hero 联动 */
:root {
    --top-banner-h: 50px;
}

body.banner-dismissed {
    --top-banner-h: 0px;
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-banner-h);
    z-index: 55;
    overflow: hidden;
    background: linear-gradient(105deg, #07091a 0%, #0f172a 35%, #0e1535 65%, #070a1c 100%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
}

body.banner-dismissed .top-banner {
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* 横扫式光晕动画 */
@keyframes bannerSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.top-banner-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(22, 93, 255, 0.06) 20%,
        rgba(124, 58, 237, 0.18) 40%,
        rgba(34, 211, 238, 0.12) 50%,
        rgba(124, 58, 237, 0.18) 60%,
        rgba(22, 93, 255, 0.06) 80%,
        transparent 100%
    );
    animation: bannerSweep 5s ease-in-out infinite;
    pointer-events: none;
}

/* 底部分割线：流光渐变 */
.top-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 5%,
        rgba(22, 93, 255, 0.4) 25%,
        rgba(124, 58, 237, 0.6) 45%,
        rgba(34, 211, 238, 0.8) 50%,
        rgba(124, 58, 237, 0.6) 55%,
        rgba(22, 93, 255, 0.4) 75%,
        transparent 95%
    );
}

.top-banner-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 52px;
}

.top-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.top-banner-badge {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(
        90deg,
        #ff0080, #ff4d00, #ffcc00, #00e676, #00b0ff, #7c4dff, #ff0080
    );
    background-size: 300% auto;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: badge-rainbow-bg 3s linear infinite, badge-bounce 2.4s ease-in-out infinite;
}

/* 白色光晕扫过 */
.top-banner-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 100%
    );
    animation: badge-shimmer 2.4s ease-in-out infinite;
    pointer-events: none;
}

/* 多色外发光 */
.top-banner-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff0080, #7c4dff, #00b0ff, #ff0080);
    background-size: 300% auto;
    animation: badge-rainbow-bg 3s linear infinite;
    filter: blur(6px);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.top-banner-text {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.top-banner-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    line-height: 1;
    display: none;
}

@media (min-width: 768px) {
    .top-banner-dot { display: inline; }
}

.top-banner-desc {
    font-size: 14px;
    font-weight: 500;
    color: #cfd6e1;
    display: none;
    letter-spacing: -0.005em;
}

@media (min-width: 768px) {
    .top-banner-desc { display: block; }
}

.top-banner-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(22, 93, 255, 0.85);
    color: rgba(255, 255, 255, 0.96);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    margin-left: 2px;
    border: 1px solid rgba(99, 146, 255, 0.35);
}

.top-banner-content:hover .top-banner-text {
    color: #ffffff;
}

.top-banner-content:hover .top-banner-action {
    background: #165DFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22, 93, 255, 0.5);
}

.top-banner-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: rgba(148, 163, 184, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.top-banner-close:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.09);
}

/* Nav 随公告条高度自动偏移 */
#main-nav {
    top: var(--top-banner-h, 50px);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   行内公告栏 (Hero Announcement Bar - 已移至顶部，保留样式备用)
   ============================================ */
@keyframes flowBorder {
    0% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

.announcement-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 6px 6px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    color: #334155; /* slate-700 */
    border-radius: 9999px;
    box-shadow: 0 4px 20px -4px rgba(22, 93, 255, 0.1);
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
    background-clip: padding-box;
}

/* AI 流光边框效果 */
.announcement-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 1px; /* 边框厚度 */
    background: linear-gradient(
        90deg,
        rgba(22, 93, 255, 0.15) 0%,
        rgba(124, 58, 237, 0.6) 15%,
        rgba(34, 211, 238, 1) 25%,
        rgba(124, 58, 237, 0.6) 35%,
        rgba(22, 93, 255, 0.15) 50%,
        rgba(22, 93, 255, 0.15) 50%,
        rgba(124, 58, 237, 0.6) 65%,
        rgba(34, 211, 238, 1) 75%,
        rgba(124, 58, 237, 0.6) 85%,
        rgba(22, 93, 255, 0.15) 100%
    );
    background-size: 200% 100%;
    animation: flowBorder 3s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.announcement-bar:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px -4px rgba(22, 93, 255, 0.15);
}

.announcement-bar:hover::before {
    animation-duration: 1.5s;
    filter: brightness(1.2);
}

.announcement-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.announcement-badge {
    background: linear-gradient(135deg, var(--brand-primary, #165DFF), #3b82f6);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.announcement-title {
    font-weight: 800;
    color: #0f172a;
}

.announcement-desc {
    color: #64748b; /* slate-500 */
    font-weight: 600;
    display: none;
}

@media (min-width: 1024px) {
    .announcement-desc {
        display: block;
    }
}

.announcement-action {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    color: var(--brand-primary, #165DFF);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.announcement-action:hover {
    background: var(--brand-primary, #165DFF);
    color: #ffffff;
    border-color: var(--brand-primary, #165DFF);
    transform: translateY(-1px);
}

.announcement-action:active {
    transform: translateY(0);
}

/* ============================================
   块点插画舞台样式
   ============================================ */
#stage {
    position: relative;
    width: 1000px;
    height: 650px;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.view-container {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateZ(0);
}

.view-container.active {
    opacity: 1;
    visibility: visible;
}

#virtual-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    opacity: 0;
}

#ghost-block {
    position: absolute;
    width: 160px;
    height: 100px;
    background: white;
    border: 2px solid var(--brand-primary);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(51, 112, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--brand-primary);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

#component-panel {
    position: absolute;
    top: 80px;
    right: 40px;
    width: 240px;
    padding: 16px;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transform: translateY(-10px);
}

.comp-item {
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}
.comp-item:hover {
    background: rgba(51, 112, 255, 0.05);
}

.sidebar-nav-item {
    position: relative;
    transition: all 0.2s ease;
}
.sidebar-nav-item.active {
    color: var(--brand-primary);
    background: rgba(51, 112, 255, 0.08);
}

.grid-cell {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 12px;
    font-size: 13px;
}

.progress-bar-fill {
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.gantt-bar {
    height: 24px;
    border-radius: 4px;
    position: relative;
}

/* ============================================
   AI 头像 Logo 样式
   ============================================ */
.logo-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.logo-avatar:active { transform: scale(0.95); }
.logo-fluid {
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, #006fee 0%, #5da5ff 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    position: relative;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.3),
                0 2px 5px rgba(0, 111, 238, 0.3);
    animation: logo-morph 6s ease-in-out infinite;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease;
}
.logo-face {
    display: flex;
    gap: 4px;
    z-index: 2;
    transform: translateY(-1.5px);
}
.logo-eye {
    width: 2.5px;
    height: 4px;
    background: #fff;
    border-radius: 3px;
    animation: logo-blink 4s infinite;
}
.logo-eye:last-child { animation-delay: 0.1s; }

/* 交互状态：分析模式 */
.logo-avatar.processing .logo-fluid {
    background: linear-gradient(135deg, #0056b3 0%, #006fee 100%);
    animation-duration: 2s;
}
.logo-avatar.processing .logo-eye {
    height: 1.5px;
    animation: none;
}

/* ============================================
   对比滑块组件
   ============================================ */
.comparison-container {
    position: relative;
    width: 100%;
    height: 700px;
    border-radius: 3.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.01),
        0 50px 120px -30px rgba(0, 0, 0, 0.08);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 背景氛围光晕 - 极光配色 - 性能优化：降低blur值 */
.aura-blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: aura-drift 20s infinite alternate ease-in-out;
    will-change: transform;
}

.aura-1 { background: radial-gradient(circle, #fbbf24, transparent); top: -30%; left: -20%; animation-delay: -2s; }
.aura-2 { background: radial-gradient(circle, #165DFF, transparent); bottom: -30%; right: -20%; animation-delay: -5s; }
.aura-3 { background: radial-gradient(circle, #8b5cf6, transparent); top: 10%; right: 5%; opacity: 0.08; }

.comparison-before, .comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-after {
    clip-path: inset(0 0 0 50%);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5), rgba(232, 243, 255, 0.6));
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(22, 93, 255, 0.1) 15%, 
        rgba(22, 93, 255, 0.4) 50%, 
        rgba(22, 93, 255, 0.1) 85%, 
        transparent
    );
    z-index: 30;
    cursor: ew-resize;
    pointer-events: auto;
    transform: translateX(-50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #165DFF, transparent);
    box-shadow: 0 0 15px rgba(22, 93, 255, 0.6);
    transform: translateX(-50%);
    opacity: 0.8;
}

/* 扫描流光 */
.slider-handle::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    transform: translateX(-50%);
    filter: blur(2px);
    z-index: 32;
    animation: slider-scan 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-button {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 0 1px rgba(22, 93, 255, 0.1),
        0 10px 30px -5px rgba(22, 93, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.8) inset;
    z-index: 31;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: #165DFF;
}

.slider-handle:hover .slider-button {
    width: 62px;
    height: 62px;
    background: #ffffff;
    border-color: #165DFF;
    box-shadow: 
        0 0 0 6px rgba(22, 93, 255, 0.08),
        0 20px 40px -10px rgba(22, 93, 255, 0.4),
        0 0 30px rgba(22, 93, 255, 0.2) inset;
}

.slider-button svg {
    width: 22px;
    height: 22px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slider-handle:hover .slider-button svg {
    transform: scale(1.1) rotate(180deg);
}

.slider-handle:active .slider-button {
    transform: translate(-50%, -50%) scale(0.92);
    background: #165DFF;
    color: #fff;
    box-shadow: 0 5px 15px rgba(22, 93, 255, 0.4);
}

.slider-handle.is-dragging {
    width: 4px;
    background: rgba(22, 93, 255, 0.6);
    box-shadow: 0 0 30px rgba(22, 93, 255, 0.8);
}

.slider-handle.is-dragging .slider-button {
    transform: translate(-50%, -50%) scale(0.9);
    background: #165DFF;
    color: #fff;
}

/* ============================================
   Copilot 风格卡片
   ============================================ */
.copilot-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 20px 40px -10px rgba(0, 0, 0, 0.05),
        0 0 30px -5px var(--aura-color, rgba(22, 93, 255, 0.15));
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: visible;
}

.copilot-card:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 30px 60px -15px rgba(0, 0, 0, 0.05),
        0 0 50px -5px var(--aura-color, rgba(22, 93, 255, 0.3));
}

/* ============================================
   状态徽章和标签
   ============================================ */
.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-error { background: #fee2e2; color: #ef4444; }
.status-success { background: #dcfce7; color: #22c55e; }

.floating-ui {
    position: absolute;
    will-change: transform;
}

.slider-label {
    position: absolute;
    bottom: 2.5rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    z-index: 20;
    pointer-events: none;
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.slider-label-left { 
    left: 2.5rem; 
    color: #64748b;
    background: rgba(241, 245, 249, 0.4);
    border: 1px solid rgba(241, 245, 249, 0.5);
}

.slider-label-right { 
    right: 2.5rem; 
    color: #165DFF;
    background: rgba(232, 243, 255, 0.4);
    border: 1px solid rgba(22, 93, 255, 0.2);
}

/* UI 标签 */
.ui-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ui-tag-theme { background: rgba(232, 243, 255, 0.6); color: #165DFF; backdrop-filter: blur(4px); }
.ui-tag-emerald { background: rgba(209, 250, 229, 0.6); color: #059669; backdrop-filter: blur(4px); }
.ui-tag-amber { background: rgba(254, 243, 199, 0.6); color: #d97706; backdrop-filter: blur(4px); }

/* 通知气泡 */
.notification-bubble {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* 图表柱状条 */
.chart-bar {
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   阶段指示器和变形元素
   ============================================ */
.stage-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.stage-indicator.active {
    background: #165DFF;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(22, 93, 255, 0.4);
}

/* 元素变形样式 */
.morph-element {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   浏览器模拟框
   ============================================ */
.browser-mockup {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 20px 50px -12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    animation: aurora-pulse 8s infinite alternate ease-in-out;
}

.browser-header {
    background: rgba(248, 250, 252, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

/* 工作流阶段 */
.workflow-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.95) translateY(20px);
}

.workflow-stage.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

/* ============================================
   CopilotKit 风格列表 TAB
   ============================================ */
.step-tab {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
    margin-left: -2px;
    cursor: pointer;
}

.step-tab.active {
    background: linear-gradient(90deg, rgba(22, 93, 255, 0.08) 0%, transparent 100%);
    border-left-color: var(--accent-blue, #165DFF);
    border-radius: 0 16px 16px 0;
    transform: translateX(4px);
}

.step-tab:hover:not(.active) {
    background: rgba(22, 93, 255, 0.03);
    transform: translateX(2px);
}

.step-tab.active .step-icon {
    background: white;
    color: var(--accent-blue, #165DFF);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.step-tab.active h3 {
    color: #0f172a;
}

.step-content {
    display: none !important;
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-content.active {
    display: flex !important;
}

/* ============================================
   下载弹窗与工具宣传卡片
   ============================================ */
.tool-promo-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.tool-promo-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-promo-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tool-promo-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 600;
}

.download-modal-panel {
    position: relative;
    width: min(100%, 560px);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    box-shadow: 0 40px 120px -40px rgba(15, 23, 42, 0.45);
    animation: download-modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #94a3b8;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.download-modal-close:hover,
.download-modal-close:focus-visible {
    color: #0f172a;
    background: #e2e8f0;
    outline: none;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-option:hover,
.download-option:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(22, 93, 255, 0.35);
    box-shadow: 0 16px 36px -24px rgba(22, 93, 255, 0.65);
    outline: none;
}

.download-option-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 18px;
}

.download-option-title,
.download-option-desc {
    display: block;
}

.download-option-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.download-option-desc {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.download-option-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #165DFF;
    font-size: 11px;
    font-weight: 900;
}

@keyframes download-modal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   响应式组件调整
   ============================================ */
@media (max-width: 768px) {
    .comparison-container {
        height: 500px;
        border-radius: 2rem;
    }
    
    #order-main-card {
        width: 90% !important;
        height: auto !important;
        padding: 1.5rem !important;
    }

    .slider-label {
        bottom: 1.5rem !important;
        font-size: 0.6rem !important;
        padding: 4px 10px !important;
    }

    .slider-label-left { left: 1.5rem !important; }
    .slider-label-right { right: 1.5rem !important; }

    .download-modal-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .download-option {
        align-items: flex-start;
    }

    .download-option-status {
        display: none;
    }
}

@media (max-width: 480px) {
    .comparison-container {
        height: 400px;
    }
    
    .slider-button {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================================
   通用毛玻璃卡片 (.card-glass)
   workflow-loop 等区域 8+ 处重复 utility 串的统一抽象
   ============================================ */
.card-glass {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px -12px rgba(15, 23, 42, 0.1);
    box-shadow:
        0 8px 40px -12px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(226, 232, 240, 0.2);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

@media (min-width: 768px) {
    .card-glass {
        padding: 1.75rem;
    }
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px -16px rgba(37, 99, 235, 0.12),
        0 0 0 1px rgba(22, 93, 255, 0.15);
}

.card-glass__top-line {
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #fff, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.card-glass__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent-blue, #165DFF);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.card-glass:hover .card-glass__icon {
    background: rgba(255, 255, 255, 0.8);
}

.card-glass__icon > i,
.card-glass__icon > svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.75;
}

@media (min-width: 768px) {
    .card-glass__icon > i,
    .card-glass__icon > svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (min-width: 768px) {
    .card-glass__icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1.25rem;
    }
}

.card-glass__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.card-glass__desc {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(71, 85, 105, 0.95);
    font-weight: 400;
}

@media (min-width: 768px) {
    .card-glass__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .card-glass__desc {
        font-size: 0.875rem;
    }
}
