/* ====================================
   GEODA SHOP - CSS Stylesheet
   玖達商行官方網站
   ==================================== */

:root {
  --primary: #1a1a2e;
  --primary-light: #2d2d5a;
  --accent: #4a6fa5;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Noto Sans TC', 'Inter', -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================================
   Header
   ==================================== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--primary);
}

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

/* ====================================
   Buttons
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.75;
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btns .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.hero-btns .btn-primary:hover {
  background: var(--gray-100);
}

.hero-btns .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-btns .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-badge {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
}

/* ====================================
   Sections
   ==================================== */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--gray-50);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--primary);
}

/* ====================================
   Categories
   ==================================== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cat-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--primary);
}

.category-card p {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 12px;
}

.cat-code {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: monospace;
}

/* ====================================
   About
   ==================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-text h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text > p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.about-list li {
  padding: 8px 0;
  color: var(--gray-600);
  font-size: 15px;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.info-card h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 16px;
}

.info-card p {
  color: var(--gray-600);
  font-size: 14px;
  padding: 4px 0;
}

/* ====================================
   Contact
   ==================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--gray-600);
  font-size: 14px;
}

.newsletter {
  background: var(--primary);
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  text-align: center;
}

.newsletter h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.newsletter p {
  opacity: 0.8;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
}

.newsletter-form .btn-primary {
  background: var(--white);
  color: var(--primary);
  white-space: nowrap;
}

/* ====================================
   Footer
   ==================================== */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 14px;
  margin-top: 8px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  opacity: 0.7;
  font-size: 14px;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-bottom p + p {
  margin-top: 4px;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .newsletter {
    padding: 32px 20px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .hero-badge {
    gap: 12px;
  }
}