/* 基础全局样式 */
body { 
    background-color: #FDFDFD; 
    color: #1a1a1a; 
    transition: all 0.6s; 
    font-kerning: normal; 
}

/* Apple 风格卡片 */
.apple-card { 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 2.5rem; 
    transition: all 0.5s cubic-bezier(0.15, 0.83, 0.66, 1); 
}
.apple-card:hover { 
    transform: scale(1.005); 
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.12); 
}

/* 磨砂玻璃导航栏 */
.glass-nav { 
    background: rgba(253, 253, 253, 0.7); 
    backdrop-filter: saturate(180%) blur(20px); 
    z-index: 1000; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

/* 渐变文字效果 */
.text-gradient { 
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* 页面切换动画 */
.page-node { display: none; opacity: 0; }
.page-node.active { display: block; animation: smoothFadeIn 0.8s forwards; }
@keyframes smoothFadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Logo 微阴影 */
.logo-micro-shadow { filter: drop-shadow(0 2px 4px rgba(0, 33, 71, 0.1)); }

/* 合作伙伴 Logo 样式 */
.partner-logo { 
    filter: none; 
    opacity: 1; 
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.partner-logo:hover { transform: scale(1.1); }

/* 悬浮按钮 (FAB) */
.fab-contact { 
    position: fixed; bottom: 2rem; right: 2rem; z-index: 2000; 
    width: 3.5rem; height: 3.5rem; border-radius: 50%; 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); 
    border: 1px solid rgba(0, 33, 71, 0.1); 
    display: flex; align-items: center; justify-content: center; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    cursor: pointer; transition: all 0.4s; 
}
.fab-contact:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2); }

/* 轮播图样式 */
.dot-active { width: 1.5rem !important; background-color: #002147 !important; }
.testimonial-slide { position: absolute; width: 100%; opacity: 0; transition: all 0.8s ease-in-out; pointer-events: none; }
.testimonial-active { opacity: 1; pointer-events: auto; }

/* 提示按钮 */
.hint-btn { 
    border: 1px solid rgba(0, 33, 71, 0.1); 
    background: white; 
    padding: 8px 16px; 
    border-radius: 100px; 
    font-size: 10px; font-weight: 600; color: #64748b; 
    cursor: pointer; transition: all 0.3s; 
}
.hint-btn:hover { background: #002147; color: white; transform: translateY(-2px); }

/* 图片缩放容器 */
.img-zoom-container { overflow: hidden; position: relative; border-radius: inherit; }

/* 关键修复：合并 transform 和 opacity 的过渡效果，解决淡入淡出失效问题 */
.img-zoom-container img { 
    transition: transform 1.2s cubic-bezier(0.15, 0.83, 0.66, 1), opacity 1s ease-in-out; 
    will-change: transform, opacity;
}
.apple-card:hover .img-zoom-container img { transform: scale(1.06); }

/* 录音动画 */
@keyframes pulse-red { 0% { transform: scale(1); } 50% { transform: scale(1.1); color: #ef4444; } 100% { transform: scale(1); } }
.recording-active { animation: pulse-red 1s infinite; color: #ef4444 !important; }

/* 全局 Loading */
#global-loader { 
    position: fixed; inset: 0; z-index: 9999; background: #fff; 
    display: flex; align-items: center; justify-content: center; 
    transition: opacity 0.6s; 
}
.loader-spinner { 
    width: 40px; height: 40px; 
    border: 3px solid rgba(0,33,71,0.1); 
    border-top-color: #002147; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-out { opacity: 0; pointer-events: none; }

/* 聊天气泡 */
.ai-bubble { 
    background: #f1f3f4; 
    border-radius: 1.4rem 1.4rem 1.4rem 0.2rem; 
    padding: 0.8rem 1.25rem; 
    max-width: 85%; 
    width: fit-content; 
    line-height: 1.7; 
    text-align: left; 
    word-break: break-word; 
    white-space: pre-wrap; 
    align-self: flex-start; 
}
.user-bubble { 
    background: #002147; 
    color: white; 
    border-radius: 1.4rem 1.4rem 0.2rem 1.4rem; 
    padding: 0.8rem 1.25rem; 
    max-width: 85%; 
    width: fit-content; 
    margin-left: auto; 
    line-height: 1.7; 
    text-align: left; 
    word-break: break-word; 
    white-space: pre-wrap; 
    align-self: flex-end; 
}

/* 夜间模式适配 (虽然首页移除了开关，但保留 CSS 以防万一) */
body.dark { background-color: #050505; color: #f5f5f5; }
body.dark .apple-card { background: rgba(30, 30, 30, 0.6); border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
body.dark .glass-nav { background: rgba(10, 10, 10, 0.85); border-bottom-color: rgba(255,255,255,0.1); }
body.dark .text-gradient { background: linear-gradient(135deg, #ffffff 0%, #d1d1d1 100%); -webkit-background-clip: text; }
body.dark .logo-micro-shadow { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
body.dark .partner-logo { filter: grayscale(100%) opacity(50%) brightness(1.3); }
body.dark .fab-contact { background: rgba(30, 40, 50, 0.9); border-color: rgba(255,255,255,0.1); }
body.dark .dot-active { background-color: #38bdf8 !important; }
body.dark .ai-bubble { background: #1e1e1e; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.05); }
body.dark .user-bubble { background: #075985; }
body.dark .hint-btn { background: #1e1e1e; border-color: #334155; color: #94a3b8; }
body.dark .hint-btn:hover { background: #38bdf8; color: #000; border-color: #38bdf8; }