/* ----------------------------------------------------
   龙虾盛宴 - 小龙虾营销落地页视觉设计系统 (style.css)
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;600;700;900&display=swap');

:root {
  --bg-dark: #0b0b0f;
  --bg-card: rgba(22, 22, 30, 0.75);
  --bg-card-hover: rgba(30, 30, 42, 0.85);
  --primary-red: #ff3b30;
  --primary-red-glow: rgba(255, 59, 48, 0.35);
  --accent-orange: #ff6b00;
  --accent-gold: #ffb703;
  --text-main: #f8f9fa;
  --text-muted: #a0a0ab;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(255, 59, 48, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 10px 30px rgba(255, 59, 48, 0.25);
  --font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Ambient Lighting */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 59, 48, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(255, 107, 0, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 183, 3, 0.05) 0%, transparent 50%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 15, 0.7);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary-red);
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 59, 48, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-red);
}

.btn-admin {
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.3);
  font-size: 0.85rem;
  padding: 8px 16px;
}

.btn-admin:hover {
  background: rgba(255, 183, 3, 0.25);
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  padding: 160px 0 90px;
  width: 100%;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 50px;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #ff3b30, #ffb703);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 59, 48, 0.2);
  border: 1px solid var(--border-color);
}

.hero-img-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-img-card:hover img {
  transform: scale(1.04);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(18, 18, 26, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.badge-icon {
  font-size: 2rem;
}

.badge-text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------- Promo / Section Common ---------------- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary-red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------------- Countdown Banner ---------------- */
.countdown-box {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 107, 0, 0.08));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  backdrop-filter: blur(10px);
}

.countdown-info h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.countdown-info p {
  color: var(--text-muted);
}

.timer {
  display: flex;
  gap: 16px;
}

.time-unit {
  background: rgba(11, 11, 15, 0.8);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 70px;
}

.time-unit .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}

.time-unit .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- Menu Grid ---------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
  box-shadow: 0 4px 16px var(--primary-red-glow);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.menu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 59, 48, 0.15);
}

.menu-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-card:hover .menu-thumb img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-spicy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 59, 48, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.menu-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.menu-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-symbol {
  font-size: 0.9rem;
  color: var(--primary-red);
  font-weight: 700;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-red);
}

.price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ---------------- Form Section (Order & Lead Form) ---------------- */
.form-section {
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.9), rgba(20, 20, 30, 0.95));
  position: relative;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  backdrop-filter: blur(20px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e0e0e8;
  display: flex;
  justify-content: space-between;
}

.form-label span.req {
  color: var(--primary-red);
}

.form-control {
  background: rgba(11, 11, 15, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.25);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-radio-group {
  display: flex;
  gap: 16px;
}

.radio-card {
  flex: 1;
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(11, 11, 15, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.radio-card input:checked + .radio-label {
  border-color: var(--primary-red);
  background: rgba(255, 59, 48, 0.15);
  color: #fff;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 12px;
}

.form-tips {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---------------- Features / Quality Grid ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 183, 3, 0.4);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Reviews Grid ---------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: var(--radius-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.user-info h5 {
  font-size: 1rem;
  font-weight: 700;
}

.user-info .stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------------- Admin Modal Panel ---------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal {
  background: #14141d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 960px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
  flex-grow: 1;
}

.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-responsive {
  overflow-x: auto;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.order-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.order-table td {
  padding: 16px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-new {
  background: rgba(255, 59, 48, 0.2);
  color: var(--primary-red);
}

.status-done {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* ---------------- Toast Notification ---------------- */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(20, 20, 28, 0.95);
  border: 1px solid var(--primary-red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------------- Footer ---------------- */
footer {
  background: #060608;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-links h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 1024px) {
  .hero-section {
    padding-top: 130px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-stats {
    justify-content: center;
  }

  .floating-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .countdown-box {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

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