* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background-color: #F7F9FC;
  color: #2D3748;
  line-height: 1.75;
}
.wrap {
  min-height: 100vh;
  overflow-x: hidden;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 61, 140, 0.08);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  color: #163D8C;
}
.logo span {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 6px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a {
  text-decoration: none;
  color: #4A5568;
  font-size: 15px;
  position: relative;
}
.nav-menu a.active {
  color: #163D8C;
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #163D8C;
}
.user-area {
  margin-left: 16px;
}
.login-btn {
  padding: 8px 16px;
  background: #163D8C;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.login-btn:hover {
  background: #0F2E6E;
}

.header {
  background: linear-gradient(135deg, #163D8C 0%, #254FA8 100%);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.title {
  font-size: 34px;
  margin-bottom: 10px;
}
.desc {
  font-size: 17px;
  opacity: 0.92;
  margin-bottom: 8px;
}
.tip-text {
  font-size: 14px;
  opacity: 0.85;
}

.main {
  padding: 50px 20px;
}

.filter-bar {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(22, 61, 140, 0.06);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 0;
}
.search-box input {
  flex: 1;
  border: 1px solid #CBD5E0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus {
  border-color: #163D8C;
}
.search-btn {
  border: 1px solid #CBD5E0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 12px 20px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}
.search-btn:hover {
  background: #163D8C;
  color: #fff;
  border-color: #163D8C;
}
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 8px 16px;
  border: 1px solid #CBD5E0;
  border-radius: 20px;
  background: #fff;
  color: #4A5568;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.cat-btn:hover {
  border-color: #163D8C;
  color: #163D8C;
}
.cat-btn.active {
  background: #163D8C;
  color: #fff;
  border-color: #163D8C;
}

.goods-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}
.goods-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(22, 61, 140, 0.06), 0 8px 24px rgba(22, 61, 140, 0.04);
  padding: 28px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.goods-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 16px rgba(22, 61, 140, 0.08), 0 12px 32px rgba(22, 61, 140, 0.06);
}
.goods-tag {
  position: absolute;
  top: 16px;
  left: -36px;
  width: 110px;
  text-align: center;
  padding: 4px 0;
  font-size: 12px;
  color: #fff;
  transform: rotate(-45deg);
}
.tag-new {
  background: #E67722;
}
.tag-hot {
  background: #163D8C;
}
.tag-package {
  background: #279E66;
}
.goods-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-top: 8px;
}
.goods-position {
  display: inline-block;
  background: #E8F5E9;
  color: #279E66;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.intro {
  font-size: 14px;
  color: #718096;
  min-height: 48px;
  margin-bottom: 20px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font-size: 26px;
  color: #E67722;
  font-weight: 700;
}
.buy-btn {
  background-color: #163D8C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  min-width: 90px;
}
.buy-btn:hover {
  background-color: #0F2E6E;
}
.service-tip {
  font-size: 12px;
  color: #A0AEC0;
  margin-top: 14px;
}

.section-title {
  font-size: 28px;
  color: #163D8C;
  text-align: center;
  margin-bottom: 8px;
}
.section-desc {
  text-align: center;
  color: #718096;
  margin-bottom: 32px;
}

.member-section {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
  padding: 40px;
  border-radius: 18px;
  margin-bottom: 60px;
}
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.member-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: relative;
  border: 2px solid #EDF2F7;
  transition: all 0.25s;
}
.member-card:hover {
  border-color: #163D8C;
  transform: translateY(-4px);
}
.member-card.featured {
  border-color: #E67722;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}
.member-card.featured::before {
  content: "推荐";
  position: absolute;
  top: -2px;
  right: -2px;
  background: #E67722;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 0 16px 0 12px;
}
.member-card h3 {
  font-size: 20px;
  color: #163D8C;
  margin-bottom: 8px;
}
.member-card .member-price {
  font-size: 32px;
  color: #E67722;
  font-weight: 700;
  margin-bottom: 4px;
}
.member-card .member-duration {
  font-size: 14px;
  color: #718096;
  margin-bottom: 16px;
}
.member-card .member-discount {
  display: inline-block;
  background: #E8F5E9;
  color: #279E66;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.member-card ul {
  text-align: left;
  margin-bottom: 20px;
}
.member-card li {
  list-style: none;
  padding: 6px 0;
  font-size: 14px;
  color: #4A5568;
}
.member-card li::before {
  content: "✓ ";
  color: #279E66;
  margin-right: 8px;
}
.member-card .member-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.member-card .member-btn-primary {
  background: #163D8C;
  color: #fff;
}
.member-card .member-btn-primary:hover {
  background: #0F2E6E;
}
.member-card .member-btn-outline {
  background: #fff;
  color: #163D8C;
  border: 1px solid #163D8C;
}
.member-card .member-btn-outline:hover {
  background: #163D8C;
  color: #fff;
}

.distributor-section {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  padding: 40px;
  border-radius: 18px;
  margin-bottom: 60px;
}
.distributor-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.dist-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.dist-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.dist-card h3 {
  font-size: 16px;
  color: #163D8C;
  margin-bottom: 8px;
}
.dist-card p {
  font-size: 14px;
  color: #718096;
}
.dist-actions {
  text-align: center;
}
.dist-btn {
  padding: 12px 32px;
  background: #279E66;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.dist-btn:hover {
  background: #1E8450;
}

.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  font-size: 22px;
  color: #163D8C;
  margin-bottom: 24px;
}
.faq-subtitle {
  font-size: 18px;
  color: #163D8C;
  margin: 32px 0 16px 0;
  padding-left: 12px;
  border-left: 4px solid #163D8C;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(22, 61, 140, 0.1);
}
.faq-q {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: #163D8C;
  transition: transform 0.2s;
}
.faq-item.active .faq-q::after {
  content: "−";
}
.faq-a {
  margin-top: 8px;
  font-size: 14px;
  color: #4A5568;
  display: none;
  line-height: 1.8;
}
.faq-item.active .faq-a {
  display: block;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.modal.show {
  display: flex;
}
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  padding: 32px;
  animation: pop 0.22s ease-out;
}
@keyframes pop {
  0% {
    transform: scale(0.94);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-box h2 {
  margin-bottom: 20px;
  color: #163D8C;
  text-align: center;
}
.modal-body {
  font-size: 15px;
  word-break: break-all;
}
.modal-body a {
  color: #163D8C;
}
.btn-copy {
  width: 100%;
  padding: 12px;
  border: none;
  background: #E67722;
  color: #fff;
  border-radius: 8px;
  margin-top: 16px;
  cursor: pointer;
}
.btn-close {
  width: 100%;
  padding: 12px;
  border: none;
  background: #EDF2F7;
  border-radius: 8px;
  margin-top: 12px;
  cursor: pointer;
}
.order-input {
  width: 100%;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
}

.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #EDF2F7;
}
.login-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: #718096;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
.login-tab.active {
  color: #163D8C;
  border-bottom-color: #163D8C;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.form-group input:focus {
  border-color: #163D8C;
}

.dist-info {
  margin-bottom: 20px;
}
.dist-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #EDF2F7;
  font-size: 15px;
}
.dist-row span:first-child {
  color: #718096;
}
.dist-row span:last-child {
  font-weight: 500;
  color: #2D3748;
}
.dist-withdraw {
  padding-top: 16px;
  border-top: 1px solid #EDF2F7;
}

.float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #163D8C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22, 61, 140, 0.25);
  cursor: pointer;
  z-index: 98;
  font-size: 14px;
}

.footer {
  background: #ffffff;
  padding: 40px 20px;
  margin-top: 40px;
  font-size: 13px;
  color: #718096;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .goods-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .goods-card {
    padding: 20px;
  }
  .goods-card .goods-price {
    font-size: 22px;
  }
  .member-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .member-card {
    padding: 24px;
  }
  .distributor-content {
    grid-template-columns: repeat(2, 1fr);
  }
  .title {
    font-size: 26px;
  }
  .nav-menu {
    gap: 12px;
  }
  .nav-menu a {
    font-size: 13px;
  }
  .login-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .user-area span {
    font-size: 12px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .search-box {
    min-width: 100%;
  }
  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .category-tabs button {
    flex-shrink: 0;
  }
  .member-section, .distributor-section {
    padding: 20px;
  }
  .modal-box {
    padding: 24px;
    max-width: 100%;
  }
  .float-btn {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 12px;
  }
  .footer-row {
    flex-direction: column;
    gap: 16px;
  }
  .faq-item {
    padding: 14px 16px;
  }
  .faq-subtitle {
    font-size: 16px;
    margin: 24px 0 12px 0;
  }
}