/* ============================================
   AntGoUS - Global & Shared Styles
   ============================================ */

/* CSS Variables */
@font-face {
  font-family: 'PingFangSC-Regular';
  src: url('/css/fonts/PingFangSC-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingFangSC-bold';
  src: url('/css/fonts/PingFangSC-Bold.woff2') format('woff2'),
       url('/css/fonts/PingFangSC-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-blue: #2962FF;
  --primary-orange: #FF6D00;
  --primary-font-weight: 500;
  --progress-blue: #1976D2;
  --bg-gray: #F5F5F5;
  --bg-white: #FFFFFF;
  --text-primary: #3C3C3C;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #E0E0E0;
  --header-height: 60px;
  --content-width: 1200px;
  --footer-bg: #F8F8F8;
  --content-bg: #F4F5F9;
  --el-color-primary:#145AFA;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFangSC-Regular', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  min-width: 992px;
}

[v-cloak] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--primary-blue);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.container {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  /*padding: 0 20px;*/
}

.page-content {
  min-height: calc(100vh - 300px);
  padding: 20px 0;
  background-color: #F4F5F9;
}

/* ============================================
   Auth Pages (shared by login + register)
   ============================================ */
.auth-page-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 0; /* Remove padding to allow full height */
  overflow: hidden; /* Prevent scrollbars from scaled element */
}

.auth-container {
  display: flex;
  width: 1260px;
  height: 700px;
  background: #fff;
  overflow: hidden;
  transform-origin: center center;
}

.auth-left {
  width: 620px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: var(--primary-orange);
}

.auth-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 50px;
  position: relative;
  overflow-y: auto;
}

.auth-right .home-btn {
  position: absolute;
  top: 50px;
  right: 30px;
}

.auth-form {
  max-width: 420px;
  width: 100%;
}

.auth-form .el-form-item {
  margin-bottom: 24px;
}

.auth-form .el-input__inner {
  font-size: 16px;
  height: 48px;
  line-height: 48px;
}

.auth-form .el-input {
  font-size: 16px;
}

.auth-form .submit-btn {
  width: 100%;
  height: 52px;
  font-size: 18px;
}

.auth-form .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 15px;
}

.auth-form .form-footer a {
  color: var(--primary-blue);
}

.auth-form .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.auth-form .divider::before,
.auth-form .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-right .home-btn {
  position: absolute;
  top: 50px;
  right: 30px;
}

.auth-right .auth-title {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: lighter;
}

.auth-form {
  max-width: 400px;
  width: 100%;
}

.auth-form .el-form-item {
  margin-bottom: 20px;
}

.auth-form .submit-btn {
  width: 100%;
  height: 44px;
  font-size: 16px;
}

.auth-form .form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
}

.auth-form .form-footer a {
  color: var(--primary-blue);
}

.auth-form .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-form .divider::before,
.auth-form .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-online-service {
  position: absolute;
  right: 44px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-online-service img {
  width: 86px;
  height: auto;
  display: block;
  margin-bottom: 20px;
    margin-right: 10px;
}

@media (max-width: 1280px) {
  .auth-right {
    padding: 72px 54px 36px;
  }
  .auth-right .auth-title {
    font-size: 32px;
  }
  .auth-form .el-input .el-input__inner::placeholder {
    font-size: 15px;
  }
  .auth-form .submit-btn {
    font-size: 18px;
  }
  .auth-form .form-footer {
    font-size: 13px;
  }
  .auth-form .divider {
    font-size: 15px;
  }
  .scan-section {
    font-size: 15px;
  }
  .login-online-service {
    right: 20px;
    bottom: 18px;
  }
}

/* ============================================
   Product Card (shared by index + search)
   ============================================ */
.product-card {
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.product-card:hover {
  border-color: var(--primary-blue);
}

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-white);
  overflow: hidden;
  padding: 20px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-info {
  padding: 10px;
}

.product-card .product-title {
  font-size: 14px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-tag {
  font-size: 12px;
  line-height: 1;
  color: #145AFA;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.product-card .product-tag img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
}

.product-card .product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card .current-price {
  font-size: 20px;
  font-weight: var(--primary-font-weight);
  /*color: var(--primary-back);*/
}

.product-card .original-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card .add-cart {
  color: var(--primary-orange);
  cursor: pointer;
  margin-left: auto;
  font-size: 18px;
}

.product-card .add-cart img{
  width: 26px;
}

/* ============================================
   Platform & Category Tabs (shared by index + search)
   ============================================ */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.platform-tabs .tab-item {
  padding: 8px 24px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
}

.platform-tabs .tab-icon,
.search-platforms .tab-icon {
  width: 24px;
  height: 24px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: text-bottom;
}

.platform-tabs .tab-item:hover,
.platform-tabs .tab-item.active {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: #EBF0FF;
}

.category-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  /*border-bottom: 1px solid var(--border-color);*/
  /*padding-bottom: 12px;*/
  flex-wrap: wrap;
}

.category-tabs .tab-item {
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--bg-white);
  cursor: pointer;
  border-radius: 10px;
  border-color: transparent;
  transition: all 0.3s;
}

.category-tabs .tab-item:hover,
.category-tabs .tab-item.active {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* ============================================
   Common Utilities
   ============================================ */
.text-orange { color: var(--primary-orange); }
.text-blue { color: var(--primary-blue); }
.text-muted { color: var(--text-muted); }
.text-bold { font-weight: var(--primary-font-weight); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ============================================
   Element Plus Checkbox & Radio Global Styles
   ============================================ */
/* Checkbox选中状态 */
.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #145AFA;
  border-color: #145AFA;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #145AFA;
  border-color: #145AFA;
}

/* Radio选中状态 */
.el-radio__input.is-checked .el-radio__inner {
  background-color: #145AFA;
  border-color: #145AFA;
}

.el-radio__input.is-checked .el-radio__inner::after {
  background-color: #fff;
}
