/* style.css - site22 public base, deep brown theme */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #faf7f2;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #7c2d12; text-decoration: none; }
a:hover { color: #9a3412; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(124, 45, 18, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: #7c2d12;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover { background: #f5f0eb; color: #7c2d12; }
.nav-dropdown { position: relative; }
.dropdown-toggle::after {
  content: " ▾";
  font-size: 10px;
  margin-left: 2px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border: 1px solid #e7e5e4;
  padding: 8px 0;
  z-index: 99999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: #374151;
}
.dropdown-menu a:hover { background: #f5f0eb; color: #7c2d12; }
.nav-cta-group { display: flex; gap: 8px; flex-shrink: 0; }
.cta-button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}
.cta-order { background: #9a3412; color: #fff !important; }
.cta-order:hover { background: #7c2d12; }
.cta-join { background: transparent; color: #9a3412 !important; border: 1.5px solid #9a3412; }
.cta-join:hover { background: #f5f0eb; }

/* Main */
.site-main { flex: 1; }

/* Footer */
.site-footer {
  background: #292524;
  color: #d6d3d1;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col p { font-size: 13px; color: #a8a29e; margin-bottom: 6px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: #a8a29e;
  padding: 3px 0;
}
.footer-col a:hover { color: #fbbf24; }
.footer-bottom {
  border-top: 1px solid #44403c;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #78716c;
}
.footer-bottom a { color: #78716c; }
.footer-bottom a:hover { color: #d6d3d1; }

/* Common components */
.section { padding: 60px 0; }
.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #1c1917;
}
.section-subtitle {
  text-align: center;
  color: #78716c;
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(124, 45, 18, 0.06);
  border: 1px solid #f5f0eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 45, 18, 0.1);
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-primary { background: #9a3412; color: #fff; }
.btn-primary:hover { background: #7c2d12; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #9a3412; border: 1.5px solid #9a3412; }
.btn-outline:hover { background: #f5f0eb; }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .main-nav { justify-content: flex-start; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}
