/* ===========================================================
   维思云工作室官网 - 主样式表
   风格：科技时尚 / 淡蓝色调
   =========================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色 - 淡蓝科技 */
  --c-primary: #4FB3F6;       /* 主淡蓝 */
  --c-primary-deep: #2E8FE0;  /* 深蓝（悬停） */
  --c-primary-light: #B8E0FF; /* 浅蓝（背景） */
  --c-accent: #5BE3D8;        /* 青绿点缀 */
  --c-gradient: linear-gradient(135deg, #4FB3F6 0%, #5BE3D8 100%);
  --c-gradient-soft: linear-gradient(135deg, rgba(79,179,246,.12) 0%, rgba(91,227,216,.10) 100%);

  /* 中性色 */
  --c-bg: #F7FBFE;            /* 页面背景（极淡蓝白） */
  --c-surface: #FFFFFF;       /* 卡片背景 */
  --c-text: #1A2B3C;          /* 主文字 */
  --c-text-sub: #5A6B7C;      /* 次要文字 */
  --c-border: #E2ECF5;        /* 边框 */
  --c-shadow: 0 8px 30px rgba(46, 143, 224, .08);
  --c-shadow-hover: 0 16px 48px rgba(46, 143, 224, .16);

  /* 尺寸 */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --nav-h: 68px;

  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 251, 254, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--c-border); box-shadow: 0 4px 20px rgba(46,143,224,.06); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
/* 导航菜单绝对居中 */
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--c-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(79,179,246,.4);
}
.logo-text span { background: var(--c-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--c-text-sub); transition: all .2s; position: relative;
}
.nav-links a:hover { color: var(--c-primary); background: rgba(79,179,246,.08); }
.nav-links a.active { color: var(--c-primary-deep); background: rgba(79,179,246,.12); font-weight: 600; }

.nav-cta {
  padding: 9px 20px; border-radius: 10px;
  background: var(--c-gradient); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 4px 14px rgba(79,179,246,.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,179,246,.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: .3s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--c-gradient); color: #fff; box-shadow: 0 6px 20px rgba(79,179,246,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79,179,246,.45); }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border: 1.5px solid var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-deep); transform: translateY(-2px); box-shadow: var(--c-shadow); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- 通用区块 ---------- */
.section { padding: 6px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  background: rgba(79,179,246,.12); color: var(--c-primary-deep);
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 16px;
}
.section-title { font-size: 38px; font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.section-title .grad { background: var(--c-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-sub { color: var(--c-text-sub); font-size: 17px; margin-top: 14px; }

/* ---------- 页面 hero（子页） ---------- */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + 70px) 0 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,179,246,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(91,227,216,.12), transparent 60%);
  text-align: center; overflow: hidden;
}
.page-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.5px; }
.page-hero p { color: var(--c-text-sub); font-size: 18px; margin-top: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* 网格装饰背景 */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,179,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,179,246,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 70%);
  pointer-events: none;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--c-surface); border-radius: var(--radius);
  border: 1px solid var(--c-border); box-shadow: var(--c-shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--c-shadow-hover); border-color: rgba(79,179,246,.4); }

/* ---------- 特性卡片网格 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card { padding: 32px 28px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-gradient-soft); color: var(--c-primary-deep);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--c-text-sub); font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer {
  background: linear-gradient(180deg, #0E1B2A 0%, #0A1422 100%);
  color: #B8C5D6; padding: 60px 0 28px; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14px; transition: color .2s; }
.footer li a:hover { color: var(--c-primary); }
/* 联系方式列表项（带图标） */
.footer .contact-list li {
  display: flex; align-items: center; gap: 9px; font-size: 14px; color: #B8C5D6;
}
.footer .contact-list li .ci-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(79,179,246,.14); display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
}
.footer .contact-list li .ci-ico svg { width: 16px; height: 16px; }
.footer .contact-list li .ci-label { color: #8E9EAF; font-size: 12.5px; margin-right: 2px; }
.footer .contact-list li .ci-val { color: #D6E2F0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #7A8A9C;
}
.footer-bottom a:hover { color: var(--c-primary); }

/* ---------- 滚动入场动画（已禁用，默认全部显示） ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.d1, .reveal.d2, .reveal.d3, .reveal.d4 { transition-delay: 0s; }

/* ---------- 浮动光斑装饰 ---------- */
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; z-index: 0;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 30px; }
  .page-hero h1 { font-size: 34px; }
  .page-hero p { font-size: 16px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  /* 移动端取消菜单居中定位 */
  .nav-links { position: static; transform: none; }
  /* 移动端展开菜单 */
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(247,251,254,.98); backdrop-filter: blur(20px);
    padding: 16px 24px 24px; gap: 6px; border-bottom: 1px solid var(--c-border);
  }
  .nav-links.open a { width: 100%; padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
