/* resources/css/app.css */
/* 极简清除默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* 基础公共样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== Inter 西文字体 ========== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/fonts/Inter-Regular.woff2?85c128721035823e5405031e066d0918) format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/fonts/Inter-Medium.woff2?da6143a97b8ed2ae857bf220ce14593c) format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(/fonts/Inter-SemiBold.woff2?594041393209f0003754755fbabaefc8) format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/Inter-Bold.woff2?54851dc3f5ada849af04e2079dd89d30) format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(/fonts/Inter-Black.woff2?037d78a2cd9135e7d2c11d71a28f67c5) format('woff2');
}
/* ========== 衬线标题字体（对应新版大标题） ========== */
@font-face {
    font-family: 'Source Serif Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(/fonts/SourceSerifPro-Semibold.ttf.woff2?5c1d378dd5990ef334ca9753f3ec4464) format('truetype');
}

@font-face {
    font-family: 'Noto Serif CJK SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(/fonts/NotoSerifCJKsc-SemiBold.otf?7b328067b28bb507ac675d813414568d) format('opentype');
}

/* 统一标题字体栈，和新版完全对应 */
.font-display,
.section-title,
.hero-title {
    font-family: "Source Serif Pro", "Noto Serif CJK SC", Georgia, "Songti SC", SimSun, serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: rgba(10, 25, 47, 0.85);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    font-family: 'MiSans-Bold';
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 32px;
    color: #00B4D8;
}

.nav-logo .logo img {
    font-size: 22px;
    width: 30%;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-family: 'MiSans-Medium';
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #00B4D8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.btn-login {
    padding: 8px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

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

/*头部搜索框*/
.header-search {
    margin-left: auto;
    margin-right: 40px;
    position: relative;
    width: 420px;
    height: 48px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-search input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 20px;
    color: #1e293b;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.header-search input::-moz-placeholder {
    color: #94a3b8;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.search-btn {
    height: 100%;
    padding: 0 28px;
    border: none;
    border-radius: 20px;
    background: #009688;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-btn:hover {
    background: #00796b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

@media screen and (max-width: 768px){
    .header-search {
        width: 200px;
        height: 40px;
        margin-right: 20px;
    }
    .search-btn {
        padding: 0 16px;
        font-size: 14px;
    }
    .header-search input {
        padding: 0 12px;
        font-size: 14px;
    }
}


/* Footer */
.footer {
    background: #0A192F;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-family: 'MiSans-Bold';
    margin-bottom: 24px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #00B4D8;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* ========== 全局智能客服机器人 ========== */
:root {
    --primary: #00D9C0;
    --primary-glow: #00FFD4;
    --bg-dark: #0A2540;
    --bg-panel: rgba(10, 37, 64, 0.85);
    --text-main: #FFFFFF;
    --text-sub: rgba(255, 255, 255, 0.6);
    --organelle-orange: rgba(245, 158, 11, 0.8);
}

/* 悬浮触发按钮 */
/* ========== 新版细胞悬浮球 ========== */
.bot-trigger {
    position: fixed;
    bottom: 60px;
    right: 60px;
    width: 100px;
    height: 100px;
    z-index: 10000;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bot-trigger:hover {
    transform: scale(1.1);
}

/* 底部阴影 */
.cell-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    animation: shadow-pulse 4s ease-in-out infinite;
    z-index: 1;
}

/* 细胞主体 */
.cell-body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 217, 192, 0.8), rgba(8, 145, 178, 0.9) 60%, rgba(15, 23, 42, 0.9));
    box-shadow: 
        inset -10px -10px 20px rgba(0,0,0,0.5),
        inset 10px 10px 20px rgba(255,255,255,0.4),
        0 0 30px rgba(8, 145, 178, 0.5);
    animation: float 4s ease-in-out infinite, organic-breathe 6s ease-in-out infinite;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 细胞膜流动效果 */
.cell-membrane {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    border: 2px solid rgba(0, 217, 192, 0.6);
    animation: membrane-flow 8s linear infinite;
}

/* 细胞核 */
.nucleus {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #00D9C0 0%, #0891B2 80%);
    border-radius: 50%;
    box-shadow: 0 0 20px #00D9C0, inset 0 0 10px #fff;
    animation: nucleus-pulse 3s ease-in-out infinite;
    z-index: 3;
    position: relative;
}
.nucleus::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    filter: blur(1px);
}

/* 线粒体 */
.mitochondria {
    position: absolute;
    width: 20px;
    height: 10px;
    background: #F59E0B;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.6), 0 0 10px rgba(245, 158, 11, 0.6);
    z-index: 2;
}
.mito-1 { top: 20%; left: 18%; transform: rotate(45deg); animation: orbit-1 10s linear infinite; }
.mito-2 { bottom: 25%; right: 18%; transform: rotate(-30deg); animation: orbit-2 12s linear infinite reverse; }
.mito-3 { top: 40%; right: 12%; transform: rotate(70deg); animation: orbit-3 15s linear infinite; }

/* 粒子 */
.particle {
    position: absolute;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 5px #FFD700;
}

/* ========== 细胞动画定义 ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes shadow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; }
}
@keyframes organic-breathe {
    0%, 100% { border-radius: 50%; }
    25% { border-radius: 48% 52% 50% 50%; }
    50% { border-radius: 50% 50% 52% 48%; }
    75% { border-radius: 52% 48% 48% 52%; }
}
@keyframes membrane-flow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes nucleus-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px #00D9C0, inset 0 0 10px #fff; }
    50% { transform: scale(1.1); box-shadow: 0 0 30px #00D9C0, inset 0 0 15px #fff; }
}
@keyframes orbit-1 { 0% { transform: rotate(45deg) translate(22px) rotate(-45deg); } 100% { transform: rotate(405deg) translate(22px) rotate(-405deg); } }
@keyframes orbit-2 { 0% { transform: rotate(-30deg) translate(26px) rotate(30deg); } 100% { transform: rotate(330deg) translate(26px) rotate(-330deg); } }
@keyframes orbit-3 { 0% { transform: rotate(70deg) translate(18px) rotate(-70deg); } 100% { transform: rotate(430deg) translate(18px) rotate(-430deg); } }


/* ========== 聊天弹窗遮罩层 ========== */
.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 17, 32, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.chat-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* 聊天窗口容器（同步新版 .chat-panel 视觉） */
.chat-window {
    position: relative;
    width: 30%;
    height: 650px;
    background: var(--bg-panel);
    border-radius: 28px;
    border: 1px solid rgba(0, 217, 192, 0.3);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        0 0 20px rgba(0, 217, 192, 0.1),
        inset 0 0 2px var(--primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-overlay.active .chat-window {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 头部 */
.chat-header {
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 217, 192, 0.1);
    background: linear-gradient(180deg, rgba(0, 217, 192, 0.05) 0%, transparent 100%);
    flex-shrink: 0;
}

/* 头部迷你细胞 */
.header-cell-mini {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    position: relative;
}
.header-cell-mini .cell-body {
    width: 40px;
    height: 40px;
    border-width: 2px;
    animation: cell-breathe 4s ease-in-out infinite, membrane-flow 6s linear infinite;
}
.header-cell-mini .nucleus {
    width: 12px;
    height: 12px;
}
.header-cell-mini .nucleolus {
    width: 4px;
    height: 4px;
}

.header-title-wrapper {
    display: flex;
    flex-direction: column;
}
.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-subtitle {
    font-size: 12px;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}
.header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
}
.header-actions .action-btn {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
}
.header-actions .action-btn:hover {
    color: var(--primary);
}

/* 消息主体区 */
.chat-body {
    flex: 1;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    gap: 20px;
}
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 192, 0.2);
    border-radius: 3px;
}

/* 欢迎页大细胞 */
.welcome-center-cell {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    position: relative;
}
.welcome-center-cell .cell-body {
    width: 140px;
    height: 140px;
    margin: 10px;
}
.welcome-center-cell .nucleus {
    width: 40px;
    height: 40px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}
.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome-desc {
    font-size: 14px;
    color: var(--text-sub);
}

/* 输入区域 */
.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 217, 192, 0.1);
    background: rgba(10, 37, 64, 0.95);
    flex-shrink: 0;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.chat-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 14px 50px 14px 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}
.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 217, 192, 0.2);
}
.chat-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.send-btn {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-dark);
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 0 10px rgba(0, 217, 192, 0.4);
    padding: 0;
}
.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 217, 192, 0.6);
}

/* 消息气泡（同步新版配色） */
.message {
    display: flex;
    max-width: 85%;
    animation: botSlideUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}
.message.ai {
    align-self: flex-start;
}
.message.user {
    align-self: flex-end;
}
.msg-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}
.message.ai .msg-bubble {
    background: rgba(0, 217, 192, 0.08);
    color: #fff;
    border: 1px solid rgba(0, 217, 192, 0.2);
    border-bottom-left-radius: 4px;
}
.message.user .msg-bubble {
    background: linear-gradient(135deg, #00D9C0, #0891B2);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 217, 192, 0.2);
}
.msg-time {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 6px;
    align-self: flex-start;
    margin-left: 4px;
}
.message.user .msg-time {
    align-self: flex-end;
    margin-right: 4px;
}
.msg-bubble strong{ font-weight:bold; }
.msg-bubble ul{ padding-left:20px; margin: 6px 0; }
.msg-bubble ol{ padding-left:22px; margin:6px 0; }
.msg-bubble li{ margin:4px 0; }
.msg-bubble a{ color: var(--primary); word-break: break-all; }
.msg-bubble h3 { font-size: 16px; font-weight: 700; margin: 8px 0 4px 0; }
.msg-bubble h4 { font-size: 14.5px; font-weight: 700; margin: 7px 0 3px 0; }


/* 动画 */
@keyframes botFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes botBlink {
    0%, 46%, 48%, 50%, 100% { transform: scaleY(1); }
    47%, 49% { transform: scaleY(0.1); }
}
@keyframes botBlinkRed {
    from { opacity: 0.4; box-shadow: 0 0 2px #ef4444; }
    to { opacity: 1; box-shadow: 0 0 10px #ef4444; }
}
@keyframes botSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端适配 */
@media screen and (max-width:640px){
    .bot-trigger{
        bottom:30px;
        right:20px;
        width:80px;
        height:80px;
    }
    .chat-window{
        width: calc(100% - 40px);
        height: 80vh;
    }
}

/* 细胞通用动画 */
@keyframes cell-breathe {
    0%, 100% { transform: scale(1) translateY(0) rotate(0deg); }
    50% { transform: scale(1.05) translateY(-8px) rotate(2deg); }
}
@keyframes membrane-flow {
    0% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
    50% { border-radius: 60% 40% 55% 45% / 40% 60% 45% 55%; }
    100% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}
@keyframes cytoplasm-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes nucleus-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--primary-glow), inset 0 0 5px rgba(255,255,255,0.8); }
    50% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary), inset 0 0 10px #fff; }
}
@keyframes energy-field {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
}
@keyframes highlight-move {
    0%, 100% { top: 15%; left: 20%; opacity: 0.8; }
    50% { top: 20%; left: 25%; opacity: 0.5; }
}
@keyframes float-organelle-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, 10px) rotate(45deg); }
}
@keyframes float-organelle-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -15px) rotate(-30deg); }
}

/* 细胞内部元素通用样式 */
.cell-energy-field {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 217, 192, 0.2) 0%, transparent 70%);
    animation: energy-field 4s ease-in-out infinite;
    pointer-events: none;
}
.cell-highlight {
    position: absolute;
    width: 30px;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    transform: rotate(-30deg);
    animation: highlight-move 5s ease-in-out infinite;
    pointer-events: none;
}
.cytoplasm {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 217, 192, 0.2) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: cytoplasm-flow 10s ease infinite;
}
.nucleolus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
}
.organelle {
    position: absolute;
    border-radius: 50%;
    background: var(--organelle-orange);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.5);
    filter: blur(1px);
}
.mitochondrion-1 {
    width: 15px;
    height: 8px;
    top: 20%;
    left: 20%;
    animation: float-organelle-1 6s ease-in-out infinite;
}
.mitochondrion-2 {
    width: 12px;
    height: 6px;
    bottom: 25%;
    right: 20%;
    background: rgba(8, 145, 178, 0.8);
    animation: float-organelle-2 7s ease-in-out infinite reverse;
}



