﻿/* ============================================================
   KASTON · 联系我们页面样式
   ============================================================ */

/* ---------- 设计令牌（与主页统一） ---------- */
:root {
  --bg-deep: #05070c;
  --bg-soft: #0a0f18;
  --ink: #f2f6fb;
  --ink-dim: #9aa8bd;
  --ink-faint: #64748f;
  --cyan: #7fd4ff;
  --cyan-deep: #2b8fc9;
  --line: rgba(148, 163, 184, 0.16);
  --line-soft: rgba(148, 163, 184, 0.1);
  --font-display: 'Orbitron', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================
   背景层
   ============================================================ */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-deep);
}

.bg-hero {
  position: absolute;
  left: -4%;
  right: -4%;
  top: -12%;
  bottom: -12%;
  background-image: url('../images/bg-hero.jpg');
  background-size: cover;
  background-position: center 34%;
  opacity: 0.6;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.55) 0%, rgba(5, 7, 12, 0.35) 42%, rgba(5, 7, 12, 0.58) 78%, rgba(5, 7, 12, 0.94) 100%);
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 6vw, 80px);
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.85), rgba(5, 7, 12, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px;
  opacity: 0.96;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

.logo-core {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(127, 212, 255, 0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.34em;
  color: var(--ink);
}

/* 返回主页 */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-home svg {
  width: 15px;
  height: 15px;
}

.back-home:hover {
  color: var(--cyan);
  border-color: rgba(127, 212, 255, 0.55);
  background: rgba(127, 212, 255, 0.06);
}

/* ============================================================
   主内容
   ============================================================ */
.site-main {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 6vw, 80px) 70px;
}

.page-head {
  text-align: center;
  padding: clamp(56px, 9vh, 96px) 0 20px;
}

.page-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--ink-faint);
  margin-bottom: 26px;
}

.page-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  margin-bottom: 14px;
}

.page-desc {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

/* ============================================================
   渠道分组
   ============================================================ */
.channel-group {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 48px;
}

.group-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink-dim);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.channel-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

/* 渠道按钮 */
.channel-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(34px, 4vw, 48px) 16px 28px;
  background: rgba(10, 15, 24, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.channel-btn:hover {
  transform: translateY(-4px);
  background: rgba(12, 19, 30, 0.75);
  border-color: rgba(127, 212, 255, 0.4);
}

.c-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  color: var(--ink-dim);
  transition: color 0.35s ease;
}

.c-icon svg {
  width: 30px;
  height: 30px;
}

.channel-btn:hover .c-icon {
  color: var(--cyan);
}

.c-label {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ink);
}

.c-en {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.c-hint {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.channel-btn:hover .c-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   悬浮二维码
   ============================================================ */
.qr-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  transform: translateX(-50%) translateY(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
  padding: 12px 12px 10px;
  background: rgba(8, 12, 20, 0.95);
  border: 1px solid rgba(127, 212, 255, 0.4);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(127, 212, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.qr-pop::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(8, 12, 20, 0.95);
  border-right: 1px solid rgba(127, 212, 255, 0.4);
  border-bottom: 1px solid rgba(127, 212, 255, 0.4);
  transform: translateX(-50%) rotate(45deg);
}

.qr-pop img {
  width: 156px;
  height: auto;
  display: block;
  border-radius: 6px;
}

.qr-cap {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  text-align: center;
}

.channel-btn:hover .qr-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 24px 34px;
  border-top: 1px solid var(--line-soft);
}

.icp-link {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}

.icp-link:hover {
  color: var(--ink-dim);
}

.beian-icon {
  display: inline-block;
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

/* ============================================================
   大图预览
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(92vw, 760px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-cap {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  transition: all 0.3s ease;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-close:hover {
  color: var(--ink);
  border-color: rgba(127, 212, 255, 0.6);
  background: rgba(127, 212, 255, 0.1);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
  .channel-grid,
  .channel-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 15px 20px;
  }

  .logo-core {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 13px;
  }

  .back-home {
    padding: 6px 12px;
    font-size: 12px;
  }

  .back-home span {
    display: none;
  }

  .site-main {
    padding: 0 20px 50px;
  }

  .page-head {
    padding-top: 56px;
  }

  .qr-pop {
    display: none;
  }
}

@media (max-width: 480px) {
  .channel-grid,
  .channel-grid.two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
