/* ============================================================
   CloudEngine - 页面专属样式
   ============================================================ */

/* —— 首屏 Hero —— */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--color-bg-dark); overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--gradient-hero); }
#hero-canvas { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: rgba(0, 212, 255, 0.08); border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: var(--fs-sm); color: var(--color-accent); margin-bottom: var(--space-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.2s both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); animation: glow-breathe 2s infinite; }
.hero-title {
  font-size: var(--fs-6xl); font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.8s var(--ease-out) 0.4s both;
}
.hero-subtitle {
  font-size: var(--fs-xl); color: var(--color-text-muted); max-width: 680px; margin: 0 auto var(--space-2xl);
  min-height: 56px;
  animation: fade-in-up 0.8s var(--ease-out) 0.6s both;
}
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; animation: fade-in-up 0.8s var(--ease-out) 0.8s both; }
@media (max-width: 767px) { .hero-actions { flex-direction: column; align-items: center; } }

/* —— 产品概览卡片 —— */
.product-card { position: relative; padding: var(--space-xl); cursor: pointer; }
.product-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: var(--space-lg);
  display: grid; place-items: center; font-size: 28px;
  background: var(--gradient-primary); box-shadow: var(--shadow-glow);
}
.product-card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-sm); }
.product-card p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }
.product-card .more { font-size: var(--fs-sm); color: var(--color-accent); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition-base); }
.product-card:hover .more { gap: 12px; }

/* —— 优势区 —— */
.advantage-item { text-align: center; padding: var(--space-xl) var(--space-lg); }
.advantage-item .icon-wrap {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto var(--space-lg);
  display: grid; place-items: center; font-size: 32px;
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  position: relative; transition: all var(--transition-base);
}
.advantage-item:hover .icon-wrap { border-color: var(--color-border-strong); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.advantage-item h3 { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.advantage-item p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.advantage-stat { font-size: var(--fs-4xl); font-weight: 800; margin-bottom: var(--space-xs); }
.advantage-stat-label { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* —— 案例卡片 —— */
.case-card { padding: 0; overflow: hidden; }
.case-card .cover { height: 200px; position: relative; overflow: hidden; background: var(--gradient-secondary); }
.case-card .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--color-bg-card) 100%); }
.case-card .cover-pattern { position: absolute; inset: 0; opacity: 0.3; }
.case-card .body { padding: var(--space-lg); }
.case-card .body h3 { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.case-card .body p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-md); }
.case-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* —— FAQ 手风琴 —— */
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; transition: border-color var(--transition-base); background: var(--color-bg-card); }
.faq-item.open { border-color: var(--color-border-strong); }
.faq-question { padding: var(--space-lg); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: var(--fs-base); }
.faq-question .icon { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; transition: transform var(--transition-base); color: var(--color-accent); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-text-muted); font-size: var(--fs-sm); line-height: 1.8; }

/* —— 新闻列表 —— */
.news-item { display: flex; gap: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-md); transition: all var(--transition-base); cursor: pointer; }
.news-item:hover { background: var(--color-bg-card); transform: translateX(8px); }
.news-date { flex-shrink: 0; width: 64px; text-align: center; padding: 12px; border-radius: var(--radius-md); background: var(--color-bg-card); border: 1px solid var(--color-border); }
.news-date .day { font-size: var(--fs-2xl); font-weight: 800; color: var(--color-accent); }
.news-date .month { font-size: var(--fs-xs); color: var(--color-text-muted); }
.news-content h4 { font-size: var(--fs-base); margin-bottom: 6px; transition: color var(--transition-base); }
.news-item:hover .news-content h4 { color: var(--color-accent); }
.news-content p { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* —— 产品详情页 —— */
.detail-hero { padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl); position: relative; overflow: hidden; }
.detail-hero h1 { font-size: var(--fs-5xl); margin-bottom: var(--space-md); }
.detail-hero .slogan { font-size: var(--fs-xl); color: var(--color-text-muted); margin-bottom: var(--space-xl); }
.detail-main { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
@media (max-width: 991px) { .detail-main { grid-template-columns: 1fr; } }
.detail-gallery { position: relative; }
.gallery-main { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-card); border: 1px solid var(--color-border); margin-bottom: var(--space-md); position: relative; }
.gallery-main .slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--transition-slow); display: grid; place-items: center; font-size: 120px; }
.gallery-main .slide.active { opacity: 1; }
.gallery-thumbs { display: flex; gap: var(--space-sm); }
.gallery-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); border: 2px solid var(--color-border); cursor: pointer; transition: border-color var(--transition-base); display: grid; place-items: center; font-size: 24px; }
.gallery-thumb.active { border-color: var(--color-accent); }
.detail-highlights ul li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-md); }
.detail-highlights ul li .check { color: var(--color-accent); flex-shrink: 0; margin-top: 4px; }

/* —— 技术参数表格 —— */
.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.param-table th { background: var(--color-bg-card); color: var(--color-text-muted); font-weight: 600; }
.param-table td:first-child { color: var(--color-text-muted); width: 30%; }
.param-table tr:hover td { background: rgba(0, 212, 255, 0.03); }

/* —— 时间轴 —— */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--gradient-primary); }
.timeline-item { position: relative; margin-bottom: var(--space-2xl); }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-bg-dark); border: 3px solid var(--color-accent); box-shadow: var(--shadow-glow); }
.timeline-item .year { font-size: var(--fs-2xl); font-weight: 800; color: var(--color-accent); margin-bottom: 6px; }
.timeline-item .event { font-size: var(--fs-lg); margin-bottom: 6px; }
.timeline-item .desc { color: var(--color-text-muted); font-size: var(--fs-sm); }

/* —— 荣誉墙 —— */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
@media (max-width: 991px) { .honor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .honor-grid { grid-template-columns: 1fr; } }
.honor-item { aspect-ratio: 3/4; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg-card); display: grid; place-items: center; text-align: center; padding: var(--space-lg); transition: all var(--transition-base); }
.honor-item:hover { border-color: var(--color-border-strong); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.honor-item .icon { font-size: 48px; margin-bottom: var(--space-md); }
.honor-item h4 { font-size: var(--fs-base); margin-bottom: 6px; }
.honor-item p { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* —— 联系页 —— */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
@media (max-width: 991px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: var(--space-md); align-items: flex-start; margin-bottom: var(--space-xl); }
.contact-info-item .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--color-bg-card); border: 1px solid var(--color-border); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; color: var(--color-accent); }
.contact-info-item h4 { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: 4px; font-weight: 500; }
.contact-info-item p { font-size: var(--fs-base); }
.map-box { aspect-ratio: 16/10; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-bg-card); position: relative; overflow: hidden; }
.map-box svg { width: 100%; height: 100%; }

/* —— 表单 —— */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: 8px; }
.form-label .required { color: var(--color-accent); }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; font-size: var(--fs-sm);
  background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text); transition: all var(--transition-base);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: var(--fs-xs); color: #FF6B6B; margin-top: 6px; min-height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }
.form-success {
  padding: var(--space-lg); border-radius: var(--radius-md); background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3); color: var(--color-success); margin-bottom: var(--space-lg);
  display: none;
}
.form-success.show { display: block; animation: fade-in-up 0.5s var(--ease-out); }

/* —— 侧边栏 —— */
.sidebar { position: sticky; top: calc(var(--header-height) + var(--space-lg)); }
.sidebar h4 { font-size: var(--fs-base); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.sidebar-cat { display: block; padding: 12px var(--space-md); border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: var(--fs-sm); transition: all var(--transition-base); margin-bottom: 4px; }
.sidebar-cat:hover, .sidebar-cat.active { background: var(--color-bg-card); color: var(--color-accent); border-left: 3px solid var(--color-accent); padding-left: calc(var(--space-md) - 3px); }

/* —— 产品列表布局 —— */
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-2xl); }
@media (max-width: 991px) { .list-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* —— CTA 区 —— */
.cta-band { position: relative; padding: var(--space-3xl) 0; text-align: center; overflow: hidden; background: var(--color-bg-darker); }
.cta-band h2 { font-size: var(--fs-4xl); margin-bottom: var(--space-md); }
.cta-band p { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: var(--space-xl); }

/* —— 404 —— */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.page-404 .code { font-size: 120px; font-weight: 800; line-height: 1; }
