/* 商贸客服专业风格CSS */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 商贸客服专业风格主题变量 */
:root {
    /* 主色调 - 蓝色系专业色彩 */
    --primary-color: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --secondary-color: #059669;
    --accent-color: #DC2626;
    --warning-color: #F59E0B;
    
    /* 背景色系 */
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-hover: #F8FAFC;
    
    /* 文字颜色 */
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    
    /* 边框颜色 */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* 消息气泡颜色 */
    --user-bubble: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --bot-bubble: #FFFFFF;
    --bot-border: #E2E8F0;
    
    /* 阴影定义 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* 圆角规格 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 尺寸定义 */
    --header-height: 80px;
    --input-height: 90px;
    --message-gap: 18px;
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 动画时间 */
    --animation-fast: 0.15s;
    --animation-normal: 0.25s;
    --animation-slow: 0.4s;
}

/* 基础样式 */
html {
    height: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 聊天主容器 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    position: relative;
}

/* 顶部标题栏 */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

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

.back-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.back-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    transform: translateX(-2px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 22px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--secondary-color);
    border: 3px solid var(--bg-surface);
    border-radius: 50%;
    bottom: -2px;
    right: -2px;
}

.contact-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.status {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.menu-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: var(--message-gap);
    scroll-behavior: smooth;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* 消息样式 */
.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: slideInUp 0.3s ease-out;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.bot-message .message-avatar {
    background: var(--secondary-color);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.message-bubble {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--animation-fast) ease;
}

.message-bubble:hover {
    box-shadow: var(--shadow-md);
}

.user-message .message-bubble {
    background: var(--user-bubble);
    color: var(--text-white);
    border-bottom-right-radius: 6px;
}

.bot-message .message-bubble {
    background: var(--bot-bubble);
    color: var(--text-primary);
    border: 1px solid var(--bot-border);
    border-bottom-left-radius: 6px;
}

/* 消息底部区域 */
.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    opacity: 0.8;
    transition: opacity var(--animation-fast) ease;
}

.message:hover .message-footer {
    opacity: 1;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    flex: 1;
}

.bot-message .message-time {
    text-align: left;
}

.user-message .message-time {
    text-align: right;
}

/* 复制按钮 */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    transition: all var(--animation-fast) ease;
    opacity: 0;
    transform: scale(0.8);
    margin-left: 8px;
}

.message-footer:hover .copy-btn {
    opacity: 1;
    transform: scale(1);
}

.copy-btn:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.9);
}

.user-message .copy-btn {
    color: rgba(255, 255, 255, 0.8);
}

.user-message .copy-btn:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
}

/* 打字指示器 */
.typing-indicator {
    animation: fadeInUp 0.3s ease-out;
}

.typing {
    padding: 20px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-light) !important;
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typingDots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

/* 底部输入区域 */
.chat-input {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 22px 24px;
    backdrop-filter: blur(20px);
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.attachment-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    flex-shrink: 0;
}

.attachment-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.text-input-wrapper {
    flex: 1;
    position: relative;
}

#messageInput {
    width: 100%;
    min-height: 46px;
    max-height: 120px;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all var(--animation-fast) ease;
    line-height: 1.5;
}

#messageInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#messageInput::placeholder {
    color: var(--text-muted);
}

.char-count {
    position: absolute;
    bottom: -22px;
    right: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.send-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    flex-shrink: 0;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    color: var(--text-muted);
}

.send-btn:not(:disabled):hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 连接状态提示 */
.connection-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-elevated);
    padding: 20px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    border: 1px solid var(--border-color);
    animation: pulse 2s infinite;
}

.connection-status i {
    color: var(--primary-color);
    font-size: 16px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--animation-fast) ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--accent-color);
}

.modal-body {
    padding: 24px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-hover);
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 动画定义 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingDots {
    0%, 80%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-3deg);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .chat-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .chat-header {
        padding: 0 20px;
        height: 70px;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .chat-input {
        padding: 18px 20px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .chat-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        border-radius: var(--radius-sm);
        margin: 0;
    }
}

@media (min-width: 769px) {
    .chat-container {
        border-radius: var(--radius-xl);
        margin: 0 auto;
        height: 100vh;
        min-height: 100vh;
        max-width: 480px;
        box-shadow: var(--shadow-xl);
    }
    
    body {
        padding: 0;
        background: var(--background-gradient);
    }
}

@media (min-width: 1200px) {
    .chat-container {
        max-width: 520px;
    }
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 消息气泡小尾巴 */
.user-message .message-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-top: 6px solid transparent;
    border-bottom: 6px solid var(--primary-color);
}

.bot-message .message-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-top: 6px solid transparent;
    border-bottom: 6px solid var(--bot-bubble);
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--text-primary);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: all var(--animation-normal) ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast i {
    margin-right: 8px;
}

/* ===== Landing Page 样式 ===== */

/* Landing Page 专用样式 */
.landing-page {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
}

.landing-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    position: relative;
}

/* 头部区域 */
.landing-header {
    padding: 50px 24px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 20%;
    animation-delay: -4s;
}

.shape-4 {
    width: 30px;
    height: 30px;
    bottom: 20%;
    left: 20%;
    animation-delay: -1s;
}

.logo-section {
    position: relative;
    z-index: 1;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.logo-inner {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-white);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.landing-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.4;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 主要内容区域 */
.landing-main {
    flex: 1;
    padding: 32px 24px;
}

.intro-section {
    text-align: center;
    margin-bottom: 28px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.intro-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.intro-section p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* 智能体网格 */
.agents-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 0;
}

.agent-card {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(99, 102, 241, 0.05) 0%, 
            rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.agent-card.active {
    cursor: pointer;
}

.agent-card.active:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-color: rgba(99, 102, 241, 0.3);
}

.agent-card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.agent-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.agent-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agent-card.active .agent-icon {
    background: 
        linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    box-shadow: 
        0 12px 24px rgba(37, 99, 235, 0.4),
        0 4px 8px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.agent-card.active:hover .agent-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 
        0 16px 32px rgba(37, 99, 235, 0.5),
        0 8px 16px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.agent-card.disabled .agent-icon {
    background: 
        linear-gradient(135deg, rgba(148, 163, 184, 0.3) 0%, rgba(203, 213, 225, 0.3) 100%);
    color: var(--text-muted);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.agent-content {
    flex: 1;
}

.agent-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.agent-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.agent-status.available {
    background: rgba(5, 150, 105, 0.1);
    color: var(--secondary-color);
}

.agent-status.developing {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.agent-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--animation-normal) ease;
}

.agent-card.active:hover .agent-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 特色功能区域 */
.features-section {
    margin-bottom: 40px;
}

.features-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    transition: all var(--animation-normal) ease;
}

.feature-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.feature-item i {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 底部信息 */
.landing-footer {
    padding: 24px 24px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(20px);
}

.landing-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.version-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* Landing Page Toast 样式重写 */
.landing-page .toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    opacity: 0;
    transition: all var(--animation-normal) ease;
    max-width: 300px;
    min-width: 200px;
    color: var(--text-primary);
}

.landing-page .toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.landing-page .toast i {
    color: var(--warning-color);
    font-size: 18px;
    margin-right: 0;
}

.landing-page .toast span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Landing Page 响应式设计 */
@media (max-width: 480px) {
    .landing-header {
        padding: 40px 20px 30px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        margin: 0 auto 12px;
    }
    
    .logo-inner {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 20px;
    }
    
    .landing-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .landing-main {
        padding: 24px 20px;
    }
    
    .intro-section {
        margin-bottom: 20px;
    }
    
    .intro-section h2 {
        font-size: 18px;
    }
    
    .agents-grid {
        gap: 12px;
    }
    
    .agent-card {
        padding: 16px 18px;
        border-radius: 18px;
    }
    
    .agent-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-right: 14px;
        border-radius: 15px;
    }
    
    .agent-content h3 {
        font-size: 15px;
    }
    
    .agent-content p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .landing-footer {
        padding: 20px 20px 16px;
    }
    
    .landing-footer p {
        font-size: 12px;
    }
    
    .version-info {
        font-size: 11px;
    }
    
    .shape {
        display: none;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .landing-container {
        max-width: 600px;
    }
}

@media (min-width: 769px) {
    .landing-container {
        max-width: 520px;
        margin: 24px auto;
        border-radius: 32px;
        min-height: calc(100vh - 48px);
        max-height: calc(100vh - 48px);
        overflow: hidden;
        box-shadow: 
            0 32px 64px rgba(0, 0, 0, 0.12),
            0 16px 32px rgba(0, 0, 0, 0.08);
    }
    
    .landing-header {
        border-radius: 32px 32px 0 0;
    }
    
    .landing-main {
        overflow-y: auto;
    }
    
    .agent-card:hover {
        transform: translateY(-6px) scale(1.02);
    }
    
    .logo:hover {
        transform: translateY(-6px) scale(1.08);
    }
}

/* 快捷操作按钮样式 */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--animation-normal) ease;
    text-align: left;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left var(--animation-normal) ease;
}

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.quick-btn i {
    font-size: 16px;
    color: var(--primary-color);
    transition: color var(--animation-normal) ease;
    flex-shrink: 0;
}

.quick-btn:hover i {
    color: var(--text-white);
}
 