/* ========================================
   YardenZhang · 个人网站
   基于 AeroDrop 首页风格改造
   ======================================== */

/* === 变量 & 重置 === */
:root {
  --text: #2d3748;
  --muted: #4a5568;
  --line: rgba(255, 255, 255, 0.6);
  --dark: #ffffff;
  --bg-light: rgba(255,255,255,0.85);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: url('max.jpeg') center/cover fixed;
  color: var(--text);
}

/* ========================================
   首页 (Hero Screen) —— 保持原风格
   ======================================== */
.hero-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  z-index: 100;
  color: white;
}
.hero-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-logo { font-family: 'Great Vibes', cursive; font-size: 2rem; }
.hero-nav { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; display: flex; gap: 24px; }
.hero-nav span, .hero-nav a { color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.hero-nav span:hover, .hero-nav a:hover { opacity: 1; }
.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: 6rem;
  font-weight: normal;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-desc {
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-btn:hover { background: white; color: #333; }

/* ========================================
   关于区域
   ======================================== */
.section-light {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background: var(--bg-light);
  backdrop-filter: blur(12px);
}
.section-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}
.section-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}
.section-inner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 50px;
}

/* 链接卡片 */
.about-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.link-icon { font-size: 2.4rem; }
.link-title { font-weight: 700; font-size: 1.1rem; }
.link-desc { font-size: 0.85rem; color: var(--muted); }

/* ========================================
   底部
   ======================================== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
}

/* ========================================
   留言板页面
   ======================================== */
.gb-header {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.gb-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gb-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
}
.gb-nav { display: flex; gap: 20px; }
.gb-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.85rem; }
.gb-nav a:hover { color: white; }

.gb-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
}

.gb-hero { text-align: center; margin-bottom: 40px; }
.gb-title { font-size: 2.4rem; margin: 0 0 10px; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.gb-desc { font-size: 1rem; color: rgba(255,255,255,0.8); margin: 0; }

/* 表单 */
.gb-form {
  background: var(--bg-light);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  text-align: left;
}
.gb-field { margin-bottom: 14px; }
.gb-field input,
.gb-field textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.gb-field input:focus,
.gb-field textarea:focus {
  border-color: #a0aec0;
}
.gb-field textarea { resize: vertical; min-height: 80px; }
.gb-submit {
  width: 100%;
  padding: 12px;
  border: none;
  background: #2d3748;
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gb-submit:hover { background: #1a202c; }

.gb-success {
  text-align: center;
  padding: 12px;
  background: #c6f6d5;
  color: #22543d;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 500;
}

/* 留言列表 */
.gb-divider {
  text-align: center;
  margin: 30px 0 20px;
  position: relative;
}
.gb-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.3);
}
.gb-divider span {
  position: relative;
  background: transparent;
  padding: 0 16px;
  color: white;
  font-size: 0.95rem;
}

.gb-empty {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.gb-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.gb-item {
  background: var(--bg-light);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px 20px;
}
.gb-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gb-item-name { font-size: 0.95rem; color: var(--text); }
.gb-item-time { font-size: 0.8rem; color: var(--muted); }
.gb-item-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 720px) {
  .hero-title { font-size: 4rem; }
  .hero-header { padding: 20px; }
  .hero-nav { gap: 14px; font-size: 0.8rem; }
  .section-light { padding: 60px 20px; }
  .about-links { flex-direction: column; align-items: center; }
  .link-card { width: 100%; max-width: 280px; }
  .gb-main { padding: 20px 16px 40px; }
  .gb-title { font-size: 1.8rem; }
  .gb-form { padding: 16px; }
}
