/* A-BOX Product Details Page Stylesheet */

/* --- Variables & Core Settings --- */
:root {
  --bg-primary: #070709;
  --bg-secondary: #0f0f15;
  --color-primary: #0052ff;
  --color-secondary: #7c3aed;
  --color-cyan: #06b6d4;
  --text-white: #ffffff;
  --text-gray: rgba(255, 255, 255, 0.7);
  --text-dim: rgba(255, 255, 255, 0.45);
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: 'Outfit', sans-serif;
}

/* --- Layout Reset & Base Style --- */
.product-page-body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-family-sans);
  margin: 0;
  padding-top: 70px; /* Offset header */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation Link Override (Ensure it matches aboxcc.css) --- */
.product-page-body .main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
}

/* --- Hero Section --- */
.hero-section {
  padding: 100px 0 80px 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 82, 255, 0.15) 0%, transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge-glowing {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  font-family: var(--font-family-display);
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 82, 255, 0.5);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-features-list li {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-features-list li span {
  color: var(--color-cyan);
  font-weight: bold;
}

/* --- Product Image Showcase --- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image-container {
  position: relative;
  width: 100%;
  max-width: 330px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-image-container:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(6, 182, 212, 0.3);
}

.product-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.border-glow-top-left {
  position: absolute;
  top: -2px; left: -2px; width: 40px; height: 40px;
  border-top: 3px solid var(--color-cyan);
  border-left: 3px solid var(--color-cyan);
  z-index: 2;
}

.border-glow-bottom-right {
  position: absolute;
  bottom: -2px; right: -2px; width: 40px; height: 40px;
  border-bottom: 3px solid var(--color-secondary);
  border-right: 3px solid var(--color-secondary);
  z-index: 2;
}

.visual-hint {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* --- Features Section (Why A-BOX Works) --- */
.features-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-family-display);
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.feature-card:hover::before {
  transform: translateX(100%);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-white);
}

.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
}

/* --- How It Works Section --- */
.how-it-works-section {
  padding: 100px 0;
  background: radial-gradient(circle at 10% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}

.step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 30px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-family-display);
  font-size: 36px;
  font-weight: 800;
  color: rgba(6, 182, 212, 0.35);
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-white);
}

.step-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
}

.step-arrow {
  font-size: 24px;
  color: var(--text-dim);
  font-weight: 300;
}

/* --- Specifications Section --- */
.specs-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.specs-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.specs-card:hover {
  transform: translateY(-5px);
}

.specs-card.highlighted {
  background: rgba(0, 82, 255, 0.04);
  border: 2px solid var(--color-primary);
  box-shadow: 0 10px 40px rgba(0, 82, 255, 0.15);
}

.specs-ribbon {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--color-primary);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.specs-card-name {
  font-family: var(--font-family-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.specs-card-tag {
  color: var(--color-cyan);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.specs-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 10px;
  min-height: 65px;
}

/* Specs Card Diagram Image Wrap */
.specs-card-img-wrap {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
}

.specs-card-img-wrap svg {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.specs-card:hover .specs-card-img-wrap svg {
  opacity: 1;
  transform: scale(1.05);
}

.specs-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-card-list li {
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
}

.specs-card-list li strong {
  color: var(--text-white);
}

.btn-card-inquiry {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-card-inquiry:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-card-inquiry.highlighted {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}

.btn-card-inquiry.highlighted:hover {
  background: #1a62ff;
  border-color: #1a62ff;
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.5);
}

.custom-specs-info {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px 30px;
  text-align: center;
}

.custom-specs-info p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-gray);
}

.custom-specs-info a {
  color: var(--color-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}

.custom-specs-info a:hover {
  text-decoration: underline;
}

/* --- Box Contents Section --- */
.box-contents-section {
  padding: 100px 0;
  background: radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.box-contents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.box-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.box-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.box-item-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.box-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: var(--text-white);
}

.box-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-gray);
  margin: 0;
}

/* --- Inquiry/Contact Section --- */
.inquiry-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.inquiry-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.inquiry-info h2 {
  font-family: var(--font-family-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
}

.inquiry-info p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-method .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 82, 255, 0.1);
  border-radius: 50%;
  color: var(--color-cyan);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-method h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text-white);
}

.contact-method p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}

/* Glassmorphic Form Card */
.inquiry-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.inquiry-form-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-align: center;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-white);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 82, 255, 0.2);
}

.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-white);
}

.btn-submit {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 82, 255, 0.5);
}

/* --- Footer Override --- */
.product-page-footer {
  padding: 40px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-page-footer .beian {
  position: static;
  transform: none;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
  width: 100%;
}

.product-page-footer .beian a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
  margin: 0 8px;
}

.product-page-footer .beian a:hover {
  color: var(--text-white);
}

.product-page-footer .beian img {
  vertical-align: middle;
  margin: 0 4px 2px 8px;
}

/* --- Responsive Media Queries --- */

@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }
  .hero-grid {
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .steps-container {
    flex-direction: column;
    gap: 20px;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 5px 0;
  }
  .box-contents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inquiry-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media screen and (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-features-list {
    text-align: left;
  }
  .product-image-container {
    max-width: 290px;
  }
  
  .section-title {
    font-size: 32px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .box-contents-grid {
    grid-template-columns: 1fr;
  }
  .inquiry-form-card {
    padding: 30px 20px;
  }
}
