﻿/* ================================================
   layout.css — 导航栏 + 页脚
   景合画星 官网 v2
   ================================================ */

/* ---------- 导航栏（2026-08-11 咖啡鎏金改造） ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  background: rgba(60,43,29,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  z-index: 1000;
}
/* 底部渐变金线：呼应鎏金飘带光影 */
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
  pointer-events: none;
}
.navbar.scrolled {
  background: rgba(46,33,20,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.navbar .logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(240,214,160,0.92);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(201,169,110,0.35);
  transition: var(--transition);
}

/* ---------- 狮子 LOGO（2026-08-08 新增，08-11 换透明版+提亮） ---------- */
.navbar .logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  background: none;
  border: none;
  filter: drop-shadow(0 0 8px rgba(240,214,160,0.55));
}
.navbar .nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.navbar .nav-links a {
  text-decoration: none;
  color: rgba(240,214,160,0.92);
  font-size: 0.82rem;
  letter-spacing: 1px;
  transition: var(--transition);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.navbar .nav-links a:hover {
  color: #f7e8c5;
  border-bottom-color: rgba(247,232,197,0.9);
}

/* ---------- 汉堡菜单 ---------- */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 40px;
  padding: 7px 10px;
  color: rgba(240,214,160,0.95);
  background: rgba(240,214,160,0.07);
  border: 1px solid rgba(240,214,160,0.42);
  border-radius: 20px;
  font-family: inherit;
  cursor: pointer;
  z-index: 1001;
}
.hamburger-bars {
  display: flex;
  flex-direction: column;
  width: 20px;
}
.hamburger-bars i {
  display: block;
  width: 20px; height: 2px;
  background: rgba(240,214,160,0.92);
  transition: var(--transition);
  border-radius: 1px;
}
.hamburger-bars i + i { margin-top: 5px; }
.hamburger-text {
  margin-left: 8px;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(240,214,160,0.14);
  border-color: rgba(247,232,197,0.8);
  outline: none;
}
.hamburger.active .hamburger-bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-bars i:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 手机端首次进入的菜单提示 */
.mobile-menu-tip {
  display: none;
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 1002;
  padding: 8px 12px;
  color: #f0d6a0;
  background: rgba(35,23,9,0.96);
  border: 1px solid rgba(240,214,160,0.48);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.mobile-menu-tip::after {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  background: rgba(35,23,9,0.96);
  border-left: 1px solid rgba(240,214,160,0.48);
  border-top: 1px solid rgba(240,214,160,0.48);
  transform: rotate(45deg);
}
.mobile-menu-tip.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 页脚 ---------- */
footer#contact {
  background: #4a3728;
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.footer-brand p { font-size: 0.8rem; line-height: 1.8; }
.footer-info h4 {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
footer#contact .footer-col h4 { font-family: var(--font-heading); font-size: 0.88rem; margin-bottom: 12px; letter-spacing: 2px; color: var(--color-accent); }
footer#contact .footer-col p { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 2; }
.footer-info p { font-size: 0.8rem; line-height: 1.8; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- 页脚底部备案行（2026-09-11） ----------
   顺序：最左 ICP 备案链接 → 紧邻其右的公安网安备案预留位 → 最右版权文字
   备案信息只在页脚内部展示，不做悬浮/固定元素 */
.footer-records {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
#footerCopyright { margin-left: auto; }

.footer-record-link {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}
.footer-record-link:hover {
  color: #f0d6a0;
  text-decoration: underline;
}
.footer-record-link:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

/* 公安网安备案预留空位：只占宽度、不含任何文字。
   拿到编号后把 #footerPoliceSlot 换成备案链接即可，宽度自适应，CSS 无需改动 */
.footer-record-slot {
  display: inline-block;
  min-width: 14em;
  height: 1em;
}

/* 图片版权声明（2026-09-20）：窄屏自动换行，不抢备案行的位置 */
.footer-photo-notice {
  margin: 14px auto 0;
  max-width: 900px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(201,169,110,0.72);
  letter-spacing: 0.3px;
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed; bottom: 20px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-white);
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: var(--color-accent-dark); transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 32px; margin-bottom: 24px; }

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    flex-direction: column; background: rgba(35,23,9,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 72px 28px; gap: 20px;
    transition: right 0.35s ease; justify-content: flex-start; align-items: flex-start;
  }
  .navbar .nav-links.open { right: 0; }
  .navbar .nav-links a { font-size: 0.9rem; color: rgba(240,214,160,0.92); }
  .hamburger { display: inline-flex; }
  .mobile-menu-tip { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  /* 窄屏：备案行居中并允许换行，取消版权右推，避免横向滚动 */
  .footer-records { gap: 12px; justify-content: center; }
  #footerCopyright { margin-left: 0; }
  .footer-record-slot { min-width: 10em; }
  .back-to-top { bottom: 14px; right: 16px; width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ---------- 页脚 Logo ---------- */
.footer-logo {
  margin-bottom: 8px;
}
.footer-logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  background: none;
  border: none;
  filter: drop-shadow(0 0 8px rgba(240,214,160,0.55));
}
.footer-logo #footerLogoText {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ---------- 商务合作 ---------- */
.business-desc {
  margin-top: 8px;
}
