/* ══════════════════════════════════════════════════
   muyutxd1.com — 简约现代风
   Site nav + Fortunetelling styles
   ══════════════════════════════════════════════════ */

:root {
  --bg: #f5f4f0;
  --bg-card: #ffffff;
  --bg-input: #f0efeb;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --text-muted: #9c958e;
  --accent: #6C5CE7;
  --accent-hover: #5a4bd1;
  --accent-light: #eeebff;
  --border: #e0dcd5;
  --border-light: #edeae4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Site Navigation ───────────────────────── */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-input); color: var(--text); }

.site-main {
  flex: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}
.site-footer a { color: var(--text-secondary); }

/* ── Hero ──────────────────────────────────── */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}
.hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.7;
}

/* ── Project Cards ─────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s ease;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}
.project-card.disabled {
  cursor: default;
  opacity: 0.7;
}
.project-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-light);
}
.project-icon { font-size: 32px; margin-bottom: 12px; }
.project-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.project-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.project-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  background: var(--bg-input);
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Fortunetelling Styles ─────────────────── */
.fortune-app { max-width: 1060px; }

.app-header {
  text-align: center;
  padding: 20px 0 4px;
}
.app-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Tab Bar */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 18px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.tab-btn:hover { background: var(--bg-input); color: var(--text); }
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.30);
}
.tab-icon { display: inline-block; margin-right: 5px; font-size: 16px; }

.tab-panel { display: none; padding: 24px 0; }
.tab-panel.active { display: block; }

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form */
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input[type="number"],
input[type="text"],
select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.btn {
  padding: 9px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-input); color: var(--text-secondary); }
.btn-secondary:hover { background: var(--border); color: var(--text); }

.result-area {
  margin-top: 20px;
  min-height: 60px;
}
.result-area:empty::after {
  content: '输入信息后点击占卜，结果将显示在这里';
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tag-accent { background: var(--accent-light); color: var(--accent); }
.tag-default { background: var(--bg-input); color: var(--text-secondary); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.data-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-input);
}

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 20px 0 8px;
}

/* ── Chess Page ────────────────────────────── */
.chess-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.chess-wrapper iframe {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── MBTI Test ─────────────────────────────── */
.mbti-option {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: var(--text);
  font-family: inherit;
}
.mbti-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}
.mbti-option-selected {
  border-color: var(--accent) !important;
  background: var(--accent-light) !important;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
}
