/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: OceanWP Child Theme
Author: Nick
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* =========================================================
   Global
========================================================= */

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   Product Anchor Layout
========================================================= */

.product-anchor-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 45px;
  align-items: start;
  margin-top: 40px;
}

.product-anchor-menu {
  position: sticky;
  top: 120px;
}

.product-anchor-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #cfcfcf;
  color: #000;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 400;
}

.product-anchor-link:hover {
  opacity: 0.8;
}

.anchor-icon,
.section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.anchor-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #000;
  color: #fff;
  font-size: 2rem;
}

.section-title-icon {
  width: 43px;
  height: 43px;
  min-width: 43px;
  background: #34358b;
  color: #fff;
  font-size: 52px;
}

/* =========================================================
   Product Sections
========================================================= */

.product-section {
  padding: 0 0 48px;
  border-bottom: none;
  scroll-margin-top: 140px;
}

.product-section-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 38px;
  color: #34358b;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-section-body {
  font-size: 1.8rem;
  line-height: 1.9;
  color: #3f4448;
}

/* =========================================================
   Bullet / Ordered List Fix
========================================================= */

.product-section-body ul {
  list-style: disc outside !important;
  margin: 0 0 24px 24px !important;
  padding-left: 24px !important;
}

.product-section-body ol {
  list-style: decimal outside !important;
  margin: 0 0 24px 24px !important;
  padding-left: 24px !important;
}

.product-section-body li {
  display: list-item !important;
  margin-bottom: 8px;
}

/* =========================================================
   Specification Table Fix
========================================================= */
/* =========================================================
   Specification Table - Desktop + RWD
   不需修改表格 HTML
========================================================= */

.product-section-body {
  overflow-x: auto;
}

.product-section-body table {
  width: 100% !important;
  min-width: 760px;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 0 36px;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.45;
  color: #000;
  background: #fff;
}

.product-section-body table thead th,
.product-section-body table tr:first-child th,
.product-section-body table tr:first-child td {
  background: #777 !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 22px 18px !important;
  border: 1px solid #cfcfcf !important;
}

.product-section-body table th,
.product-section-body table td {
  border: 1px solid #cfcfcf !important;
  padding: 18px 20px !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff;
  word-break: normal;
}

.product-section-body table tbody tr:nth-child(even) td,
.product-section-body table tr:nth-child(even) td {
  background: #f1f1f1 !important;
}

.product-section-body table td:first-child,
.product-section-body table th:first-child {
  width: 32%;
}

.product-section-body table td:nth-child(2),
.product-section-body table td:nth-child(3),
.product-section-body table th:nth-child(2),
.product-section-body table th:nth-child(3) {
  width: 34%;
}

/* 手機版：保持表格結構，改成橫向滑動 */
@media (max-width: 768px) {
  .product-section-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-section-body table {
    width: 760px !important;
    min-width: 760px;
    font-size: 16px;
  }

  .product-section-body table th,
  .product-section-body table td {
    padding: 14px 12px !important;
  }
}

/* =========================================================
   Images
========================================================= */

.product-section-body img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Download File Card
========================================================= */

.sm-file-list.vt-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 420px;
  background: #d8cf67;
  padding: 24px 34px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  transition: all 0.25s ease;
}

.sm-file-list:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.sm-file-list .name-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sm-file-list .name-box > .vt-download {
  font-size: 52px;
  line-height: 1;
  color: #34358b;
  text-decoration: none;
}

.sm-file-list .file-name {
  margin: 0;
  line-height: 1.2;
  font-size: 0;
}

.sm-file-list .file-name a {
  color: #34358b;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  display: inline-block;
}

.sm-file-list .file-name span {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.sm-file-list .download-icon {
  margin-left: 42px;
  font-size: 44px;
  color: #34358b;
  line-height: 1;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {

  .product-anchor-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .product-anchor-menu {
    position: relative;
    top: auto;
  }

  .product-anchor-link {
    font-size: 20px;
    padding: 14px 0;
  }

  .product-section-title {
    font-size: 30px;
  }

  .product-section-body {
    font-size: 18px;
  }

  .product-section-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 16px;
  }

  .product-section-body table th,
  .product-section-body table td {
    padding: 14px 12px !important;
  }

  .sm-file-list.vt-link {
    min-width: 100%;
    width: 100%;
    padding: 20px;
  }

  .sm-file-list .file-name a {
    font-size: 20px;
  }

  .sm-file-list .download-icon {
    font-size: 32px;
    margin-left: 20px;
  }
}