/* ============ ZILE's Work — v1 ============ */
/* 极简黑白 · 轻量 · 无框架。四屏卡片式整页滚动。 */

:root {
  --bg: #e9e9e6;          /* 页面底色，露出的边就是这个色上的卡片缝 */
  --card: #ffffff;
  --ink: #111111;
  --ink-soft: #666666;
  --line: #dcdcd8;
  --radius: 18px;
  --gap: 12px;             /* 卡片之间的缝 —— 与 main.js 中 GAP 一致 */
  --panel-h: 90vh;         /* 卡片高度 —— 与 main.js 中 RATIO 一致 */
  --ease: cubic-bezier(.77, 0, .18, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- 自定义鼠标指针：制图十字准星（白描边保证深色图上也可见） ---------- */
/* 想换图：把 url("...") 里的内容换成任意 ≤32px 的图片地址即可，后面的数字是热点坐标 */
html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 4v16M4 12h16' stroke='white' stroke-width='3.5'/%3E%3Cpath d='M12 4v16M4 12h16' stroke='%23111111' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, auto;
}
a, button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='6' fill='none' stroke='white' stroke-width='3.5'/%3E%3Cpath d='M14 2v6M14 20v6M2 14h6M20 14h6' stroke='white' stroke-width='3.5'/%3E%3Ccircle cx='14' cy='14' r='6' fill='none' stroke='%23111111' stroke-width='1.5'/%3E%3Cpath d='M14 2v6M14 20v6M2 14h6M20 14h6' stroke='%23111111' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, pointer;
}

html, body {
  height: 100%;
  overflow: hidden;                 /* 原生滚动全部接管 */
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
               "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 轨道与卡片 ---------- */
.viewport {
  position: fixed;
  inset: 0;
  touch-action: none;               /* 手机手势交给 JS */
}

.track {
  will-change: transform;
  /* transition 在 JS 里控制，便于循环瞬移 */
}

.panel {
  height: var(--panel-h);
  margin: 0 14px var(--gap);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4vh 6vw;
  position: relative;
}

/* ---------- ① Logo 屏 ---------- */
.logo {
    font-size: clamp(44px, 9vw, 120px); /* 恢复霸气巨型字体，绝对不能删 */
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.05;
}

    /* 中文标题里的小"的"：对齐大写字母顶部，高度约为 E 的一半 */
    .logo sup {
        font-size: 0.35em; /* 大约是英文实体黑色高度的一半 */
        vertical-align: top;
        position: relative;
        top: 0.4em; /* 将顶部精准压到与 E 的平顶齐平 */
        line-height: 1;
        margin: 0; /* 因为 HTML 里已经加了空格，这里的间距清零 */
        letter-spacing: 0;
    }

    /* 中文"作品"二字：与英文单词的“实体黑色高度”完全一致 */
    .logo .cjk {
        font-size: 0.78em; /* 核心魔法：74% 是绝大多数无衬线英文字体 Cap Height 的比例 */
        position: relative;
        top: -0.12em; /* 稍微往上抬一点点，让底部与 ZILE 的底边完美贴合 */
    }

.sections {
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  gap: 1.6vh;
}

.sec-link {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  padding: 2px 0;
}
.sec-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: left .3s var(--ease), right .3s var(--ease);
}
.sec-link:hover::after { left: 0; right: 0; }

.hint {
  position: absolute;
  bottom: 3.2vh;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- ②③④ 板块屏 ---------- */
/* 页码：每屏右下角 */
.num {
  position: absolute;
  right: 26px;
  bottom: 24px;
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--ink-soft);
}

.panel h2 {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: .03em;
}

.sub {
  margin-top: 1.2vh;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .08em;
}

.tiles {
  margin-top: 4.5vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 220px));
  gap: 14px;
  width: min(80vw, 760px);
  justify-content: center;
}

.tile {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: repeating-linear-gradient(
    -45deg, #fafafa 0 10px, #f0f0ee 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- liquid glass 通用 ---------- */
.glass {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

/* ---------- 菜单（左上角） ---------- */
.menu-btn {
  position: fixed;
  top: 22px; left: 22px;
  z-index: 30;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- 语言切换（右上角独立） ---------- */
.lang-switch {
  position: fixed;
  top: 22px; right: 22px;
  z-index: 30;
  display: flex;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.menu-icon i {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .3s var(--ease);
}
.menu-btn.open .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.open .menu-icon i:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  top: 80px; left: 22px;
  z-index: 29;
  width: 240px;
  border-radius: 16px;
  padding: 18px;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.menu-label { font-size: 14px; letter-spacing: .06em; }
.menu-row.muted { color: var(--ink-soft); font-size: 13px; }
.menu-row.small { font-size: 11px; }

.seg-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg-btn.active {
  background: var(--ink);
  color: #fff;
}

/* ---------- 桌面右侧导航 ---------- */
.side-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* 悬停时标签向左展开，圆点位置不动 */
  gap: 14px;
}

.arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  transition: transform .2s var(--ease);
}
.arrow:hover { transform: scale(1.12); }
.arrow:active { transform: scale(.95); }

.dots {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 6px 16px 6px 0;   /* 右侧留 16px，使圆点与箭头按钮同轴 */
}

/* 每个圆点 = 一个按钮：内含 [标签 + 圆圈]，标签平时收起 */
.dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot-circle {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: height .3s var(--ease), background .3s var(--ease);
}

/* 当前页：实心长胶囊（原有状态保留） */
.dot.active .dot-circle {
  height: 22px;
  background: var(--ink);
}

/* 悬停在整个导航上：所有圆点展开到选中高度 */
.side-nav:hover .dot-circle { height: 22px; }

/* 悬停在某个圆点上：圈内显示灰色（当前页保持黑色实心） */
.dot:hover:not(.active) .dot-circle { background: #b8b8b3; }

/* 标签：平时宽度为 0 收起，悬停导航时向左展开并可点击 */
.dot-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(6px);
  transition: max-width .3s var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.side-nav:hover .dot-label {
  max-width: 200px;
  opacity: 1;
  transform: none;
}

/* ============ 联系页样式 ============ */

/* 联系网格 */
.contact-grid {
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 二维码按钮容器 */
.qr-btn-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 按钮样式 */
.qr-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.qr-btn:active {
  transform: scale(.97);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
}
.btn-icon svg {
  width: 100%; height: 100%;
}

/* 品牌色边框 */
.qr-btn.whatsapp { border-color: #25D366; }
.qr-btn.instagram { border-color: #E4405F; }
.qr-btn.wechat { border-color: #07C160; }
.qr-btn.whatsapp:hover { box-shadow: 0 8px 30px rgba(37,211,102,.25); }
.qr-btn.instagram:hover { box-shadow: 0 8px 30px rgba(228,64,95,.25); }
.qr-btn.wechat:hover { box-shadow: 0 8px 30px rgba(7,193,96,.25); }

/* 二维码弹出框 */
.qr-popup {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 10;
  min-width: 200px;
}
.qr-btn-wrapper:hover .qr-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.qr-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.qr-title {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.qr-img {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.qr-hint {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin-top: 8px;
  opacity: .6;
}

/* 联系信息 */
.contact-info {
  margin-top: 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.contact-value:hover {
  border-color: var(--ink);
}

/* ---------- 手机端：自然滚动，无翻页、无露边 ---------- */
@media (max-width: 768px), (pointer: coarse) {
  html, body {
    height: auto;                     /* 解除 100% 限制，让整个文档滚动 */
    overflow-y: auto;                 /* 恢复原生手指滚动 */
    overscroll-behavior: auto;
  }
  .viewport {
    position: static;                 /* 不再固定接管屏幕 */
    touch-action: auto;
  }
  .track { transform: none !important; }
  .panel {
    min-height: 100vh;
    min-height: 100svh;               /* 手机地址栏伸缩也满屏 */
    height: auto;
    margin: 0;                        /* 无露边、无缝 */
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 12vh 7vw;
  }
  .side-nav { display: none; }        /* 纯滑动，不给按钮 */
  .tiles {
    grid-template-columns: 1fr;
    width: min(72vw, 320px);
  }
  .tile:nth-child(n+2) { display: none; }   /* 手机每屏只留 1 块占位 */
  .menu-btn { top: 14px; left: 14px; }
  .lang-switch { top: 14px; right: 14px; }
  .menu { top: 70px; left: 14px; width: calc(100vw - 28px); max-width: 300px; }
}
