/* CSS Reset and Variables */
:root {
    --primary-color: #0064C8;
    --primary-hover: #0050a0;
    --secondary-color: #1677FF;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    --border-color: #e5e7eb;
    --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-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo-icon {
    font-size: 1.4rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #ebf2ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0064C8 0%, #0050a0 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 100, 200, 0.25);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1677FF 0%, #0064C8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 100, 200, 0.35);
    color: #ffffff;
}

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #cbd5e1;
    color: #111827;
    transform: translateY(-2px);
}

/* Browser Mockup */
.browser-window {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    transform: perspective(1000px) rotateX(1deg);
    transition: transform 0.5s ease;
}

.browser-window:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.browser-header {
    background-color: #f1f5f9;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

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

.red {
    background-color: #ef4444;
}

.yellow {
    background-color: #f59e0b;
}

.green {
    background-color: #10b981;
}

.browser-address-bar {
    background-color: white;
    padding: 6px 12px;
    border-radius: 4px;
    flex-grow: 1;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid #e2e8f0;
    text-align: left;
}

.browser-body {
    height: 480px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-content {
    width: 100%;
    height: 100%;
}

.mockup-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background-color: #f8fafc;
}

.mockup-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1f2937;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.comparison-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.comparison-box {
    flex: 1;
    max-width: 450px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comparison-box.before {
    border-top: 4px solid #94a3b8;
}

.comparison-box.after {
    border-top: 4px solid var(--primary-color);
    background: linear-gradient(to bottom right, #ffffff, #f0f7ff);
}

.comparison-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-box.before .comparison-header {
    color: #64748b;
}

.comparison-box.after .comparison-header {
    color: var(--primary-color);
}

.comparison-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.comparison-box.before .fa-xmark {
    color: #ef4444;
    margin-top: 4px;
}

.comparison-box.after .fa-check {
    color: #10b981;
    margin-top: 4px;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #cbd5e1;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: white;
}

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

.step-card {
    text-align: center;
    position: relative;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.credits a {
    color: white;
    font-weight: 500;
}

.credits a:hover {
    color: var(--primary-color);
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-right a {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-right a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .comparison-container {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   Interactive Demo Stage Styles
   ========================================= */
.demo-stage {
    display: flex;
    height: 100%;
    background-color: #f7f9fb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

/* Sidebar */
.demo-sidebar {
    width: 220px;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    flex-shrink: 0;
}

.demo-sidebar-title {
    padding: 0 20px 12px;
    font-size: 12px;
    color: #8c8c8c;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.demo-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    background: none;
    color: #4b5563;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.demo-nav-btn i {
    width: 20px;
    text-align: center;
}

.demo-nav-btn:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.demo-nav-btn.active {
    background-color: #e6f7ff;
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    font-weight: 500;
}

/* Viewport */
.demo-viewport {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
    background-color: #f7f9fb;
}

.scenario-view {
    display: none;
    height: 100%;
}

.scenario-view.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aliyun UI Components mimic */
.aliyun-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ali-btn {
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    line-height: 1.5;
}

.ali-btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
}

.ali-btn-primary:hover {
    background-color: var(--primary-hover);
}

.ali-btn-outline {
    background: white;
    border-color: #d9d9d9;
    color: #1f2937;
}

.ali-btn-outline:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.ali-btn-danger-outline {
    background: white;
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.ali-btn-danger-outline:hover {
    background: #fff1f0;
}

.ali-search-bar {
    border: 1px solid #d9d9d9;
    padding: 6px 12px;
    border-radius: 4px;
    color: #bfbfbf;
    font-size: 14px;
    width: 240px;
    background: #fff;
    cursor: text;
}

.ali-search-bar:hover {
    border-color: var(--primary-color);
}

/* Table Style */
table.aliyun-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.aliyun-table th {
    background-color: #fafafa;
    color: #1f2937;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.aliyun-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #4b5563;
}

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

.aliyun-table tr:hover td {
    background-color: #fafafa;
}

/* Badges & Avatars */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    background: #f5f5f5;
    color: #666;
}

.status-badge.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-badge.pending {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

/* Scenario 2 Grid */
.app-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.app-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.app-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d9d9d9;
}

.app-active .app-card {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

/* Scenario 3 Work Item */
.work-item-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wi-header {
    margin-bottom: 12px;
    font-size: 14px;
    color: #888;
}

.wi-id {
    color: var(--primary-color);
    margin-right: 10px;
    font-family: monospace;
}

.wi-title {
    font-size: 20px;
    margin-bottom: 24px;
    color: #333;
}

.wi-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.wi-field label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.wi-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.avatar {
    width: 24px;
    height: 24px;
    background: #87d068;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
}

.wi-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.wi-tabs span {
    padding-bottom: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.wi-tabs span.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: #999;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
}

/* Scenario 4 Pipeline - Enhanced Visualization */
.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.pipeline-header h3 {
    font-size: 16px;
    margin: 0;
}

.pipeline-graph {
    background: white;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to accommodate labels */
    min-height: 240px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.pipeline-node-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    cursor: default;
    width: 80px;
}

.node-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    transition: all 0.3s;
    background: white;
}

.node-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.pipeline-line {
    width: 60px;
    height: 2px;
    background: #e5e5e5;
    margin-top: -24px;
    /* Align with circle center */
    transition: all 0.5s;
}

/* Node States */
.p-success .node-circle {
    border-color: #52c41a;
    color: #52c41a;
    background: #f6ffed;
}

.p-running .node-circle {
    border-color: #1890ff;
    color: #1890ff;
    background: #e6f7ff;
}

.p-running .node-circle i {
    animation: fa-spin 2s infinite linear;
}

.p-failed .node-circle {
    border-color: #ff4d4f;
    color: #ff4d4f;
    background: #fff1f0;
}

.p-pending .node-circle {
    border-color: #d9d9d9;
    color: #ccc;
}

/* Line States */
.l-success {
    background: #52c41a;
}

.l-running {
    background: linear-gradient(90deg, #52c41a 0%, #d9d9d9 100%);
}

/* Error Message Bubble */
.error-bubble {
    position: absolute;
    top: 55px;
    /* Below the node label */
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4f;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10;
}

.error-bubble::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 4px 4px 4px;
    border-style: solid;
    border-color: transparent transparent #ff4d4f transparent;
}

.p-failed .error-bubble {
    opacity: 1;
    top: 65px;
}

/* Modals & Overlays */
.hidden {
    display: none !important;
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ali-modal {
    background: white;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ali-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ali-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.ali-modal-close:hover {
    color: #333;
}

.ali-modal-body {
    padding: 24px;
}

.ali-modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Toast */
.demo-toast {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    animation: slideDown 0.3s ease;
}

.demo-toast i {
    color: #52c41a;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* =========================================
   AppStack Simulation Styles
   (For Batch Deploy Modal)
   ========================================= */
.appstack-modal-content {
    position: relative;
    padding: 8px;
    /* Inner padding usually handled by modal body, but this is a container */
}

.appstack-modal-content h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appstack-close-btn {
    position: absolute;
    right: -10px;
    top: -15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    line-height: 1;
}

.appstack-close-btn:hover {
    color: #666;
}

.appstack-form-group {
    margin-bottom: 20px;
}

.appstack-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.appstack-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background-color: #fff;
}

.appstack-form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 100, 200, 0.1);
}

.appstack-log-container {
    background: #ffffff;
    /* Typically user's screenshot shows white or very light bg for logs, distinct from gray container */
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    padding: 12px;
    height: 240px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    margin-bottom: 24px;
    background-color: #fafafa;
}

.appstack-log-item {
    margin-bottom: 6px;
    line-height: 1.6;
    word-break: break-all;
}

.appstack-log-info {
    color: #555;
}

.appstack-log-success {
    color: #00a854;
    font-weight: 500;
}

.appstack-log-warn {
    color: #ffbf00;
}

.appstack-log-error {
    color: #f04134;
}

.appstack-deploy-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.appstack-deploy-btn:hover {
    background-color: var(--primary-hover);
}

.appstack-deploy-btn:active {
    transform: translateY(1px);
}

.appstack-donate-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s;
    z-index: 2;
}

.appstack-donate-trigger:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Custom Scrollbar for logs */
.appstack-log-container::-webkit-scrollbar {
    width: 6px;
}

.appstack-log-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* =========================================
   Aliyun Work Item List View Simulation
   ========================================= */
.ali-work-item-list {
    background: #fff;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Row */
.ali-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ali-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ali-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ali-tabs {
    display: flex;
    margin-left: 12px;
    background: #f5f5f5;
    padding: 2px;
    border-radius: 4px;
}

.ali-tabs span {
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    border-radius: 2px;
}

.ali-tabs span.active {
    background: #fff;
    color: #333;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Updated Tab Style */
.ali-tabs-simple span {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.ali-tabs-simple span.active {
    font-weight: 500;
    color: #333;
    background: #e6f7ff;
    /* Light blue background */
}

.ali-tabs-simple span.active::after {
    display: none;
}

.badge-count {
    background: #e5e5e5;
    color: #999;
    font-size: 10px;
    padding: 0 6px;
    border-radius: 10px;
    height: 16px;
    line-height: 16px;
    display: inline-block;
}

/* List Item Layout Fix */
.ali-list-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.item-left {
    display: flex;
    align-items: center;
    width: 300px;
    /* Fixed width for alignment */
    font-size: 14px;
}

.item-middle {
    flex: 1;
    text-align: center;
    color: #666;
}

.item-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 300px;
    /* Fixed width for alignment */
    gap: 24px;
}

/* User Avatar Style (Red with Badge) */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-red {
    width: 24px;
    height: 24px;
    background: #d9001b;
    /* Red background */
    border-radius: 50%;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: white;
    color: #f5222d;
    font-size: 10px;
    padding: 0 2px;
    border-radius: 4px;
    line-height: 1;
    border: 1px solid #f5222d;
}

.ali-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toolbar Row */
.ali-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
}

.ali-toolbar-left {
    display: flex;
    align-items: center;
}

.ali-filter-group {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ali-btn-xs {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
}

.ali-btn-xs:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.ml-10 {
    margin-left: 10px;
}

.ali-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ali-icon-btn {
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.ali-icon-btn:hover {
    background: #f5f5f5;
    color: #333;
}

/* The Batch Deploy Button - Specific Style */
.ali-btn-batch-deploy {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #bae7ff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.ali-btn-batch-deploy:hover {
    background-color: #bae7ff;
    color: #096dd9;
}

.ali-dropdown-trigger {
    border: 1px solid #d9d9d9;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: #fff;
}

/* Data Table Specifics */
.ali-table-container {
    padding: 0 16px;
}

.ali-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* ==========================================================================
   Teamix / Pipeline Reference Styles (Adopting reference/流水线.html structure)
   ========================================================================== */

/* Layout & Header */
.teamix-layout-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.teamix-layout-header {
    padding: 16px 24px;
    border-bottom: 1px solid #ebecec;
}

.teamix-layout-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teamix-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.teamix-title .next-box {
    display: flex;
}

/* Operation Panel */
.pipeline-operation-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pipeline-operation-panel__search,
.pipeline-operation-panel__sort,
.pipeline-operation-panel__filter,
.pipeline-operation-panel__reset {
    display: flex;
    align-items: center;
}

/* Next Buttons & Inputs Adapter */
.next-btn.next-text {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
}

.next-btn.next-text:hover {
    color: #1890ff;
    background: rgba(0, 0, 0, 0.02);
}

.next-btn.isOnlyIcon {
    padding: 6px;
    font-size: 16px;
}

.next-btn-primary {
    background-color: #1890ff;
    color: #fff;
    border: 1px solid #1890ff;
    border-radius: 3px;
    padding: 5px 12px;
}

/* Tabs */
.next-tabs-capsule .next-tabs-nav {
    display: flex;
    background: #f2f3f5;
    padding: 2px;
    border-radius: 4px;
    list-style: none;
    margin: 0;
}

.next-tabs-capsule .next-tabs-tab {
    padding: 4px 12px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    color: #666;
}

.next-tabs-capsule .next-tabs-tab.active {
    background: #fff;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.next-tabs-pure .next-tabs-nav {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
    padding: 0;
    margin: 0 24px;
}

.next-tabs-pure .next-tabs-tab {
    padding: 12px 0;
    margin-right: 24px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
}

.next-tabs-pure .next-tabs-tab.active {
    color: #1890ff;
    font-weight: 500;
}

.next-tabs-pure .next-tabs-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1890ff;
}

/* Table */
.next-table {
    width: 100%;
    padding: 0 24px;
}

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

.next-table th {
    background: #f7f8fa;
    color: #888;
    font-weight: normal;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

.next-table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Pipeline Name */
.pipeline-list__pipelinename {
    display: flex;
    align-items: center;
}

.portrait {
    width: 24px;
    height: 24px;
    background: #52c41a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

/* Pipeline History (The Dots) */
.pipe-history {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5px;
}

.group-status {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    min-width: 60px;
}

.group-status:last-child {
    margin-right: 0;
}

.group-status .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.group-status .title {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    white-space: nowrap;
}

.group-status .point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

/* Status Colors */
.group-status.group-status-success .point {
    background: #52c41a;
    box-shadow: 0 0 0 1px #52c41a;
}

.group-status.group-status-running .point {
    background: #1890ff;
    box-shadow: 0 0 0 1px #1890ff;
}

.group-status.group-status-running .point::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid #1890ff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    top: 19px;
}

/* The Connecting Line */
.group-status::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    width: calc(100% + 40px);
    height: 1px;
    background: #e1e1e1;
    z-index: 0;
}

.group-status:last-child::after {
    display: none;
}

/* Status Text Colors */
.group-status.group-status-running .title {
    color: #1890ff;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Actions */
.pipeline-operation {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}
