﻿:root {
  --bg: #ffffff;
  --panel: #F3F5F5;
  --text: #1f1f1f;
  --muted: #5a5a5a;
  --line: #E2E6E6;

  --primary: #016364;
  --primary-dark: #0B6F6D;

  --radius: 10px;
  /* 稍微更大器 */
  --shadow: 0 10px 24px rgba(0, 0, 0, .06);
  --max: 1024px;
  /* 區塊更寬 */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
}

main {
  width: min(var(--max), 100%);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  /* border-top: 6px solid var(--primary);*/
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /*padding: clamp(24px, 3.2vw, 64px);*/
  padding: 64px;
  /* 留白更大器 */
  background-image: url(../images/magamenu_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  /*gap: clamp(18px, 2.6vw, 50px);*/
  gap: 50px;
  align-items: center;
}

/* 左欄視覺：更大、更乾淨 */
.visual {
  position: relative;
  min-height: clamp(200px, 22vw, 320px);
  border-right: 6px solid rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /*backdrop-filter: blur(15px) saturate(150%);
	 box-shadow: 0 1em 2em rgba(171, 176, 180, .55);*/
}

/*.visual::before,
.visual::after {
		content: "";
		position: absolute;
		width: 320px;
		height: 320px;
		border-radius: 999px;
		background: radial-gradient(circle at 30% 30%,
						rgba(15, 143, 141, .18),
						rgba(15, 143, 141, 0) 62%);
		transform: translate(-90px, -70px);
}

.visual::after {
		width: 240px;
		height: 240px;
		background: radial-gradient(circle at 30% 30%,
						rgba(15, 143, 141, .12),
						rgba(15, 143, 141, 0) 65%);
		transform: translate(120px, 90px);
}*/

.num {
  font-size: clamp(72px, 7vw, 120px);
  /* 404 放大 */
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--primary-dark);
  z-index: 1;
}

/* 右欄文字：整體放大、行距更舒適 */
h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: .2px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: clamp(16px, 1.35vw, 20px);
  max-width: 44ch;
  /* 讓段落更好讀、看起來更大器 */
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  /* 按鈕加大 */
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 18px);
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--primary-dark);
  border-color: rgba(15, 143, 141, .65);
}

.btn.secondary:hover {
  background: rgba(15, 143, 141, .10);
}

/* 焦點可見（鍵盤） */
.btn:focus {
  outline: 3px solid rgba(15, 143, 141, .45);
  outline-offset: 2px;
}

/* RWD：小螢幕變單欄，按鈕滿版 */
@media (max-width: 860px) {
  .panel {
    padding: 5%;
  }

  .visual {
    border: 0;
    border-bottom: 6px solid rgba(0, 0, 0, .05);
  }

  .layout {
    grid-template-columns: 1fr;
  }

  p {
    max-width: none;
  }
}

@media (max-width: 520px) {
  body {
    padding: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}