/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 导航栏 */
.navbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.nav-logo h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

/* 主要内容区域 */
main {
  margin-top: 80px;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pipe-animation {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  border-radius: 50%;
  position: relative;
  animation: rotate 10s linear infinite;
}

.pipe-animation::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 章节标题 */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

/* 特色区域 */
.features {
  padding: 4rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* 产品展示 */
.products {
  padding: 4rem 0;
  background: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe-demo {
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.pipe-demo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
}

.product-info {
  padding: 2rem;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.product-info ul {
  list-style: none;
  margin-top: 1rem;
}

.product-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.product-info li:last-child {
  border-bottom: none;
}

/* 联系我们 */
.contact {
  padding: 4rem 0;
  background: white;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.contact-icon {
  font-size: 2rem;
}

.contact-item h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* 页脚 */
.footer {
  background: #333;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #667eea;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  color: #ccc;
}

/* 店铺介绍页面样式 */
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-info {
  padding: 4rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.about-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #333;
}

.about-content ul {
  list-style: none;
  margin-left: 1rem;
}

.about-content li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-content li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.info-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  font-size: 1.5rem;
}

.info-item h4 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* 登录页面样式 */
.login-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.login-header p {
  color: #666;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input {
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.checkbox-group {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.register-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.register-link:hover {
  text-decoration: underline;
}

.login-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-info h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.login-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.login-info li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.login-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #667eea;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .login-container {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }

  .login-card {
    padding: 2rem;
  }

  .login-info {
    padding: 2rem;
  }
}

/* 产品展示页面样式 */
.products-main {
  padding: 2rem 0;
}

.products-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.products-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.products-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.product-categories {
  margin-bottom: 4rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.category-card p {
  margin-bottom: 1rem;
  color: #666;
}

.category-card ul {
  list-style: none;
}

.category-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.category-card li:last-child {
  border-bottom: none;
}

.detailed-products {
  margin-bottom: 4rem;
}

.products-showcase {
  display: grid;
  gap: 3rem;
}

.product-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.product-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pipe-visual {
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
}

.pipe-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.product-details {
  padding: 2rem;
}

.product-details h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.spec-label {
  font-weight: 500;
  color: #666;
}

.spec-value {
  font-weight: 600;
  color: #333;
}

.product-features h4 {
  margin-bottom: 1rem;
  color: #333;
}

.product-features ul {
  list-style: none;
}

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.product-features li::before {
  content: '✓';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.contact-section {
  background: #f8f9fa;
  padding: 3rem 0;
  border-radius: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card .contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
  color: #333;
}

.contact-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-item {
    grid-template-columns: 1fr;
  }

  .product-image {
    padding: 1rem;
  }

  .pipe-visual {
    width: 100px;
    height: 100px;
  }

  .pipe-visual::before {
    width: 80px;
    height: 80px;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-hero h1 {
    font-size: 2rem;
  }

  .product-details {
    padding: 1.5rem;
  }

  .product-details h3 {
    font-size: 1.5rem;
  }
}

/* 滴灌系列卡片样式 */
.drip-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.drip-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.08);
  padding: 1.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s;
}

.drip-card:hover {
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.18);
}

.drip-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1rem auto;
  display: block;
  border-radius: 10px;
  background: #f3f6fa;
  padding: 10px;
}

.drip-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.drip-card p {
  font-size: 1rem;
  margin: 0.2rem 0;
  color: #555;
  text-align: center;
}

.drip-category-wrapper {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 20px;
  background: none;
}

.drip-detail-section {
  margin: 2rem 0 3rem 0;
  text-align: center;
}

.drip-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #4f6ef7;
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.2s;
}

.drip-link:hover {
  color: #764ba2;
}

#back-to-category {
  margin: 2rem auto 0 auto;
  display: block;
  padding: 12px 32px;
  font-size: 1.1rem;
}

.micro-detail-section {
  margin: 2rem 0 3rem 0;
  text-align: center;
}

/* 缩放优化样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

ul,
ol {
  width: 100%;
  box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 确保所有容器在缩放时不会溢出 */
section,
div,
article,
aside {
  max-width: 100%;
  box-sizing: border-box;
}

/* 图片缩放优化 */
.drip-img,
.pom-type-img,
.butt-type-img,
.category-icon {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 表格容器优化 */
.pe-table-container,
.elr-detail-table-container,
.pom-detail-table-container,
.butt-detail-table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 网格布局优化 */
.features-grid,
.products-grid,
.categories-grid,
.drip-cards-grid,
.pom-types-grid,
.butt-types-grid,
.elr-types-grid,
.about-grid,
.location-content,
.contact-grid,
.services-grid,
.footer-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 确保缩放时内容清晰 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 触摸优化 */
a,
button {
  touch-action: manipulation;
}

/* 优化缩放体验 */
html {
  touch-action: manipulation;
}

/* 确保缩放时内容可以正常滚动和显示 */
body {
  overflow-x: auto;
}

/* 防止缩放时出现横向滚动条 */
main {
  width: 100%;
  max-width: 100%;
}

/* 优化缩放时的表格显示 */
.pe-table-container,
.elr-detail-table-container,
.pom-detail-table-container,
.butt-detail-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 确保图片在缩放时保持质量 */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}