@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&display=swap');
/* ============================================
   Sean 工作室 · 全局样式（响应式）
   适配：手机 / 平板 / 电脑
   ============================================ */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #6366f1;        /* 主色：靛蓝（提亮，适配暗背景） */
  --primary-dark: #3730a3;
  --accent: #22d3ee;         /* 强调色：青绿（提亮） */
  --bg: #0b1220;             /* 深色页面背景（表单输入等） */
  --card-bg: rgba(15, 23, 42, 0.6);  /* 卡片背景 */
  --text: #f1f5f9;           /* 正文：浅色，暗背景上锐利可读 */
  --text-light: #cbd5e1;     /* 次要文字：浅灰 */
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --nav-h: 64px;             /* 导航栏高度 */
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 原生态动态壁纸浮层：完全透明、鼠标穿透、盖在内容之上 */

/* 层级：iframe 视频背景（z-index:-2）→ 网站内容 */
body.has-wallpaper {
  background: transparent;
  /* 全局轻微文字阴影，确保在明亮视频背景上文字仍有清晰轮廓 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: var(--shadow); }

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 32px;
  font-weight: 400;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-1deg);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  color: var(--text-light);
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

/* 汉堡按钮（默认隐藏，手机端显示） */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-btn span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 手机端：导航折叠为下拉菜单 */
@media (max-width: 768px) {
  .menu-btn { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { display: block; width: 100%; text-align: center; padding: 12px; }
}

/* ---------- 首页 Hero 区域 ---------- */
.hero {
  margin-top: var(--nav-h);
  padding: 90px 0 70px;
  /* 背景透明：完全透出视频，文字靠全局 text-shadow 保证可读 */
  background: transparent;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 400;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  font-weight: 400;
  transition: all 0.25s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- 通用区块 ---------- */
.section {
  padding: 70px 0;
  /* 极淡背景：视频清晰可见，仅保留一点深色保证标题文字可读 */
  background: rgba(15, 23, 42, 0.10);
}

.section:nth-of-type(even) {
  background: rgba(10, 17, 33, 0.10);
}

.section-title {
  text-align: center;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 400;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 44px;
}

/* ---------- 卡片网格（响应式） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.story-grid {
  display: flex;
  justify-content: center;
}

.story-grid .card {
  max-width: 320px;
  width: 100%;
}

.card {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif;
  font-weight: 400;
}
.card p { color: var(--text-light); font-size: 14.5px; }

/* 特色卡片：强调色 */
.card.accent .card-icon {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

/* ---------- 作品展示 ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.work-item {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.work-cover {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(34, 211, 238, 0.35));
}

.work-info { padding: 22px 24px 12px; }
.work-info h3 { font-size: 17px; margin-bottom: 6px; }
.work-info p { color: var(--text-light); font-size: 14px; }

.work-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.work-cta {
  padding: 0 24px 22px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.work-link:hover .work-cta { opacity: 1; }

/* 单作品时居中展示 */
.work-grid:has(.work-link:only-child) {
  display: flex;
  justify-content: center;
}
.work-grid:has(.work-link:only-child) .work-link {
  max-width: 360px;
  width: 100%;
}

/* ---------- 团队卡片 ---------- */
.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.team-card {
  width: 280px;
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px 20px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(34, 211, 238, 0.4));
  overflow: hidden;
}

.team-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 { font-size: 22px; font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif; font-weight: 400; }
.team-card .role { color: #7dd3fc; font-size: 13.5px; margin: 4px 0 8px; }
.team-card p { color: var(--text-light); font-size: 13.5px; }

/* ---------- 联系页 ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.info-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
}

.info-card h3 { font-size: 20px; margin-bottom: 18px; }

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.info-item .icon { font-size: 20px; line-height: 1.5; }

.contact-form {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e2e8f0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 18px;
  transition: border-color 0.25s;
  background: rgba(11, 18, 32, 0.7);
  color: #f1f5f9;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(203, 213, 225, 0.55); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.85);
}

.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- 页脚 ---------- */
.footer {
  background: rgba(15, 23, 42, 0.45);
  color: #94a3b8;
  padding: 40px 0 24px;
  margin-top: 30px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer .logo { font-size: 20px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 15px; font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', cursive, sans-serif; transition: color 0.25s; }
.footer-links a:hover { color: #fff; }
.footer p { font-size: 13px; }

/* 回到顶部按钮 */
#backTop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 90;
}

#backTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backTop:hover { transform: translateY(-3px); }

/* ---------- 动画 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- 手机端微调 ---------- */
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .hero { padding: 60px 0 48px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer { padding: 32px 0 20px; }
}

/* ---------- 背景音乐 · 小圆播放按钮 ---------- */
#musicDock { position: fixed; left: 20px; bottom: 20px; z-index: 1200; }
#zepPlay {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .3s ease;
}
#zepPlay:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(34,211,238,.45); }
#zepPlay svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
#zepPlay.playing { animation: zBtnPulse 2.6s ease-in-out infinite; }
@keyframes zBtnPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(34,211,238,.35), 0 6px 16px rgba(0,0,0,.45); }
  50%      { box-shadow: 0 0 22px rgba(34,211,238,.65), 0 6px 16px rgba(0,0,0,.45); }
}
@media (max-width: 640px) {
  #musicDock { left: 14px; bottom: 14px; }
  #zepPlay { width: 44px; height: 44px; }
  #zepPlay svg { width: 20px; height: 20px; }
}
