:root {
    --primary-color: #4c6fff;
    --primary-hover: #3b5bdb;
    --secondary-color: #22d3ee;
    --accent-color: #8b5cf6;
    --bg-color: #ffffff;
    --surface-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --border-color: rgba(203, 213, 225, 0.7);
    --success-color: #10b981;
    --error-color: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --gradient-primary: linear-gradient(135deg, #4c6fff 0%, #22d3ee 100%);
    --gradient-surface: linear-gradient(135deg, #ffffff 0%, #eef2f8 100%);
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
}


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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #09090B; /* Dark Mode Background */
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    scroll-behavior: auto !important;
}

.notice-bar {
    background: #030303;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notice-bar--enhanced {
    background: linear-gradient(to bottom, #8B5CF6, #6D28D9);
    border-bottom-color: rgba(0, 0, 0, 0.3);
}

.notice-bar-inner {
    max-width: 100%;
    padding: 0 16px;
    font-size: 10px;
    line-height: 1;
}

.notice-bar--enhanced .notice-bar-inner {
    font-size: 13px;
}

.notice-bar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 16px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.9);
    color: #FACC15;
    font-size: 9px;
    font-weight: 700;
}

.notice-bar-text {
    color: #F9FAFB;
    white-space: nowrap;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}

.notice-bar-text.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
}

body.device-preview {
    background: #0b1220;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

#device-preview-back {
    display: none;
}

body.device-preview #device-preview-back {
    display: flex;
}

body.device-preview #app {
    width: 390px;
    height: 844px;
    background: var(--bg-color);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
    position: relative;
}

body.device-preview .page {
    height: 100%;
    overflow-y: auto;
}

body.device-preview .container {
    max-width: 100%;
    padding: 0 20px;
}

body.device-preview .main-header {
    padding-top: 18px;
    height: 96px;
    overflow: visible;
}

body.device-preview .main-header .container {
    height: 78px;
    padding: 0 10px;
    min-height: auto;
}

body.device-preview .brand-logo-img {
    height: 56px;
    max-width: 240px;
}

body.device-preview .user-info {
    gap: 6px;
}

body.device-preview .user-badge {
    font-size: 11px;
    padding: 0 6px;
    border-radius: 8px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.device-preview .user-balance {
    font-size: 11px;
    padding: 0 8px;
    border-radius: 8px;
    height: 26px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

body.device-preview .user-controls {
    gap: 6px;
}

body.device-preview .btn-action {
    padding: 0 8px;
    font-size: 10px;
    height: 26px;
    border-radius: 8px;
    line-height: 1;
}

body.device-preview .btn-action svg {
    width: 12px;
    height: 12px;
}

body.device-preview .btn-action .btn-text {
    display: none;
}

body.device-preview .user-controls .btn-action:not(.header-more-btn) {
    display: none;
}

body.device-preview .header-more-btn {
    display: inline-flex;
}

body.device-preview .header-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
}

body.device-preview .agent-center {
    display: block;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 56px;
}

body.device-preview .agent-sidebar {
    position: sticky;
    top: 92px;
    padding: 12px 12px;
    border-radius: 16px;
    z-index: 50;
    background: #ffffff;
    width: 100%;
}

body.device-preview .agent-category-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
}

body.device-preview .agent-category-link {
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 12px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

body.device-preview .agent-center-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-top: 12px;
}

body.device-preview .agent-card-grid {
    grid-template-columns: 1fr;
}

body.device-preview .agent-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

body.device-preview .agent-card {
    padding: 16px;
}

body.device-preview .agent-section {
    scroll-margin-top: 200px;
}

body.device-preview .carousel-container {
    height: auto;
    aspect-ratio: 3 / 1;
    border-radius: 18px;
    margin: 6px 0;
}

body.device-preview .carousel-item {
    background-position: center;
}

@media (max-width: 768px) {
    body.device-preview {
        background: #09090B;
        display: block;
        padding: 0;
        overflow: auto;
    }

    body.device-preview #app {
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    body.device-preview .page {
        height: auto;
        overflow: visible;
    }
}



.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 布局玻璃拟�?*/
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* Robot V2 - Sleek Sci-Fi Design (已锁定为基础结构) */
.robot-v2 {
    position: relative;
    width: 80px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
}

/* 样式选项 1: 极简灵动�?(Nova Sphere) - 科技感最�?*/
.robot-v2.skin-nova .robot-v2-head {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(99,102,241,0.1));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 30px rgba(99,102,241,0.2), inset 0 0 15px rgba(255,255,255,0.2);
}
.robot-v2.skin-nova .robot-v2-face {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
}
.robot-v2.skin-nova .robot-v2-eyes .eye {
    width: 8px;
    height: 8px;
    background: #fff;
    box-shadow: 0 0 15px #fff, 0 0 30px var(--primary-color);
}
.robot-v2.skin-nova .robot-v2-body, 
.robot-v2.skin-nova .robot-v2-antenna,
.robot-v2.skin-nova .robot-v2-arm { display: none; }
.robot-v2.skin-nova::before {
    content: '';
    position: absolute;
    top: -5px; width: 70px; height: 70px;
    border: 1px dashed rgba(99,102,241,0.4);
    border-radius: 50%;
    animation: v2Rotate 10s linear infinite;
}

/* 样式选项 2: 精致机械�?(Cyber-Companion) - 亲和力高 */
.robot-v2.skin-cyber .robot-v2-head {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    border: 2px solid #fff;
    box-shadow: var(--shadow-lg);
}
.robot-v2.skin-cyber .robot-v2-face {
    background: #000;
    box-shadow: inset 0 0 10px rgba(0,217,255,0.5);
}
.robot-v2.skin-cyber .robot-v2-eyes .eye {
    width: 10px;
    height: 10px;
    background: #00d9ff;
    clip-path: polygon(0% 20%, 100% 20%, 100% 80%, 0% 80%); /* 扁平化数字眼 */
}
.robot-v2.skin-cyber .robot-v2-body {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    border: 2px solid #fff;
}

/* 样式选项 3: 影楼专业�?(Studio Pro) - 稳重专业 */
.robot-v2.skin-pro .robot-v2-head {
    background: #1e293b;
    border: 2px solid var(--accent-color);
}
.robot-v2.skin-pro .robot-v2-eyes .eye {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}
.robot-v2.skin-pro .robot-v2-body {
    background: #334155;
    border-radius: 8px;
}

.robot-v2.large {

    transform: scale(1.8);
    margin-bottom: 60px;
}

.robot-v2.mini {
    transform: scale(0.4);
    height: 40px;
    width: 40px;
}

.robot-v2-head {
    width: 54px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 15px 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: v2HeadBob 4s ease-in-out infinite;
    border: 1px solid var(--glass-border);
}

.robot-v2-face {
    width: 42px;
    height: 30px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.robot-v2-eyes {
    display: flex;
    gap: 12px;
}

.robot-v2-eyes .eye {
    width: 6px;
    height: 6px;
    background: #00d9ff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00d9ff;
    animation: v2Blink 5s infinite;
}

.robot-v2-antenna {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 12px;
    background: #d2d2d7;
}

.robot-v2-antenna::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
    animation: v2Pulse 2s infinite;
}

.robot-v2-body {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50% 50% 40% 40%;
    margin-top: -8px;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    animation: v2BodyFloat 4s ease-in-out infinite;
}

.robot-v2-core {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.robot-v2-arm {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 15px;
}

.robot-v2-arm.left { left: -15px; animation: v2ArmFloatLeft 3s ease-in-out infinite; }
.robot-v2-arm.right { right: -15px; animation: v2ArmFloatRight 3.5s ease-in-out infinite; }

.robot-v2-float {
    position: absolute;
    bottom: -20px;
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    filter: blur(4px);
    animation: v2Shadow 4s ease-in-out infinite;
}

/* Header 优化 - 高度优化 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(31, 41, 55, 0.06);
    height: 100px; /* 进一步增加高度以容纳更大�?Logo */
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: auto; 
    padding: 0 24px;
    width: 100%;
    position: relative;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.brand-logo-img {
    height: 80px; /* Logo 进一步放�?*/
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.brand-name-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 4px;
}

.brand-name-small {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.brand-name-en {
    font-size: 13px;
    color: #64748b;
    letter-spacing: 0.3px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}


.user-badge {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.user-balance {
    display: none;
    align-items: center;
    padding: 6px 12px;
    height: 32px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.btn-action:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 123, 253, 0.1);
}

.btn-action.logout:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: #fff5f5;
}

.btn-action.primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-action.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.header-more-btn {
    display: none;
}

.header-more-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 8px;
    /* background: #ffffff; -> Handled by Tailwind */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
    min-width: 140px;
}

.header-more-menu.show {
    display: flex;
}

.header-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    /* background: #f8fafc; -> Handled by Tailwind */
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-more-item:hover {
    /* background: #f1f5f9; -> Handled by Tailwind */
    border-color: var(--border-color);
}

/* 智能体调优列表项激活状�?*/
.agent-tune-item.active {
    background: #f1f5f9;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}
.agent-tune-item.active strong {
    color: var(--primary-color);
}
.agent-tune-item {
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}
.agent-tune-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}


.brand-name {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button 优化 */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 15px;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.03);
}


.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateY(-2px); }

.btn-secondary {
    background: #f7f9fc;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 22px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(61, 123, 253, 0.08);
}


/* 首页 Hero 区域 */
/* 隐藏滚动条但保留功能 */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 移动端表格卡片化适配 */
@media (max-width: 768px) {
    .enterprise-table thead {
        display: none;
    }
    .enterprise-table, .enterprise-table tbody, .enterprise-table tr, .enterprise-table td {
        display: block;
        width: 100%;
    }
    .enterprise-table tr {
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 12px;
    }
    .enterprise-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        text-align: right;
    }
    .enterprise-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 8px;
    }
    .enterprise-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 12px;
        text-align: left;
    }
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    padding: 120px 0 100px;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--text-main);
    letter-spacing: -3px;
}

.hero-content p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

/* 轮播图容�?(Carousel Container) */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* PC端高�?*/
    margin: 60px 0 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    flex: 0 0 100%;
    height: 100%;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item.image-failed {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0b1220 100%);
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.carousel-caption {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 800px;
}

.carousel-caption h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    transition: all 0.3s;
    opacity: 0;
}

.carousel-container:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* 移动端适配 (Responsive) */
@media (max-width: 768px) {
    .main-header .container {
        padding: 0 12px;
        gap: 8px;
        height: 68px;
    }

    .logo-small {
        gap: 6px;
    }

    .brand-logo-img {
        height: 56px;
        max-width: 270px;
    }

    .brand-name-block {
        gap: 2px;
    }

    .brand-name-small {
        font-size: 16px;
        letter-spacing: -0.4px;
    }

    .brand-name-en {
        font-size: 12px;
    }

    .user-info {
        gap: 8px;
    }


    .user-badge {
        font-size: 14px;
        padding: 4px 10px;
        max-width: 120px;
        border-radius: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-controls {
        gap: 6px;
    }

    .btn-action {
        padding: 6px 8px;
        font-size: 12px;
        height: 32px;
        border-radius: 8px;
    }

    .btn-action .icon {
        font-size: 14px;
    }
    
    /* 移动端隐藏按钮文字，仅保留图�?*/
    .btn-action .btn-text {
        display: none;
    }
    
    .header-more-btn .btn-text {
        display: inline;
    }
    
    /* 强力显示管理后台按钮的文字，确保管理员在手机上能一眼看�?*/
    #admin-btn.btn-action .btn-text {
        display: inline !important;
    }
    
    #admin-btn.btn-action {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        padding: 6px 12px;
    }

    .modal-content {
        width: 95%;
        border-radius: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        gap: 10px;
    }

    .modal-footer button {
        flex: 1;
        padding: 10px !important;
        font-size: 14px;
    }

    .carousel-container {
        height: 200px;
        margin: 6px 0;
    }
    .carousel-caption h2 { font-size: 18px; }
    .carousel-caption p { font-size: 11px; }
}

/* 文件上传样式 */
.file-upload-wrapper {
    margin-bottom: 10px;
}

.upload-trigger {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-trigger:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.upload-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

#banner-filename {
    font-size: 14px;
    color: var(--text-muted);
}

/* 智能体卡�?*/
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 40px 0 100px;
}

.agent-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-2xl);
    padding: 40px 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-12px);
    background: white;
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    transition: all 0.5s;
}

.agent-card:hover .card-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.agent-point-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    margin-bottom: 14px;
}

.agent-point-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.agent-center {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 40px 0 100px;
    align-items: start;
}

.agent-sidebar {
    position: sticky;
    top: 120px;
    border: 1px solid #eef2f7;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.agent-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.agent-category-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agent-category-link:hover {
    background: #f4f6fb;
}

.agent-category-link.active {
    border-color: rgba(91, 108, 255, 0.35);
    background: rgba(91, 108, 255, 0.12);
    font-weight: 600;
    color: #2f3cff;
}

.agent-center-content {
    min-width: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 6px;
}

.agent-section {
    margin-bottom: 52px;
    scroll-margin-top: 120px;
}

.agent-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.agent-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.agent-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.agent-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.agent-card-v2 {
    position: relative;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 24px;
    padding: 24px;
    height: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.agent-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(91, 108, 255, 0.4);
}

.agent-card-v2.is-upcoming {
    cursor: not-allowed;
    opacity: 0.7;
}

.agent-card-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
}

.agent-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agent-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.agent-card-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.agent-card-row-meta {
    gap: 12px;
}

.agent-card-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5ff;
    color: #3b5bdb;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.agent-point-value {
    font-weight: 700;
    font-size: 13px;
}

.agent-point-label {
    color: #64748b;
    font-size: 12px;
}

.agent-type-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.agent-type-tag.tag-general {
    background: rgba(91, 108, 255, 0.12);
    color: #3a47ff;
}

.agent-type-tag.tag-custom {
    background: rgba(255, 122, 69, 0.16);
    color: #d85a2b;
}

.agent-card-icon {
    /* width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f6f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; */
}

.agent-card-title {
    font-size: 30px;
    font-weight: 300;
    color: #111827;
}

.agent-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agent-card-status {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
}

.status-dot.online {
    background: #22c55e;
}

.agent-card-placeholder {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-light);
}


/* 工作区面板（旧版，保留以兼容历史布局） */
.agent-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    padding: 32px 0;
    height: calc(100vh - 80px);
}

/* 通用智能体工作区 V2 布局开关：仅当外层存在 agent-workspace-v2 类时生效 */
.agent-workspace-v2 {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
    padding-bottom: 0;
}

.agent-workspace-v2 .univ-input-col,
.agent-workspace-v2 .univ-output-col {
    display: flex;
    flex-direction: column;
}

.agent-workspace-v2 .univ-input-card,
.agent-workspace-v2 .univ-output-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(24, 24, 27, 0.80);
    backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.30);
    overflow: hidden;
}

.agent-workspace-v2 .univ-generate-block {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.agent-workspace-v2 #agent-output {
    flex: 1;
    max-height: none;
    min-height: 0;
}

@media (max-width: 1024px) {
    .agent-workspace-v2 {
        display: flex;
        flex-direction: column;
    }
}

.agent-workspace-v2 .univ-input-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
}

.agent-workspace-v2 .univ-output-toolbar button {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background-color: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.agent-workspace-v2 .univ-output-toolbar button:hover {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
    color: #e4e4e7;
}

.agent-workspace-v2 #download-template {
    border-radius: 9999px;
    padding-inline: 16px;
}

/* 刷新智能体页面时，先隐藏整个智能体视图，待新版 UI 渲染完毕后再显示，避免闪现旧版布局 */
html.agent-loading #agent-page {
    opacity: 0;
    pointer-events: none;
}

.input-panel, .output-panel {
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* 已全面切换到新智能体 UI，隐藏旧版可视布局但保留结构以兼容现有脚本 */
#agent-page .input-panel,
#agent-page .output-panel {
    display: none !important;
}

.output-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Chat UI（JSON 驱动）- 聊天样式 */
.agent-chat {
    padding: 24px 0 48px;
}

.agent-chat-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.agent-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.agent-chat-clear-btn {
    height: 38px;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(61, 123, 253, 0.16);
    border: 1px solid #e2e8f0;
    background: white;
    color: #0f172a;
}

.agent-chat-clear-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 14px 30px rgba(61, 123, 253, 0.22);
}

.agent-chat-title {


    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.agent-chat-subtitle {
    color: #64748b;
    font-size: 13px;
}

.agent-chat-status {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    color: #0ea5e9;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #bae6fd;
}

.agent-chat-messages {
    min-height: 320px;
    max-height: 520px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-chat-tip {
    font-size: 13px;
    color: #475569;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 12px 14px;
    border-radius: var(--radius-md);
}

.agent-chat-msg {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

.agent-chat-msg.user {
    align-self: flex-end;
    background: #0ea5e9;
    color: white;
    border-bottom-right-radius: 4px;
}

.agent-chat-msg.ai {
    align-self: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.agent-chat-input-bar {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: center;
}

#agent-chat-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    resize: vertical;
    min-height: 52px;
    max-height: 120px;
    line-height: 1.5;
}

#agent-chat-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

#agent-chat-send {
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .agent-chat-input-bar { grid-template-columns: 1fr; }
    #agent-chat-send { width: 100%; }
}


.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header .icon {
    font-size: 20px;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* 强制限制工作区输入面板不随内容增�?*/
.agent-workspace .input-panel {
    display: flex;
    flex-direction: column;
    height: 600px; /* 固定整个左侧面板高度 */
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
}

.agent-workspace .input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 右侧输出面板与左侧统一高度，内容滚�?*/
.agent-workspace .output-panel {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
    overflow: hidden;
}
#agent-output {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
}

textarea#agent-input {

    flex: 0 0 auto !important; /* 不再自动拉伸填满 */
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 20px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
    resize: none !important;
    outline: none;
    overflow-y: auto !important;
    height: 320px !important;
    max-height: 320px !important;
    min-height: 320px !important;
}






textarea#agent-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.markdown-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    word-break: break-all; /* 强制所有长链接自动断行 */
    overflow-x: hidden;    /* 彻底禁止横向滚动 */
}

/* 页面基础样式 */
.page {



    display: none;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.page.active {
    display: block;
}

#login-page.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* 视频背景容器 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
    overflow: hidden;
}

/* 照片墙容�?*/
.photo-collage-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 动态照片墙网格布局 */
.photo-collage-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    /* 增加列数实现更密集的“数百张”感 */
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 12vw;
    gap: 4px;
    filter: grayscale(1) contrast(1.1) brightness(0.6);
    opacity: 1; /* 默认完全可见 */
    z-index: 1;
    overflow: hidden;
    background: #000;
    transition: opacity 2s ease;
}

.wall-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111; /* 占位�?*/
    transition: transform 0.8s ease;
}


.wall-photo:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}



#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* 默认隐藏，播放时渐显 */
    transition: opacity 2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 极致通透的遮罩，中心几乎透明，边缘暗化以突出中间的登录框 */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 3;
    pointer-events: none; /* 确保不拦截交�?*/
}






/* 登录页细节优�?*/
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 440px;
    overflow: hidden;
    animation: loginFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}


.login-visual {
    padding: 60px 40px 50px;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* 装饰背景�?*/
.login-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: v2Rotate 20s linear infinite;
}

@keyframes v2Rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.robot-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.login-visual .brand-name {
    font-size: 36px;
    font-weight: 900;
    margin-top: 10px;
    letter-spacing: 4px;
    color: white;
    -webkit-text-fill-color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.login-content {
    padding: 50px 40px;
    text-align: center;
}

.login-content .subtitle {
    margin-bottom: 32px;
    font-weight: 600;
    color: var(--text-muted);
}

.login-form {
    text-align: left;
}

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

.login-form input {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s;
}

.login-form input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* 居中登录按钮 */
.login-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 20px;
}

#login-btn {
    min-width: 160px;
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 100px;
}

.login-tip {
    margin-top: 24px;
    font-size: 13px;
    opacity: 0.6;
}


/* 管理后台 */
.admin-container {
    padding-top: 24px;
    padding-bottom: 60px;
}

/* 标签页粘性定位包装器 */
.admin-tabs-wrapper {
    background: var(--bg-color);
    padding: 8px 0;
    margin: -8px 0 16px 0;
}

/* 标签页本�?*/
.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}



.tab-btn {
    padding: 12px 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tab-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.3);
}

.admin-card-wide {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-2xl);
    padding: 34px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}


.admin-card-wide h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 查询区域优化 */
.query-section {
    background: #f8fafc;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.query-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

.query-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* 表格优化 */
.enterprise-table-container, .log-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #fff;
    box-shadow: var(--shadow-sm);
}


table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.company-name-link {
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.company-name-link:hover {
    text-decoration: underline;
}

.enterprise-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 幽灵玻璃态表格操作按钮（全局轮播 / 企业管理共用） */
.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #18181B;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.action-btn.info {
    background-color: #18181B;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.action-btn.danger {
    background-color: #18181B;
    border-color: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
}

.action-btn.info:hover {
    color: #d8b4fe;
    background-color: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.action-btn.danger:hover {
    color: #fca5a5;
    background-color: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}


th {
    background: #f2f6fb;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    color: #5b6b82;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

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

tr:hover td { background: rgba(255, 255, 255, 0.05); }


/* 状态标签进�?*/
.badge {
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-active {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #10b981;
}

.agent-card h3 {
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: 300;
    color: var(--text-main);
}

.agent-card.disabled {
    opacity: 1;
}

.agent-card.disabled .card-icon {
    filter: grayscale(0.8) opacity(0.6);
}

.agent-card.disabled h3, 
.agent-card.disabled p {
    color: #94a3b8;
}

.agent-card.disabled:hover {
    transform: translateY(-5px);
    border-color: #e2e8f0;
    cursor: pointer;
}

.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-active { background: #ecfdf5; color: #059669; border: 1px solid #10b981; }
.status-expired { background: #fef2f2; color: #dc2626; border: 1px solid #f87171; }
.status-pending { background: #fff7ed; color: #d97706; border: 1px solid #fbbf24; }

.status-active::before,
.status-expired::before,
.status-pending::before {
    content: '�?;
    font-size: 8px;
}



/* 遮罩层深度优�?*/
.overlay-content {
    text-align: center;
    background: white;
    padding: 48px;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid var(--glass-border);
    animation: modalSlideUp 0.3s ease-out;
}

#overlay-message {
    font-weight: 600;
    color: var(--text-main);
    font-size: 16px;
}


/* 弹窗表单布局 */
.form-section {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.form-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

/* 移动端触控优�?*/
.form-group input,
.form-group select,
.form-group textarea,
.search-input-wrapper input { /* 添加 search-input-wrapper */
    min-height: 44px; /* Apple Human Interface Guidelines建议的最小触控目标尺�?*/
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    width: 100%;
    transition: all 0.2s;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 123, 253, 0.1);
    outline: none;
}


.required { color: var(--error-color); margin-left: 4px; }
.optional { color: var(--text-muted); font-size: 12px; font-weight: normal; }

/* 地图配置 */
.map-config {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.coord-input { flex: 1; }

.map-location-row {
    display: flex;
    gap: 12px;
}

.address-input { flex: 1; }

/* IP 白名�?*/
.ip-whitelist {
    display: flex;
    gap: 10px;
}

.ip-input { flex: 1; }

/* 复选框样式 */
.vip-roaming {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* 进度条样�?(余额消�? */
.progress-bar-wrapper {
    margin-top: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮图标 */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-icon:hover { transform: scale(1.2); }

.input-with-btn {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-btn input {
    padding-right: 45px !important;
}

.input-with-btn .btn-icon {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
}


/* 遮罩与弹�?*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 与全局 body 背景保持一致，避免颜色偏差 */
    background: #09090B;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kb-modal-content {
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.kb-modal-content .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-modal-content .modal-body {
    background: #0f0f16;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    color: #475569;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-close:active {
    transform: scale(0.96);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* 地图弹窗样式 */
.location-search {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.search-input-wrapper {
    position: relative;
    flex: 1;
}
.search-input-wrapper input {
    width: 100%;
}
.location-map {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: #f8fafc;
    margin-top: 12px;
}
.selected-location {
    margin-top: 12px;
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.search-results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2000;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 240px;
    overflow: auto;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: #f5f8ff;
}
.search-result-item .title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}
.search-result-item .address {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 全局加载状�?*/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}


.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top: 3px solid rgb(139, 92, 246);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: rgba(17, 17, 24, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

#overlay-message {
    color: rgba(228, 228, 231, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    max-width: 300px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    animation: toastUp 0.3s ease-out;
}

@keyframes toastUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }


/* 动画 */
@keyframes v2HeadBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes v2BodyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes v2Blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.05); } }
@keyframes v2Pulse { 0%, 100% { opacity: 1; transform: scale(1) translateX(-50%); } 50% { opacity: 0.5; transform: scale(0.8) translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 响应�?*/
@media (max-width: 1024px) {
    .agent-workspace { grid-template-columns: 1fr; height: auto; }
    .hero-section { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: 48px; }
    .agent-center { display: block; grid-template-columns: 1fr; }
    .agent-sidebar { position: sticky; top: 96px; z-index: 50; background: #ffffff; }
    .agent-category-nav { flex-direction: row; flex-wrap: nowrap; }
    .agent-category-link { flex: 1 1 0; justify-content: center; text-align: center; padding: 8px 6px; font-size: 12px; white-space: nowrap; }
    .agent-center-content { max-height: none; overflow: visible; padding-right: 0; }
}

/* 标签页图�?*/
.tab-icon {
    margin-right: 6px;
    font-size: 16px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s;
}

.tab-btn.active .tab-icon {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* 管理后台标签页内容切�?*/
.tab-content { display: none; }
.tab-content.active { display: block; }








/* ============================================
   响应式设�?- 适配多端设备
   ============================================ */

/* 大屏幕电�?(1200px 以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1280px;
        padding: 0 32px;
    }
    
    .brand-logo-img {
        height: 84px; /* 进一步放�?*/
        max-width: 360px;
    }
    
    .user-badge {
        font-size: 15px;
        padding: 8px 16px;
    }
}

/* 普通电�?(992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 0 24px;
    }
    
    .brand-logo-img {
        height: 72px; /* 进一步放�?*/
        max-width: 300px;
    }
}

/* 平板设备 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .main-header .container {
        height: 84px; /* 稍微增高 */
        padding: 0 16px;
        min-height: auto;
    }
    
    .brand-logo-img {
        height: 64px; /* 进一步放�?*/
        max-width: 260px;
    }
    
    .user-badge {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .btn-action {
        padding: 5px 10px;
        font-size: 12px;
        height: 30px;
    }
    
    .user-controls {
        gap: 8px;
    }
    
    /* 管理后台标签页适配 */
    .admin-tabs-wrapper {
        top: 84px;
        padding: 6px 0;
    }
    
    .admin-tabs {
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }
    
    .admin-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .admin-tab svg {
        width: 16px;
        height: 16px;
    }
    .agent-category-link { flex: 1 1 100%; }

.ui-v2 #home-page {
    background: #0A0A0C;
    color: #F8F9FA;
    min-height: 100vh;
}

.ui-v2 #home-page .main-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(10, 10, 12, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
    .ui-v2 #home-page .main-header {
        background: #09090B;
        border-bottom: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.ui-v2 #home-page .main-header .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.ui-v2 #home-page .logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-v2 #home-page .brand-logo-img {
    width: 32px;
    height: 32px;
}

.ui-v2 #home-page .brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #F8F9FA;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.ui-v2 #home-page .user-info .user-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F8F9FA;
}

.ui-v2 #home-page #sky-points-badge {
    background: transparent;
    color: #A1A1AA;
    padding: 0;
    font-weight: 500;
}

.ui-v2 #home-page .user-controls .btn-action {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E4E4E7;
}

.ui-v2 #home-page #admin-btn {
    display: inline-flex;
    background: linear-gradient(135deg, #8A2BE2, #4F46E5);
    border: none;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.ui-v2 #home-page #header-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8F9FA;
}

.ui-v2 #home-page .header-more-btn .btn-text {
    display: none;
}

.ui-v2 #home-page .header-more-btn .icon {
    font-size: 16px;
}

.ui-v2 #home-page #header-more-menu {
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.ui-v2 #home-page .header-more-item {
    background: rgba(255, 255, 255, 0.04);
    color: #E4E4E7;
}

.ui-v2 #home-page .header-more-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ui-v2 #home-page .btn-primary {
    background: linear-gradient(135deg, #8A2BE2, #4F46E5);
    border: none;
    color: #ffffff;
}

.ui-v2 #home-page .btn-primary:hover {
    filter: brightness(1.05);
}

.ui-v2 #home-carousel,
.ui-v2 #agent-grid {
    display: none;
}

.ui-legacy #landing-v2 {
    display: none;
}

/* 
 * Landing Page V2 Styles 
 * Most styling is handled by Tailwind utility classes in HTML/JS.
 * Below are supplementary styles for specific effects.
 */

/* Gradient Animation for Text */
.gradient-text {
    background: linear-gradient(135deg, #8A2BE2, #4F46E5);
    -webkit-background-clip: text;
    color: transparent;
}

/* Terminal Cursor Blink Animation */
@keyframes terminalBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-cursor {
    animation: terminalBlink 1s steps(2, start) infinite;
}


.landing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A78BFA;
}

.landing-card-icon svg {
    width: 20px;
    height: 20px;
}

.landing-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #A1A1AA;
}

.landing-card-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #A1A1AA;
}

.landing-card-status.status-online {
    color: #E4E4E7;
}

.landing-card-status.status-online .status-dot {
    background: #22c55e;
}

.landing-card-status.status-upcoming {
    color: #A1A1AA;
}

.landing-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #F8F9FA;
}

.landing-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #F8F9FA;
}

.landing-card-desc {
    font-size: 14px;
    color: #A1A1AA;
    line-height: 1.6;
}

/* 首页四个胶囊与双箭头保护样式（防止主题覆盖导致消失） */
#agent-carousel {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 1.5rem;
    overflow: visible;
    z-index: 40;
}

.landing-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(16px) !important;
}

/* 未登录首页兜底：强制显示胶囊和箭头 */
body.not-logged-in #agent-carousel {
    display: block !important;
}

body.not-logged-in #agent-carousel .landing-tab {
    display: inline-flex !important;
}

/* 兜底取消 Hero Section 的 overflow 裁剪，确保底部元素始终可见 */
.ui-v2 #landing-v2 > section {
    overflow: visible !important;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-title {
        font-size: 44px;
    }

    .landing-hero {
        gap: 28px;
    }

    .terminal-card {
        max-width: 700px;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .landing-title {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .ui-v2 #home-page .brand-title {
        display: none;
    }

    .ui-v2 #home-page #sky-points-badge {
        display: none;
    }
}
    .agent-category-link { flex: 1 1 100%; }
    .agent-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机设备 (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    .agent-center { display: block; padding: 0 0 56px; }
    .agent-sidebar { position: sticky; top: 92px; padding: 12px 12px; border-radius: 16px; z-index: 50; background: #ffffff; width: 100%; }
    .agent-sidebar-title { font-size: 15px; margin-bottom: 10px; }
    .agent-category-nav { flex-direction: row; flex-wrap: nowrap; gap: 8px; }
    .agent-category-link { flex: 1 1 0; padding: 8px 6px; font-size: 12px; justify-content: center; text-align: center; white-space: nowrap; }
    .agent-center-content { margin-top: 12px; }
    .agent-card-grid { grid-template-columns: 1fr; }
    
    
    .main-header {
        padding-top: env(safe-area-inset-top);
        height: calc(92px + env(safe-area-inset-top));
        overflow: visible;
    }

    .main-header .container {
        height: 82px;
        padding: 0 12px;
        min-height: auto;
    }
    
    .brand-logo-img {
        height: 66px;
        max-width: 270px;
    }
    
    /* 用户信息区域简�?*/
    .user-info {
        gap: 8px;
    }
    
    .user-badge {
        font-size: 12px;
        padding: 0 8px;
        border-radius: 8px;
        height: 28px;
        display: inline-flex;
        align-items: center;
    }

    .user-balance {
        font-size: 12px;
        padding: 0 10px;
        border-radius: 8px;
        height: 28px;
        background: #ffffff;
        border: 1px solid var(--border-color);
        color: var(--text-main);
    }
    
    .user-controls {
        gap: 6px;
    }
    
    .btn-action {
        padding: 0 10px;
        font-size: 11px;
        height: 28px;
        border-radius: 8px;
        line-height: 1;
    }
    
    .btn-action svg {
        width: 14px;
        height: 14px;
    }
    
    /* 隐藏按钮文字，只显示图标 */
    .btn-action .btn-text {
        display: none;
    }
    

    .user-controls .btn-action:not(.header-more-btn) {
        display: none;
    }

    .header-more-btn {
        display: inline-flex;
    }

    .header-more-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 12px;
    }
    
    /* 管理后台适配 */
    .admin-header {
        padding: 16px;
    }
    
    .admin-title {
        font-size: 20px;
    }
    
    .admin-tabs {
        gap: 4px;
        padding: 4px;
        flex-wrap: wrap;
    }
    
    .admin-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .admin-tab svg {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    
    /* 卡片网格变为2�?*/
    .agent-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .agent-card {
        padding: 20px;
    }

    .agent-section {
        scroll-margin-top: 200px;
    }
}

/* 小屏手机 (479px 以下) */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    .agent-center { display: block; padding: 0 0 56px; }
    .agent-sidebar { position: sticky; top: 88px; padding: 12px 12px; border-radius: 16px; z-index: 50; background: #ffffff; width: 100%; }
    .agent-sidebar-title { font-size: 15px; margin-bottom: 10px; }
    .agent-center-content { margin-top: 12px; }
    
    .main-header {
        padding-top: env(safe-area-inset-top);
        height: calc(88px + env(safe-area-inset-top));
        overflow: visible;
    }

    .main-header .container {
        height: 78px;
        padding: 0 10px;
        min-height: auto;
    }
    
    .brand-logo-img {
        height: 60px;
        max-width: 240px;
    }

    .carousel-container {
        height: auto;
        aspect-ratio: 3 / 1;
        margin: 6px 0;
        border-radius: 18px;
    }
    
    /* 用户信息区域极简模式 */
    .user-info {
        gap: 6px;
    }
    
    .user-badge {
        font-size: 11px;
        padding: 0 6px;
        border-radius: 8px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-balance {
        font-size: 11px;
        padding: 0 8px;
        border-radius: 8px;
        height: 26px;
        background: #ffffff;
        border: 1px solid var(--border-color);
        color: var(--text-main);
    }
    
    .user-controls {
        gap: 4px;
    }
    
    .btn-action {
        padding: 0 8px;
        font-size: 10px;
        height: 26px;
        border-radius: 8px;
        line-height: 1;
    }
    
    .btn-action svg {
        width: 12px;
        height: 12px;
    }
    
    /* 按钮只显示图�?*/
    .btn-action .btn-text {
        display: none;
    }

    .user-controls .btn-action:not(.header-more-btn) {
        display: none;
    }

    .header-more-btn {
        display: inline-flex;
    }

    .header-more-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 10px;
    }
    
    /* 管理后台移动端适配 */
    .admin-page {
        padding: 12px 0;
    }
    
    .admin-header {
        padding: 12px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .admin-title {
        font-size: 18px;
    }
    
    .admin-tabs-wrapper {
        top: 68px;
        padding: 4px 0;
    }
    
    .admin-tabs {
        gap: 4px;
        padding: 4px;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }
    
    .admin-tab {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .admin-tab svg {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    
    .admin-content {
        padding: 12px;
    }
    
    /* 管理后台查询表单 */
    .query-section {
        padding: 16px;
    }
    
    .query-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .query-form .form-group {
        min-width: 100%;
    }
    
    .query-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .query-buttons .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    /* 表格适配 */
    .enterprise-table {
        font-size: 12px;
    }
    
    .enterprise-table th,
    .enterprise-table td {
        padding: 8px 6px;
    }
    
    /* 隐藏部分表格�?*/
    .enterprise-table th:nth-child(4),
    .enterprise-table td:nth-child(4) {
        display: none;
    }
    
    /* 卡片网格变为1�?*/
    .agent-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .agent-card {
        padding: 16px;
    }
    
    .agent-card h3 {
        font-size: 16px;
    }

    .agent-section {
        scroll-margin-top: 200px;
    }
    
    /* 模态框适配 */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group {
        min-width: 100%;
    }
}

/* 超小屏手�?(360px 以下) */
@media (max-width: 360px) {
    .main-header .container {
        height: 68px;
        padding: 0 8px;
        min-height: auto;
    }
    
    .brand-logo-img {
        height: 50px;
        max-width: 230px;
    }
    
    .user-badge {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .btn-action {
        padding: 2px 4px;
        height: 24px;
    }
    
    .admin-tabs-wrapper {
        top: 64px;
        padding: 2px 0;
    }
    
    .btn-action svg {
        width: 10px;
        height: 10px;
    }
}

/* 横屏模式适配 */
@media (max-height: 500px) and (orientation: landscape) {
    .main-header .container {
        height: 48px;
        padding: 0 12px;
        min-height: auto;
    }
    
    .brand-logo-img {
        height: 36px;
        max-width: 240px;
    }
    
    .admin-tabs-wrapper {
        top: 48px;
        padding: 4px 0;
    }
    
    .modal-content {
        max-height: 95vh;
    }
}

/* 打印样式 */
@media print {
    .main-header,
    .btn-action,
    .user-controls {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .page {
        display: block !important;
        page-break-inside: avoid;
    }
}

    margin-top: 15px;
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-generate-cover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.btn-generate-cover:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ===== MiniMax 风格首页样式 ===== */

/* 顶部导航�?*/
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.landing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.landing-brand-name {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主横幅区�?*/
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 100px 20px 60px;
    position: relative;
    overflow: visible !important;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.text-gradient-large {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-hero-primary {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    transform: translateY(-2px);
}

/* 登录页轮播图 */
.landing-carousel-section {
    width: 100%;
    padding: 80px 0 0 0;
    background: var(--bg-color);
}

.landing-carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.landing-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.landing-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.landing-carousel-caption {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 800px;
    padding: 40px;
}

.landing-carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.landing-carousel-caption p {
    font-size: 20px;
    opacity: 0.95;
}

.landing-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-carousel-container:hover .landing-carousel-control {
    opacity: 1;
}

.landing-carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.landing-carousel-control.prev { left: 24px; }
.landing-carousel-control.next { right: 24px; }

.landing-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.landing-carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.6);
}

.landing-carousel-dot.active {
    background: white;
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 智能体预览区�?*/
.landing-agents {
    min-height: 100vh;
    padding: 80px 20px 100px;
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-main);
}

.landing-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* MiniMax 风格大卡�?*/
.landing-agent-card {
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.landing-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.landing-agent-card:hover::before {
    opacity: 1;
}

.landing-agent-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.landing-agent-card.disabled {
    cursor: not-allowed;
    opacity: 0.8;
    color: var(--text-muted);
}

.landing-agent-card.disabled:hover {
    transform: translateY(-4px);
}

.landing-card-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

#landing-card-grid .js-agent-card .w-10.h-10 {
    background: transparent !important;
    border: none !important;
}

/* 强制纠正全站输入框焦点光晕 */
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
    transition: all 0.3s ease-in-out;
}

/* 统一滚动条风格，匹配深空玻璃感 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.3);
}

.landing-agent-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: inherit;
}

.landing-agent-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    opacity: 0.95;
}

.landing-badge {
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

.landing-badge.badge-active {
    background: rgba(255,255,255,0.3);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.landing-agent-card.disabled .landing-badge {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* 登录弹窗样式 */
.login-modal-content {
    max-width: 480px;
}

.login-form-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.full-width {
    width: 100%;
}

/* 响应式设�?*/
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .landing-agent-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-container {
        padding: 0 20px;
    }
    
    .landing-carousel-container {
        height: 300px;
    }
    
    .landing-carousel-caption h2 {
        font-size: 32px;
    }
    
    .landing-carousel-caption p {
        font-size: 16px;
    }
    
    .landing-agent-card {
        min-height: 280px;
    }
    
    .landing-agent-card h3 {
        font-size: 24px;
    }
}

/* ===== 登录状态控制样�?===== */

/* 未登录状�?- 隐藏用户信息,显示登录按钮 */
body.not-logged-in .logged-in-only {
    display: none !important;
}

body.not-logged-in .not-logged-in-only {
    display: flex !important;
}

/* 已登录状�?- 显示用户信息,隐藏登录按钮 */
body.logged-in .not-logged-in-only {
    display: none !important;
}

body.logged-in .logged-in-only {
    display: flex !important;
}

body.is-logged-in .not-logged-in-only {
    display: none !important;
}

body.is-logged-in .logged-in-only {
    display: flex !important;
}

.header-right,
.top-nav-right {
    display: flex !important;
}

/* 默认隐藏 */
.not-logged-in-only,
.logged-in-only {
    display: none;
}

/* ==== 强制保证首页胶囊与双箭头始终可见（防止被脚本/样式意外隐藏） ==== */
#agent-carousel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#agent-carousel .landing-tab {
    display: inline-flex !important;
    opacity: 1 !important;
}

/* 头部登录按钮样式 */
.header-login-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#header-login-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* 登录弹窗样式 */
#login-modal .modal-content {
    max-width: 450px;
}

#login-modal .form-group {
    margin-bottom: 20px;
}

#login-modal .full-width {
    width: 100%;
    margin-top: 10px;
}

/* 移动端适配增量更新 (Mobile Additions) */
@media (max-width: 768px) {
    /* 全屏弹窗体验 */
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .modal-overlay {
        align-items: flex-start; /* 从顶部开�?*/
        padding: 0;
    }

    .modal-header {
        padding: 16px;
        flex-shrink: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 16px;
        flex-shrink: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    /* 优化头部菜单位置 */
    .header-more-menu {
        position: fixed;
        top: 60px; /* 假设头部高度�?0px */
        right: 12px;
        width: 180px;
        /* 移除背景和阴影，交由 Tailwind 控制 */
    }

    /* 搜索框独立优�?*/
    .search-input-wrapper input {
        min-height: 44px;
        font-size: 16px; /* 防止iOS自动缩放 */
    }

    .location-map {
        height: 300px; /* 移动端地图高度减�?*/
    }
}



/* // MODIFIED_START: 恢复富有弹性的呼吸节奏 */ 
@keyframes ripple-pulse { 
  0%, 100% { 
    transform: scale(1); 
    opacity: var(--base-opacity, 0.4); 
    box-shadow: 0 0 2px rgba(139, 92, 246, 0.1); 
    background-color: var(--base-bg); 
  } 
  /* 18% 达到峰值，给上升过程一点点积累感 */ 
  18% { 
    transform: scale(var(--pulse-scale)); 
    opacity: var(--pulse-opacity); 
    box-shadow: var(--pulse-glow); 
    background-color: var(--pulse-bg); 
  } 
  /* 【关键修改】：将完全熄灭点延后到 55% */ 
  /* 这创造了一个从 18% 到 55% 的平滑衰减区间，恢复了呼吸的弹性感 */ 
  55% { 
    transform: scale(1); 
    opacity: var(--base-opacity, 0.4); 
    box-shadow: 0 0 2px rgba(139, 92, 246, 0.1); 
    background-color: var(--base-bg); 
  } 
} 
/* // MODIFIED_END */ 

.ripple-dot { 
  /* 使用 ease-in-out 让突变更加顺滑 */ 
  animation: ripple-pulse 3s ease-in-out infinite; 
  border-radius: 9999px; 
} 


/* // MODIFIED_START: 全局光影联动与深空紫微调 */ 

/* 1. 修正呼吸灯的色相（偏向冷峻的高级蓝紫） */ 
.ripple-dot-1 { 
  animation-delay: 0s; 
  --base-bg: #c4b5fd; 
  --base-opacity: 0.6; 
  --pulse-bg: #ffffff; 
  --pulse-scale: 1.3; 
  --pulse-opacity: 1.0; 
  /* 更冷的深空紫光晕 */ 
  --pulse-glow: 0 0 12px #ffffff, 0 0 25px #a78bfa, 0 0 45px rgba(139, 92, 246, 0.9); 
} 

/* // MODIFIED_START: 修复第二个灯的塑料感 */ 
.ripple-dot-2 { 
  animation-delay: 0.45s; 
  /* 【关键修改】：将休眠底色改深，与第三个灯保持一致的极深紫 */ 
  --base-bg: #2e1065; 
  --base-opacity: 0.3; /* 降低休眠时的透明度 */ 
  
  /* 亮起时的参数保持不变 */ 
  --pulse-bg: #ede9fe; 
  --pulse-scale: 1.12; 
  --pulse-opacity: 0.75; 
  --pulse-glow: 0 0 2px #ffffff, 0 0 10px #8b5cf6, 0 0 20px rgba(139, 92, 246, 0.5); 
} 
/* // MODIFIED_END */ 

.ripple-dot-3 { 
  animation-delay: 0.9s; 
  --base-bg: #2e1065; /* 极深的暗空紫 */ 
  --base-opacity: 0.3; 
  --pulse-bg: #ddd6fe; 
  --pulse-scale: 1.04; 
  --pulse-opacity: 0.55; 
  --pulse-glow: 0 0 1px #ffffff, 0 0 5px #6d28d9, 0 0 10px rgba(109, 40, 217, 0.3); 
} 

/* // MODIFIED_START: 极致紧凑的内敛辉光 */ 
.box-resonator { 
  /* Blur 半径从 15px 大幅减小到 8px，使其紧贴边缘 */ 
  /* 稍微提高一点不透明度 (0.12) 以保证在窄范围内依然可见 */ 
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.12), inset 0 0 4px rgba(139, 92, 246, 0.05); 
  /* 边框线保持极弱 */ 
  border: 1px solid rgba(255, 255, 255, 0.03); 
  transition: all 0.3s ease; 
} 
/* // MODIFIED_END */ 

/* 3. 全息文字微光 */ 
.holo-text { 
  color: #f8fafc; /* 极亮的冷白色 */ 
  text-shadow: 0 0 8px rgba(167, 139, 250, 0.6); /* 柔和的蓝紫微光 */ 
  letter-spacing: 0.5px; 
} 

/* 4. 量子闪烁光标 */ 
@keyframes cyber-blink { 
  0%, 49% { opacity: 1; text-shadow: 0 0 10px #a78bfa, 0 0 20px #8b5cf6; } 
  50%, 100% { opacity: 0; text-shadow: none; } 
} 
.cyber-cursor { 
  display: inline-block; 
  color: #c4b5fd; /* 光标本体颜色 */ 
  animation: cyber-blink 1s step-end infinite; /* 经典的终端闪烁节奏 */ 
  margin-left: 4px; 
  vertical-align: text-bottom; 
} 
/* // MODIFIED_END */

#agent-output {
  line-height: 1.7;
}
#agent-output h1,
#agent-output h2,
#agent-output h3,
#agent-output h4 {
  color: #e4e4e7;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 8px 0 12px 0;
}
#agent-output h1 { font-size: 24px; }
#agent-output h2 { font-size: 22px; }
#agent-output h3 { font-size: 20px; }
#agent-output h4 { font-size: 18px; }

#agent-output p {
  color: #d4d4d8;
  font-size: 15px;
  margin: 10px 0 14px 0;
}

#agent-output strong,
#agent-output b {
  color: #fafafa;
  font-weight: 800;
}

#agent-output ul,
#agent-output ol {
  margin: 10px 0 14px 18px;
  color: #d4d4d8;
}
#agent-output ul { list-style: disc; }
#agent-output ol { list-style: decimal; }

#agent-output code {
  color: #e9d5ff;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 6px;
  padding: 0 6px;
  font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 13px;
}

#agent-output blockquote {
  color: #d4d4d8;
  border-left: 3px solid rgba(139, 92, 246, 0.35);
  padding-left: 12px;
  margin: 10px 0 14px 0;
}
