* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
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;
  grid-auto-rows: 1fr;
}
.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;
  display: flex;
  flex-direction: column;
}
.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;
  margin-top: auto;
}
.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;
  grid-auto-rows: 1fr;
}
.member-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  position: relative;
  border: 2px solid #EDF2F7;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.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;
  margin-top: auto;
}
.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;
}

/* 月度时政更新 */
.monthly-section {
  background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 100%);
  padding: 40px;
  border-radius: 18px;
  margin-bottom: 60px;
}
.monthly-list {
  max-width: 800px;
  margin: 0 auto;
}
.monthly-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.monthly-item:hover {
  box-shadow: 0 2px 12px rgba(22, 61, 140, 0.12);
  transform: translateX(4px);
}
.monthly-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.monthly-badge {
  background: #163D8C;
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.monthly-title {
  font-size: 15px;
  color: #2D3748;
  font-weight: 500;
}
.monthly-arrow {
  font-size: 14px;
  color: #163D8C;
  white-space: nowrap;
}

/* 月度时政详情弹窗内容 */
.monthly-content {
  max-height: 60vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.8;
  color: #2D3748;
  padding: 8px 4px;
}
.monthly-content h2 {
  font-size: 18px;
  color: #163D8C;
  margin: 20px 0 12px 0;
  padding-left: 10px;
  border-left: 3px solid #163D8C;
}
.monthly-content h2:first-child {
  margin-top: 0;
}
.monthly-content h3 {
  font-size: 15px;
  color: #2D3748;
  margin: 16px 0 8px 0;
  font-weight: 600;
}
.monthly-content .topic {
  background: #F7F9FC;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.monthly-content .topic-content {
  color: #4A5568;
  margin-bottom: 8px;
}
.monthly-content .exam-tip {
  color: #E67722;
  font-size: 13px;
  font-weight: 500;
}

.monthly-preview-lock {
  position: relative;
  margin-top: -60px;
  padding-top: 60px;
}
.monthly-preview-fade {
  height: 60px;
  background: linear-gradient(to bottom, transparent, #F0F4FF);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.monthly-preview-cta {
  text-align: center;
  padding: 20px;
  background: #F0F4FF;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.faq-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.faq-title {
  text-align: center;
  font-size: 22px;
  color: #163D8C;
  margin-bottom: 24px;
}
.faq-hints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-hint {
  background: #fff;
  border: 1px solid #EDF2F7;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.faq-hint:hover {
  border-color: #163D8C;
  color: #163D8C;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(22,61,140,0.06);
}

.chat-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(22, 61, 140, 0.08);
  overflow: hidden;
}
.chat-header {
  background: linear-gradient(135deg, #163D8C 0%, #254FA8 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.chat-info {
  color: #fff;
}
.chat-name {
  font-weight: 600;
  font-size: 15px;
}
.chat-status {
  font-size: 12px;
  opacity: 0.8;
}
.chat-messages {
  padding: 20px;
}
.chat-group {
  margin-bottom: 20px;
}
.chat-group-title {
  font-size: 14px;
  color: #A0AEC0;
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid #E67722;
}
.chat-bubble {
  max-width: 85%;
  margin-bottom: 10px;
  animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  margin-left: auto;
}
.chat-bubble.user .bubble-content {
  background: #163D8C;
  color: #fff;
  border-radius: 18px 4px 18px 18px;
}
.chat-bubble.bot .bubble-content {
  background: #F7F9FC;
  color: #2D3748;
  border-radius: 4px 18px 18px 18px;
}
.bubble-content {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.chat-bubble.user.clickable {
  cursor: pointer;
  transition: all 0.2s;
}
.chat-bubble.user.clickable:hover .bubble-content {
  background: #0F2E6E;
  transform: scale(1.02);
}
.chat-bubble.user.clickable.active .bubble-content {
  background: #E67722;
}
.chat-bubble.bot.answer {
  display: none;
}
.chat-bubble.user.clickable.active + .chat-bubble.bot.answer {
  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-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.float-btn {
  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;
  font-size: 14px;
  border: none;
  transition: all 0.25s;
}
.float-btn:hover {
  transform: scale(1.08);
}
.float-btn-orange {
  background: #E67722;
  box-shadow: 0 4px 14px rgba(230, 119, 34, 0.3);
  font-size: 22px;
}

/* FAQ Chat Popup */
.faq-chat-modal {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 380px;
  max-height: 560px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}
.faq-chat-modal.show {
  display: flex;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-chat-modal .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  max-height: 370px;
}
.faq-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 6px;
  line-height: 1;
}
.faq-chat-close:hover {
  opacity: 1;
}

.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-item {
    padding: 20px;
  }
  .goods-item .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-wrap {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 12px;
  }
  .float-btn-orange {
    font-size: 20px;
  }
  .faq-chat-modal {
    right: 12px;
    left: 12px;
    bottom: 88px;
    width: auto;
    max-height: 480px;
  }
  .faq-chat-modal .chat-messages {
    max-height: 300px;
  }
  .faq-hints {
    grid-template-columns: 1fr;
  }
  .footer-row {
    flex-direction: column;
    gap: 16px;
  }
  .preview-iframe { height: 350px; }
}

.preview-row { margin-top: 12px; }
.preview-btn {
  width: 100%; padding: 10px; border: 1px solid #CBD5E0;
  border-radius: 8px; background: #fff; color: #4A5568;
  font-size: 14px; cursor: pointer; transition: 0.2s;
}
.preview-btn:hover { border-color: #163D8C; color: #163D8C; background: #F7F9FC; }

.modal-box-wide { max-width: 860px; }

.preview-item { margin-bottom: 24px; border: 1px solid #EDF2F7; border-radius: 12px; overflow: hidden; }
.preview-item-title { background: #F7F9FC; padding: 10px 16px; font-size: 14px; font-weight: 500; color: #163D8C; border-bottom: 1px solid #EDF2F7; }
.preview-iframe { width: 100%; height: 500px; border: none; display: block; }