/*
 * Kent & Hudson Frontend - Public Styles
 * 公共样式 - 参考 https://kentandhudson.com/
 */

/* ========== 重置和基础 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  --style-color: #4A3728;       /* Louis Vuitton Brown */
  --style-color-light: #6B5344; /* LV Light Brown */
  --style-color-gold: #C9A96E; /* LV Champagne Gold */
  --style-bg: #ffffff;
  --style-text: #1a1a1a;
  --style-muted: #767676;
  --style-border: #E5E5E5;
  --style-accent: #C9A96E;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--style-text);
  background: var(--style-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
a:hover { color: var(--style-muted); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

p { margin: 0 0 15px; }

/* ========== 容器 ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1400px) {
  .container { max-width: 1400px; padding: 0 40px; }
}

/* ========== 按钮 ========== */
.btn {
  display: inline-block;
  padding: 14px 38px;
  background: var(--style-color);
  color: #fff;
  border: 1px solid var(--style-color);
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:hover { background: #333; color: #fff; border-color: #333; }

.btn-outline {
  background: transparent;
  color: var(--style-color);
  border: 1px solid var(--style-color);
}

.btn-outline:hover { background: var(--style-color); color: #fff; }

.btn-white {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }

.btn-sm { padding: 10px 22px; font-size: 11px; }

/* ========== 表单 ========== */
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--style-border);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.25s;
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--style-color);
}

textarea.form-control { resize: vertical; min-height: 120px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }

/* ========== 栅格系统 ========== */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > div { padding: 0 12px; }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (max-width: 991px) {
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 767px) {
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 间距 */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; } .mt-5 { margin-top: 60px; } .mt-6 { margin-top: 80px; }

.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; } .mb-5 { margin-bottom: 60px; } .mb-6 { margin-bottom: 80px; }

.pt-1 { padding-top: 8px; } .pt-2 { padding-top: 16px; } .pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 40px; } .pt-5 { padding-top: 60px; } .pt-6 { padding-top: 80px; }

.pb-1 { padding-bottom: 8px; } .pb-2 { padding-bottom: 16px; } .pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 40px; } .pb-5 { padding-bottom: 60px; } .pb-6 { padding-bottom: 80px; }

/* 文字截断 */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式隐藏 */
@media (max-width: 767px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) { .hidden-md { display: none !important; } }

/* ========== 滚动条 ========== */
.scrollbar-y { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ccc #f1f1f1; }
.scrollbar-y::-webkit-scrollbar { width: 6px; }
.scrollbar-y::-webkit-scrollbar-track { background: #f1f1f1; }
.scrollbar-y::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ========== 懒加载 ========== */
.lazyload { opacity: 0; transition: opacity 0.4s ease; }
.lazyload.loaded { opacity: 1; }

/* ========== Swiper 容器 ========== */
.swiper-container { width: 100%; overflow: hidden; }
.swiper-slide { text-align: center; }

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: #ccc;
  opacity: 1;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active { background: var(--style-color); }

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--style-border);
  border-radius: 0;
  font-size: 13px;
  color: #333;
  transition: all 0.25s;
  text-decoration: none;
  font-family: inherit;
}

.pagination a:hover,
.pagination .active {
  background: var(--style-color);
  border-color: var(--style-color);
  color: #fff;
}

/* ========== 加载动画 ========== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--style-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== Toast 提示框 ========== */
.kh-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  max-width: 80%;
  text-align: center;
  border-radius: 4px;
}

.kh-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ========== Select 标签（Kent & Hudson 风格） ========== */
.select-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--style-border);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23333' d='M6 8L0 0h12z'/%3e%3c/svg%3e") no-repeat right 16px center;
  background-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: var(--style-color);
}

/* ========== 响应式断点 ========== */
@media (max-width: 1199px) { .container { padding: 0 20px; } }
@media (max-width: 767px) {
  body { font-size: 14px; }
  .btn { padding: 12px 28px; font-size: 11px; }
}
