/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==================== Canvas 背景 ==================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== 主容器 ==================== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
}

/* ==================== 通用 Section 样式 ==================== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 00 开场动画 ==================== */
#section-00 {
    position: relative;
    overflow: hidden;
}

.glow-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.main-title {
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
}

.subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 60px;
}

.decorative-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    height: 2px;
}

.line-1 {
    width: 300px;
    bottom: 200px;
    left: 20%;
}

.line-2 {
    width: 400px;
    top: 150px;
    right: 15%;
}

/* ==================== 01 手机模型进场 ==================== */
.phone-container {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.phone {
    width: 320px;
    height: 680px;
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    opacity: 0;
}

.phone::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1e1e1e;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
}

.phone-screen img,
.phone-screen .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left-phone {
    transform: translateX(-300px) scale(0.8);
}

.right-phone {
    transform: translateX(300px) scale(0.8);
}

.glow-spot {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
}

.spot-1 {
    top: 10%;
    left: 10%;
    background: rgba(102, 126, 234, 0.3);
}

.spot-2 {
    bottom: 10%;
    right: 10%;
    background: rgba(118, 75, 162, 0.3);
}

/* ==================== 02 UI 页面过渡展示 ==================== */
.ui-transition-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.ui-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

.ui-card:hover {
    transform: translateY(-10px);
}

.ui-card img,
.ui-card .placeholder-img {
    width: 100%;
    height: auto;
}

.ui-card p {
    padding: 20px;
    font-size: 1.2rem;
    text-align: center;
}

/* ==================== 03 科技感元素 ==================== */
.tech-elements {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    opacity: 0.5;
}

.line-h1 {
    width: 300px;
    height: 2px;
    top: 20%;
    left: 10%;
}

.line-h2 {
    width: 250px;
    height: 2px;
    bottom: 30%;
    right: 15%;
}

.line-v1 {
    width: 2px;
    height: 200px;
    top: 10%;
    right: 25%;
}

.tech-card {
    width: 400px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tech-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.tech-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.tilt-card {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.3s ease;
}

/* ==================== 04 卡片悬浮模块 ==================== */
.floating-cards-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.floating-card {
    width: 280px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(60px);
}

.floating-card:hover {
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.floating-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.floating-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ==================== 05 标题字幕模板 ==================== */
.title-fade {
    opacity: 0;
}

.title-columns {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.title-col {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    opacity: 0;
}

.title-col h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #667eea;
}

.title-col p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.col-left {
    transform: translateX(-100px);
}

.col-right {
    transform: translateX(100px);
}

/* ==================== 06 图标展示动画 ==================== */
.icons-container {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
    opacity: 0;
    transform: scale(0);
}

.icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

.icon-item:hover .icon-circle {
    transform: scale(1.1);
}

.icon-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== 07 功能点分步展示 ==================== */
.feature-steps {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    opacity: 0;
}

.step-left {
    justify-content: flex-start;
    transform: translateX(-200px);
}

.step-right {
    justify-content: flex-end;
    flex-direction: row-reverse;
    transform: translateX(200px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    min-width: 80px;
    text-align: center;
}

.step-item h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== 08 案例拆解展示模块 ==================== */
#section-08 {
    padding: 80px 20px;
}

.case-item {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    width: 100%;
    max-width: 1200px;
    opacity: 0;
}

.case-left-img {
    flex-direction: row;
}

.case-right-img {
    flex-direction: row-reverse;
}

.case-image {
    flex: 1;
    min-width: 400px;
}

.case-image img,
.case-image .placeholder-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.case-text {
    flex: 1;
    padding: 30px;
}

.case-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #667eea;
}

.case-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.case-text ul {
    list-style: none;
    padding: 0;
}

.case-text ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.case-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.case-three-cols {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
}

.case-col {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.case-col:hover {
    transform: translateY(-10px);
}

.case-col img,
.case-col .placeholder-img {
    width: 100%;
    height: auto;
}

.case-col h4 {
    font-size: 1.4rem;
    padding: 20px 20px 10px;
}

.case-col p {
    font-size: 1rem;
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== 09 结尾动画 ==================== */
.ending-container {
    text-align: center;
    position: relative;
}

.logo-fade {
    margin-bottom: 60px;
    opacity: 0;
}

.logo-fade h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    opacity: 0;
}

.contact-info p {
    font-size: 1.3rem;
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.8);
}

.ending-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
}

/* ==================== 控制按钮 ==================== */
.controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.nav-btn {
    padding: 15px 30px;
    background: rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .phone-container {
        gap: 40px;
    }

    .phone {
        width: 280px;
        height: 600px;
    }

    .ui-card {
        width: 100%;
        max-width: 350px;
    }

    .floating-card {
        width: 100%;
        max-width: 300px;
    }

    .title-columns {
        gap: 30px;
    }

    .case-item {
        flex-direction: column !important;
    }

    .case-image {
        min-width: 100%;
    }

    .controls {
        flex-direction: column;
        bottom: 20px;
        gap: 10px;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ==================== 占位图片样式 ==================== */
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    border-radius: 20px;
}

/* 手机屏幕占位图 */
.phone-placeholder-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 30px;
}

.phone-placeholder-2 {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 30px;
}

/* UI 卡片占位图 */
.ui-placeholder-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #000000;
    height: 300px;
    font-size: 1.8rem;
}

.ui-placeholder-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #000000;
    height: 300px;
    font-size: 1.8rem;
}

.ui-placeholder-3 {
    background: linear-gradient(135deg, #00f2fe 0%, #43e97b 100%);
    color: #000000;
    height: 300px;
    font-size: 1.8rem;
}

/* 案例图片占位图 */
.case-placeholder-1 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #000000;
    min-height: 350px;
    font-size: 2.5rem;
}

.case-placeholder-2 {
    background: linear-gradient(135deg, #fed6e3 0%, #fbc2eb 100%);
    color: #000000;
    min-height: 350px;
    font-size: 2.5rem;
}

/* App 卡片占位图 */
.app-placeholder-1 {
    background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%);
    color: #ffffff;
    height: 200px;
    font-size: 1.5rem;
}

.app-placeholder-2 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #ffffff;
    height: 200px;
    font-size: 1.5rem;
}

.app-placeholder-3 {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    color: #000000;
    height: 200px;
    font-size: 1.5rem;
}
