/* 旭隆建设官网 - 全局共享样式表 */

/* 引入 Google 字体 (Noto Serif SC 营造古建筑的中式美学感) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;700&display=swap');

:root {
  /* 典雅的传统色系与现代中性色搭配 */
  --primary: hsl(28, 55%, 26%);       /* 深古铜棕/紫檀木色 (代表木作与古建底蕴) */
  --primary-light: hsl(28, 55%, 35%);
  --secondary: hsl(42, 65%, 50%);     /* 华丽的古铜金 (用于高亮、边框与强调) */
  --secondary-hover: hsl(42, 65%, 42%);
  --secondary-bg: hsl(42, 65%, 96%);
  
  --bg-light: hsl(0, 0%, 97%);        /* 水墨素白背景 */
  --bg-white: hsl(0, 0%, 100%);       /* 纯白 */
  --bg-dark: hsl(0, 0%, 12%);         /* 青瓦深黛色 (用于页脚和页眉细节) */
  --bg-darker: hsl(0, 0%, 8%);
  
  --text-dark: hsl(0, 0%, 16%);       /* 主文本深灰色，阅读体验优于纯黑 */
  --text-muted: hsl(0, 0%, 45%);      /* 辅助文本 */
  --text-light: hsl(0, 0%, 92%);      /* 暗背景上的高亮文字 */
  
  /* 字体排版 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'SimSun', serif;
  
  /* 动效与阴影 */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 6px;
  
  --header-height: 80px;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 全局头部导航栏 */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.global-header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-white);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

.logo-subtitle {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  letter-spacing: 1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

.nav-item.active .nav-link {
  color: var(--primary);
  font-weight: 600;
}

/* 头部右侧联系电话 */
.header-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.header-contact i {
  color: var(--secondary);
  font-size: 18px;
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  transition: var(--transition);
}

.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 20px; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 通用二级页面 Banner 样式 */
.page-banner {
  position: relative;
  background-color: var(--bg-dark);
  padding: 140px 0 80px 0;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(46, 32, 21, 0.95), rgba(12, 12, 12, 0.9));
  z-index: 2;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(2px) grayscale(40%);
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 3;
}

.page-banner-title {
  font-size: 38px;
  letter-spacing: 4px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.page-banner-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

.page-banner-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0 auto;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* 面包屑导航 */
.breadcrumb-nav {
  background-color: var(--bg-white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--secondary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb-separator {
  color: #ccc;
}

/* 全局通用板块标题 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 32px;
  color: var(--primary);
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 14px;
}

/* 全局底部页脚 */
.global-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 70px 0 30px 0;
  font-size: 14px;
  border-top: 4px solid var(--secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.footer-logo-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 3px;
}

.footer-title {
  font-size: 16px;
  color: var(--bg-white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  font-family: var(--font-serif);
  letter-spacing: 1px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  color: var(--text-muted);
}

.footer-link-item a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-qr-container {
  display: flex;
  gap: 20px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-img {
  background-color: var(--bg-white);
  padding: 6px;
  border-radius: var(--radius-sm);
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
}

.footer-qr-label {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-copyright a:hover {
  color: var(--secondary);
}

.footer-quick-nav {
  display: flex;
  gap: 16px;
}

.footer-quick-nav a:hover {
  color: var(--secondary);
}

/* 全屏灯箱 (Lightbox) 样式 */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  border: 3px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: var(--text-light);
  margin-top: 15px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 1px;
}

.lightbox-counter {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 5px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--bg-white);
  font-size: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2010;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--secondary);
}

.lightbox-prev { left: -100px; }
.lightbox-next { right: -100px; }

/* 响应式调整 */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
  .lightbox-prev, .lightbox-next {
    width: 46px;
    height: 46px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .header-contact {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    align-items: flex-start;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 18px;
    width: 100%;
    display: block;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .page-banner-title {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 26px;
  }
}


/* 电话两行对齐 */
.phone-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: middle;
  line-height: 1.3;
}
