/* 基础变量与重置 */
:root{--bg:#0b1020;--bg-soft:#0f1630;--card:#121a36;--text:#e6ecff;--muted:#9aa7c7;--primary:#4c8dff;--primary-600:#3b78e6;--outline:#2a375f;--gradient:linear-gradient(135deg,#5aa1ff 0%,#7c6cff 50%,#b26bff 100%)}
*{box-sizing:border-box}
html,body{margin:0;padding:0;scroll-behavior:smooth}
body{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Helvetica Neue, Noto Sans, Arial, "苹果丽黑", "Microsoft Yahei", sans-serif; color:var(--text); background:radial-gradient(1200px 600px at 20% -10%,#142147,transparent),radial-gradient(1000px 500px at 130% 10%,#2a1b47,transparent),var(--bg); line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* 滚动动画样式 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初始状态 隐藏元素 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 滚动到视口时显示元素 */
.animate-on-scroll.visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* 为不同区块设置不同的延迟，创建瀑布流效果 */
.animate-on-scroll.delay-1 {
  transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.4s;
}

.animate-on-scroll.delay-5 {
  transition-delay: 0.5s;
}

/* 布局 */
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.site-header{position:sticky;top:0;background:rgba(11,16,32,.6);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid rgba(255,255,255,.06);z-index:50}
.nav{display:flex;justify-content:space-between;align-items:center;height:64px}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{width:28px;height:28px}
.brand-name{font-weight:700;letter-spacing:.2px}
.nav-links{display:flex;gap:18px}
.nav-links a{color:var(--muted)}
.nav-links a:hover{color:var(--text)}

/* Hero */
.hero{padding:72px 0 40px;background: radial-gradient(800px 400px at 70% 10%, rgba(100,80,255,.25), transparent)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.hero-text h1{font-size:42px;margin:.2em 0 .2em}
.subtitle{color:var(--muted);max-width:48ch}
.cta{display:flex;gap:12px;margin:20px 0}
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--outline);color:var(--text);padding:12px 16px;border-radius:12px;transition:all .2s ease}
.btn-ic{width:18px;height:18px;fill:currentColor}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--primary);border-color:transparent}
.btn-primary:hover{background:var(--primary-600)}
.btn-outline{background:transparent}
.btn-outline:hover{border-color:#3b4b7a}
.btn.full{width:100%;justify-content:center}

.qr-wrap{display:flex;align-items:center;gap:10px;margin-top:12px;color:var(--muted)}
.qr-wrap img{width:92px;height:92px;border-radius:10px;border:1px solid rgba(255,255,255,.06);background:#0c1430}

.hero-art{display:flex;justify-content:center}
.phone-mock{width:290px;height:640px;border-radius:38px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#0e1530,#0a1126);padding:14px;box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.06)}
.status-bar{height:24px;border-radius:18px;background:rgba(255,255,255,.06)}
.screen{margin-top:12px;height:560px;border-radius:22px;overflow:hidden;background:#060b1a;border:1px solid rgba(255,255,255,.05)}
.screen-gradient{width:100%;height:100%;}
.screen-gradient img{width:100%;height:100%;position: relative;z-index: 999;}
.home-indicator{margin:12px auto 0;width:100px;height:5px;border-radius:999px;background:rgba(255,255,255,.25)}

/* Download */
.download{padding:40px 0}
.download h2{font-size:28px;margin:0 0 6px}
.section-desc{color:var(--muted);margin-top:0}
.card-row{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:18px}
.card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:18px}
.card h3{margin:0 0 6px}
.card p{margin:0 0 14px;color:var(--muted)}

/* About */
.about{padding:56px 0}
.about h2{font-size:28px;margin:0 0 24px}
.about-content{background:var(--bg-soft);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:32px;position:relative;overflow:hidden}
.about-content::before{content:'';position:absolute;top:0;left:0;right:0;width:3px;height:100%;background:var(--primary)}

/* 品牌标语样式 */
.about-brand{margin-bottom:32px;text-align:center}
.about-slogan{font-size:24px;font-weight:600;background:linear-gradient(135deg, #4c8dff, #994cff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;margin:0}

/* 段落样式 */
.about-paragraph{margin-bottom:32px}
.about-paragraph p{font-size:16px;line-height:1.8;color:var(--text);margin:0}

/* 各章节样式 */
.about-section{margin-bottom:32px;padding-left:20px;position:relative}
.about-section:not(:first-child)::before{content:'';position:absolute;left:0;top:8px;bottom:0;width:3px;background:linear-gradient(to bottom, var(--primary), rgba(76,141,255,0.2))}

/* 章节标题样式 */
.about-title{font-size:20px;font-weight:600;color:var(--primary);margin:0 0 16px;display:flex;align-items:center}
.about-title::before{content:'';display:inline-block;width:12px;height:12px;background:var(--primary);border-radius:50%;margin-right:12px}

/* 使命章节特殊样式 */
.mission-section{border-radius:12px;background:linear-gradient(135deg, rgba(76,141,255,0.1), rgba(153,76,255,0.1));padding:20px 20px 20px 40px;border:1px solid rgba(76,141,255,0.2);margin-bottom:0}
.mission-section::before{display:none}
.mission-section .about-title::before{background:linear-gradient(135deg, #4c8dff, #994cff);width:16px;height:16px}

/* 响应式调整 */
@media (max-width: 768px){
  .about-content{padding:24px}
  .about-slogan{font-size:20px}
  .about-title{font-size:18px}
  .mission-section{padding:16px 16px 16px 32px}
}

/* 厨艺到家APP模块样式 */
.product {padding:72px 0;background:radial-gradient(1000px 500px at 50% 120%, rgba(76,141,255,.15), transparent)}
.product h2{font-size:32px;margin:0 0 8px;position:relative;display:inline-block}
.product h2::after,.with-underline::after{content:'';position:absolute;left:0;bottom:-6px;width:100%;height:3px;background:var(--gradient);border-radius:1.5px}
.with-underline{position:relative;display:inline-block}
.product .section-desc{margin-bottom:40px;margin-top: 10px;}

/* 产品内容布局 */
.product-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

/* 文字介绍卡片样式 */
.product-description {
    background-color: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary);
}

.product-description p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.product-description p:last-child {
    margin-bottom: 30px;
}

.product-description a.btn {
    margin-top: 15px;
}

/* 图片同时显示样式 */
.five-images-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    cursor: pointer;
    padding: 350px 0;
}

.carousel-container {
    position: absolute;
    transition: all 0.5s ease;
    will-change: transform, opacity, z-index;
}

/* 位置的样式 */
.carousel-container.pos-1 {
    z-index: 1;
    transform: translateX(-330px) translateZ(-150px) scale(0.7);
    opacity: 0.5;
}

.carousel-container.pos-2 {
    z-index: 2;
    transform: translateX(-165px) translateZ(-50px) scale(0.85);
    opacity: 0.7;
}

.carousel-container.pos-center {
    z-index: 3;
    transform: translateZ(0) scale(1);
    opacity: 1;
}

.carousel-container.pos-4 {
    z-index: 2;
    transform: translateX(165px) translateZ(-50px) scale(0.85);
    opacity: 0.7;
}

.carousel-container.pos-5 {
    z-index: 1;
    transform: translateX(330px) translateZ(-150px) scale(0.7);
    opacity: 0.5;
}

.carousel-img {
    width: 280px;
    height: auto;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Features */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width: 1600px;margin: auto;}
.feature-card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:24px;text-align:center;transition:all .3s ease;position:relative;overflow:hidden}
.feature-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--gradient);transform:scaleX(0);transition:transform .3s ease}
.feature-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.3);border-color:rgba(255,255,255,.1)}
.feature-card:hover::before{transform:scaleX(1)}
.feature-icon{font-size:36px;margin-bottom:16px;display:block}
.feature-card h3{margin:0 0 8px;font-size:18px}
.feature-card p{margin:0;color:var(--muted);font-size:14px}

/* Responsive for Product Section */
@media (max-width: 960px){
  /* 调整产品内容布局为单列 */
  .product-content{grid-template-columns:1fr}
  
  /* 调整图片布局 */
  .five-images-container {
    height: 400px;
  }
  
  .carousel-img {
    width: 220px;
  }
  
  .carousel-container.pos-1 {
    transform: translateX(-240px) translateZ(-120px) scale(0.7);
  }
  
  .carousel-container.pos-2 {
    transform: translateX(-120px) translateZ(-40px) scale(0.85);
  }
  
  .carousel-container.pos-4 {
    transform: translateX(120px) translateZ(-40px) scale(0.85);
  }
  
  .carousel-container.pos-5 {
    transform: translateX(240px) translateZ(-120px) scale(0.7);
  }
  
  /* 功能卡片调整为两列 */
  .features{grid-template-columns:repeat(2,1fr);gap:16px}
}

@media (max-width: 640px){
  .product{padding:56px 0}
  .product h2{font-size:28px}
  
  /* 调整产品描述卡片内边距 */
  .product-description{padding:24px}
  
  /* 调整图片布局 */
  .five-images-container {
    height: 350px;
  }
  
  .carousel-img {
    width: 160px;
  }
  
  .carousel-container.pos-1 {
    transform: translateX(-180px) translateZ(-100px) scale(0.7);
    opacity: 0.3;
  }
  
  .carousel-container.pos-2 {
    transform: translateX(-90px) translateZ(-30px) scale(0.85);
    opacity: 0.6;
  }
  
  .carousel-container.pos-4 {
    transform: translateX(90px) translateZ(-30px) scale(0.85);
    opacity: 0.6;
  }
  
  .carousel-container.pos-5 {
    transform: translateX(180px) translateZ(-100px) scale(0.7);
    opacity: 0.3;
  }
  
  /* 功能卡片调整为单列 */
  .features{grid-template-columns:1fr;gap:16px}
}

/* Footer */
.site-footer{padding:32px 0;border-top:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.2)}
.footer-grid{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.brand-inline{display:flex;align-items:center;gap:10px}
.brand-inline img{width:22px;height:22px}
.muted{color:var(--muted)}
.footer-links{display:flex;gap:14px}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}

/* 响应式 */
@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr}
  .nav{height:56px}
  .hero{padding:56px 0 28px}
}
@media (max-width: 640px){
  .card-row{grid-template-columns:1fr}
  .btn{padding:11px 14px}
  .hero-text h1{font-size:34px}
}



