/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333; background: #fff; line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Navbar === */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.3rem; font-weight: 700; color: #d4a853; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: #555; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: #d4a853; }
.promote-link { color: #e8503a; font-weight: 600; }
.promote-link:hover { color: #c43a24; }

.lang-switcher { display: flex; gap: 2px; background: #f5f5f5; border-radius: 6px; padding: 2px; }
.lang-btn {
  border: none; background: none; padding: 4px 8px; cursor: pointer;
  border-radius: 4px; font-size: 0.8rem; color: #888; transition: all 0.2s;
}
.lang-btn.active { background: #d4a853; color: #fff; }
.lang-btn:hover:not(.active) { color: #d4a853; }

/* === Hero Banner Carousel === */
.hero-carousel {
  position: relative; width: 100%; overflow: hidden;
  background: #1a1a2e;
}
.hero-slides {
  display: flex; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
  min-width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 80px 20px 60px; position: relative;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(15,52,96,0.7) 100%);
}
.hero-content { 
  position: relative; z-index: 2; text-align: center; color: #fff;
  max-width: 700px; padding: 20px;
}
.hero-content h1 {
  font-size: 2.8rem; margin-bottom: 12px; font-weight: 300; letter-spacing: 3px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.8s 0.2s forwards;
}
.hero-subtitle {
  font-size: 1.15rem; color: #ddd; margin-bottom: 10px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.8s 0.4s forwards;
}
.hero-tagline {
  font-size: 0.95rem; color: #d4a853; margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.8s 0.6s forwards;
}
.hero-content .hero-cta-group {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeIn 0.8s 0.8s forwards;
}
.hero-content .btn { margin: 0 6px; }

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

/* Hero nav dots */
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: all 0.3s; border: none; padding: 0;
}
.hero-dot.active { background: #d4a853; width: 28px; border-radius: 5px; }
.hero-dot:hover { background: rgba(255,255,255,0.6); }

/* Hero arrow nav */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.3rem; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(212,168,83,0.4); border-color: #d4a853; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* === Highlights === */
.highlights-section { padding: 50px 0; background: #fafafa; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.highlight-card { text-align: center; padding: 24px 16px; }
.highlight-icon { font-size: 2.2rem; margin-bottom: 12px; }
.highlight-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #333; }
.highlight-card p { font-size: 0.85rem; color: #777; }

/* === Sections === */
.section { padding: 60px 0; }
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 300;
  margin-bottom: 40px; letter-spacing: 1px;
}
.section-subtitle { text-align: center; color: #888; margin-bottom: 40px; font-size: 1rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* === Category Grid === */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  background: #f9f9f9; border-radius: 12px; padding: 24px 16px;
  text-align: center; cursor: pointer; transition: all 0.3s;
  border: 1px solid #eee;
}
.category-card:hover { background: #fff; border-color: #d4a853; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.category-card h3 { font-size: 1rem; font-weight: 500; color: #333; }

/* === Product Grid === */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid #eee; border-radius: 12px; overflow: hidden;
  transition: all 0.3s; background: #fff;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.product-image {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #f5f5f5;
}
.product-info { padding: 16px; }
.product-title { font-size: 0.95rem; font-weight: 500; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { color: #d4a853; font-size: 1.1rem; font-weight: 600; }
.product-original-price { color: #bbb; font-size: 0.85rem; font-weight: 400; text-decoration: line-through; margin-left: 6px; }
.product-unit { color: #999; font-size: 0.85rem; }

/* === Promote Page === */
.promote-hero {
  background: linear-gradient(135deg, #1a1a2e, #2d0a3d);
  color: #fff; text-align: center; padding: 70px 20px 50px;
}
.promote-hero h1 { font-size: 2.2rem; font-weight: 300; letter-spacing: 2px; margin-bottom: 12px; }
.promote-hero p { font-size: 1.05rem; color: #ccc; max-width: 600px; margin: 0 auto; }
.promote-platforms {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-top: 30px;
}
.platform-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px; background: rgba(255,255,255,0.05);
  color: #ccc; text-decoration: none; font-size: 0.9rem;
  transition: all 0.3s;
}
.platform-btn:hover { background: #d4a853; color: #1a1a2e; border-color: #d4a853; }

.promote-export-bar {
  background: #f5f5f5; padding: 16px 0; position: sticky; top: 64px; z-index: 50;
  border-bottom: 1px solid #eee;
}
.promote-export-bar .export-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.promote-check-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; padding: 10px 28px; border-radius: 30px;
  text-decoration: none; font-size: 0.95rem; transition: all 0.3s;
  cursor: pointer; border: none; font-weight: 500;
}
.btn-primary { background: #d4a853; color: #1a1a2e; font-weight: 600; }
.btn-primary:hover { background: #c49a45; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #555; border: 1px solid #ddd; }
.btn-outline:hover { border-color: #d4a853; color: #d4a853; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-danger { background: #e8503a; color: #fff; }
.btn-danger:hover { background: #c43a24; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }

.export-format-group {
  display: flex; align-items: center; gap: 8px;
}
.export-format-group label { font-size: 0.85rem; color: #666; }
.export-format-group select {
  padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px;
  font-size: 0.85rem; color: #333; background: #fff;
}

.promote-products { padding: 30px 0; }
.promote-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid #eee; border-radius: 10px;
  margin-bottom: 12px; transition: all 0.2s;
}
.promote-item:hover { border-color: #d4a853; background: #fffcf5; }
.promote-item.selected { border-color: #d4a853; background: #fff8ee; }

.promote-item input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: #d4a853; cursor: pointer;
}
.promote-item img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; background: #f5f5f5;
}
.promote-item .promote-info { flex: 1; min-width: 0; }
.promote-item .promote-info h3 { font-size: 0.95rem; margin-bottom: 4px; }
.promote-item .promote-info .promote-meta { font-size: 0.85rem; color: #888; }
.promote-item .promote-price { font-weight: 600; color: #d4a853; white-space: nowrap; }

/* Export output area */
.export-output {
  display: none; margin-top: 20px;
  background: #1e1e2e; border-radius: 12px; overflow: hidden;
}
.export-output.visible { display: block; }
.export-output .export-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #2d2d3e;
}
.export-output .export-header h3 { color: #d4a853; font-size: 0.95rem; }
.export-output .export-header button {
  background: none; border: none; color: #999; cursor: pointer; font-size: 0.85rem;
}
.export-output .export-header button:hover { color: #fff; }
.export-output textarea {
  width: 100%; min-height: 300px; padding: 16px 20px;
  background: transparent; border: none; color: #e0e0e0;
  font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6;
  resize: vertical; outline: none;
}

/* === Content Pages (About, Craft, Guide) === */
.content-page { padding: 50px 0 70px; }
.content-page h1 { font-size: 2rem; font-weight: 300; text-align: center; margin-bottom: 12px; letter-spacing: 1px; }
.content-page .page-subtitle { text-align: center; color: #888; font-size: 1rem; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.content-block { max-width: 800px; margin: 0 auto 40px; }
.content-block p { font-size: 1rem; color: #555; line-height: 1.8; margin-bottom: 16px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 30px auto 0; }
.value-card { text-align: center; padding: 28px 20px; background: #f9f9f9; border-radius: 12px; border: 1px solid #eee; }
.value-card h3 { font-size: 1.1rem; color: #d4a853; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: #666; }

.craft-steps { max-width: 700px; margin: 0 auto; }
.craft-step { display: flex; gap: 24px; margin-bottom: 32px; align-items: flex-start; }
.craft-step-num { width: 50px; height: 50px; border-radius: 50%; background: #d4a853; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; flex-shrink: 0; }
.craft-step-content h3 { font-size: 1.1rem; margin-bottom: 6px; color: #333; }
.craft-step-content p { font-size: 0.9rem; color: #666; line-height: 1.7; }

.guide-steps { max-width: 700px; margin: 0 auto; }
.guide-step { padding: 24px; background: #f9f9f9; border-radius: 12px; margin-bottom: 16px; border-left: 4px solid #d4a853; }
.guide-step h3 { font-size: 1.05rem; margin-bottom: 6px; color: #333; }
.guide-step p { font-size: 0.9rem; color: #666; line-height: 1.7; }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.guide-card { background: #f9f9f9; border-radius: 12px; padding: 28px 20px; border: 1px solid #eee; text-align: center; }
.guide-card h3 { font-size: 1.1rem; color: #d4a853; margin-bottom: 10px; }
.guide-card p { font-size: 0.9rem; color: #666; line-height: 1.7; }

/* === Footer === */
.footer { background: #1a1a2e; color: #888; padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-logo { font-size: 1.2rem; font-weight: 700; color: #d4a853; margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { font-size: 0.9rem; color: #ccc; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; color: #888; text-decoration: none; font-size: 0.85rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #d4a853; }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-contact a { color: #888; text-decoration: none; }
.footer-contact a:hover { color: #d4a853; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 0.8rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-right .nav-link:not(.promote-link) { display: none; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-arrow { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .craft-step { flex-direction: column; align-items: center; text-align: center; }
  .promote-export-bar .export-inner { flex-direction: column; align-items: stretch; }
  .promote-check-actions { justify-content: center; }
  .promote-item img { width: 48px; height: 48px; }
}
