:root {
  color-scheme: light;
  font-family: "Noto Sans SC", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  font-weight: 400;
  --blue: #294f8f;
  --blue-light: #e3f2ff;
  --border: #c5d5ed;
  --gray: #3d4756;
  --gray-200: #d5dbe8;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --bg: #f9fcf2;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--gray);
  padding-top: 80px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--blue);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  background: var(--bg);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(192, 225, 248, 0.8);
  border-bottom: 1px solid #b2c0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  z-index: 1000;
}

.topbar__brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f3a68;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 0;
  border-radius: 20px;
}

.topbar__brand img {
  height: 48px;
  width: auto;
  display: block;
  background: rgba(192, 225, 248, 0.8);
  border-radius: 18px;
  padding: 0.2rem 0.6rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3e67c6;
  color: #fff;
  padding: 0.6rem 1.8rem;
  border-radius: 12px;
  border: 1px solid #1f3c7a;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 6px 12px rgba(31, 60, 122, 0.25);
  cursor: pointer;
}

.topbar__cta:hover {
  opacity: 0.95;
}

.topbar__menu-wrapper {
  position: relative;
}

.topbar__menu {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(192, 225, 248, 0.8);
  border: 1px solid #5c85c9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
  transition: border-color 0.2s ease;
}

.topbar__menu span {
  width: 60%;
  height: 3px;
  border-radius: 999px;
  background: #1f3a68;
}

.topbar__menu-wrapper.is-open .topbar__menu span {
  background: #0f2444;
}

.topbar__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(192, 225, 248, 0.95);
  border: 1px solid #9abedf;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(31, 60, 122, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar__dropdown button {
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  color: #1f3a68;
  cursor: pointer;
  transition: background 0.2s ease;
}

.topbar__dropdown button:hover {
  background: #bbd1f5;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  border-radius: 999px;
  border: 1px solid #3059a8;
  background: linear-gradient(135deg, #4b74d9, #3059a8);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(48, 89, 168, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(48, 89, 168, 0.32);
  background: linear-gradient(135deg, #5c83e3, #3763b3);
}

.hero__cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(48, 89, 168, 0.25);
}

.hero {
  margin-bottom: 3rem;
}

.hero__card {
  background: var(--bg);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  color: #1f2a37;
  text-align: center;
}

.hero__card--full .hero__title {
  font-size: 2.2rem;
  color: #1f3a68;
  margin-bottom: 1rem;
}

.hero__title {
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero__title.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.hero__verse {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
  color: #1f3a68;
}

.section-divider {
  width: 100%;
  height: 2px;
  background: #8ca9d7;
  margin: 2rem auto 2.5rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .hero__meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.weekly {
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weekly__title {
  font-size: 1.8rem;
  color: #1f3a68;
  text-align: center;
  margin: 0;
}

.announcements-section {
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.announcement-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.announcement-board article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: left;
  background: var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.announcement-board article:hover {
  background: #c0e1f8;
  border-color: #c0e1f8;
}

.announcement-board article h3 {
  margin: 0 0 0.5rem;
  color: #1f3a68;
}

.announcement-board article p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

.weekly__current {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.weekly__current:hover {
  background: #c0e1f8;
  border-color: #c0e1f8;
}

.weekly__current-header {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.weekly__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

.weekly__info [data-current],
.weekly__item span[data-field] {
  display: inline-flex;
  align-items: baseline;
}

[data-current="host"]::before,
.weekly__item span[data-field="host"]::before {
  content: "司会：";
  font-weight: 700;
  color: var(--blue);
  margin-right: 0.25rem;
}

[data-current="preacher"]::before,
.weekly__item span[data-field="preacher"]::before {
  content: "讲道：";
  font-weight: 700;
  color: var(--blue);
  margin-right: 0.25rem;
}

[data-current="topic"]::before,
.weekly__item span[data-field="topic"]::before {
  content: "主题：";
  font-weight: 700;
  color: var(--blue);
  margin-right: 0.25rem;
}

[data-current="remark"]::before,
.weekly__item span[data-field="remark"]::before {
  content: "备注：";
  font-weight: 700;
  color: var(--blue);
  margin-right: 0.25rem;
}

.weekly__current p {
  margin: 0.2rem 0;
  color: #1f2937;
}

.weekly__date {
  font-size: 1.1rem;
  font-weight: 600;
}

.weekly__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.weekly__item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(140px, 1fr));
  gap: 0.5rem;
  align-items: center;
  background: var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.weekly__item:hover {
  background: #c0e1f8;
  border-color: #c0e1f8;
}

.weekly__item time {
  font-weight: 700;
  color: var(--blue);
}

.weekly__item span {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .weekly__item {
    grid-template-columns: 1fr;
  }

  .weekly__item span,
  .weekly__item time {
    white-space: normal;
  }
}

.documents {
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.documents__list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.documents__folders {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.documents__tab {
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.35s ease, color 0.35s ease;
}

.documents__tab:hover,
.documents__tab.is-active {
  background: #c0e1f8;
  color: #193060;
}

.documents__group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.documents__group:hover {
  background: #c0e1f8;
  border-color: #c0e1f8;
}

.documents__folder-title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  color: #1f3a68;
}

.documents__folder-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.documents__item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bg);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.documents__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.documents__meta small {
  color: #4b5563;
  font-size: 0.9rem;
}

.documents__item:hover {
  background: #c0e1f8;
  border-color: #c0e1f8;
}

.documents__item a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.documents__item a:hover {
  text-decoration: underline;
}

.documents__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.page-logout {
  border: none;
  background: #3e67c6;
  color: #fff;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.8rem auto 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(31, 60, 122, 0.25);
}

.documents__empty {
  color: #4b5563;
  margin: 0;
}

.announcements-admin {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.announcements-admin__item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.announcements-admin__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.announcements-admin__meta h3 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1rem;
}

.announcements-admin__meta p {
  margin: 0;
  color: var(--gray-600);
}

.announcements-admin__actions {
  display: flex;
  gap: 0.5rem;
}

.announcements-admin__empty {
  margin: 0;
  color: var(--gray-600);
}
.auth-page {
  background: #f5f7fb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 18px;
  width: min(420px, 100%);
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(45, 72, 123, 0.15);
}

.auth-card h1 {
  margin-bottom: 1rem;
  color: var(--blue);
  text-align: center;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-change {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
}

.password-change[hidden] {
  display: none !important;
}

.nav-links--simple a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.nav-links--simple a:hover {
  text-decoration: underline;
}

.auth-card label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #1f2937;
  gap: 0.35rem;
}

.auth-card input {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
}

.auth-card button {
  align-self: center;
  width: 100%;
  justify-content: center;
}

.auth-card .nav-links {
  margin-top: 1rem;
  text-align: center;
  color: #4b5563;
}

.auth-card .nav-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-card .nav-links a:hover {
  text-decoration: underline;
}

.statement {
  background: var(--bg);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.statement h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.statement p {
  line-height: 1.8;
  margin: 0;
  color: #111827;
}

.statement ol {
  display: inline-block;
  text-align: left;
  margin: 0;
  padding-left: 1.5rem;
  color: #111827;
  font-size: 1.1rem;
}

.footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem 1rem 3rem;
  color: #6b7280;
}

/* Admin */
.admin {
  min-height: 100vh;
  background: #f4f8ff;
}

.admin__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 3rem 1.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.admin__back {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.admin__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  gap: 1.5rem;
}

.admin__main > .alert {
  margin-top: 0;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 15px 30px rgba(75, 114, 165, 0.1);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form--single {
  grid-template-columns: 1fr;
}

.form--narrow {
  max-width: 360px;
  margin: 0 auto;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.form input,
.form select {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font: inherit;
}

.form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-size: 0.95rem;
}

thead {
  background: var(--blue);
  color: #fff;
}

tbody tr:nth-child(odd) {
  background: #f7fbff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #1a7f3f;
  font-size: 0.8rem;
  font-weight: 600;
}

.status--inactive {
  background: rgba(248, 113, 113, 0.2);
  color: #b91919;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.outline-btn {
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--blue-dark);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.outline-btn:hover {
  background: rgba(31, 76, 120, 0.08);
}

.outline-btn.danger {
  border-color: #d64545;
  color: #d64545;
}

.outline-btn.danger:hover {
  background: rgba(214, 69, 69, 0.1);
}

.documents-admin {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.documents-admin__item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.documents-admin__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.documents-admin__meta span:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

.documents-admin__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.documents-admin__empty {
  margin: 0;
  color: var(--gray-600);
}

.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert--error {
  background: #ffe5e5;
  border-color: #f9c3c3;
  color: #9f1c1c;
}

.alert--success {
  background: #e8f8ef;
  border-color: #c4eed4;
  color: #146c3f;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 599px) {
  .admin__header,
  .admin__main {
    padding: 1.5rem 1rem;
  }

  table {
    min-width: auto;
  }

  .row-actions {
    flex-direction: column;
  }

  .admin__actions {
    width: 100%;
    justify-content: space-between;
  }
}
.members-admin {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.members-admin__item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.members-admin__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.members-admin__meta span:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

.members-admin__password {
  font-size: 0.9rem;
  color: #9a1234;
  font-weight: 600;
}

.members-admin__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.members-admin__empty {
  margin: 0;
  color: var(--gray-600);
}
.hero__logo {
  margin-top: 1.25rem;
  text-align: center;
}

.hero__logo img {
  width: min(320px, 70vw);
  height: auto;
  display: inline-block;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero__logo.is-visible img {
  transform: scale(1);
  opacity: 1;
}
