/* reset,start ================ */
body,
html,
div,
p,
article,
section,
header,
footer,
nav,
aside,
main,
img,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
form,
input,
textarea,
select,
button {
  margin: 0;
  padding: 0;
}

body {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  line-height: 20px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}

a {
  color: #333;
  text-decoration: none;
  outline: none;
}

a:hover {
  color: #000;
  text-decoration: none;
}

select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  outline: none;
}
select::-ms-expand {
  display: none;
}

ul,
ol,
li {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
}
/* reset,end ================ */

/* 登录弹窗 start ================ */
:root {
  --modal-primary-color: #000000;
  --modal-secondary-color: #333333;
}
.login-modal-overlay * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  background-color: white;
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}

.login-modal-overlay.active .login-modal {
  transform: translateY(0);
}

.login-modal .modal-header {
  margin-bottom: 25px;
  text-align: center;
}

.login-modal .modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.login-modal .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px;
}

.login-modal .close-btn:hover {
  color: #333;
}

.login-modal .form-group {
  margin-bottom: 15px;
}

.login-modal .input-wrapper {
  position: relative;
}

.login-modal .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  width: 20px;
  height: 20px;
}

.login-modal .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  width: 14px;
  height: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.login-modal .toggle-password:hover {
  color: #333;
}

.login-modal .form-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.login-modal .password-input {
  padding-right: 45px;
}

.login-modal .form-input:focus {
  outline: none;
  border-color: var(--modal-secondary-color);
}

.login-modal .links-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.login-modal .link-item {
  color: var(--modal-primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.login-modal .link-item:hover {
  color: var(--modal-secondary-color);
  text-decoration: underline;
}

.login-modal .login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--modal-primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

.login-modal .login-btn:hover {
  background-color: var(--modal-secondary-color);
}

.login-modal .login-btn:disabled {
  background-color: #a0c4ff;
  cursor: not-allowed;
}

.login-modal .privacy-check {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.login-modal .privacy-check input {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-modal .privacy-check label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.login-modal .privacy-link {
  color: var(--modal-primary-color);
  text-decoration: none;
}

.login-modal .privacy-link:hover {
  text-decoration: underline;
}

.login-modal .button-group {
  margin-top: 15px;
}
/* 登录弹窗 end ================ */
/* 物流模板弹窗 start ================ */
.ship-modal-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.ship-apply-btn {
  width: 240px;
  padding: 8px 16px;
  gap: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  background-color: var(--modal-primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-apply-btn:hover {
  background-color: var(--modal-secondary-color);
}

/* 弹层容器 - 整合遮罩层和弹窗 */
.ship-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: shipFadeIn 0.2s ease-in-out;
}

.ship-modal {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 640px;
  margin: 0 16px;
  animation: shipSlideUp 0.25s ease-out;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.ship-modal .modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e5e6eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ship-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  display: flex;
  align-items: center;
}

.shipping-inquiry {
  font-size: 14px;
  margin-left: 15px;
  font-weight: normal;
  color: #666;
  text-decoration: none;
}

.shipping-inquiry:hover {
  color: var(--modal-primary-color);
}

.ship-modal .modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #86909c;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ship-modal .modal-close:hover {
  color: #1d2129;
}

.ship-modal .modal-body {
  padding: 15px 24px;
  overflow: hidden;
  height: 460px;
}

.ship-modal .modal-footer {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ship-modal .footer-note {
  font-size: 14px;
  color: #4e5969;
  text-align: center;
  margin-top: 8px;
}

.ship-modal .form-group {
  margin-bottom: 24px;
}

.ship-modal .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #272e3b;
}

.ship-modal .country-selector {
  position: relative;
  width: 50%;
}

.ship-modal .country-trigger {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c9cdd4;
  border-radius: 6px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ship-modal .country-trigger:hover,
.ship-modal .country-trigger:focus {
  border-color: var(--modal-primary-color);
  outline: none;
}

.ship-modal .selected-country {
  color: #1d2129;
  font-size: 14px;
}

.ship-modal .chevron-icon {
  color: #86909c;
  transition: transform 0.2s ease;
}

.ship-modal .chevron-icon.rotate {
  transform: rotate(180deg);
}

.ship-modal .country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e6eb;
  z-index: 50;
  display: none;
  width: 100%;
}

.ship-modal .country-search {
  padding: 12px;
  border-bottom: 1px solid #e5e6eb;
}

.ship-modal .country-search-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #c9cdd4;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.ship-modal .country-search-input:focus {
  border-color: var(--modal-primary-color);
  outline: none;
}

.ship-modal .search-icon {
  position: absolute;
  left: 20px;
  top: 20px;
  color: #86909c;
}

.ship-modal .country-list {
  max-height: 260px;
  overflow-y: auto;
}

.ship-modal .country-list::-webkit-scrollbar {
  display: none;
}

.ship-modal .country-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ship-modal .country-item:hover {
  background-color: #f5f7fa;
}

.ship-modal .country-item.selected {
  background-color: rgba(22, 93, 255, 0.05);
}

.ship-modal .country-item.selected .country-name {
  color: var(--modal-primary-color);
}

.ship-modal .country-code {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f5f7fa;
  color: #4e5969;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.ship-modal .country-name {
  color: #1d2129;
  font-size: 14px;
}

.ship-modal .template-list-container {
  max-height: 315px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  overflow: hidden auto;
  position: relative;
}

.ship-modal .template-list {
  width: 100%;
}

.ship-modal .template-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 12px 16px 12px 44px;
  background-color: #f5f7fa;
  border-bottom: 1px solid #e5e6eb;
  font-weight: 500;
  font-size: 14px;
  color: #4e5969;
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
}

.ship-modal .template-header > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-modal .template-item {
  padding: 16px;
  border-bottom: 1px solid #e5e6eb;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ship-modal .template-item:last-child {
  border-bottom: none;
}

.ship-modal .template-item:hover {
  background-color: #f9fafb;
}

.ship-modal .template-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9cdd4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ship-modal .template-item.selected .template-radio {
  border-color: var(--modal-primary-color);
}

.ship-modal .radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--modal-primary-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ship-modal .template-item.selected .radio-inner {
  opacity: 1;
}

.ship-modal .template-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  color: #4e5969;
  font-size: 14px;
}

.ship-modal .template-content > div {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ship-modal .template-carrier {
  font-weight: 500;
  color: #1d2129;
}

.ship-modal .template-cost {
  color: var(--modal-primary-color);
  font-weight: 500;
}

.ship-modal .template-list-container::-webkit-scrollbar {
  width: 6px;
}

.ship-modal .template-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.ship-modal .template-list-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.ship-modal .template-list-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 动画 */
@keyframes shipFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shipSlideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 响应式调整 */
@media (max-width: 767px) {
  .ship-modal .template-header {
    padding-left: 40px;
  }

  .ship-modal .template-header,
  .ship-modal .template-content {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
}
/* 物流模板弹窗 end ================ */
/* 评论列表 start ================ */
.comments-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.comments-container .comment {
  background-color: white;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comments-container .comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.comments-container .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.comments-container .user-info {
  display: flex;
  align-items: center;
}

.comments-container .username {
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 6px;
}

.comments-container .verified {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: 8px;
}

.comments-container .rating {
  margin: 0 10px;
  display: flex;
  gap: 2px;
}

.comments-container .rating-star {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.comments-container .rating-star path {
  stroke-width: 2;
  transition: all 0.2s;
}

.comments-container .rating-star.filled path {
  stroke: #ffb400;
  fill: #ffb400;
}

.comments-container .rating-star.empty path {
  stroke: #ddd;
  fill: none;
}

.comments-container .comment-time {
  color: #888;
  font-size: 13px;
  margin-left: auto;
}

.comments-container .comment-content {
  color: #333;
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 14px;
}

/* 评论图片样式 */
.comments-container .comment-images {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 8px;
}

.comments-container .comment-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.comments-container .comment-image:hover {
  transform: scale(1.03);
}

/* 二级评论样式 */
.comments-container .replies-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f5;
}

.comments-container .replies-count {
  font-weight: 500;
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.comments-container .replies-list {
  margin-bottom: 16px;
}

.comments-container .reply {
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  margin-bottom: 10px;
}

.comments-container .reply-content {
  color: #333;
  font-size: 14px;
}

.comments-container .reply-meta {
  font-size: 12px;
  color: #888;
  margin-left: 6px;
}

.comments-container .reply-author {
  font-weight: 500;
  margin-right: 8px;
}

.comments-container .reply-time {
  display: inline;
}

/* 评论操作区（点赞和回复按钮） */
.comments-container .comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.comments-container .like-btn {
  display: flex;
  align-items: center;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 14px;
}

.comments-container .like-btn:hover .like-icon path {
  stroke: #007bff;
  /* 悬停时线条变亮 */
}

.comments-container .like-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.comments-container .like-icon path {
  stroke: #888;
  /* 默认线条颜色 */
  stroke-width: 2;
  fill: none;
  transition: all 0.2s;
}

.comments-container .like-btn.liked .like-icon path {
  stroke: #007bff;
  /* 点赞后线条颜色 */
  fill: #007bff;
  /* 点赞后填充颜色 */
}

.comments-container .like-count {
  margin-left: 4px;
}

/* 回复按钮和表单样式 */
.comments-container .reply-btn {
  color: #007bff;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-block;
  font-size: 14px;
}

.comments-container .reply-btn:hover {
  opacity: 0.8;
}

.comments-container .reply-form-container {
  display: none;
  margin-top: 12px;
  animation: commentFadeIn 0.3s ease;
}

@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comments-container .reply-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.comments-container .reply-textarea:focus {
  outline: none;
  border-color: #007bff;
}

.comments-container .submit-reply {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.comments-container .submit-reply:hover {
  background-color: #0056b3;
}

/* 无评论状态样式 */
.comments-container .no-comments {
  background-color: white;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #888;
}

.comments-container .no-comments-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  opacity: 0.3;
}

.comments-container .no-comments-icon path {
  stroke: #888;
  stroke-width: 2;
  fill: none;
}

.comments-container .no-comments-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.comments-container .no-comments-subtext {
  font-size: 14px;
  color: #aaa;
}

/* 响应式设计 */
@media (max-width: 600px) {
  .comments-container .comment-header {
    flex-wrap: wrap;
  }

  .comments-container .comment-time {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }

  .comments-container .comment-image {
    width: 70px;
    height: 70px;
  }

  .comments-container .no-comments {
    padding: 30px 15px;
  }
}
/* 评论列表 end ================== */
