/* 
 * aimoofa - AI驱动个体IP成长平台
 * 自定义样式表
 */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 应用动画的元素初始状态 */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* 渐变文本效果 */
.gradient-text {
    background: linear-gradient(to right, #2563EB, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 触摸友好的元素 - 增加点击区域 */
.touch-friendly {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 移动设备卡片样式 */
.mobile-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 页面加载动画 */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 聊天容器样式 */
#chat-container::-webkit-scrollbar {
    width: 4px;
}

#chat-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

/* 导航栏样式 */
#navbar:not(.bg-white) #logo-text {
    color: white;
}

#navbar:not(.bg-white) #mobile-menu-btn {
    color: white;
}

#navbar.bg-white #logo-text {
    background: linear-gradient(to right, #2563EB, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

/* 移动端菜单样式 */
#mobile-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .touch-friendly {
        min-height: 48px;
        min-width: 48px;
    }
    
    #chat-container {
        height: 320px;
    }
}

/* 图片悬停效果 */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* 卡片悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 按钮点击效果 */
button:active:not(:disabled) {
    transform: scale(0.98);
}

/* 加载状态 */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 辅助类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 
 * aimoofa - AI驱动个体IP成长平台
 * 自定义样式表
 */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 应用动画的元素初始状态 */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* 渐变文本效果 */
.gradient-text {
    background: linear-gradient(to right, #2563EB, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 触摸友好的元素 - 增加点击区域 */
.touch-friendly {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 移动设备卡片样式 */
.mobile-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 页面加载动画 */
body:not(.loaded) {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 聊天容器样式 */
#chat-container::-webkit-scrollbar {
    width: 4px;
}

#chat-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

/* 导航栏样式 */
#navbar:not(.bg-white) #logo-text {
    color: white;
}

#navbar:not(.bg-white) #mobile-menu-btn {
    color: white;
}

#navbar.bg-white #logo-text {
    background: linear-gradient(to right, #2563EB, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

/* 移动端菜单样式 */
#mobile-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .touch-friendly {
        min-height: 48px;
        min-width: 48px;
    }
    
    #chat-container {
        height: 320px;
    }
}

/* 图片悬停效果 */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* 卡片悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 按钮点击效果 */
button:active:not(:disabled) {
    transform: scale(0.98);
}

/* 加载状态 */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 辅助类 */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 手机展示区域样式 - 新增 */
.mobile-showcase-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.mobile-row {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-row {
    top: 0;
    transform: translateY(-50px) translateZ(-100px);
    opacity: 0;
    z-index: 1;
}

.middle-row {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.bottom-row {
    bottom: 0;
    transform: translateY(50px) translateZ(-100px);
    opacity: 0;
    z-index: 1;
}

.mobile-device {
    position: relative;
    width: 200px;
    height: 400px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

.mobile-device.visible {
    opacity: 1;
    transform: scale(1);
}

.mobile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: #111;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* 展开后的样式 */
.mobile-showcase-active .top-row {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.mobile-showcase-active .bottom-row {
    transform: translateY(0) translateZ(0);
    opacity: 1;
}

.mobile-showcase-active .mobile-device {
    opacity: 1;
    transform: scale(0.8);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .mobile-device {
        width: 160px;
        height: 320px;
    }
    
    .mobile-showcase-container {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .mobile-device {
        width: 120px;
        height: 240px;
    }
    
    .mobile-showcase-container {
        height: 600px;
    }
    
    .mobile-row {
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .mobile-device {
        width: 90px;
        height: 180px;
    }
    
    .mobile-showcase-container {
        height: 500px;
    }
    
    .mobile-frame {
        border-radius: 20px;
        padding: 5px;
    }
    
    .mobile-screen {
        border-radius: 16px;
    }
}

 .police-beian{
    padding:12px 0;
    font-size:14px;
    line-height:1;
    display:flex;
    justify-content:center;
    background:transparent;
  }
  .police-beian .beian-link{
    display:inline-flex;
    align-items:center;
    color:#666;
    text-decoration:none;
    gap:6px;
  }
  .police-beian .beian-link:hover .beian-text{
    color:#333;
    text-decoration:underline;
  }
  .police-beian .beian-icon{
    display:inline-block;
    width:20px;height:20px;
    object-fit:contain;
    vertical-align:middle;
  }
  .police-beian .beian-text{
    white-space:nowrap;
  }

  /* 深色模式适配 */
  @media (prefers-color-scheme: dark){
    .police-beian .beian-link{ color:#aaa; }
    .police-beian .beian-link:hover .beian-text{ color:#fff; }
  }

  /* 移动端微调 */
  @media (max-width:480px){
    .police-beian{ padding:10px 0; }
    .police-beian .beian-text{ font-size:13px; }
  }

  /* 背景图片和图案样式 - 新增 */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.section-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: -1;
}

/* 背景图案 */
.bg-pattern-circuit {
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M5 10 l10 0 l0 10 l10 0" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="1"/><path d="M35 40 l0 20 l30 0 l0 30" stroke="rgba(255,255,255,0.1)" fill="none" stroke-width="1"/><circle cx="5" cy="10" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="25" cy="10" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="5" cy="30" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="35" cy="40" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="35" cy="60" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="65" cy="60" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="65" cy="90" r="2" fill="rgba(255,255,255,0.2)"/></svg>');
    background-repeat: repeat;
}

.bg-pattern-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-dots-light {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 15px 15px;
}

.bg-pattern-grid {
    background-image: linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* 确保section有相对定位，以便背景图片定位正确 */
section {
    position: relative;
    overflow: hidden;
}

/* 特定区域的背景样式 */
#home {
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(139, 92, 246, 0.9));
    z-index: -2;
}

#services .section-bg {
    opacity: 0.15;
}

#customers .section-bg {
    opacity: 0.1;
}

#testimonials .section-bg {
    opacity: 0.08;
}

#cta .section-bg {
    opacity: 0.2;
}

#footer .section-bg {
    opacity: 0.1;
}

/* 移动设备展示区域背景 */
#mobile-showcase {
    background-color: #f8fafc;
    position: relative;
}

#mobile-showcase .section-bg {
    opacity: 0.08;
}

#demo .section-bg {
    opacity: 0.1;
}

/* 背景渐变叠加效果 */
.bg-gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: -1;
}

/* 暗色背景上的文字增强可读性 */
.dark-bg-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 视差滚动效果 */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 响应式背景调整 */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll; /* 移动设备上禁用视差效果 */
    }
    
    .section-bg {
        opacity: 0.15 !important; /* 移动设备上降低背景图片不透明度，增强可读性 */
    }
}

