/* ========================================
   404 Has Found — Base Styles
   基础样式: Fonts, Variables, Reset, App Shell
   ======================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Ma+Shan+Zheng&family=Caveat:wght@400;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables | 暖色调色板 ---------- */
:root {
  --primary: #E8734A;
  --primary-400: #F0A080;
  --primary-500: #EC8B6A;
  --primary-600: #C55A32;
  --primary-700: #A04028;
  --primary-light: #FFF0EB;
  --primary-bg: #FFFAF7;
  --cta: #FF6B6B;
  --cta-400: #FF8E8E;
  --cta-light: #FFF0EF;
  --cta-dark: #E05555;
  --sakura: #FFB7C5;
  --sakura-light: #FFD1DC;
  --sakura-dark: #FF91A4;
  --green: #10B981;
  --green-light: #ECFDF5;
  --amber: #F59E0B;
  --amber-light: #FFFBEB;
  --rose: #F43F5E;
  --rose-light: #FFF1F2;
  --gold: #CA8A04;
  --gold-light: #FEFCE8;
  --bg: #FFF5F3;
  --bg-warm: #FFF8F5;
  --card: #FFFFFF;
  --border: #F0E4E0;
  --border-light: #F5EDEA;
  --text: #3D1F1F;
  --text-secondary: #8B6B6B;
  --text-muted: #B8A09A;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 3px rgba(232,115,74,0.04);
  --shadow-sm: 0 2px 10px rgba(232,115,74,0.06);
  --shadow: 0 4px 20px rgba(232,115,74,0.08);
  --shadow-md: 0 8px 30px rgba(232,115,74,0.12);
  --shadow-inner: inset 0 1px 3px rgba(0,0,0,0.04);
  --shadow-clay: 0 6px 0 rgba(200,90,50,0.15), 0 8px 20px rgba(232,115,74,0.12);
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: 'Nunito', "PingFang SC", "Source Han Sans SC", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh; min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* 全局背景图片 - 通过伪元素实现 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../../images/南京大学校园风景图_4K/01_航拍_仙林校区全景.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  z-index: -1;
}

a { color: inherit; text-decoration: none; -webkit-touch-callout: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ---------- App Shell ---------- */
.app {
  max-width: 430px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  background: rgba(255, 248, 245, 0.7);
  position: relative; overflow-x: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

/* Status bar spacer for iOS notch */
.status-spacer {
  height: env(safe-area-inset-top, 0px);
  background: var(--card);
}
