/* ============================================================
   VNEX.cn — 子页面样式
   与 main.css 统一深色科技风
   ============================================================ */

/* ---- 子页面整体 ---- */
.detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- 子页面导航（与首页统一） ---- */
.detail-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.detail-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124, 111, 240, 0.3) 20%,
    rgba(0, 221, 212, 0.3) 80%,
    transparent 100%);
}

.detail-nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e4e4f0;
  letter-spacing: 0.5px;
}

.detail-nav .logo:hover { color: var(--primary-light); }

/* 面包屑 */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary-light); }

.breadcrumb .sep { color: var(--text-dim); }

/* ---- 内容区域 ---- */
.detail-content {
  flex: 1;
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.detail-content > h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: #e4e4f0;
}

/* ---- 内容区块卡片 ---- */
.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 28px;
  transition: all var(--transition);
}

.detail-section:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 12px var(--primary-glow-weak);
}

.detail-section h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section h2::before {
  content: '';
  width: 4px; height: 18px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.content-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ---- 信息网格 ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.info-item {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.info-item .label {
  color: var(--text-muted);
  margin-right: 8px;
}

.info-item .value {
  color: var(--text);
}

/* ---- 联系页面 — 部门卡片 ---- */
.contact-departments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.contact-dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.contact-dept-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--primary-glow-weak);
}

.dept-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  line-height: 1;
}

.dept-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e4e4f0;
  margin-bottom: 16px;
}

.dept-contact p {
  margin: 8px 0;
  font-size: 0.92rem;
}

.dept-contact a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.dept-contact a:hover { color: var(--primary-light); }

.dept-qr {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dept-qr img {
  width: 110px; height: 110px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.qr-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 公司地址 */
.company-address {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.company-address h2 {
  color: #e4e4f0;
}

.company-address p {
  color: var(--text-secondary);
}

/* ---- 外部链接 ---- */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: rgba(0, 221, 212, 0.08);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-full);
  color: var(--accent) !important;
  font-size: 0.92rem;
  transition: all var(--transition);
}

.external-link:hover {
  background: rgba(0, 221, 212, 0.15);
  box-shadow: 0 0 20px var(--accent-glow-weak);
  transform: translateY(-2px);
}

/* ---- 返回首页链接 ---- */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.back-home:hover { color: var(--primary-light); }

/* ---- 响应式 ---- */
@media (max-width: 900px) {
  .contact-departments { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .detail-content { padding: 100px 16px 60px; }
  .detail-content > h1 { font-size: 1.8rem; margin-bottom: 32px; }
  .detail-section { padding: 24px; }
  .info-grid { grid-template-columns: 1fr; }

  .breadcrumb { display: none; }
}
