/* 极客暗黑风 (Premium Obsidian & Violet) */
/* Layout based on V5 (Big/Correct), Colors based on V2 (Violet) */
:root {
    --primary: #6366f1; /* Indigo */
    --secondary: #e879f9; /* Pink-purple */
    --accent: #22d3ee; /* Cyan */
    --yellow: #fbbf24; /* Amber */
    --bg-dark: #030712;
    --text-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);

    --c-bg: #030712;
    --c-card: rgba(255, 255, 255, 0.03);
    --c-text-main: #f8fafc;
    --c-text-sub: rgba(255, 255, 255, 0.7);
    --c-accent: #22d3ee;
    --c-accent-hover: #06b6d4;
    --c-accent-glow: #67e8f9;
    --c-border: rgba(255, 255, 255, 0.08);

    --c-code-bg: rgba(0, 0, 0, 0.25);
    --c-success: #10B981;
    --c-warning: #fbbf24;
    --c-danger: #ff5e5e;

    --g-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --g-overlay: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%);

    --f-main: 'Outfit', sans-serif;
    --f-mono: 'Outfit', monospace;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 20px 50px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #334155 var(--c-bg);
}

body {
    font-family: var(--f-main);
    background: radial-gradient(circle at 20% 20%, #1e1b4b, #030712 60%);
    color: var(--c-text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
}

.shape1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -150px;
    left: -150px;
}

.shape2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -200px;
    right: -200px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}


/* 背景光效 (Background Ambient) - Updated colors to Violet */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-spot {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.spot-1 {
    background: #7C3AED;
    /* Violet */
    top: -20%;
    left: 5%;
    animation: pulse 10s infinite alternate;
}

.spot-2 {
    background: #DB2777;
    /* Rose */
    bottom: -20%;
    right: 5%;
    animation: pulse 12s infinite alternate-reverse;
}

.grid-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.08;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}


/* 导航栏 (Navbar) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.02);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--g-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    /* Violet Shadow */
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.9rem;
    color: var(--c-text-sub);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--c-text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-text {
    color: var(--c-text-sub);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-text:hover {
    color: var(--c-text-main);
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--f-main);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--c-text-main);
    color: var(--c-bg);
}

.btn-primary:hover {
    background: #E2E8F0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

/* Hero 区域 */
.hero {
    padding-top: 160px;
    text-align: center;
    padding-bottom: 80px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--c-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--c-text-sub);
    margin-bottom: 2.5rem;
    font-family: var(--f-mono);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--c-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--c-success);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.text-gradient {
    background: var(--g-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    color: var(--c-text-sub);
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.glass-card {
    background: var(--c-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 800;
}
.logo i {
    background: var(--g-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}
.logo h1 {
    font-size: 5rem;
    margin: 0;
    line-height: 1;
}
.logo h1.text-gradient {
    background: var(--g-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}
.subtitle {
    margin-top: 10px;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 核心输入界面 (Input Interface) */
.input-interface {
    width: 100%;
    max-width: 1000px;
    background: var(--c-code-bg);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: left;
    position: relative;
    margin-bottom: 5rem;
}

.interface-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.tabs {
    display: flex;
    height: 100%;
}

.tab {
    padding: 0 24px;
    font-size: 0.85rem;
    color: var(--c-text-sub);
    border-right: 1px solid var(--c-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    transition: background 0.2s;
}

.tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-main);
    box-shadow: inset 0 -2px 0 var(--c-accent);
}

.tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02);
    color: var(--c-text-main);
}

/* Updated Action Bar (with Clear Button) */
.actions {
    padding-right: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Status Indicator (Restored as requested) */
.status-indicator {
    font-size: 0.75rem;
    color: var(--c-success);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--f-mono);
}

.count-indicator {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-text-sub);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.divider-v {
    width: 1px;
    height: 16px;
    background: var(--c-border);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--c-text-sub);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--c-danger);
    /* Trash -> Red */
    background: rgba(244, 63, 94, 0.1);
}

/* Rest of Interface Layout */
.interface-body {
    padding: 0;
    display: flex;
    height: 320px;
    /* More comfortable height */
    position: relative;
}

/* Tab Content Visibility */
.tab-content {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
}

.tab-content[style*="display: none"] {
    display: none !important;
}

/* Textarea Layout (Existing) */
.line-numbers {
    width: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    /* Match textarea padding top/bottom, no left/right for centering */
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--f-mono);
    font-size: 0.9rem;
    user-select: none;
    overflow: hidden;
    /* Programmatic scroll */
}

.line-numbers span {
    line-height: 1.6;
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.interface-body textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px;
    color: var(--c-text-main);
    font-family: var(--f-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    white-space: pre;
    overflow-x: auto;
    scrollbar-gutter: stable;
}

/* Import / Drag & Drop Layout (New) */
#tab-content-import {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.drop-zone {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.01);
    gap: 16px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--c-accent);
    background: rgba(124, 58, 237, 0.05);
    /* Violet hint */
}

.icon-large {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.drop-zone:hover .icon-large {
    color: var(--c-accent);
}

.drop-text {
    font-size: 1rem;
    color: var(--c-text-sub);
}

.drop-text .highlight {
    color: var(--c-accent-glow);
    font-weight: 600;
    cursor: pointer;
}

.drop-text .highlight:hover {
    text-decoration: underline;
}

.divider {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.btn-template {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--c-text-sub);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--f-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-template:hover {
    border-color: var(--c-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-main);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-text-main);
    background: transparent;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--c-text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* CSS Code Pill for inline code styling */
.code-pill {
    font-family: var(--f-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--c-accent-glow);
    margin: 0 2px;
}


/* Custom scrollbar for textarea */
.interface-body textarea::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.interface-body textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--c-code-bg);
    border-radius: 6px;
}

.interface-body textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.interface-body textarea::-webkit-scrollbar-corner {
    background: transparent;
}


.interface-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--c-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings {
    display: flex;
    gap: 24px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--c-text-sub);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-switch:hover {
    color: var(--c-text-main);
}

.toggle-switch input {
    display: none;
}

.slider {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #94A3B8;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.slider {
    background: var(--c-accent);
}

.toggle-switch input:checked+.slider::before {
    transform: translateX(18px);
    background: white;
}

/* Feature indicators - non-interactive feature status display */
.feature-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--c-text-sub);
}

.feature-indicator i {
    color: var(--c-accent);
    font-size: 0.9rem;
}

.btn-glow {
    background: var(--g-primary);
    color: white;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    gap: 8px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    /* Violet Glow */
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    /* Violet Glow */
    transform: translateY(-1px);
    filter: brightness(1.1);
}

/* 进度条覆盖层 */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.85);
    /* Matches brand, high opacity */
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    z-index: 10;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--c-text-main);
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--g-primary);
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
    /* Violet Glow */
}


/* 信任背书 */
.trusted-by {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.trusted-by span {
    font-size: 0.75rem;
    color: var(--c-text-sub);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

.logos {
    display: flex;
    gap: 3.5rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.15);
    transition: color 0.3s;
}

.logos:hover {
    color: rgba(255, 255, 255, 0.25);
}


/* Bento Grid (Features) */
.features-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--c-text-sub);
    font-size: 1.2rem;
    max-width: 600px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    auto-rows: 280px;
    gap: 1.5rem;
}

.card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom right, var(--c-card), #1A202C);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--c-text-main);
    margin-bottom: auto;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.card p {
    color: var(--c-text-sub);
    font-size: 1rem;
    line-height: 1.6;
}

/* Updated Grid Spans */
.span-3 {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.span-3 .content {
    flex: 1;
    padding-right: 3rem;
    max-width: 50%;
    /* Prevent text from being too wide */
}

/* Updated Visual Code block for Full Width */
.visual-code {
    background: #0D1117;
    padding: 24px;
    border-radius: 12px;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    flex: 1;
    /* Take remaining space */
    border: 1px solid var(--c-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    min-width: 400px;
}

.code-line {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.code-line:last-child {
    margin-bottom: 0;
}

.c-purple {
    color: #C084FC;
}

.c-blue {
    color: #60A5FA;
}

.c-green {
    color: #4ADE80;
}

.c-orange {
    color: #FB923C;
}

.c-gray {
    color: #64748B;
}

/* Visuals for Cards */
.visual-speed {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 40px;
    margin-top: 24px;
}

.speed-bar {
    width: 12px;
    background: var(--c-accent);
    border-radius: 3px;
    opacity: 0.3;
    transition: height 0.3s;
}

.card:hover .speed-bar.b1 {
    height: 75%;
    opacity: 0.6;
}

.card:hover .speed-bar.b2 {
    height: 90%;
    opacity: 0.8;
}

.card:hover .speed-bar.b3 {
    height: 100%;
    opacity: 1;
    box-shadow: 0 0 15px var(--c-accent);
}

.b1 {
    height: 60%;
}

.b2 {
    height: 80%;
}

.b3 {
    height: 100%;
    opacity: 0.8;
}

/* Visual Tags (Smart Detection) */
.visual-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--c-text-sub);
    font-family: var(--f-mono);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.card:hover .tag {
    background: rgba(255, 255, 255, 0.05);
}

.tag.video {
    color: #60A5FA;
    border-color: rgba(96, 165, 250, 0.2);
}

.tag.image {
    color: #F87171;
    border-color: rgba(248, 113, 113, 0.2);
}

.tag.doc {
    color: #34D399;
    border-color: rgba(52, 211, 153, 0.2);
}

/* Visual Security */
.visual-security {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 15px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-success);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.scan-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--c-success), transparent);
    opacity: 0.5;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}


/* CTA */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: var(--g-primary);
    border-radius: var(--radius-lg);
    padding: 4rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -10px rgba(124, 58, 237, 0.4);
    /* Violet Shadow */
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: white;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--c-accent);
    /* Violet Text */
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}


/* Footer */
.footer {
    border-top: 1px solid var(--c-border);
    padding: 5rem 0 3rem 0;
    color: var(--c-text-sub);
    font-size: 0.9rem;
    background: rgba(11, 14, 20, 0.5);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: white;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a:hover {
    color: var(--c-accent-glow);
}

/* 响应式 */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        auto-rows: auto;
    }

    .span-3 {
        grid-column: span 1;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .span-3 .content {
        padding-right: 0;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero {
        padding-top: 120px;
    }

    .input-interface {
        margin-bottom: 3rem;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .visual-code {
        width: 100%;
        min-width: 0;
        overflow-x: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
}

/* =========================================
   New Features: Terminal, Logs, Lang Switch
   ========================================= */

/* Terminal & Logs */
.terminal-container {
    width: 100%;
    max-width: 900px;
    background: #050505;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    margin-top: 24px;
    overflow: hidden;
    display: none;
    /* Hidden by default */
    font-family: var(--f-mono);
    box-shadow: var(--shadow-md);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--c-border);
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--c-text-sub);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-body {
    height: 200px;
    overflow-y: auto;
    padding: 12px;
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Increased gap for better separation */
}

.log-item {
    display: flex;
    gap: 12px;
    /* Increased gap */
    align-items: flex-start;
    /* Align to top for multi-line messages */
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
    /* Increased padding */
}

.log-time {
    color: #555;
    min-width: 90px;
    /* Wider for [HH:MM:SS] format */
    max-width: 90px;
    flex-shrink: 0;
    /* Don't shrink */
    text-align: left;
    /* Left align */
}

.log-item>span:last-child {
    flex: 1;
    word-break: break-word;
    /* Allow long URLs to wrap */
    text-align: left;
    /* Ensure left alignment */
}

.t-success {
    color: var(--c-success);
}

.t-error {
    color: var(--c-danger);
}

.t-info {
    color: var(--c-accent);
}

/* Failed Items Panel */
.failed-container {
    width: 100%;
    max-width: 900px;
    background: rgba(244, 63, 94, 0.05);
    /* Red tint */
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-md);
    margin-top: 24px;
    overflow: hidden;
    display: none;
}

.failed-header {
    background: rgba(244, 63, 94, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-danger);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.failed-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-fail-action {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #FECDD3;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-fail-action:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #fff;
    border-color: var(--c-danger);
}

.failed-list {
    padding: 16px;
    max-height: 180px;
    overflow-y: auto;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    text-align: left;
    /* Ensure left alignment */
}

.failed-item {
    color: #FB7185;
    margin-bottom: 6px;
    word-break: break-all;
    border-bottom: 1px solid rgba(244, 63, 94, 0.1);
    padding-bottom: 4px;
    text-align: left;
    /* Ensure left alignment */
    /* display: flex;
    align-items: flex-start;
    gap: 8px; */
}

.failed-item::before {
    content: "✕";
    flex-shrink: 0;
    color: #EF4444;
    font-size: 0.9rem;
}

.failed-reason {
    color: #999;
    font-size: 0.75rem;
    margin-left: 0;
    /* Remove left margin, handled by flex gap */
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Language Switcher */
.lang-switch {
    position: relative;
    cursor: pointer;
    color: var(--c-text-sub);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: 0.2s;
    border: 1px solid transparent;
}

.lang-switch:hover {
    color: var(--c-text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--c-border);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 140px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 4px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    z-index: 100;
    margin-top: 8px;
}

.lang-menu.show {
    display: flex;
    animation: fadeIn 0.2s;
}

.lang-option {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--c-text-sub);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-main);
}

.lang-option.active {
    color: var(--c-accent);
    background: rgba(124, 58, 237, 0.1);
}

.flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}