:root {
    --primary-color: #7C3AED;
    --secondary-color: #9333EA;
    --text-color: #1F2937;
    --light-bg: #F9FAFB;
    --border-color: #E5E7EB;
    --heading-font: 'Gilroy', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, sans-serif;
    --body-font: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(
        135deg,
        #0A0F1E 0%,
        #1A103C 25%,
        #1E1245 50%,
        #1A103C 75%,
        #0A0F1E 100%
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: var(--body-font);
    line-height: 1.6;
    color: #fff;
    min-height: 100vh;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 移除导航栏相关样式 */

.hero {
    background: transparent;
    margin-top: 70px; /* 添加顶部边距，与导航栏高度一致 */
    padding: 5rem 7% 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(124, 58, 237, 0.15),
        rgba(124, 58, 237, 0.05) 30%,
        transparent 70%
    );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: 50%;
    background: radial-gradient(
        circle at center,
        rgba(124, 58, 237, 0.08),
        transparent 70%
    );
    pointer-events: none;
    transform: rotate(-15deg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-features {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.hero-btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-btn.primary {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.slider-container {
    margin-top: 4rem;
    width: calc(100% - 110px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    overflow: visible;
    z-index: 1;
    contain: content;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 1000px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 当前显示的图片 */
.slide.current {
    z-index: 2;
    transform: translateX(0) scale(1);
    opacity: 1;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* 左侧图片 */
.slide.prev {
    z-index: 1;
    transform: translateX(-20%) scale(0.85);
    opacity: 0.3;
}

/* 右侧图片 */
.slide.next {
    z-index: 1;
    transform: translateX(20%) scale(0.85);
    opacity: 0.3;
}

/* 轮播按钮样式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.8);
    border: none;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 进度环样式 */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 2;
}

.progress-ring .background {
    stroke: rgba(255, 255, 255, 0.2);
}

.progress-ring .progress {
    stroke: #fff;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.1s linear;
}

/* 按钮内的箭头 */
.slider-btn span {
    position: relative;
    z-index: 2;
    font-size: 20px;
    color: #fff;
    line-height: 1;
}

/* 按钮悬停效果 */
.slider-btn:hover {
    background: rgba(147, 51, 234, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 应用卡片容器 */
.app-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

/* 单个应用卡片 */
.app-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    max-width: 280px;
    transition: all 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

/* 添加卡片进度动画 */
.card-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.progress-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.1s linear;
}

/* 激活状态样式 */
.app-card.active {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.app-card.active .progress-line {
    animation: progress-animation 12s linear infinite;  /* 4张图片 × 3秒 */
}

@keyframes progress-animation {
    0% {
        stroke-dashoffset: 400;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* 悬停效果 */
.app-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.app-card:hover .progress-line {
    animation-play-state: paused;
}

/* 应用标题 */
.app-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 应用描述 */
.app-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    min-height: 3em;
}

/* 应用按钮 */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.app-btn .progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover .progress-ring {
    opacity: 1;
}

.app-card.active .progress-ring {
    opacity: 1;
}

/* 添加标题容器样式 */
.section-header {
    text-align: center;
    padding: 0 1.25rem;
    margin: 2rem auto 1.5rem;
}

/* 保留加载指示器样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A0F1E;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* 优化动画性能 */
@media (prefers-reduced-motion: reduce) {
    .app-card, .slide {
        transition: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移除重复的导航栏样式 */
    .hero {
        margin-top: 60px;
        padding: 3rem 0 0;
        margin-bottom: 1rem;
    }

    .section-title {
        text-align: center;
        font-size: 1.75rem;
        font-weight: 600;
        color: #fff;
        text-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        text-align: center;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
    }

    /* 添加标题样式 */
    .app-header {
        text-align: center;
        padding: 0 1.25rem;
        margin: 4rem auto 1.5rem;  /* 调整顶部边距，考虑导航栏高度 */
    }

    .app-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #fff;
        text-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .app-subtitle {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
    }

    /* 调整卡片容器的边距 */
    .app-cards {
        flex-direction: column;
        gap: 0.375rem;
        margin: 1rem auto 0.375rem;
        padding: 0 1.25rem;
        width: 100%;
        position: relative;
        z-index: 10;
    }
    
    .app-card {
        max-width: 100%;
        padding: 0.5rem 0.75rem;
        min-height: 2.5rem;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(20px);
        border-radius: 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        transition: all 0.3s ease;
        transform: scale(0.98);
        gap: 1.25rem;
        pointer-events: auto !important; /* 强制确保卡片可以接收点击事件 */
        cursor: pointer;
        z-index: 10; /* 提高z-index确保可点击 */
        position: relative; /* 确保z-index生效 */
    }

    /* 确保卡片内所有元素都可以接收点击事件 */
    .app-card > * {
        pointer-events: auto !important;
    }
    
    /* 进度条不应该影响点击 */
    .app-card .card-progress {
        pointer-events: none;
        z-index: 0;
    }

    .app-card h3 {
        font-size: 0.875rem;
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        transition: all 0.3s ease;
        transform: scale(0.95);
        line-height: 1.2;
        flex: 1;
        white-space: nowrap;
    }
    
    .app-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .app-btn {
        padding: 0.25rem 0.75rem;
        background: rgba(124, 58, 237, 0.1);
        border: 1px solid rgba(124, 58, 237, 0.2);
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
        transform: none;
        opacity: 1;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 70px;
        text-align: center;
    }

    /* 激活状态样式调整 */
    .app-card.active {
        padding: 1rem;  /* 从 1.5rem 减小到 1rem */
        min-height: auto;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;  /* 减小内部间距 */
    }

    .app-card.active h3 {
        flex: none;
        padding-right: 0;
        margin-bottom: 0.5rem;  /* 从 1rem 减小到 0.5rem */
        font-size: 1.15rem;  /* 稍微减小字体大小 */
        transform: scale(1);
        color: #fff;
        font-weight: 600;
    }

    .app-card.active p {
        max-height: 80px;  /* 减小最大高度 */
        opacity: 1;
        margin-bottom: 0.75rem;  /* 从 1.25rem 减小到 0.75rem */
        font-size: 0.9rem;  /* 稍微减小字体大小 */
        line-height: 1.4;  /* 减小行高 */
    }

    .app-card.active .app-btn {
        padding: 0.5rem 1.75rem;  /* 减小按钮内边距 */
        font-size: 0.9rem;  /* 稍微减小字体大小 */
    }

    .slider-container {
        width: 100%;
        padding: 0 1rem;
        margin-top: 1.5rem;
        max-width: 100%;
        overflow: visible;
        position: relative;
        z-index: 1;
        touch-action: pan-y pinch-zoom;
    }

    .slider-track {
        height: auto;
        position: relative;
        display: block;
    }

    .slide {
        position: absolute;
        opacity: 0;
        transition: opacity 0.3s ease;
        width: 100%;
        display: none;
    }

    .slide.current {
        position: relative;
        opacity: 1;
        display: block;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        margin-bottom: 1rem;
    }

    .slide.prev,
    .slide.next {
        display: none;
    }

    .slide img {
        border-radius: 12px;
        max-height: 400px;
        object-position: center;
        width: 100%;
        height: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .slider-dots {
        display: flex !important;
        position: relative;
        margin: 0.5rem auto 0;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 20px;
        padding: 0.8rem 1.5rem;
        width: fit-content;
        gap: 0.8rem;
        justify-content: center;
        z-index: 2;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        cursor: pointer;
        margin: 0 6px;
    }

    .slider-dot::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }

    .slider-dot.active {
        width: 28px;
        border-radius: 4px;
        background: var(--primary-color);
        box-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
    }

    .slider-btn {
        display: none;
    }

    .section-header {
        margin: 1rem auto 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #fff;
        text-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
    }
}

/* 超小屏幕额外优化 */
@media (max-width: 375px) {
    .slider-container {
        margin-top: 1.25rem;
    }
    
    .slider-dots {
        margin-top: 0.375rem;
        padding: 0.5rem 0.875rem;
    }
} 