/* ========================================
   托朴智水 - 全局共享样式 (common.css)
   包含：变量、导航栏、Logo动画、底部
   ======================================== */

:root {
  --primary: #00B050;
  --primary-dark: #009940;
  --primary-light: #E8F8EC;
  --accent: #FFD700;
  --accent-dark: #FFC000;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #F8FAF8;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
}

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

/* 纯CSS水滴 - 正立水滴形状，透明底+边框，里面有点 */
.water-drop {
  display: inline-block;
  width: 18px;
  height: 22px;
  position: relative;
}

.water-drop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 20px;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.water-drop::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 后台上传logo图片 - 默认隐藏 */
.nav-logo-icon .logo-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.nav-logo-icon .logo-img[src]:not([src=""]) {
  display: block;
}

.nav-logo-icon .logo-img[src]:not([src=""]) ~ .water-drop {
  display: none;
}

/* LOGO水滴图标内动画 */
.nav-logo-icon .water-drop {
  width: 28px;
  height: 34px;
  position: relative;
  animation: logo-water-bounce 2s ease-in-out infinite;
}

.nav-logo-icon .water-drop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 22px;
  background: transparent;
  border: 2px solid white;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.nav-logo-icon .water-drop::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 9px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

@keyframes logo-water-bounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-2px); }
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  border-radius: 24px;
  transition: all 0.25s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(255,215,0,0.35);
}

.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(255,215,0,0.5) !important;
  transform: translateY(-1px);
}

.nav-cta-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta-icon {
  animation: nav-icon-bounce 1.5s ease-in-out infinite;
}

@keyframes nav-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* 下拉菜单 */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 140px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,176,80,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

/* ========== FOOTER ========== */
.footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.5);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--primary); }

.footer-phone { color: var(--primary); font-weight: 700; font-size: 16px; }
.footer-divider { color: rgba(255,255,255,0.2); margin: 0 8px; }

/* ========== 统一简洁底部导航栏 (footer-simple) ========== */
.footer-simple {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 50px 60px 30px;
}

.footer-simple-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-simple .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-simple .footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-simple .footer-brand-icon .water-drop {
  width: 16px;
  height: 20px;
  color: white;
}

.footer-simple .footer-brand-icon .water-drop::before {
  border-color: white;
  width: 14px;
  height: 18px;
}

.footer-simple .footer-brand-icon .water-drop::after {
  background: white;
  width: 4px;
  height: 4px;
  top: 5px;
  left: 50%;
}

.footer-simple .footer-brand-text {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.footer-simple .footer-contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-simple .footer-contact a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-simple .footer-contact a:hover {
  color: var(--primary);
}

.footer-simple .footer-divider {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 20px 0;
}

.footer-simple .footer-bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-simple .footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-simple .footer-bottom a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-simple {
    padding: 40px 20px 20px;
  }
  .footer-simple .footer-contact {
    flex-direction: column;
    gap: 10px;
  }
}
