/* mainlander.cn — Quaker Plain Style
 * weathered timber, plaster white, old-style serif, silence made visible
 */
:root {
  --plaster: #f4f1ea;
  --plaster-2: #ece7dc;
  --ink: #3a332b;
  --ink-soft: #6b5f52;
  --timber: #8a7355;
  --timber-dark: #5c4a36;
  --clay: #b68a5a;
  --line: #d9d2c4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  --maxw: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(182,138,90,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(92,74,54,0.03) 0%, transparent 50%);
}

.serif { font-family: var(--serif); font-weight: 400; }

/* ───────── language switch ───────── */
.lang-bar {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 50;
  font-family: var(--sans);
  font-size: 13px;
}
.lang-bar a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.lang-bar a:hover { color: var(--timber-dark); border-color: var(--timber); }

/* ───────── layout ───────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ───────── hero ───────── */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 60px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(244,241,234,0.6)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%23b68a5a' stroke-opacity='0.08'%3E%3Cpath d='M0 400 Q200 350 400 380 T800 360'/%3E%3Cpath d='M0 440 Q200 400 400 420 T800 410'/%3E%3Ccircle cx='600' cy='120' r='50'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center / cover;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--timber);
  margin-bottom: 24px;
}

.title {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  font-weight: 400;
}
.title em {
  font-style: italic;
  color: var(--timber-dark);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--plaster);
  background: var(--timber-dark);
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
  letter-spacing: 0.05em;
}
.hero-cta:hover { background: var(--clay); }

/* ───────── sections ───────── */
.section {
  padding: 80px 28px;
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 36px;
}
.num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--timber);
  display: block;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.3;
}

.prose {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 640px;
}

/* ───────── cards ───────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.card {
  background: var(--plaster-2);
  padding: 28px 24px;
  border-left: 3px solid var(--clay);
  border-radius: 0 2px 2px 0;
}
.card h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--timber-dark);
}
.card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ───────── quote ───────── */
.quote {
  font-style: italic;
  font-size: 16px;
  color: var(--timber-dark);
  border-left: 3px solid var(--clay);
  padding: 8px 0 8px 24px;
  margin: 32px 0 0;
  line-height: 1.8;
}

/* ───────── SPICES ───────── */
.spice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.spice {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--plaster-2);
  border-radius: 2px;
}
.spice-key {
  font-size: 28px;
  font-weight: 500;
  color: var(--clay);
  line-height: 1;
  min-width: 32px;
}
.spice h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--timber-dark);
}
.spice p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ───────── worship how-to ───────── */
.how-box {
  background: var(--plaster-2);
  padding: 28px;
  margin-top: 32px;
  border-radius: 2px;
}
.how-box h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--timber-dark);
}
.how-box ol {
  padding-left: 20px;
}
.how-box li {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
}

/* ───────── timeline ───────── */
.timeline {
  margin-top: 36px;
  position: relative;
}
.tl-item {
  padding: 16px 0 16px 28px;
  border-left: 2px solid var(--line);
  position: relative;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--plaster);
}
.tl-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--timber);
  display: block;
  margin-bottom: 6px;
}
.tl-item p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
}

/* ───────── stories ───────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.story {
  padding: 24px;
  background: var(--plaster-2);
  border-radius: 2px;
}
.story h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--timber-dark);
}
.story p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ───────── FWCC ───────── */
.fwcc-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--timber-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}
.fwcc-link:hover { color: var(--clay); }

/* ───────── history more links ───────── */
.hist-more {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hist-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--timber-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}
.hist-link:hover { color: var(--clay); }

/* ───────── contact ───────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 36px;
}
@media (max-width: 680px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--serif);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--plaster);
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.submit-btn {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--plaster);
  background: var(--timber-dark);
  border: none;
  padding: 12px 32px;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background .2s;
}
.submit-btn:hover { background: var(--clay); }
.form-msg {
  font-family: var(--sans);
  font-size: 15px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 2px;
  /* 默认始终可见：不依赖 JS 切换 className，主人一定能看到 */
}
.form-msg.ok {
  color: #3a5a2a;
  background: #e8efe2;
  border-left: 3px solid #5a7a4a;
}
.form-msg.err {
  color: #7a3a3a;
  background: #f5e6e6;
  border-left: 3px solid #a04a4a;
}
.form-msg.warn {
  color: #6a5a2a;
  background: #faf4e1;
  border-left: 3px solid #b69a3a;
}
.form-msg:empty {
  padding: 0;
  margin: 0;
  border: 0;
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.host-info {
  padding: 24px;
  background: var(--plaster-2);
  border-radius: 2px;
  align-self: start;
}
.host-info p {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}
.host-info .note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  font-style: italic;
}

/* ───────── footer ───────── */
.footer {
  padding: 50px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-tag {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-rights {
  font-size: 14px;
  color: var(--timber);
  font-style: italic;
}

/* ───────── back to top ───────── */
.top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--timber-dark);
  color: var(--plaster);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s;
  z-index: 40;
}
.top-btn.show { opacity: 1; pointer-events: auto; }
.top-btn:hover { background: var(--clay); }
/* 在联系表单附近隐藏返回顶部按钮，避免遮挡联系信息卡片 */
.top-btn.hide-near-contact { opacity: 0 !important; pointer-events: none !important; }
