/* 科技感英雄区域样式 */

/* 英雄区域背景动画 */
.miniprogram-hero {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
    color: white;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* 科技网格背景 */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 浮动粒子效果 */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    opacity: 0.6;
    animation: float-particle 15s ease-in-out infinite;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 3s;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 60%;
    animation-delay: 6s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 70%;
    left: 25%;
    animation-delay: 9s;
}

.particle-5 {
    width: 7px;
    height: 7px;
    top: 40%;
    left: 50%;
    animation-delay: 12s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) translateX(-15px);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-40px) translateX(25px);
        opacity: 0.9;
    }
}

/* 英雄内容区域 */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* 徽章样式 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: badge-glow 3s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

/* 主标题样式 */
.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    position: relative;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}

.title-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    z-index: -1;
    animation: title-pulse 4s ease-in-out infinite;
}

@keyframes title-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

/* 描述文本样式 */
.hero-description {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.desc-highlight {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 40px;
}

/* 功能卡片样式 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    transition: all 0.3s ease;
}

.icon-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: icon-glow 3s ease-in-out infinite;
}

.feature-card:hover .icon-glow {
    opacity: 1;
}

@keyframes icon-glow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
}

.feature-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* 按钮样式 */
.hero-actions {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
}

.outline-btn {
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: white;
}

.outline-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

/* 手机展示区域 */
.hero-visual {
    position: relative;
}

.tech-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.phone-showcase {
    position: relative;
}

.phone-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        0 0 50px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screen-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    border-radius: 40px;
    animation: screen-pulse 4s ease-in-out infinite;
}

@keyframes screen-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.mini-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 30px 30px 0 0;
    z-index: 3;
    pointer-events: none;
}

/* 科技装饰元素 */
.tech-dots {
    position: absolute;
    top: 20px;
    right: -30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 10px;
    animation: dot-pulse 2s ease-in-out infinite;
}

.dot-1 {
    background: #10b981;
    animation-delay: 0s;
}

.dot-2 {
    background: #f59e0b;
    animation-delay: 0.5s;
}

.dot-3 {
    background: #ef4444;
    animation-delay: 1s;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    animation: rotate 20s linear infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 15%;
    animation-duration: 20s;
}

.circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    height: 1px;
    animation: line-move 10s linear infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    left: 0;
    right: 0;
    animation-delay: 3s;
}

.line-3 {
    top: 70%;
    left: 0;
    right: 0;
    animation-delay: 6s;
}

@keyframes line-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .tech-elements {
        display: none;
    }

    .tech-grid {
        animation-duration: 30s;
    }
}

@media (max-width: 768px) {
    .miniprogram-hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .particle {
        display: none;
    }
}

@media (max-width: 576px) {
    .miniprogram-hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto 15px;
    }

    .phone-frame {
        width: 200px;
        height: 400px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-content {
        padding: 16px 30px;
        font-size: 1rem;
        min-width: 200px;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .title-glow {
        display: none;
    }

    .tech-grid {
        display: none;
    }
}