@charset "UTF-8";
/* BasinLens Common Styles */

/* 基础和排版样式 */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'SF Pro Text', 'PingFang SC', SegoeUI, 'Segoe UI', 'Microsoft YaHei UI',
    'Microsoft YaHei', Roboto, 'Noto Sans', 'Noto Sans CJK SC', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'SF Pro Icons', 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

/* Removed body opacity transition to prevent white screen flash */

/*  - **H1**: `text-3xl`, `font-bold`, `black`
  - **H2**: `text-2xl`, `font-bold`, `text-gray-950`
  - **H3**: `text-xl`, `font-semibold`, `text-gray-900`
  - **H4**: `text-lg`, `font-semibold`, `text-gray-800`
  - **H5**: `text-base`, `font-medium`, `text-gray-700`
  - **H6**: `text-sm`, `font-medium`, `text-gray-600`
*/

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
}
h1 {
  font-size: 1.875rem; /* 3xl */
  font-weight: 700; /* bold */
  color: #000; /* black */
}
h2 {
  font-size: 1.5rem; /* 2xl */
  font-weight: 700; /* bold */
  color: #1f2937; /* text-gray-950 */
}
h3 {
  font-size: 1.25rem; /* xl */
  font-weight: 600; /* semibold */
  color: #111827; /* text-gray-900 */
}
h4 {
  font-size: 1.125rem; /* lg */
  font-weight: 600; /* semibold */
  color: #374151; /* text-gray-800 */
}
h5 {
  font-size: 1rem; /* base */
  font-weight: 500; /* medium */
  color: #4b5563; /* text-gray-700 */
}
h6 {
  font-size: 0.875rem; /* sm */
  font-weight: 500; /* medium */
  color: #6b7280; /* text-gray-600 */
}

a,
button {
  cursor: pointer;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* 表单元素样式 */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-size: 0.875rem; /* text-sm */
  font-weight: 300;
}

select {
  background-color: transparent;
}

input[type='checkbox']:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

/* Critical CSS for SVG sizing to prevent FOUC (Flash of Unstyled Content) */
/* Width & Height */
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }    .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }  .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }    .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }   .h-12 { height: 3rem; }
.w-16 { width: 4rem; }   .h-16 { height: 4rem; }
.w-full { width: 100%; } .h-full { height: 100%; }

/* Size utility (width + height) */
.size-3 { width: 0.75rem; height: 0.75rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-16 { width: 4rem; height: 4rem; }


/* 加载和动画效果 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent blocking clicks if accidentally shown */
}

/* Removed .loading.active logic to prevent forced white screen */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(249, 115, 22, 0.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.content-loading .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(249, 115, 22, 0.2);
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 特定组件样式 */
.watermarked {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.watermarked::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("http://img.bslcdn.com/web/watermark-v3.svg");
  background-repeat: repeat;
  background-size: 360px 180px;
  transform: rotate(-30deg);
  opacity: 1.0;
  pointer-events: none;
  z-index: -1;
}

/* 功能类 */
.z-60 {
  z-index: 60;
}
.z-70 {
  z-index: 70;
}
.z-80 {
  z-index: 80;
}
.z-90 {
  z-index: 90;
}
.z-100 {
  z-index: 100;
}
.z-110 {
  z-index: 110;
}
.z-200 {
  z-index: 200;
}

.leading-11 {
  line-height: 2.75rem;
}
.leading-12 {
  line-height: 3rem;
}

/* Amazon相关样式 */
.amz-rating-star {
  color: #ff6200;
}
.amz-rating-bar {
  background-color: #ff6200;
}
.amz-badge-amazons-choice {
  border-radius: 4px !important;
  display: inline-flex;
  color: #FFF;
  white-space: nowrap;
  padding: 2px 6px !important;
  background-color: #161D26 !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
}
.amz-badge-best-seller {
  border-radius: 4px !important;
  display: inline-flex;
  color: #FFF;
  white-space: nowrap;
  padding: 2px 6px !important;
  background-color: #D14900 !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
}
.amz-badge-common {
  border-radius: 4px !important;
  display: inline-flex;
  color: #FFF;
  white-space: nowrap;
  padding: 2px 6px !important;
  background-color: #ffa41c !important;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
}
