/* 穷游P事多 — bright exotic styles */
:root {
  --sun: #ffc93c;
  --coral: #ff6b6b;
  --sea: #2ec4b6;
  --sky: #8ed6ff;
  --sand: #fff9ef;
  --ink: #33424e;
  --muted: #7a8a99;
  --line: #f3e7d3;
  --bg: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(255, 150, 80, 0.14);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(960px, 92%); margin: 0 auto; }
img { max-width: 100%; }
a { color: #e0574f; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 201, 60, 0.35);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-img { width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; display: block; }
.logo-text { color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.logo-text em { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--coral); display: block; line-height: 1.2; letter-spacing: 0.08em; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.main-nav a:hover { color: var(--coral); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #8ed6ff 0%, #c9efff 42%, #fff3d6 100%);
  color: var(--ink);
  padding: 9.5rem 0 7rem;
}
.hero-bg { position: absolute; inset: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun {
  position: absolute; top: 90px; right: 8%;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, #ffe27a 0%, #ffc93c 60%, rgba(255,201,60,0) 72%);
  filter: blur(2px); opacity: 0.95;
  animation: sunFloat 7s ease-in-out infinite;
}
@keyframes sunFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.hero-inner { position: relative; max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  color: #b3541e; background: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.25; letter-spacing: 0.02em; font-weight: 800; }
.hero h1 .accent { color: var(--coral); }
.lede { font-size: 1.12rem; color: #5a6b78; margin-top: 1.1rem; max-width: 600px; }
.hero-cta { margin-top: 1.8rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--coral); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* ---------- Post list ---------- */
.post-list { padding: 3.5rem 0 5rem; }
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.6rem; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 1.4rem;
}
.post-card:hover { transform: translateY(-4px) rotate(-0.3deg); box-shadow: 0 18px 44px rgba(255, 150, 80, 0.22); }
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.post-meta .tag {
  display: inline-block; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.05em;
  padding: 0.22rem 0.7rem; border-radius: 999px; margin-right: 0.55rem; color: #fff;
}
.tag-coral { background: var(--coral); }
.tag-sea { background: var(--sea); }
.tag-sun { background: var(--sun); color: #7a4d00 !important; }
.post-card h2 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--ink); }
.post-card p { color: var(--muted); }
.read-more { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--coral); }

/* ---------- Article ---------- */
.article { padding: 8.5rem 0 5rem; }
.article-header { margin-bottom: 2.2rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.35; margin: 0.8rem 0 1rem; }
.article-body { font-size: 1.06rem; color: #3d4c59; max-width: 720px; }
.article-body p { margin-bottom: 1.3rem; }
.article-body h2 { font-size: 1.4rem; margin: 2.2rem 0 1rem; color: var(--ink); }
.article-body h3 { font-size: 1.15rem; margin: 1.6rem 0 0.8rem; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  border-left: 5px solid var(--sun); background: #fffdf6;
  padding: 1.1rem 1.4rem; border-radius: 0 12px 12px 0; margin: 1.6rem 0;
  color: var(--ink);
}
.back-link { display: inline-block; margin-top: 3rem; font-weight: 700; text-decoration: none; }

/* ---------- About ---------- */
.about-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem; box-shadow: var(--shadow); max-width: 720px;
}
.about-card h2 { margin-bottom: 1rem; }
.about-card p { color: #3d4c59; margin-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #2b3a44; color: #c9d6de; padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 0.6rem; font-size: 0.92rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #c9d6de; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--sun); }
.copyright { width: 100%; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.4rem; margin-top: 0.5rem; }

/* ---------- Logo showcase ---------- */
.logo-showcase { padding: 8.5rem 0 5rem; }
.logo-hero {
  text-align: center; background: #fff;
  border: 2px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 3.5rem 2rem; max-width: 720px; margin: 0 auto;
}
.logo-hero img {
  width: min(300px, 70vw); height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(46, 196, 182, 0.25);
}
.logo-hero h1 { font-size: 2rem; margin: 1.6rem 0 0.4rem; }
.logo-hero .tagline { color: var(--coral); font-weight: 700; letter-spacing: 0.06em; }
.logo-story { max-width: 720px; margin: 2rem auto 0; }
.logo-story .about-card h2 { margin-bottom: 1rem; }
.logo-meaning { list-style: none; margin: 0 0 1.1rem 0 !important; }
.logo-meaning li {
  background: #fffdf6; border: 2px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1.2rem; margin-bottom: 0.8rem !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 2px solid var(--line); padding: 0.6rem 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .hero { padding: 7.5rem 0 6rem; }
  .article { padding: 7rem 0 4rem; }
  .post-card { padding: 1.5rem; }
  .sun { width: 90px; height: 90px; top: 80px; }
}

/* ---------- 登录弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 30, 50, 0.55);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-mask.open { display: flex; }
.modal {
  position: relative; width: min(380px, 100%);
  background: #fff; border-radius: 16px; padding: 2rem 1.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.modal h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.modal-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2rem; line-height: 1.7; }
.modal-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.modal-input {
  width: 100%; font: inherit; padding: 0.75rem 1rem; margin-top: 0.35rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
}
.modal-input:focus { outline: 2px solid var(--teal-500); border-color: var(--teal-500); background: #fff; }
.modal-error { color: #d64545; font-size: 0.85rem; min-height: 1.4em; margin: 0.5rem 0; }
.modal-btn { width: 100%; }
.modal-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted);
}

/* ---------- 评论区 ---------- */
.comments { padding: 3rem 0 4rem; background: var(--bg-alt); }
.comments h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.comments-note { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.comments-pending {
  background: #fff; border: 1px dashed var(--line); border-radius: 12px;
  padding: 2rem; text-align: center; color: var(--muted);
}
