/* 首页 Hero 区域样式 */
.hero-container {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    overflow: hidden;
    padding-left: 120px;
    padding-right: 120px;
    background: #0a0a0a;
}

/* 动画背景 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 主要内容 */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    margin-top: 0;
    animation: fadeInUp 1s ease-out;
}

.hero-left {
    flex: 1;
    text-align: left;
}

.hero-right {
    flex: 0 0 auto;
    max-width: 320px;
}

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

.hero-logo-wrapper {
    animation: logoGlow 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 60px;
}

.hero-logo {
    height: 200px;
    width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    border-radius: 24px;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(59, 130, 246, 0.8));
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-line {
    display: block;
    animation: slideIn 0.8s ease-out backwards;
}

.title-line-large {
    font-size: 96px;
    font-weight: 800;
    display: block;
    animation: slideIn 0.8s ease-out backwards;
    transform-origin: center;
}

#unites-text {
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: transform 0.1s ease;
}

/* 遮罩框覆盖层 */
#unites-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 110%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.9));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(20px);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

#unites-text.revealed::after {
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line-large:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

/* Unites文本特殊处理：遮罩下显示蓝色实色，遮罩消失后显示渐变 */
#unites-text {
    color: #3b82f6;
}

#unites-text.revealed {
    background: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    font-weight: 400;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* CTA 按钮 */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.cta-button:hover::before {
    transform: translateX(0);
}

.cta-button.primary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.cta-button.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button.primary:hover .arrow-icon {
    transform: translateX(5px);
}

/* 功能卡片 */
.features-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin-top: 80px;
    padding: 0 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card[data-delay="0"] { animation-delay: 1s; }
.feature-card[data-delay="1"] { animation-delay: 1.1s; }
.feature-card[data-delay="2"] { animation-delay: 1.2s; }
.feature-card[data-delay="3"] { animation-delay: 1.3s; }

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.2));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(96, 165, 250, 0.4));
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        padding: 60px 60px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-logo {
        height: 150px;
        width: 150px;
    }
    
    .hero-logo-wrapper {
        padding: 40px;
    }
    
    .title-line-large {
        font-size: 72px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 30px 16px;
        min-height: calc(100vh - 56px);
        padding-top: 40px;
    }

    .hero-content {
        gap: 40px;
        margin-top: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo {
        height: 100px;
        width: 100px;
    }
    
    .hero-logo-wrapper {
        order: -1; /* 放在最前面 */
        margin-bottom: 32px;
        margin-top: 0;
        padding: 25px;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
        gap: 2px;
        align-items: center;
        text-align: center;
    }
    
    .title-line {
        font-size: 32px;
    }
    
    .title-line-large {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
        text-align: center;
    }
    
    /* 移动端提示文本 - 只在移动端显示 */
    .mobile-notice {
        display: none;
    }
}

/* 桌面端完全透明 */
.mobile-notice {
    opacity: 0;
    pointer-events: none;
}

/* 移动端才显示提示文本 */
@media (max-width: 768px) {
    .mobile-notice {
        display: block;
        font-size: 15px;
        color: #ffffff;
        text-align: center;
        margin-bottom: 32px;
        line-height: 1.5;
        font-weight: 500;
        opacity: 1;
        pointer-events: auto;
    }

    .cta-button {
        padding: 13px 26px;
        font-size: 15px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .arrow-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-cta {
        gap: 12px;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        justify-content: center;
        align-items: stretch;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 50px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .feature-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 13px;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }
    
    .grid-overlay {
        background-size: 30px 30px;
    }
    
    /* 移动端移除遮罩框但保留文本 */
    #unites-text::after {
        display: none !important;
    }
    
    #unites-text {
        cursor: default;
        pointer-events: none;
        /* 移动端直接显示蓝色 */
        color: #3b82f6 !important;
        background: none !important;
        -webkit-text-fill-color: #3b82f6 !important;
    }
    
    /* 移动端不需要revealed状态 */
    #unites-text.revealed {
        color: #3b82f6 !important;
        background: none !important;
        -webkit-text-fill-color: #3b82f6 !important;
    }
}

/* 超小屏幕适配 */
@media (max-width: 375px) {
    .hero-container {
        padding: 25px 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .title-line {
        font-size: 28px;
    }
    
    .title-line-large {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-logo {
        height: 80px;
        width: 80px;
    }
    
    .hero-logo-wrapper {
        padding: 20px;
    }
    
    .feature-card {
        padding: 18px 14px;
    }
}
