/* 自定义样式增强 */

/* 渐变动画 */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient {
    background: linear-gradient(-45deg, #ff6b6b, #ee5a24, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
.header-float-wave{
    background-image: url("../images/wave-header.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto auto;
    width: 1440px;
    height: 410px;
    left: calc(50% - 720px);
    bottom: 0px;
}
.title-underline::after{
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 8.8rem;
    height: 2px;
    background: linear-gradient(90deg, #9E69FC 0%, #FE4685 54.33%, #FF821E 100%);
}
.nav-underline::after{
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #9E69FC 0%, #FE4685 54.33%, #FF821E 100%);
}
.text-slogon{
    background: linear-gradient(90deg, #9E69FC 0%, #FE4685 54.33%, #FF821E 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.border-right{
    border-right: 1px solid #DCDCDC;
}
.border-bottom{
    border-bottom: 1px solid #DCDCDC;
}
.bg-gray-f5{
   background-color: #F5F5F5;
}
.bg-gray-f9{
    background-color: #F9F9F9;
}
.bg-gray-ed{
    background-color: #ededed;
}
.technology-bg{
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 2.1rem;
}
.technology-bg-img{
    margin-top: auto;
}
.font-weight-600{ 
    font-weight: 600;
    color: #424242;
    height: 5rem;
    line-height: 5rem;
    font-size: 1.5rem;
}
.font-weight-400{ 
    font-weight: 400;
    color: #757575;
}
.flex-direction-column{
    flex-direction: column; 
}
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    overflow: hidden;
}

.carousel-item-sence{
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
}
.carousel-item:nth-child(1) .carousel-item-sence{
    background-image: url("../images/office-scene.png");
}
.carousel-item:nth-child(2) .carousel-item-sence{
    background-image: url("../images/entertainment-scene.png");
}
.carousel-item:nth-child(3) .carousel-item-sence{
    background-image: url("../images/gaming-scene.png");
}
.carousel-item:nth-child(4) .carousel-item-sence{
    background-image: url("../images/creative-scene.png");
}

.download-white{
    border: 1px #93C5FD solid !important;
    background-color: white !important;
    color: rgba(0, 122, 255, 1) !important;
    box-shadow: none !important;
}

/* 卡片3D效果 */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

/* 文字打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #ff6b6b;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}
.download-text-title{
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(117, 117, 117, 1);
}
.download-text-content{
    font-weight: 400;
    font-size: 0.8rem;
    color: rgba(117, 117, 117, 1);
    line-height: 1.3rem;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ff6b6b; }
}

/* 粒子背景效果 */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(238, 90, 36, 0.1) 0%, transparent 50%);
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* 按钮脉冲效果 */
.pulse-button {
    position: relative;
    overflow: hidden;
}

.pulse-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pulse-button:hover::before {
    width: 300px;
    height: 300px;
}

/* 进度条动画 */
.progress-bar {
    position: relative;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9E69FC 0%, #FE4685 54.33%, #FF821E 100%);
    border-radius: 10px;
    transition: width 2s ease-in-out;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b6b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式字体大小 */
.responsive-text {
    font-size: clamp(1rem, 4vw, 2rem);
}

.responsive-title {
    font-size: clamp(2rem, 8vw, 4rem);
}

/* 图片悬停效果 */
.image-hover {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.image-hover img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.image-hover:hover img {
    transform: scale(1.1);
}

.image-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(102, 126, 234, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-hover:hover::after {
    opacity: 1;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 107, 0.2);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, #9E69FC 0%, #FE4685 54.33%, #FF821E 100%);

    width: 0%;
    transition: width 0.1s ease;
}

/* 弹性动画 */
.bounce-in {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 焦点样式 */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.5);
}

/* 暗色主题变量 */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a202c;
        --bg-secondary: #2d3748;
        --text-primary: #ffffff;
        --text-secondary: #a0aec0;
        --border-color: #4a5568;
    }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .feature-card,
    .tech-card {
        border: 2px solid;
    }
    
    .download-btn {
        border: 2px solid;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .responsive-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .tech-card:hover {
        transform: none;
    }
    
    .download-btn:hover {
        transform: none;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #ee5a24);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ee5a24, #ff6b6b);
}

/* Firefox滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: #FF821E #f1f1f1;
}
