/* Winner I Robot — Custom Styles */

:root {
  --primary-dark: #0a1628;
  --primary-blue: #1e3a5f;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: #0f2744;
  --border-color: #1e3a5f;
  --navbar-height: 100px;
  --navbar-height-shrink: 72px;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

.font-en {
  font-family: 'Inter', sans-serif;
}

a {
  color: var(--accent-cyan);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

.section-padding {
  padding: 90px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.section-subtitle-cn {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── Navbar ── */
#mainNav {
  background-color: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 0.55rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  z-index: 1030;
}

#mainNav.scrolled,
#mainNav.navbar-scrolled {
  background-color: rgba(10, 22, 40, 0.98) !important;
  padding: 0.4rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#mainNav .navbar-brand img {
  transition: max-height 0.35s ease;
}

.navbar-logo {
  max-height: 82px;
  width: auto;
}

#mainNav.scrolled .navbar-logo,
#mainNav.navbar-scrolled .navbar-logo {
  max-height: 58px;
}

#mainNav .nav-link {
  color: #f8fafc !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #06b6d4;
  transition: width 0.25s ease, left 0.25s ease;
}

#mainNav .nav-link:hover::after {
  width: 60%;
  left: 20%;
  background: #06b6d4;
}

#mainNav .nav-link.active::after {
  width: 60%;
  left: 20%;
  background: #2563eb;
}

#mainNav .nav-link:hover {
  color: #06b6d4 !important;
}

#mainNav .nav-link.active {
  color: #2563eb !important;
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  #mainNav .navbar-collapse {
    background: rgba(10, 22, 40, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../wp-content/uploads/2017/11/2017-11-22-15-17-00.jpg') center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(30, 58, 95, 0.85) 50%,
    rgba(10, 22, 40, 0.95) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(-120px) scale(1.5); }
  90% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-subheadline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.7);
  color: #ffffff;
}

.hero-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* ── Features ── */
.features-section {
  background: var(--primary-dark);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--accent-blue);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── AGV Products ── */
.agv-section {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #0d1f38 100%);
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.product-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--primary-blue);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-card-body .product-name-en {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.product-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.btn-product {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: 50px;
  padding: 0.4rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  align-self: flex-start;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-product:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* ── Product Modals ── */
.product-modal .modal-content {
  background: #0f2744;
  border: 1px solid #1e3a5f;
  border-radius: 16px;
  color: #f8fafc;
}

.product-modal .modal-header {
  border-bottom: 1px solid #1e3a5f;
  padding: 24px 28px 16px;
}

.product-modal .modal-title-cn {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.product-modal .modal-title-en {
  font-size: 0.9rem;
  color: #06b6d4;
  margin: 4px 0 0;
}

.product-modal .close {
  color: #94a3b8;
  font-size: 1.8rem;
  opacity: 1;
}

.product-modal .close:hover {
  color: #ffffff;
}

.modal-product-img {
  border-radius: 10px;
  object-fit: cover;
  height: 280px;
}

.modal-product-info {
  padding-left: 16px;
}

.modal-product-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-spec-table {
  font-size: 0.88rem;
}

.modal-spec-table td {
  color: #cbd5e1;
  border-color: #1e3a5f;
  padding: 8px 12px;
}

.modal-spec-table td:first-child {
  color: #06b6d4;
  font-weight: 600;
  width: 40%;
}

.product-modal .modal-footer {
  border-top: 1px solid #1e3a5f;
  padding: 16px 28px;
}

.btn-modal-quote {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.btn-modal-quote:hover {
  color: #ffffff;
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-modal-close {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #1e3a5f;
  padding: 10px 24px;
  border-radius: 50px;
}

.btn-modal-close:hover {
  color: #f8fafc;
  border-color: #94a3b8;
}

@media (max-width: 767px) {
  .modal-product-info {
    padding-left: 0;
    margin-top: 20px;
  }
}

/* ── Semiconductor ── */
.semi-section {
  background: var(--primary-dark);
}

.semi-card {
  transition: border-color 0.3s ease;
}

.semiconductor-card {
  margin-bottom: 40px;
  padding: 40px;
  border-radius: 16px;
  background: #0f2744;
  border: 1px solid #1e3a5f;
}

.semiconductor-section .row {
  row-gap: 30px;
}

.semi-card:hover {
  border-color: var(--accent-blue);
}

.semi-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.semi-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.semi-card-header .semi-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.semi-card-preview {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--primary-dark);
}

.semi-card-preview img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.semi-materials {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-cyan);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.semi-product-group {
  margin-bottom: 1rem;
}

.semi-product-group h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.semi-product-group p,
.semi-product-group ul {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.7;
}

.semi-product-group ul {
  padding-left: 1.25rem;
}

.semi-advantages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.semi-advantage-tag {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.btn-quote {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  color: #fff;
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.semi-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-semi-detail {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 50px;
  padding: 0.6rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-semi-detail:hover {
  background: var(--accent-cyan);
  color: var(--primary-dark);
}

.modal-section-label {
  color: #06b6d4;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 10px;
}

.modal-material-tags,
.modal-advantage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 16px;
}

.modal-material-tags span,
.modal-advantage-tags span {
  background: rgba(37, 99, 235, 0.15);
  color: #06b6d4;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.modal-semi-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e3a5f;
}

.modal-semi-item:last-of-type {
  border-bottom: none;
}

.modal-semi-item h6 {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-semi-item p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.modal-semi-item .modal-semi-cn {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* ── Process ── */
#work-process,
.work-process-section {
  background: linear-gradient(180deg, #0a1628 0%, #0f2744 50%, #0a1628 100%);
  padding: 80px 0;
  position: relative;
}

#work-process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

#work-process::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.process-step-icon {
  width: 80px;
  height: 80px;
  font-size: 2rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  border: none;
  position: relative;
  z-index: 2;
}

.process-step-icon i {
  font-size: 1.8rem;
  color: #ffffff;
}

.process-step-number {
  position: absolute;
  top: -8px;
  right: calc(50% - 44px);
  background: var(--accent-blue);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-top: 8px;
  margin-bottom: 0.25rem;
}

.process-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.process-connector {
  display: none;
}

@media (min-width: 992px) {
  .process-connector {
    display: block;
    position: absolute;
    top: 48px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    z-index: 1;
  }

  .process-step:last-child .process-connector {
    display: none;
  }
}

/* ── Stats ── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
  padding: 70px 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label-cn {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.stat-label-en {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact-section {
  background: var(--primary-dark);
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-info-card .company-en {
  font-family: 'Inter', sans-serif;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-detail i {
  color: var(--accent-cyan);
  width: 24px;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-detail span {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
}

.contact-form-card label {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.contact-form-card .form-control {
  background: var(--primary-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 8px;
  padding: 0.65rem 1rem;
}

.contact-form-card .custom-select {
  background-color: var(--primary-dark);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%2394a3b8' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 8px;
  height: auto;
  min-height: 3rem;
  line-height: 1.5;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .custom-select:focus {
  background: var(--primary-dark);
  border-color: var(--accent-blue);
  color: var(--text-light);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.contact-form-card .custom-select option {
  background: var(--primary-dark);
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  background: #060e1a;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  max-height: 72px;
  width: auto;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  margin-right: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom .font-en {
  font-size: 0.8rem;
}
