/* pod_price.css - 通达服装POD报价表专用样式 */
:root {
  --primary-color: #6e8efb;
  --primary-dark: #5a7df4;
  --secondary-color: #a777e3;
  --light-bg: #f8f9fa;
  --border-color: #eaeaea;
  --text-color: #333;
  --text-light: #666;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --hover-shadow: 0 20px 50px rgba(110, 142, 251, 0.25);
  --hover-orange: #ff9800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  padding: 0;
  min-height: 100vh;
}

.pod-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* 报价页专属头部 */
.pod-hero {
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pod-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.pod-hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.pod-hero p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(110, 142, 251, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}
.filter-btn:hover::before {
  left: 100%;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110, 142, 251, 0.3);
}

/* 产品网格 - 最多3列 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
@media (min-width: 1300px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1299px) and (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* 产品卡片 */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  cursor: pointer;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--hover-shadow);
  z-index: 10;
}
.product-card:hover .product-price {
  color: var(--hover-orange) !important;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-header {
  position: relative;
  height: 0;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 2;
}
.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.product-card:hover .product-image {
  transform: scale(1.1);
}
.product-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 25px 20px;
  z-index: 3;
  color: white;
  background: linear-gradient(135deg, rgba(110,142,251,0.8), rgba(167,119,227,0.8));
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.product-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.product-price {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.price-unit {
  font-size: 1.2rem;
  font-weight: 500;
}

.product-details {
  padding: 25px;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}
.product-card:hover .detail-item:hover {
  background: rgba(110,142,251,0.05);
}
.detail-label {
  color: var(--text-light);
  font-weight: 500;
}
.detail-value {
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}
.color-dot:hover {
  transform: scale(1.2);
}
.color-dot.black { background: #333; }
.color-dot.white { background: #fff; border-color: #ddd; }
.color-dot.gray { background: #666; }
.color-dot.red { background: #e74c3c; }
.color-dot.blue { background: #3498db; }
.color-dot.green { background: #2ecc71; }
.color-dot.pink { background: #fd79a8; }
.color-dot.beige { background: #f5deb3; }

.product-actions {
  padding: 0 25px 25px;
  display: flex;
  gap: 10px;
}
.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}
.btn:hover::before {
  left: 100%;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(110,142,251,0.4);
}
.btn-secondary {
  background: #f0f2f5;
  color: var(--text-color);
}
.btn-secondary:hover {
  background: #e4e6e9;
  transform: translateY(-2px);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}
.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  border-radius: var(--radius);
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: modalFadeIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.8rem;
}
.close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s;
}
.close-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}
.modal-body {
  padding: 30px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* 模态框内部组件 */
.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: auto;
}
.size-table th {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 14px 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}
.size-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}
.size-table tr:hover {
  background: rgba(110,142,251,0.05);
}

.tab-container {
  margin-top: 20px;
}
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 14px 25px;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
}
.tab:hover {
  color: var(--primary-color);
}
.tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: -2px;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.spec-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s;
}
.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.spec-card h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}
.stock-status {
  display: inline-block;
  padding: 5px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 10px;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.gallery-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.gallery-image:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.gallery-placeholder {
  height: 180px;
  background: linear-gradient(45deg, #f0f2f5, #e4e6e9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* 大图查看器 */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}
.lightbox-caption {
  color: white;
  margin-top: 15px;
  text-align: center;
  font-size: 1.1rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}
.lightbox-nav-btn {
  background: rgba(180,200,250,0.5);
  border: none;
  color: #ee822f;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s;
}
.lightbox-nav-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* 页脚 */
.pod-footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* 响应式微调 */
@media (max-width: 768px) {
  .pod-hero h1 { font-size: 2rem; }
  .product-actions { flex-direction: column; }
  .filter-bar { flex-direction: column; align-items: center; }
  .filter-btn { width: 100%; max-width: 300px; }
  .product-title { font-size: 1.4rem; }
  .product-price { font-size: 2.4rem; }
  .tabs { flex-direction: column; }
  .tab { text-align: left; padding: 10px 15px; border-bottom: none; }
}
@media print {
  .filter-bar, .modal, .lightbox-modal, .product-actions { display: none !important; }
  .product-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}