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

:root {
  --gold:       #C9A84C;
  --gold-light: #E8C76A;
  --bg:         #0E0805;
  --bg2:        #1A0E06;
  --bg3:        #2C1A0A;
  --text:       #E8E8F0;
  --text-dim:   rgba(232,232,240,.55);
  --border:     rgba(201,168,76,.2);
  --line:       rgba(201,168,76,.22);
}

html, body { background: var(--bg); color: var(--text); font-family: 'Noto Sans SC', sans-serif; min-height: 100vh; }

/* ─── NAV ─────────────────────────────────────────────────── */
.ft-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: rgba(14,8,5,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px;
  z-index: 200; gap: 12px;
}
.ft-nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--gold); font-weight: 700; flex-shrink: 0;
}
.ft-nav-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg,#8B1A1A,#5C1010);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif SC', serif; font-size: 1.05rem;
}
.ft-nav-title {
  flex: 1; text-align: center;
  font-family: 'Noto Serif SC', serif; font-size: 1.1rem;
  color: var(--gold); letter-spacing: .2em;
}
.ft-nav-back {
  color: var(--text-dim); text-decoration: none;
  font-size: .8rem; display: flex; align-items: center; gap: 5px;
  transition: color .2s; white-space: nowrap; flex-shrink: 0;
}
.ft-nav-back:hover { color: var(--gold); }
.lang-switcher { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lang-btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.18);
  color: var(--text-dim); font-size: .72rem; padding: 3px 8px;
  border-radius: 4px; cursor: pointer; transition: all .18s;
  font-family: 'Noto Sans SC', sans-serif; line-height: 1.4; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold); color: var(--text); }
.lang-btn.active { background: rgba(201,168,76,.2); border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* ─── CONTAINER ───────────────────────────────────────────── */
.act-container { padding: 72px 16px 60px; max-width: 960px; margin: 0 auto; }

/* ─── LOADING / ERROR ─────────────────────────────────────── */
.act-loading, .act-error {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 100px 20px; text-align: center;
  color: var(--gold); font-size: 1.3rem;
}
.act-error { color: rgba(232,232,240,.4); font-size: 1rem; }

/* ─── HERO COVER ──────────────────────────────────────────── */
.act-hero {
  width: 100%; border-radius: 14px; overflow: hidden;
  background: var(--bg3); margin-bottom: 28px;
  border: 1px solid var(--border);
}
.act-hero-cover {
  width: 100%; height: 320px; object-fit: cover; display: block;
}
.act-hero-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(201,168,76,.25); font-size: 3rem;
}
.act-hero-body { padding: 24px 24px 20px; }
.act-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  color: var(--gold); margin-bottom: 10px; line-height: 1.3;
}
.act-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 12px; }
.act-meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: .85rem; }
.act-meta-item i { color: var(--gold); width: 14px; text-align: center; }
.act-description { color: var(--text-dim); font-size: .9rem; line-height: 1.7; }
.act-status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .72rem; font-weight: 600;
  background: rgba(46,204,113,.15); color: #2ECC71; border: 1px solid rgba(46,204,113,.3);
  margin-left: 8px; vertical-align: middle;
}

/* ─── LINEAR SECTIONS ──────────────────────────────────────── */
.act-section { margin-bottom: 36px; }
.act-section-title {
  font-family: 'Noto Serif SC', serif; font-size: 1rem; color: var(--gold);
  margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.act-section-title i { font-size: .9rem; }

/* ─── PHOTO GALLERY ───────────────────────────────────────── */
.act-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.act-photo-item {
  aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--bg3);
  border: 1px solid var(--border); transition: all .2s;
}
.act-photo-item:hover { border-color: var(--gold); transform: scale(1.02); }
.act-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-photo-empty { padding: 40px; text-align: center; color: var(--text-dim); }

/* ─── POSTS LIST ──────────────────────────────────────────── */
.act-posts-list { display: flex; flex-direction: column; gap: 14px; }
.act-post-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; transition: all .2s;
}
.act-post-card:hover { border-color: var(--gold); background: var(--bg3); }
.act-post-thumb {
  width: 90px; height: 66px; border-radius: 6px; overflow: hidden;
  background: var(--bg3); flex-shrink: 0;
}
.act-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-post-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(201,168,76,.3); font-size: 1.5rem; }
.act-post-info { flex: 1; min-width: 0; }
.act-post-cat { font-size: .7rem; background: rgba(139,26,26,.3); color: var(--gold); padding: 2px 7px; border-radius: 3px; display: inline-block; margin-bottom: 5px; }
.act-post-title { font-size: .95rem; color: var(--text); font-weight: 600; margin-bottom: 4px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-post-summary { font-size: .8rem; color: var(--text-dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.act-post-date { font-size: .72rem; color: rgba(232,232,240,.3); margin-top: 5px; }
.act-posts-empty { padding: 40px; text-align: center; color: var(--text-dim); }

/* ─── REGISTRATION FORM ───────────────────────────────────── */
.act-reg-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; max-width: 480px;
}
.act-reg-title { font-family: 'Noto Serif SC', serif; color: var(--gold); font-size: 1.05rem; margin-bottom: 6px; }
.act-reg-notes { color: var(--text-dim); font-size: .82rem; margin-bottom: 18px; line-height: 1.6; }
.act-reg-form { display: flex; flex-direction: column; gap: 12px; }
.act-reg-form label { font-size: .8rem; color: var(--text-dim); margin-bottom: 3px; display: block; }
.act-reg-form input, .act-reg-form textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-family: 'Noto Sans SC', sans-serif;
  font-size: .875rem; padding: 9px 12px; outline: none; transition: border-color .2s;
}
.act-reg-form input:focus, .act-reg-form textarea:focus { border-color: var(--gold); }
.act-reg-submit {
  background: linear-gradient(135deg, var(--gold), #8B5A00);
  border: none; color: #fff; padding: 11px 24px; border-radius: 8px;
  cursor: pointer; font-size: .9rem; font-weight: 600;
  font-family: 'Noto Sans SC', sans-serif; transition: opacity .2s; margin-top: 4px;
}
.act-reg-submit:hover { opacity: .85; }
.act-reg-submit:disabled { opacity: .5; cursor: not-allowed; }
.act-reg-msg { padding: 10px 14px; border-radius: 6px; font-size: .85rem; margin-top: 8px; }
.act-reg-msg.success { background: rgba(46,204,113,.1); color: #2ECC71; border: 1px solid rgba(46,204,113,.25); }
.act-reg-msg.error { background: rgba(231,76,60,.1); color: #E74C3C; border: 1px solid rgba(231,76,60,.25); }
.act-reg-closed { padding: 24px; text-align: center; color: var(--text-dim); font-size: .9rem; }

/* ─── LIGHTBOX ────────────────────────────────────────────── */
.act-lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.act-lightbox.open { display: flex; }
.act-lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 6px; }
.act-lb-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.act-lb-close:hover { background: rgba(255,255,255,.2); }
.act-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.act-lb-nav:hover { background: rgba(255,255,255,.22); }
.act-lb-prev { left: 16px; }
.act-lb-next { right: 16px; }
.act-lb-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .8rem; white-space: nowrap; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .ft-nav-title { display: none; }
  .act-hero-cover { height: 200px; }
  .act-photo-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .act-post-card { flex-direction: column; }
  .act-post-thumb { width: 100%; height: 140px; }
}
@media (max-width: 480px) {
  .act-container { padding-top: 66px; }
  .act-hero-body { padding: 16px; }
  .act-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
