:root{
  --gold:#c48c32;
  --gold-d:#a06c1d;
  --ink:#222;
  --muted:#6b7280;
  --bg:#fff;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",
        "PingFang SC","Microsoft YaHei",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width:1280px;
  margin:0 auto;
  padding:0 16px;
}

/* ================= Header / Topbar ================= */
.topbar{
  background: url("/static/bg.jpg") no-repeat 20% 80%;
  background-size: cover;
  padding: 70px 0 40px;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{ height:72px; }
.brand .name{
  font-size:26px;
  font-weight:700;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* Right zone layout */
.topbar-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

/* Language */
.lang{
  font-size:14px;
  font-weight:500;
  color:#fff;
}
.lang a{
  margin-left:8px;
  color:#fff;
}
.lang a.active{
  font-weight:700;
  text-decoration:underline;
}

/* Top actions (notify + account/login) */
.top-actions{
  display:flex;
  align-items:center;
  gap:18px;
}

.notify-link,
.account-link{
  color:#fff;
  font-weight:600;
}

/* Auth links */
.auth-links a{
  color:#fff;
  font-weight:600;
  margin-left:10px;
}

/* Account dropdown (works with Tailwind group) */
.account-dropdown{
  position:absolute;
  right:0;
  margin-top:8px;
  width:320px;
  background:#fff;
  color:#111;
  border-radius:10px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  overflow:hidden;

  opacity:0;
  visibility:hidden;
  transform: translateY(-4px);
  transition: .18s ease;
  z-index: 50;
}
.group:hover .account-dropdown{
  opacity:1;
  visibility:visible;
  transform: translateY(0);
}

.account-section{
  padding:14px 16px;
  border-bottom:1px solid #eee;
}
.account-section.last{
  border-bottom:none;
}

.account-name{
  font-weight:700;
  font-size:15px;
}
.account-email{
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
}

.account-title{
  font-size:12px;
  font-weight:700;
  color:#374151;
  margin-bottom:6px;
}

.account-list{
  list-style:none;
  padding:0;
  margin:0;
}
.account-list li{ margin:4px 0; }
.account-list a{
  color:#2563eb;
  font-size:13px;
}
.account-list a:hover{ text-decoration:underline; }

/* ================= Nav ================= */
.nav{
  background:var(--gold);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}

/* Left menu */
.navbar-left{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.navbar-left a{
  color:#fff;
  font-size:16px;
  font-weight:600;
  padding:10px 14px;
  border-radius:6px;
}
.navbar-left a.active,
.navbar-left a:hover{
  background:var(--gold-d);
  text-decoration:none;
}

/* Search */
.nav-right{
  margin-left:auto;
}

.searchbox{
  display:flex;
  align-items:center;
  gap:0;
}
.searchbox input{
  width:220px;
  padding:6px 10px;
  border:1px solid #ddd;
  border-right:none;
  border-radius:4px 0 0 4px;
  font-size:14px;
  outline:none;
}
.searchbox button{
  background:#fff;
  border:1px solid #ddd;
  border-radius:0 4px 4px 0;
  padding:6px 10px;
  cursor:pointer;
}

/* ================= Main ================= */
.main-wrap{
  padding-top:24px;
  padding-bottom:32px;
}

/* Flash messages */
.flash-wrap{
  max-width:860px;
  margin:0 auto 14px auto;
}
.flash-item{
  background:#fef3c7;
  border:1px solid #fcd34d;
  color:#92400e;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:8px;
  font-size:14px;
}

/* ================= General Components (keep simple) ================= */
.card{
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  overflow:hidden;
}
.section{ padding:14px; }

/* ================= Footer ================= */
.site-footer{
  background:var(--gold);
  color:#fff;
  margin-top:28px;
}
.footer-inner{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:24px 16px;
}
.footer-mid{
  text-align:center;
  font-size:14px;
  line-height:1.7;
}

/* ================= Responsive ================= */
@media (max-width: 768px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .topbar-right{
    width:100%;
    align-items:flex-start;
  }
  .nav-inner{
    gap:12px;
  }
  .searchbox input{
    width:180px;
  }
}
