/* ============================================================
   product-detail.css — ported from origin pid.css + common7.css
   (eTOMMENS EN product detail page)
   Scope: #content .product-head / .table-container / .product-center
          + 资料中心 modal block. Origin header/footer/rightside and
          legacy inl9 rules intentionally NOT ported.
   ============================================================ */

body,
html {
  width: 100%;
  overflow-x: hidden;
}

/* ---------- page frame ---------- */
#content {
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 6px);
  position: relative;
}

/* ---------- product head: gallery + intro ---------- */
#content .product-head {
  display: flex;
  padding: 3.22917rem 0 3.44792rem;
}
#content .product-head .left-img {
  margin-right: 40px;
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
/* P6: the main image sizes itself from the real image, never from the height of
   the neighbouring text column. height:100% used to force the picture to fill
   the whole row, which distorted non-square photos and left a large empty band
   under the image column. A px flex-basis (not the intrinsic 800px width) keeps
   the thumbnail strip beside the image instead of letting it wrap below. */
#content .product-head .left-img .lagre-img {
  border: 1px solid #cbcbcb;
  flex: 1 1 420px;
  min-width: 0;
  height: auto;
  object-fit: contain;
  display: block;
  margin-right: 16px;
  background: #fff;
}
#content .product-head .left-img .img-list {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: flex-start;
  flex: 0 0 auto;
  margin-right: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}
#content .product-head .left-img .img-list .img-group {
  padding: 4px;
  border: 1px solid #cbcbcb;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0;
  line-height: 0;
  background: #fff;
}
#content .product-head .left-img .img-list .img-group .img-li {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}
#content .product-head .left-img .img-list .is-active {
  border: 1px solid #177fef;
}
#content .product-head .right-word {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
#content .product-head .right-word .top {
  font-size: 1.5rem;
  font-weight: 700;
  color: #115899;
  margin-bottom: 20px;
}
#content .product-head .right-word .center {
  font-size: 16px;
  color: #000000;
  line-height: 1.5rem;
  text-align: left;
  height: 9.375rem;
  overflow: auto;
  margin-bottom: 20px;
}
#content .product-head .right-word .down .tips {
  font-size: 1.5rem;
  font-weight: 700;
  color: #115899;
  margin-bottom: 40px;
}
#content .product-head .right-word .down .icon-list {
  display: flex;
  justify-content: space-around;
}
#content .product-head .right-word .down .icon-list .list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  border-right: 1px solid #cbcbcb;
  padding: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}
#content .product-head .right-word .down .icon-list .list:last-child {
  border: none;
}
#content .product-head .right-word .down .icon-list .list .icon {
  color: #115899;
  font-size: 70px;
}
#content .product-head .right-word .down .icon-list .list .list-tips {
  margin-top: 20px;
  font-size: 18px;
  color: #3d3a3a;
}
@media (max-width: 900px) {
  #content .product-head {
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    padding: 0 0 3.44792rem;
  }
  #content .product-head .left-img {
    border: none;
    margin-right: 0;
    text-align: center;
  }
  #content .product-head .left-img img {
    width: 100%;
    height: auto;
  }
  #content .product-head .right-word {
    margin: 0 20px;
  }
  #content .product-head .right-word .center {
    margin-bottom: 20px;
  }
  #content .product-head .right-word .down .icon-list {
    display: flex;
    justify-content: space-around;
  }
  #content .product-head .right-word .down .icon-list .list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    border-right: 1px solid #cbcbcb;
    text-align: center;
    cursor: pointer;
  }
  #content .product-head .right-word .down .icon-list .list:last-child {
    border: none;
  }
  #content .product-head .right-word .down .icon-list .list .icon {
    color: #115899;
    font-size: 50px;
  }
  #content .product-head .right-word .down .icon-list .list .list-tips {
    margin-top: 20px;
    font-size: 15px;
    color: #3d3a3a;
    word-wrap: break-word;
    word-break: normal;
    width: 100%;
  }
}
@media (max-width: 768px) {
  #content .product-head {
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    padding: 0 0 3.44792rem;
  }
  #content .product-head .left-img {
    border: none;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  #content .product-head .left-img .lagre-img {
    width: 100%;
  }
  #content .product-head .left-img .img-list {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  #content .product-head .left-img .img-list .img-group {
    width: 25%;
    height: 100px;
  }
  #content .product-head .left-img .img-list .img-li {
    width: 100% !important;
    height: 100% !important;
  }
}

/* ---------- model spec table ---------- */
#content .table-container {
  max-width: 100%;
  padding: 15px;
  text-align: center;
}
#content .table-container .center-head {
  color: #115899;
  display: inline-block;
  margin-bottom: 20px;
}
#content .table-container .center-head .tips {
  margin-bottom: 10px;
}
#content .table-container .center-head::after {
  content: '';
  width: 50px;
  height: 5px;
  background-color: #115899;
  display: block;
  margin: 0 auto;
}
#content .search-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 16px;
}
#content .search-input {
  width: 200px;
  padding: 8px 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}
#content .search-btn,
#content .reset-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#content .search-btn {
  background-color: #409eff;
  color: white;
}
#content .reset-btn {
  background-color: #f5f5f5;
  color: #333;
}
#content .table-responsive {
  position: relative;
  width: 100%;
  overflow: hidden;
}
#content .data-table {
  width: 100%;
  border-collapse: collapse;
  color: #333;
  font-size: 14px;
}
#content .data-table thead {
  background-color: #175997;
}
#content .data-table th,
#content .data-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
#content .data-table td {
  width: 10px;
}
#content .data-table th {
  background-color: #175997;
  font-weight: normal;
  color: #fff;
}
#content .data-table tr:hover {
  background-color: #f5f5f5;
}
#content .data-table tr:nth-child(odd) {
  background: #fff;
}
#content .data-table tr:nth-child(even) {
  background: #edf6ff;
}
@media (max-width: 768px) {
  #content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #content .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  #content .search-container .search-input {
    width: 100% !important;
  }
  #content .data-table {
    min-width: 600px;
  }
  #content .fixed-column {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }
  #content .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #175997;
  }
  #content .data-table thead th.fixed-column {
    z-index: 4;
  }
}
#content .loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
#content .empty-state {
  text-align: center;
  padding: 30px;
  color: #777;
}

/* ---------- product feature viewer ---------- */
#content .product-center {
  text-align: center;
}
#content .product-center .center-head {
  color: #115899;
  display: inline-block;
  margin-bottom: 20px;
}
#content .product-center .center-head .tips {
  margin-bottom: 10px;
}
#content .product-center .center-head::after {
  content: '';
  width: 50px;
  height: 5px;
  background-color: #115899;
  display: block;
  margin: 0 auto;
}
#content .product-center .center-img img {
  width: 100% !important;
  height: auto !important;
}

/* ---------- 资料中心 modal (ported from common7.css) ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.modal.active .modal-content {
  transform: translateY(0);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}
.head-left {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}
.head-right {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  transition: color 0.2s;
}
.head-right:hover {
  color: #333;
}
.modal-center {
  padding: 20px;
}
.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}
.no-data i {
  font-size: 50px;
  margin-bottom: 15px;
  display: block;
  color: #ddd;
}
.no-data .fi {
  font-size: 9.375rem;
  color: #999;
}
.no-data p {
  color: #999;
}
.data-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.data-left {
  flex: 1;
  padding-right: 15px;
  word-break: break-word;
  color: #333;
}
.data-right-btn {
  padding: 8px 15px;
  background: #1890ff;
  color: white;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.data-right-btn:hover {
  background: #40a9ff;
}
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }
  .modal-center {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  .data-list {
    flex-direction: column;
    align-items: flex-start;
  }
  .data-right-btn {
    margin-top: 10px;
    align-self: flex-end;
  }
  .modal-head {
    padding: 12px 15px;
  }
  .head-left {
    font-size: 16px;
  }
}
