/* ============================================
   AIC 产品详情页专属样式
   ============================================ */

/* ---------- Product Banner ---------- */
.pd-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 50%, var(--accent-deep) 100%);
  color: #fff;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.pd-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.pd-banner::after {
  content: "";
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 144, 255, 0.25), transparent 70%);
  border-radius: 50%;
}

.pd-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pd-info .pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #B8C5DD;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.pd-info .pd-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--warn);
  border-radius: 50%;
}

.pd-info .pd-eyebrow .model {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.pd-info h1 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pd-info h1 .blue { color: var(--accent-bright); }

.pd-info .pd-tagline {
  font-size: 17px;
  color: #B8C5DD;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Core 4 specs */
.pd-core-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.pd-core-spec .val {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pd-core-spec .val small {
  font-size: 14px;
  color: var(--accent-bright);
  font-weight: 600;
}

.pd-core-spec .lbl {
  font-size: 12px;
  color: #8595B0;
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pd-info .pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-info .btn-primary {
  background: #fff;
  color: var(--ink);
}

.pd-info .btn-primary:hover { background: #F0F2F5; }

.pd-info .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pd-info .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Product visual */
.pd-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-visual-frame {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.pd-flagship-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.1em;
  z-index: 3;
}

.pd-360-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.1em;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.pd-machine-svg {
  width: 65%;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

/* Quick action tabs */
.pd-quicktabs {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 74px;
  z-index: 50;
}

.pd-quicktabs-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.pd-quicktabs a {
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--t-base);
}

.pd-quicktabs a:hover { color: var(--ink); }

.pd-quicktabs a.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* ---------- Block Sections ---------- */
.pd-block {
  padding: 80px 0;
  scroll-margin-top: 140px;
}

.pd-block-alt { background: var(--bg); }

.pd-block-head {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.pd-block-head .left { flex: 1; }

.pd-block-head h2 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.pd-block-head .desc {
  font-size: 14.5px;
  color: var(--mute);
  max-width: 420px;
  line-height: 1.7;
}

/* ---------- Full Specs Table ---------- */
.specs-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.specs-group {
  border-bottom: 1px solid var(--line);
}

.specs-group:last-child { border-bottom: none; }

.specs-group-title {
  padding: 16px 28px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.specs-group-title svg {
  color: var(--accent);
}

.specs-group-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.specs-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-top: 1px solid var(--line);
}

.specs-row:first-of-type { border-top: none; }

.specs-row:hover {
  background: var(--bg-2);
}

.specs-row .k {
  padding: 16px 28px;
  color: var(--mute);
  font-size: 14px;
  background: var(--bg-2);
}

.specs-row .v {
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  color: var(--ink);
}

.specs-row .v .badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  margin-left: 8px;
  font-family: "Noto Sans SC", sans-serif;
}

/* ---------- Dimensions / CAD ---------- */
.dimensions {
  background: var(--bg);
  padding: 80px 0;
  scroll-margin-top: 140px;
}

.dim-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.dim-drawing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 50px 40px;
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dim-svg {
  width: 100%;
  max-width: 480px;
}

.dim-info {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dim-info h3 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dim-info > p {
  font-size: 13.5px;
  color: #A8B5C7;
  line-height: 1.7;
  margin-bottom: 28px;
}

.dim-list {
  list-style: none;
}

.dim-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.dim-list li:first-child { border-top: none; }

.dim-list .k { color: #A8B5C7; }

.dim-list .v {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}

.dim-download {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dim-download a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  font-size: 13px;
  color: #fff;
  transition: all var(--t-base);
}

.dim-download a:hover {
  background: rgba(74, 144, 255, 0.15);
  border-color: var(--accent-bright);
}

.dim-download .file-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent-bright);
  background: rgba(74, 144, 255, 0.15);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

/* ---------- Videos ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-base);
}

.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(74, 144, 255, 0.3), transparent 60%);
}

.video-thumb-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 2;
  transition: all var(--t-base);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}

.video-duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  z-index: 2;
}

.video-type-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 82, 217, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  letter-spacing: 0.1em;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.video-info {
  padding: 24px;
}

.video-info h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.video-info p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.6;
}

/* ---------- Download Zone ---------- */
.download-zone {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.download-zone::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 255, 0.2), transparent 70%);
  border-radius: 50%;
}

.dz-left { position: relative; z-index: 2; }

.dz-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  font-family: "JetBrains Mono", monospace;
}

.dz-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #00FF88;
  border-radius: 50%;
}

.download-zone h3 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.download-zone .dz-filename {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--accent-bright);
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(74, 144, 255, 0.1);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(74, 144, 255, 0.2);
}

.download-zone p {
  font-size: 14px;
  color: #B8C5DD;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.dz-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}

.dz-includes span {
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dz-includes span::before {
  content: "✓";
  color: #00FF88;
  font-size: 12px;
  font-weight: 700;
}

.dz-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dz-actions .btn-primary {
  background: #fff;
  color: var(--ink);
  padding: 14px 24px;
}

.dz-actions .btn-primary:hover { background: #F0F2F5; }

.dz-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  padding: 14px 24px;
}

.dz-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ZIP visual */
.dz-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.dz-zip {
  width: 200px;
  height: 240px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

.dz-zip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 8px;
  background: var(--warn);
  border-radius: 0 0 4px 4px;
}

.dz-zip .grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dz-zip .zip-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #fff;
}

.dz-zip .zip-name {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--warn);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.dz-zip .zip-size {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #A8B5C7;
}

/* Individual files list under download zone */
.dz-files {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dz-file {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}

.dz-file:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dz-file-icon {
  width: 44px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.dz-file-icon.pdf { background: #FEE4E2; color: var(--danger); }
.dz-file-icon.dwg { background: #EDE9FE; color: #6938EF; }
.dz-file-icon.vid { background: #FEF0C7; color: #B54708; }
.dz-file-icon.xls { background: #D1FADF; color: #039855; }

.dz-file h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.dz-file .desc {
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}

.dz-file .meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  font-family: "JetBrains Mono", monospace;
  color: var(--mute);
}

.dz-file .meta .down {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Related Products ---------- */
.related {
  background: var(--bg);
  padding: 80px 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t-base);
  cursor: pointer;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-card .rel-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
}

.related-card h4 {
  font-family: "Barlow Condensed", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-card .rel-sub {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 18px;
}

.related-card .rel-specs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.rel-spec .val {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.rel-spec .lbl {
  font-size: 11px;
  color: var(--mute);
}

.related-card .rel-actions {
  display: flex;
  gap: 8px;
}

.related-card .btn-sm { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-banner-inner { grid-template-columns: 1fr; gap: 40px; }
  .pd-info h1 { font-size: 42px; }
  .pd-visual { height: 400px; }
  .specs-row { grid-template-columns: 200px 1fr; }
  .dim-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .download-zone { grid-template-columns: 1fr; padding: 36px; }
  .dz-includes { grid-template-columns: 1fr; }
  .dz-files { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pd-banner { padding: 50px 0 60px; }
  .pd-info h1 { font-size: 32px; }
  .pd-core-specs { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
  .pd-block { padding: 60px 0; }
  .pd-block-head h2 { font-size: 28px; }
  .specs-row { grid-template-columns: 1fr; }
  .specs-row .k { padding: 10px 20px 4px; background: var(--bg-2); }
  .specs-row .v { padding: 4px 20px 14px; }
  .dim-drawing { padding: 30px 20px; min-height: 320px; }
  .dim-info { padding: 28px 24px; }
  .download-zone { padding: 28px; }
  .download-zone h3 { font-size: 28px; }
  .dz-files { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
