/* =============================================
   茶屿 Tea Island — 蜜雪冰城风格重设计
   大胆配色 · 高对比 · 简洁直接 · 品牌感强
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800;900&family=Noto+Serif+SC:wght@600;700;900&display=swap');

/* ===== Design Tokens ===== */
:root {
  /* Brand — Matcha Green (like Mixue's Red) */
  --brand: #3D6B2E;
  --brand-light: #5A9A47;
  --brand-dark: #2C4F1F;

  /* Warm accent — Coral/Amber (CTA, badges) */
  --accent: #E8753A;
  --accent-light: #F5A67A;
  --accent-dark: #C85A28;

  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FFFDF8;
  --gray-50: #FAF8F5;
  --gray-100: #F0EDE8;
  --gray-200: #E5E0D8;
  --gray-600: #7A7068;
  --gray-900: #2C2418;

  /* Semantic */
  --text: #2C2418;
  --text-secondary: #5C5448;
  --text-muted: #8C8278;
  --border: #E5E0D8;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Type Scale */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 2rem; --text-4xl: 2.5rem; --text-5xl: 3.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44,36,24,0.06);
  --shadow-md: 0 4px 16px rgba(44,36,24,0.08);
  --shadow-lg: 0 8px 32px rgba(44,36,24,0.10);
  --shadow-xl: 0 16px 48px rgba(44,36,24,0.12);

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;

  /* Animation */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 150ms; --base: 250ms; --slow: 400ms;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--text-base); line-height: 1.6;
  color: var(--text); background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3 { font-family: "Noto Serif SC", "Noto Sans SC", serif; color: var(--text); }
h1 { font-size: var(--text-5xl); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); font-weight: 800; }
h3 { font-size: var(--text-xl); font-weight: 700; }

::selection { background: var(--brand); color: #fff; }

/* ===== Focus ===== */
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; border-radius: 4px; }

/* ===== Navigation — Bold & Clean ===== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--brand);
  padding: 0 var(--s-8); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo {
  font-family: "Noto Serif SC", serif; font-size: 1.6rem;
  font-weight: 900; color: var(--brand-dark); letter-spacing: 3px;
  text-decoration: none; display: flex; align-items: center; gap: 2px;
}
nav .logo .accent { color: var(--accent); }
nav .nav-links { display: flex; align-items: center; gap: var(--s-1); }
nav .nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-weight: 600; font-size: var(--text-sm);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-full);
  transition: all var(--fast);
}
nav .nav-links a:hover { color: var(--brand); background: #F2F7EF; }
nav .lang-btn {
  background: var(--brand); color: #fff; border: none;
  padding: 7px 16px; border-radius: var(--r-full); cursor: pointer;
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 1px;
  min-width: 44px; min-height: 44px;
  transition: background var(--fast), transform var(--fast);
}
nav .lang-btn:hover { background: var(--brand-dark); transform: scale(1.05); }

/* ===== Hero — Mixue-style Bold Block ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px var(--s-8) var(--s-16);
  background:
    linear-gradient(135deg, #3D6B2E 0%, #4F873B 40%, #5A9A47 70%, #3D6B2E 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 20%, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(0,0,0,0.10) 0%, transparent 30%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath d='M0 40 Q360 0 720 40 Q1080 80 1440 40 L1440 80 L0 80Z' fill='%23FFFDF8'/%3E%3C/svg%3E") bottom/cover no-repeat;
  pointer-events: none;
}
.hero-content { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; position: relative; z-index: 2; }
.hero-text { color: #fff; }
.hero-text .badge {
  display: inline-block; background: var(--accent); color: #fff;
  padding: var(--s-2) var(--s-5); border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 2px;
  margin-bottom: var(--s-6); text-transform: uppercase;
}
.hero-text h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: var(--s-4); }
.hero-text h1 em { font-style: normal; color: #FFE8A0; }
.hero-text p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); margin-bottom: var(--s-8); max-width: 440px; }
.hero-text .cta {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: #fff; color: var(--brand-dark); padding: var(--s-4) var(--s-10);
  border-radius: var(--r-full); text-decoration: none;
  font-size: var(--text-lg); font-weight: 800; letter-spacing: 1px;
  transition: transform var(--fast), box-shadow var(--fast);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.hero-text .cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-visual .hero-img {
  width: 100%; max-width: 460px; aspect-ratio: 1;
  object-fit: cover; border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.hero-visual .floating-badge {
  position: absolute; bottom: 10%; right: 5%;
  background: #fff; color: var(--accent);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-full);
  font-weight: 900; font-size: var(--text-2xl);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Section ===== */
section { padding: var(--s-20) var(--s-8); }
.section-header { text-align: center; margin-bottom: var(--s-12); }
.section-header .section-tag {
  display: inline-block; color: var(--accent); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.section-header h2 { margin-bottom: var(--s-2); }
.section-header .section-sub { color: var(--text-muted); font-size: var(--text-base); }

/* ===== Menu Grid — Bold Cards ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-6); max-width: 1200px; margin: 0 auto;
}
.menu-card {
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  position: relative; border: 1px solid var(--border);
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-light);
}
.menu-card .card-img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform var(--slow) var(--ease);
}
.menu-card:hover .card-img { transform: scale(1.06); }
.menu-card .card-body { padding: var(--s-5) var(--s-6) var(--s-6); flex: 1; display: flex; flex-direction: column; }
.menu-card .card-badge {
  position: absolute; top: var(--s-4); left: var(--s-4);
  background: var(--accent); color: #fff; padding: 4px 12px;
  border-radius: var(--r-full); font-size: var(--text-xs);
  font-weight: 800; letter-spacing: 1px; z-index: 2;
}
.menu-card h3 { font-size: var(--text-xl); color: var(--text); margin-bottom: var(--s-1); }
.menu-card .desc { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-4); flex: 1; }
.menu-card .price-row { display: flex; align-items: center; justify-content: space-between; }
.menu-card .price { font-size: 1.8rem; font-weight: 900; color: var(--brand-dark); }
.menu-card .price small { font-size: var(--text-xs); color: var(--text-muted); font-weight: 400; }
.menu-card .price .yen { color: var(--accent); font-size: 1rem; margin-right: 2px; }

/* Category Tabs */
.cat-tabs { display: flex; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-10); flex-wrap: wrap; }
.cat-tab {
  padding: var(--s-3) var(--s-6); border-radius: var(--r-full);
  border: 2px solid var(--border); background: #fff;
  color: var(--text-secondary); font-size: var(--text-sm);
  font-weight: 700; cursor: pointer; transition: all var(--fast);
  font-family: inherit; min-height: 44px;
}
.cat-tab:hover { border-color: var(--brand-light); color: var(--brand); }
.cat-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== About — Clean White Block ===== */
.about-section { background: #fff; }
.about { max-width: 750px; margin: 0 auto; text-align: center; }
.about p { color: var(--text-secondary); font-size: var(--text-base); margin-bottom: var(--s-3); line-height: 1.8; }
.about .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-10); }
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: "Noto Serif SC", serif; font-size: 2.5rem;
  font-weight: 900; color: var(--brand);
}
.stat-item .stat-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--s-1); }

/* ===== Form — Bold & Simple ===== */
.order-section { background: var(--brand-dark); color: #fff; }
.order-section .section-header h2 { color: #fff; }
.order-section .section-sub { color: rgba(255,255,255,0.7); }
.form-wrapper { max-width: 600px; margin: 0 auto; }
.form-card {
  background: #fff; border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-8); box-shadow: var(--shadow-xl);
  color: var(--text);
}
.form-card h3 { font-size: var(--text-2xl); color: var(--text); margin-bottom: var(--s-8); text-align: center; }
.form-group { margin-bottom: var(--s-5); }
.form-group label { display: block; font-weight: 700; color: var(--text); margin-bottom: var(--s-2); font-size: var(--text-sm); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: var(--s-3) var(--s-4); border: 2px solid var(--border);
  border-radius: var(--r-md); font-size: var(--text-base); font-family: inherit;
  background: var(--cream); color: var(--text); outline: none;
  min-height: 48px; transition: border-color var(--fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61,107,46,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.btn-submit {
  width: 100%; padding: var(--s-4); background: var(--accent); color: #fff;
  border: none; border-radius: var(--r-full); font-size: var(--text-lg);
  font-weight: 800; cursor: pointer; letter-spacing: 1px;
  transition: transform var(--fast), box-shadow var(--fast);
  font-family: inherit; min-height: 52px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,117,58,0.4); }
.btn-submit:active { transform: scale(0.97); }

/* ===== Product Detail ===== */
.product-hero {
  min-height: 55vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--s-6) var(--s-12);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; position: relative;
}
.product-hero .p-img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.4); box-shadow: var(--shadow-xl);
  transition: transform var(--slow) var(--ease);
}
.product-hero .p-name { color: #fff; font-size: var(--text-4xl); font-weight: 900; margin: var(--s-5) 0 var(--s-2); }
.product-hero .p-price { color: #FFE8A0; font-size: var(--text-3xl); font-weight: 900; }
.product-hero .p-price small { color: rgba(255,255,255,0.6); font-size: var(--text-base); font-weight: 400; }
.product-hero .p-tags { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.product-detail { max-width: 800px; margin: 0 auto; padding: var(--s-12) var(--s-6) var(--s-20); }
.product-detail .block { margin-bottom: var(--s-10); }
.product-detail .block h3 { font-size: var(--text-lg); color: var(--brand-dark); margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 3px solid var(--brand); display: inline-block; }
.product-detail .block p, .product-detail .block li { color: var(--text-secondary); line-height: 1.8; }
.product-detail .block ul { list-style: none; padding: 0; }
.product-detail .block ul li { padding: var(--s-2) 0 var(--s-2) var(--s-5); position: relative; }
.product-detail .block ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); }
.back-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--brand); text-decoration: none; font-weight: 700;
  margin-bottom: var(--s-6); transition: gap var(--fast); min-height: 44px; padding: var(--s-2) 0;
}
.back-link:hover { gap: 8px; }

.pairing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.pairing-card {
  background: #fff; border-radius: var(--r-md); padding: var(--s-4);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform var(--fast), box-shadow var(--fast);
  display: flex; align-items: center; gap: var(--s-3); min-height: 64px;
  border: 1px solid var(--border);
}
.pairing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); }
.pairing-card .pe-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pairing-card .pe-info { flex: 1; }
.pairing-card .pe-name { font-weight: 700; color: var(--text); font-size: var(--text-sm); }
.pairing-card .pe-price { font-size: var(--text-xs); color: var(--text-muted); }

/* ===== Footer ===== */
footer {
  text-align: center; padding: var(--s-8); background: #fff;
  color: var(--text-muted); font-size: var(--text-sm); border-top: 2px solid var(--brand);
}
footer a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: var(--s-8); left: 50%; transform: translateX(-50%);
  background: var(--brand-dark); color: #fff; padding: var(--s-3) var(--s-6);
  border-radius: var(--r-full); font-weight: 700; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity var(--base);
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-visual .hero-img { max-width: 260px; }
  .hero-visual .floating-badge { right: 10%; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}

@media (max-width: 640px) {
  :root { --text-5xl: 2.2rem; --text-3xl: 1.6rem; }
  section { padding: var(--s-12) var(--s-4); }
  .menu-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .form-row { grid-template-columns: 1fr; }
  nav { padding: 0 var(--s-4); }
  nav .nav-links a { padding: var(--s-2) var(--s-3); font-size: var(--text-xs); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual .hero-img { max-width: 200px; }
  .about .stats { grid-template-columns: repeat(3, 1fr); }
  .stat-item .stat-num { font-size: 1.8rem; }
}
