* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0a0e27;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

header nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

header nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  transition: width 0.3s ease;
  border-radius: 1px;
}

header nav a:hover,
header nav a.active {
  color: #fff;
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  user-select: none;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  header nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    padding: 16px 20px;
    gap: 0;
    white-space: normal;
    overflow: visible;
  }
  header nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 1;
  }
  header nav a:last-child {
    border-bottom: none;
  }
  header nav a::after {
    display: none;
  }
  .menu-toggle:checked + .menu-btn + nav {
    display: flex;
  }
}

/* ===== Main ===== */
main {
  flex: 1;
  padding-top: 72px;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 60px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  line-height: 1.6;
}

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  padding: 100px 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

/* ===== Content Container ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== Product Grid (Homepage) ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 20px 20px 80px;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.product-card-img {
  width: 100%;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-body {
  padding: 24px 28px 28px;
}

.product-card-body p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.product-card-body .card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #00d4ff;
  font-weight: 500;
  transition: color 0.3s;
  pointer-events: none;
}

.product-card:hover .card-more {
  color: #7b2ff7;
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Product Detail Page ===== */
.product-detail {
  padding: 40px 60px 80px;
}

.product-detail-img {
  width: 100%;
  max-width: 1400px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.product-detail-desc {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
}

.product-detail-desc p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== Article Content (About / Product detail pages) ===== */
.article-content {
  padding: 20px 20px 80px;
}

.article-content .article-img {
  width: 100%;
  display: block;
  margin-bottom: 40px;
  border-radius: 20px;
}

.article-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 20px;
  text-align: justify;
}

.article-content p strong {
  color: #00d4ff;
  font-weight: 600;
}

/* ===== Download Section (智配Store) ===== */
.download-section {
  padding: 20px 60px 80px;
  text-align: center;
}

.download-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(0, 212, 255, 0.08);
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: translateY(-2px);
}

.download-qr {
  margin-top: 30px;
}

.download-qr img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-tip {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Careers Page ===== */
.careers-section {
  min-height: calc(100vh - 72px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

.careers-hero {
  text-align: center;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.careers-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.careers-quote-mark {
  font-size: 120px;
  line-height: 1;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.careers-text-main {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
}

.careers-text-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 2;
  margin-bottom: 12px;
}

.careers-tagline {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 24px;
  margin-bottom: 40px;
}

.careers-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.careers-cta:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.careers-cta-icon {
  font-size: 20px;
}

.careers-cta a {
  color: #7b2ff7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.careers-cta:hover a {
  color: #00d4ff;
}

/* ===== Footer ===== */
footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding: 40px 20px 30px;
  margin-top: auto;
}

.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #00d4ff;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 20px;
  }
  .hero {
    padding: 60px 20px 40px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 15px;
    max-width: 100%;
  }
  .product-grid {
    padding: 20px 20px 60px;
    gap: 20px;
  }
  .product-card-body {
    padding: 20px 20px 24px;
  }
  .product-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-hero {
    padding: 80px 20px 40px;
  }
  .page-hero h1 {
    font-size: 30px;
  }
  .container {
    padding: 0 20px;
  }
  .careers-section {
    min-height: auto;
    padding: 40px 20px 60px;
  }
  .careers-quote-mark {
    font-size: 72px;
  }
  .careers-text-main {
    font-size: 22px;
  }
  .careers-text-desc {
    font-size: 14px;
  }
  .careers-tagline {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .careers-cta {
    padding: 12px 24px;
    font-size: 14px;
  }
  .article-content {
    padding: 20px 20px 60px;
  }
  .article-content p {
    font-size: 15px;
  }
  .download-section {
    padding: 20px 20px 60px;
  }
  .download-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
  .footer-inner {
    padding: 0 20px;
    flex-direction: column;
    text-align: center;
  }
}
