/* public/assets/css/front.css
 * 仅用于前端页面的视觉优化（移动端优先），不影响任何功能逻辑。
 */

:root{
  --brand:#2563eb;
  --brand2:#7c3aed;
  --bg:#f6f7fb;
  --border:rgba(15,23,42,.08);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --shadow-sm:0 4px 14px rgba(2,6,23,.06);
  --radius:18px;
}

html,body{height:100%;}

body{
  background:
    radial-gradient(1200px 600px at 18% 0%, rgba(37,99,235,.12), transparent 60%),
    radial-gradient(900px 500px at 82% 10%, rgba(124,58,237,.10), transparent 55%),
    var(--bg);
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:inherit;}

.container{padding-left:16px;padding-right:16px;}
@media (min-width:768px){.container{padding-left:20px;padding-right:20px;}}

.front-shell{max-width:1120px;margin:0 auto;}

.navbar{
  position:sticky;
  top:0;
  z-index:1030;
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  background:rgba(255,255,255,.85)!important;
  border-bottom:1px solid var(--border)!important;
}

.navbar .navbar-brand{font-weight:800;letter-spacing:.2px;}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  background:rgba(255,255,255,.92);
}

.btn{border-radius:999px;}

.btn.btn-outline-primary{
  border-color:rgba(2,6,23,.14);
  color:#0f172a;
  background:#fff;
}

.btn.btn-primary{
  border:none;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
}

.btn.btn-outline-secondary{border-color:rgba(2,6,23,.16);}

.form-control,.form-select{
  border-radius:14px;
  border-color:rgba(15,23,42,.14);
}

.small-muted{color:rgba(15,23,42,.60);}

.front-tabs{display:flex;gap:10px;}
.front-tabs .btn{flex:1;padding:10px 12px;font-weight:700;}

.front-chips{
  display:flex;
  gap:10px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:2px 2px 10px;
  margin-bottom:10px;
  flex-wrap:nowrap;
}
.front-chips::-webkit-scrollbar{display:none;}
.front-chips .btn{white-space:nowrap;padding:8px 12px;border-radius:999px;}

@media (min-width:992px){
  .front-chips{flex-wrap:wrap;overflow:visible;padding-bottom:0;}
}

.dish-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

@media (min-width:576px){
  .dish-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}
}

@media (min-width:992px){
  .dish-grid{grid-template-columns:repeat(4, minmax(0, 1fr));gap:16px;}
}

.dish-card{transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;}
.dish-card:active{transform:scale(.99);}

@media (hover:hover){
  .dish-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow);
    border-color:rgba(37,99,235,.18);
  }
}

.dish-card img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(2,6,23,.08);
  background:#fff;
}

@media (min-width:576px){
  .dish-card img{height:160px;}
}

.badge.text-bg-secondary{
  background:rgba(15,23,42,.10)!important;
  color:#0f172a!important;
  border:1px solid rgba(15,23,42,.08);
}

.alert{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}

.content img,.content-box img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  border:1px solid rgba(2,6,23,.08);
}

.gallery{scrollbar-width:none;}
.gallery::-webkit-scrollbar{display:none;}
.gallery img{border-radius:16px;}

.nav-tabs{border-bottom:1px solid var(--border);}
.nav-tabs .nav-link{
  border:0;
  color:rgba(15,23,42,.72);
  padding:10px 14px;
  font-weight:700;
}

.nav-tabs .nav-link.active{
  color:#0f172a;
  background:transparent;
  position:relative;
}

.nav-tabs .nav-link.active:after{
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  bottom:-1px;
  height:3px;
  border-radius:999px;
  /*background:linear-gradient(135deg, var(--brand), var(--brand2));*/
}

.accordion-item{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.accordion-button{font-weight:700;}
.accordion-button:focus{box-shadow:none;}
.accordion-button:not(.collapsed){
  color:#0f172a;
  background:rgba(37,99,235,.06);
}

@media (max-width:991.98px){
  .share-sticky-submit{position:sticky;bottom:10px;z-index:10;}
}
