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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f9fa;
  color: #2c3e50;
  line-height: 1.5;
  /* 移除 min-width: 1024px，允许移动端自适应 */
}

.wenzi a { text-decoration: none; color: #2c3e50; }
.wenzi a:hover { text-decoration: none; color: #CC6600; }
.wenzi P { margin-bottom: 1rem; }

/* 容器：移动端内边距减小 */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* 布局工具类 */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.text-center { text-align: center; }

/* 响应式栅格：移动端默认单列，平板/桌面恢复多列 */
@media (min-width: 768px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 显示/隐藏辅助类 */
.hidden { display: none !important; }
.block { display: block !important; }
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
}

/* 间距 */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-40 { padding-top: 5rem; }  /* 移动端减小顶部留白 */
@media (min-width: 768px) {
  .pt-40 { padding-top: 10rem; }
}
.pb-28 { padding-bottom: 4rem; }
@media (min-width: 768px) {
  .pb-28 { padding-bottom: 7rem; }
}
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 排版 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg2 { font-size: 1.1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.italic { font-style: italic; }

/* 颜色 */
.text-primary { color: #643312; }
.text-secondary { color: #CC6600; }
.text-white { color: #ffffff; }
.text-gray-500 { color: #6c757d; }
.text-gray-600 { color: #5a626e; }
.text-gray-700 { color: #495057; }
.text-gray-400 { color: #adb5bd; }
.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f8f9fa; }
.bg-primary\/70 { background-color: rgba(100, 51, 18, 0.7); }
.bg-primary\/5 { background-color: rgba(100, 51, 18, 0.05); }
.bg-dark { background-color: #2c3e50; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-primary { border-color: #643312; }

/* 边框圆角 */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

/* 阴影/效果 */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.transition { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s, background-color 0.2s; }

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #1a5276 0%, #2471a3 100%);
  border: none;
  color: white;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.92; }
.btn-gold {
  background: linear-gradient(135deg, #d4a35d 0%, #c4934d 100%);
  border: none;
  color: white;
  font-weight: 500;
}
.btn-gold:hover { opacity: 0.92; }
.btn-white {
  border: 1px solid #FFF;
  background-color: rgba(255, 255, 255, 0);
}
.btn-white:hover { background-color: rgba(255, 255, 255, 0.2); }

/* 图片适配 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-44 { height: 11rem; }
.h-auto { height: auto; }

/* 辅助布局 */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 60rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* 筛选栏样式 */
.filter-bar {
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.filter-item {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}
.filter-label {
  font-size: 0.875rem;
  color: #495057;
  margin-right: 0.5rem;
}
.filter-select {
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #495057;
  background-color: #fff;
}
/* 移动端筛选栏全宽 */
 /* 移动端额外优化：确保所有卡片、按钮间距舒适，触摸区域足够大 */
    @media (max-width: 767px) {
      .btn-primary, .btn-gold, .btn-white, button {
        min-height: 44px;
        padding-left: 20px;
        padding-right: 20px;
      }
      .profile-info-item {
        width: 100%;
        margin-right: 0;
      }
      .profile-info-grid {
        grid-template-columns: 1fr;
      }
      .filter-bar .filter-item {
        display: block;
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
      }
      .filter-select {
        width: 100%;
      }
      .service-detail-item {
        font-size: 0.95rem;
      }
    }

/* 详情页样式 */
.profile-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.profile-info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f3f5;
}
.profile-label {
  color: #6c757d;
  font-weight: 500;
}
.profile-value {
  color: #2c3e50;
}
.tag-item {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f8f9fa;
  color: #643312;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #495057;
}
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #495057;
}
.form-control:focus {
  outline: none;
  border-color: #CC6600;
  box-shadow: 0 0 0 0.2rem rgba(204, 102, 0, 0.25);
}
.required {
  color: #dc3545;
}
.captcha-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.captcha-img {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
.captcha-refresh {
  font-size: 0.75rem;
  color: #CC6600;
  text-decoration: none;
}
.captcha-refresh:hover {
  color: #643312;
  text-decoration: underline;
}

/* 分页组件 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 0;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  background-color: #ffffff;
  color: #2c3e50;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-btn:hover {
  background-color: rgba(100, 51, 18, 0.05);
  border-color: #CC6600;
  color: #CC6600;
}
.pagination-btn.active {
  background-color: #CC6600;
  border-color: #CC6600;
  color: #ffffff;
}
.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}

/* 服务详情列表样式 */
.service-detail-item {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  position: relative;
}
.service-detail-item::before {
  content: "•";
  color: #CC6600;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* 移动端通用触摸优化 */
button, .pagination-btn, .nav-link, .filter-select {
  min-height: 44px;
}
@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }
  .text-3xl {
    font-size: 1.5rem;
  }
  .text-4xl {
    font-size: 1.875rem;
  }
  .profile-info-grid {
    grid-template-columns: 1fr;
  }
  .profile-info-item {
    width: 100%;
  }
}

/* 移动端侧滑菜单偏移类 */
.mobile-menu-panel {
  transition: transform 0.3s ease;
  pointer-events: auto;
  z-index: 9999; /* 提升面板层级，高于汉堡按钮的999 */
  /* 匹配全站圆角风格 */
  border-radius: 0 1rem 1rem 0;
  /* 增强阴影，与卡片hover效果统一 */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  /* 背景色与页面light色统一 */
  background-color: #f8f9fa;
}

/* 菜单头部样式（品牌栏） */
.mobile-menu-panel > div:first-child {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(100, 51, 18, 0.1); /* 弱化分割线，匹配品牌主色浅调 */
  padding: 1rem 1.25rem;
}

/* 菜单头部品牌文字 */
.mobile-menu-panel > div:first-child span {
  color: #643312; /* 主色 */
  font-size: 1.25rem;
  font-weight: 700;
}


.mobile-menu-panel.-translate-x-full {
  transform: translateX(-100%);
  pointer-events: none;
}

/* 桌面端隐藏移动菜单面板（避免干扰） */
@media (min-width: 768px) {
  .mobile-menu-panel {
    display: none;
  }
}


/* 移动端汉堡按钮 - 核心修复 */
.mobile-menu-btn {
  display: block; /* 移动端默认显示 */
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 2px; /* 补全触摸区域 */
  z-index: 999; /* 确保在导航栏上层 */
}
/* 桌面端隐藏汉堡按钮 */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none !important;
  }
}
/* 汉堡按钮内的线条样式优化 */
.mobile-menu-btn span {
  display: block;
  width: 24px; /* 6px → 24px，单位统一为px更兼容 */
  height: 2px; /* 0.5 → 2px，提升可视性 */
  background-color: #333; /* 深灰色更醒目，替换原gray-800 */
  margin-bottom: 6px; /* 1.5 → 6px，单位统一 */
  transition: all 0.3s ease;
}
/* 最后一个span取消底部间距 */
.mobile-menu-btn span:last-child {
  margin-bottom: 0;
}
/* 点击反馈优化 */
.mobile-menu-btn:active {
  opacity: 0.8;
  transform: scale(0.95);
}
.mobile-menu-btn:hover span {
  background-color: #CC6600; /* 品牌色，与导航链接高亮一致 */
}

/* 关闭按钮样式增强 */
.close-menu {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10000;
  position: relative;
  cursor: pointer;
  /* 移除默认边框，增加hover背景 */
  border: none;
  background-color: transparent;
  color: #643312;
  font-size: 1.5rem;
}

.close-menu:hover {
  background-color: rgba(100, 51, 18, 0.05); /* 主色浅背景 */
  color: #CC6600; /* 次级色 */
  transform: scale(1.05);
}


/* 菜单导航区样式 */
.mobile-menu-panel nav {
  padding: 1.25rem;
  gap: 0; /* 取消默认gap，通过padding控制间距 */
  background-color: #ffffff;
}

/* 导航链接样式重构（匹配全站链接/卡片风格） */
.mobile-menu-panel .nav-link {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(100, 51, 18, 0.05); /* 浅分割线 */
  border-radius: 0.75rem; /* 匹配卡片圆角 */
  margin-bottom: 0.5rem; /* 链接间距 */
  color: #2c3e50; /* 正文色 */
  font-weight: 500;
  transition: all 0.2s ease;
  /* 移除默认border-b，改用内边距+圆角 */
  border-bottom: none;text-decoration:none;
}

    .nav-link2 {
      color: #2c3e50;
      text-decoration: none;
    }
    .nav-link2:hover {
      color: #2c3e50;
    }

/* 导航链接hover/激活态（匹配首页导航高亮） */
.mobile-menu-panel .nav-link:hover,
.mobile-menu-panel .nav-link[href=""] {
  background-color: rgba(204, 102, 0, 0.05); /* 次级色浅背景 */
  color: #CC6600; /* 高亮色 */
  transform: translateX(4px); /* 轻微左移，增强交互感 */
  text-decoration:none;
}

/* 菜单底部按钮组样式（匹配全站按钮风格） */
.mobile-menu-panel nav > div {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  gap: 0.75rem;
}

/* 菜单内按钮样式统一 */
.mobile-menu-panel nav button {
  border-radius: 0.5rem; /* 匹配全站按钮圆角 */
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 登录按钮（边框型） */
.mobile-menu-panel nav button:first-child {
  border-color: #643312;
  color: #643312;
}

.mobile-menu-panel nav button:first-child:hover {
  background-color: rgba(100, 51, 18, 0.05);
}

/* 立即咨询按钮（渐变主色） */
.mobile-menu-panel nav button:last-child {
  background: linear-gradient(135deg, #d4a35d 0%, #c4934d 100%); /* 匹配gold按钮渐变 */
  border: none;
}

.mobile-menu-panel nav button:last-child:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}



/* 修复 Banner 移动端背景问题 */
#home {
  /* 保留核心样式，移除全局的 background-attachment: fixed */
  background-attachment: scroll; /* 重置为默认滚动，兼容移动端 */
}
/* 仅在桌面端启用背景固定 */
@media (min-width: 768px) {
  #home {
    background-attachment: fixed;
  }
}
/* 优化 Banner 背景图适配 */
#home {
  background-position: center center; /* 确保背景图居中 */
  background-repeat: no-repeat; /* 禁止重复 */
}
/* 移动端 Banner 文字与按钮适配，避免遮挡 */
@media (max-width: 767px) {
  #home .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  #home h1 {
    font-size: 1.8rem; /* 移动端标题字号适配 */
    line-height: 1.3;
  }
  #home p {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

    /* 标签区域样式优化 */
    .keyworbox {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #eee;
    }
    .keyworbox span {
        color: #666;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    .keyworbox a {
        display: inline-block;
        padding: 0.3rem 0.8rem;
        background: #f5f5f5;
        color: #666;
        text-decoration: none;
        border-radius: 0.25rem;
        font-size: 0.85rem;
        margin: 0.3rem 0.2rem;
        transition: all 0.2s ease;
    }
    .keyworbox a:hover {
        background: #643312;
        color: white;
    }
    .keyworbox em {
        color: #ccc;
        margin: 0 0.3rem;
        font-style: normal;
    }
    
    /* 男士推荐区域样式优化 */
    .news-men-recommend {
        margin: 3rem 0;
    }
    .news-men-recommend .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #f0f0f0;
    }
    .news-men-recommend .section-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #2c3e50;
    }
    .news-men-recommend .men-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .news-men-recommend .men-card {
        display: block;
        text-decoration: none;
        color: inherit;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        transition: all 0.2s ease;
    }
    .news-men-recommend .men-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }
    .news-men-recommend .men-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
    }
    .news-men-recommend .men-info {
        padding: 1rem;
        background: white;
    }
    .news-men-recommend .men-name {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .news-men-recommend .men-tag {
        font-size: 0.75rem;
        background: rgba(204, 102, 0, 0.1);
        color: #CC6600;
        padding: 0.2rem 0.6rem;
        border-radius: 0.25rem;
        font-weight: 500;
    }
    .news-men-recommend .men-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    /* 相关阅读区域样式优化 */
    .news-related-section {
        margin: 3rem 0 4rem;
    }
    .news-related-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #f0f0f0;
    }
    .news-related-section .section-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #2c3e50;
    }
    .news-related-section .article-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .news-related-section .article-card {
        display: block;
        text-decoration: none;
        color: inherit;
        padding: 1rem;
        border: 1px solid #eee;
        border-radius: 0.75rem;
        background: white;
        transition: all 0.2s ease;
    }
    .news-related-section .article-card:hover {
        border-color: #CC6600;
        box-shadow: 0 3px 8px rgba(204, 102, 0, 0.1);
        transform: translateY(-2px);
    }
    .news-related-section .article-img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .news-related-section .article-content {
        /* 如果使用原有的article-title, article-desc, article-date类名，可以保持不变 */
    }
    .news-related-section .article-title {
        font-size: 1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .news-related-section .article-desc {
        font-size: 0.85rem;
        color: #6c757d;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .news-related-section .article-date {
        font-size: 0.75rem;
        color: #adb5bd;
        margin-top: 0.5rem;
    }
    
    /* 响应式调整 */
    @media (min-width: 768px) {
        .news-men-recommend .men-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        .news-related-section .article-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (min-width: 1024px) {
        .news-men-recommend .men-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        .news-related-section .article-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }
