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

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --text-dark: #1d1d1f;
    --text-light: #86868b;
    --bg-light: #f5f5f7;
    --bg-dark: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 主横幅 */
.hero {
    padding: 50px 0 0;
    background: #E5E9F3;
    color: var(--text-dark);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 100%;
    padding: 0;
    min-height: 256px;
}

.hero-content {
    animation: fadeInLeft 0.8s ease-out;
    padding: 33px 30px 33px 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 45px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 21px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* 背景网格 */
.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(50px); }
}

/* 源设备 */
.source-device {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%) translateZ(100px);
    z-index: 20;
}

.device-body {
    width: 90px;
    height: 140px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.4),
                0 20px 80px rgba(0, 122, 255, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: deviceFloat 4s ease-in-out infinite;
}

.device-body.small {
    width: 60px;
    height: 95px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    overflow: hidden;
}

.device-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: screenShine 3s ease-in-out infinite;
}

@keyframes screenShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.file-icon {
    font-size: 36px;
    animation: filePulse 2s ease-in-out infinite;
}

@keyframes filePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.device-label {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

@keyframes deviceFloat {
    0%, 100% { 
        transform: translateY(-50%) scale(1) translateZ(100px); 
    }
    50% { 
        transform: translateY(-65%) scale(1.05) translateZ(120px); 
    }
}

/* 文件转换区域 */
.conversion-zone {
    position: absolute;
    left: 160px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.file-stream {
    position: relative;
    width: 80px;
    height: 60px;
}

.file-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.file-particle:nth-child(1) {
    left: 0;
    top: 10px;
    animation: fileToQR 2s ease-in-out infinite;
}

.file-particle:nth-child(2) {
    left: 0;
    top: 25px;
    animation: fileToQR 2s ease-in-out infinite 0.3s;
}

.file-particle:nth-child(3) {
    left: 0;
    top: 40px;
    animation: fileToQR 2s ease-in-out infinite 0.6s;
}

@keyframes fileToQR {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    50% { transform: translateX(40px) scale(0.5); opacity: 0.5; }
    100% { transform: translateX(80px) scale(0); opacity: 0; }
}

.conversion-arrow {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 1; }
}

/* 二维码流 */
.qr-stream {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 280px;
    z-index: 8;
}

.qr-code {
    position: absolute;
    width: 70px;
    height: 70px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.qr-code svg {
    width: 100%;
    height: 100%;
}

.qr-1 {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: qrFlow1 4s ease-in-out infinite;
}

.qr-2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: qrFlow2 4s ease-in-out infinite;
}

.qr-3 {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    animation: qrFlow3 4s ease-in-out infinite;
}

@keyframes qrFlow1 {
    0%, 100% { 
        transform: translateX(-50%) scale(0.8) rotateY(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateX(-50%) scale(1.1) rotateY(180deg); 
        opacity: 1; 
    }
}

@keyframes qrFlow2 {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotateY(0deg); 
        opacity: 1; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2) rotateY(180deg); 
        opacity: 0.8; 
    }
}

@keyframes qrFlow3 {
    0%, 100% { 
        transform: translateX(-50%) scale(0.8) rotateY(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateX(-50%) scale(1.1) rotateY(180deg); 
        opacity: 1; 
    }
}

.data-flow-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    transform: translateX(-50%);
    animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 接收设备群 */
.receiver-devices {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.receiver-device {
    position: absolute;
    right: 0;
}

.receiver-1 {
    top: -100px;
    animation: receiverFloat1 4s ease-in-out infinite;
}

.receiver-2 {
    top: -15px;
    animation: receiverFloat2 4s ease-in-out infinite 0.5s;
}

.receiver-3 {
    top: 70px;
    animation: receiverFloat3 4s ease-in-out infinite 1s;
}

@keyframes receiverFloat1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes receiverFloat2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(10px) scale(1.05); }
}

@keyframes receiverFloat3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

/* 粒子场 */
.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    opacity: 0;
}

.particle:nth-child(1) { left: 20%; top: 20%; animation: particleMove 5s ease-in-out infinite; }
.particle:nth-child(2) { left: 30%; top: 60%; animation: particleMove 6s ease-in-out infinite 0.5s; }
.particle:nth-child(3) { left: 40%; top: 30%; animation: particleMove 5.5s ease-in-out infinite 1s; }
.particle:nth-child(4) { left: 50%; top: 70%; animation: particleMove 6.5s ease-in-out infinite 1.5s; }
.particle:nth-child(5) { left: 60%; top: 40%; animation: particleMove 5s ease-in-out infinite 2s; }
.particle:nth-child(6) { left: 70%; top: 50%; animation: particleMove 6s ease-in-out infinite 2.5s; }
.particle:nth-child(7) { left: 80%; top: 25%; animation: particleMove 5.5s ease-in-out infinite 3s; }
.particle:nth-child(8) { left: 90%; top: 65%; animation: particleMove 6.5s ease-in-out infinite 3.5s; }

@keyframes particleMove {
    0% { 
        transform: translate(0, 0) scale(0); 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
        transform: translate(50px, -20px) scale(1); 
    }
    80% { 
        opacity: 1; 
        transform: translate(400px, 20px) scale(1); 
    }
    100% { 
        transform: translate(450px, 0) scale(0); 
        opacity: 0; 
    }
}

/* 连接线 */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.connection-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 3s ease-in-out infinite;
}

.path-1 { animation-delay: 0s; }
.path-2 { animation-delay: 0.3s; }
.path-3 { animation-delay: 0.6s; }

@keyframes drawPath {
    0% { 
        stroke-dashoffset: 400; 
        opacity: 0.3; 
    }
    50% { 
        stroke-dashoffset: 0; 
        opacity: 1; 
    }
    100% { 
        stroke-dashoffset: -400; 
        opacity: 0.3; 
    }
}

/* 功能特性 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.feature-card {
    background: #E5E9F3;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-bg-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    display: none;
}

.feature-card-content {
    padding: 16px 20px;
    width: 100%;
    background: #E5E9F3;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-dark);
}

/* 下载区域 */
.download {
    padding: 80px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 48px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.download-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--primary-color);
}
.platform-icon3 {
    width: 64px;
    height: 60px;
    margin: 0 auto 0px;
    color: var(--primary-color);
}
.platform-icon2 {
    height: 24px;
    margin: 24px auto 16px;
    color: var(--primary-color);
}
.download-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.download-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 19px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-download:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* 页脚 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 8px;
}

.icp-info a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-universe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .data-universe {
        height: 300px;
    }
    
    .source-device {
        left: 20px;
    }
    
    .receiver-devices {
        right: 20px;
    }
}
