/* ====================================
   上海鹏泽君泰环保官网 - 设计系统
   ==================================== */

/* CSS 变量 */
:root {
  --primary-color: #00A850;
  --primary-hover: #008840;
  --primary-light: rgba(0, 168, 80, 0.1);
  --secondary-color: #00BCD4;
  --secondary-hover: #00ACC1;
  --secondary-light: rgba(0, 188, 212, 0.1);
  --accent-color: #FF6B35;
  --white: #FFFFFF;
  --gray-bg: #F5F7F6;
  --gray-light: #FAFBFC;
  --text-dark: #2C3E50;
  --text-gray: #5D6D7E;
  --text-light: #95A5A6;
  --border-color: #E8ECF0;
  --container-width: 1400px;
  --header-height: 80px;
  --header-height-mobile: 60px;
  --font-family: "Microsoft YaHei", "思源黑体", "PingFang SC", Arial, sans-serif;
  --transition-default: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* 容器 */
.website-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 网站布局 */
.website-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.website-main {
  flex: 1;
}

/* ====================================
   Header
   ==================================== */
.website-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: linear-gradient(145deg, #ffffff 0%, #f8faf9 100%);
  box-shadow: 0 8px 30px rgba(0, 168, 80, 0.12);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-logo {
  cursor: pointer;
  margin-right: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.02);
}

.header-logo .logo-img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 168, 80, 0.1));
}

.header-logo:hover .logo-img {
  filter: drop-shadow(0 4px 12px rgba(0, 168, 80, 0.2));
}

.header-nav {
  display: flex;
  gap: 40px;
}

.nav-item {
  position: relative;
  font-size: 16px;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 0;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 6px;
  height: 6px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 40px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 168, 80, 0.3);
  transition: all 0.3s ease;
}

.header-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 80, 0.4);
}

.header-phone .phone-icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}
.header-phone .phone-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header-phone .phone-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

/* 移动端按钮 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(0, 168, 80, 0.1);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0, 168, 80, 0.1) inset;
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 168, 80, 0.12);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.mobile-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-color);
  background: rgba(0, 168, 80, 0.06);
  transform: translateX(8px);
}

.mobile-nav-item:hover::before,
.mobile-nav-item.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* ====================================
   Footer
   ==================================== */
.website-footer {
  background: linear-gradient(180deg, #0a3d24 0%, #072616 100%);
  color: var(--white);
  padding: 50px 0 30px;
  position: relative;
  overflow: hidden;
}

.website-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 168, 80, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-section .footer-title {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.footer-section .footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* 联系方式 */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-item:hover {
  padding-left: 8px;
  background: rgba(0, 168, 80, 0.1);
}

.contact-item .contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item .contact-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.contact-item .address-link {
  flex: 1;
}

/* 快捷导航 */
.quick-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.quick-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 0 3px 3px 0;
  transition: transform 0.3s ease;
}

.quick-link:hover {
  color: var(--primary-color);
  background: rgba(0, 168, 80, 0.1);
  transform: translateX(6px);
}

.quick-link:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.footer-section-inner {
  display: inline-block;
  text-align: center;
}

.qr-section {
  text-align: left;
}

.qr-section .footer-title {
  display: block;
  text-align: left;
}

.qr-code {
  margin-bottom: 20px;
}

.qr-code img {
  width: 150px;
  height: 150px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.qr-code img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 168, 80, 0.4);
}

.qr-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 12px;
  font-weight: 500;
  text-align: center;
}

.copyright {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

/* ====================================
   Page Banner
   ==================================== */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
  height: 40vh;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.banner-title {
  font-size: 28px;
  color: var(--white);
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ====================================
   面包屑
   ==================================== */
.breadcrumb-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 168, 80, 0.1);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.breadcrumb-item {
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.breadcrumb-item:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 600;
  cursor: default;
}

.breadcrumb-separator {
  color: rgba(0, 168, 80, 0.4);
  font-weight: 600;
}

/* ====================================
   响应式
   ==================================== */
@media (max-width: 1000px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 999px) {
  .website-header {
    height: var(--header-height-mobile);
  }

  .pc-nav {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    top: var(--header-height-mobile);
  }

  .header-logo .logo-img {
    height: 55px;
  }

  .mobile-nav-item {
    font-size: 15px;
  }

  .page-banner {
    height: 25vh !important;
    margin-top: var(--header-height-mobile);
  }

  .banner-title {
    font-size: 18px;
  }

  .website-footer {
    padding: 35px 0 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-section .footer-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .qr-section {
    align-items: flex-start;
    text-align: left;
  }

  .quick-nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quick-nav a {
    font-size: 14px;
  }

  .website-container {
    padding: 0 12px;
  }
}
