/* ================================================================
   Nexus MC — 千服联灯
   Minecraft Official Website Design Language
   Charcoal bands · Grass-green actions · Blocky · Edge-to-edge art
   ================================================================ */

:root {
  /* MC Charcoal palette */
  --bg0:     #171615;
  --bg1:     #1e1d1c;
  --bg2:     #262423;
  --bg3:     #313029;
  --bg4:     #3a3832;

  /* MC Action colors */
  --green:    #3c8527;
  --green-h:  #4a9e30;
  --yellow:   #ffc42b;
  --orange:   #ffa41f;

  /* Text */
  --text:      #ffffff;
  --text-sub:  #c8c5c3;
  --text-muted:#8e8b88;
  --text-dim:  #5a5754;

  /* Borders */
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);

  /* Square, blocky radii */
  --r:  2px;
  --r2: 3px;

  --font: 'Noto Sans', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --transition: .15s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-h); }
img { max-width: 100%; display: block; }
input, button, select, textarea { font-family: inherit; }
::selection { background: var(--green); color: #fff; }

/* ── Layout ──────────────────────────────────────────────── */
.mc-wrap    { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.mc-wrap-sm { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

/* ── Nav — charcoal top band ─────────────────────────────── */
.mc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px;
  background: var(--bg0);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.mc-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; width: 100%;
}
.mc-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .95rem; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em;
  flex-shrink: 0;
}
.mc-brand img { width: 28px; height: 28px; border-radius: 2px; }

/* Tab navigation — MC style blocky tabs */
.mc-tabs { display: flex; height: 52px; margin-left: 20px; }
.mc-tab {
  display: flex; align-items: center;
  padding: 0 16px; height: 100%;
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 3px solid transparent;
  transition: var(--transition); cursor: pointer;
  text-decoration: none;
}
.mc-tab:hover { color: var(--text-sub); }
.mc-tab.active { color: var(--text); border-bottom-color: var(--green); }

.mc-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Search in nav */
.mc-search {
  display: flex; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); height: 30px; padding: 0 10px; gap: 6px;
  width: 180px; transition: var(--transition);
}
.mc-search:focus-within { border-color: var(--green); }
.mc-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .78rem; width: 100%;
}
.mc-search input::placeholder { color: var(--text-dim); }
.mc-search svg { color: var(--text-dim); flex-shrink: 0; }

/* ── Buttons — square, blocky ────────────────────────────── */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--r);
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; line-height: 1;
}
.mc-btn-green { background: var(--green); color: #fff; }
.mc-btn-green:hover { background: var(--green-h); color: #fff; }
.mc-btn-yellow { background: var(--yellow); color: #000; }
.mc-btn-yellow:hover { background: #ffd04d; color: #000; }
.mc-btn-outline { background: transparent; color: var(--text-sub); border: 2px solid var(--border2); }
.mc-btn-outline:hover { border-color: var(--green); color: var(--green); }
.mc-btn-ghost { background: var(--bg3); color: var(--text-sub); }
.mc-btn-ghost:hover { background: var(--bg4); color: var(--text); }
.mc-btn-sm { padding: 6px 14px; font-size: .76rem; }
.mc-btn-lg { padding: 14px 32px; font-size: .88rem; }

/* ── Tags ────────────────────────────────────────────────── */
.mc-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: var(--r);
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
}
.mc-tag-green  { background: rgba(60,133,39,.2); color: var(--green); }
.mc-tag-yellow { background: rgba(255,196,43,.15); color: var(--yellow); }
.mc-tag-orange { background: rgba(255,164,31,.15); color: var(--orange); }
.mc-tag-gray   { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* ── Cards — charcoal blocks ─────────────────────────────── */
.mc-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  transition: var(--transition);
}
.mc-card:hover { border-color: var(--border2); background: var(--bg2); }

/* ── Forms — square, dark ────────────────────────────────── */
.mc-input {
  width: 100%;
  background: var(--bg2); border: 2px solid var(--border2);
  border-radius: var(--r);
  padding: 11px 14px; font-size: .88rem; color: var(--text);
  outline: none; transition: var(--transition);
}
.mc-input:focus { border-color: var(--green); background: var(--bg3); }
.mc-input::placeholder { color: var(--text-dim); }
.mc-label {
  display: block; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 6px;
}
.mc-form-group { margin-bottom: 18px; }
.mc-form-hint { font-size: .74rem; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }

/* ── Hero — edge-to-edge immersive ───────────────────────── */
.mc-hero {
  position: relative;
  height: 100vh; min-height: 560px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mc-hero-bg {
  position: absolute; inset: 0;
  background: url('/img/hero-mc.png') center center / cover no-repeat;
}
.mc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23,22,21,.4) 0%,
    rgba(23,22,21,.1) 30%,
    rgba(23,22,21,.5) 70%,
    rgba(23,22,21,.95) 100%
  );
}
.mc-hero-content {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 0 24px 72px; text-align: center;
}
.mc-hero-kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 14px;
}
.mc-hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.02em; color: #fff;
  text-shadow: 0 3px 16px rgba(0,0,0,.6);
  margin-bottom: 14px;
}
.mc-hero-sub {
  font-size: clamp(.88rem, 1.8vw, 1.05rem);
  color: var(--text-sub); max-width: 480px;
  line-height: 1.7; margin-bottom: 32px;
}
.mc-hero-search {
  display: flex; width: 100%; max-width: 500px;
  background: rgba(23,22,21,.7);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--r); overflow: hidden;
}
.mc-hero-search input {
  flex: 1; background: none; border: none; outline: none;
  padding: 14px 18px; font-size: .92rem; color: #fff;
}
.mc-hero-search input::placeholder { color: rgba(255,255,255,.45); }
.mc-hero-search button {
  background: var(--green); border: none; cursor: pointer;
  padding: 0 24px; font-size: .82rem; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .04em;
  transition: var(--transition);
}
.mc-hero-search button:hover { background: var(--green-h); }
.mc-hero-stats {
  display: flex; gap: 28px; margin-top: 24px;
  font-size: .78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.mc-hero-stats strong { color: var(--text); font-weight: 800; }

/* ── Section bands — alternating charcoal ────────────────── */
.mc-band      { padding: 48px 0; }
.mc-band-dark { background: var(--bg0); }
.mc-band-mid  { background: var(--bg1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mc-band-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 14px;
}
.mc-h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }

/* ── Forum blocks ────────────────────────────────────────── */
.mc-forum-block {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; margin-bottom: 16px;
}
.mc-forum-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
}
.mc-forum-header-title { flex: 1; }
.mc-forum-header-more { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; }
.mc-forum-header-more:hover { color: var(--green); }

.mc-forum-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  transition: var(--transition); cursor: pointer;
}
.mc-forum-row:last-child { border-bottom: none; }
.mc-forum-row:hover { background: var(--bg2); }
.mc-forum-row-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  background: var(--bg3);
}
.mc-forum-row-main { flex: 1; min-width: 0; }
.mc-forum-row-name { font-size: .86rem; font-weight: 700; margin-bottom: 1px; }
.mc-forum-row-desc { font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-forum-row-count { text-align: right; min-width: 50px; font-size: .78rem; color: var(--text-dim); }
.mc-forum-row-last  { text-align: right; min-width: 100px; }

/* Category separator */
.mc-cat-label {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--bg0);
  font-size: .64rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mc-cat-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Table header */
.mc-tbl-head {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Post rows */
.mc-post-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mc-post-row:last-child { border-bottom: none; }
.mc-post-row:hover { background: var(--bg2); }
.mc-post-avatar {
  width: 30px; height: 30px; border-radius: var(--r);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.mc-post-title { font-size: .84rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.mc-post-title:hover { color: var(--green); }
.mc-post-meta { font-size: .7rem; color: var(--text-muted); }

/* ── Sidebar ─────────────────────────────────────────────── */
.mc-sidebar-card {
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 14px; margin-bottom: 14px;
}
.mc-sidebar-title {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.mc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-stat { text-align: center; }
.mc-stat-num { font-size: 1.2rem; font-weight: 800; color: var(--green); }
.mc-stat-lbl { font-size: .66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ── Auth pages — split layout ───────────────────────────── */
.mc-auth {
  min-height: 100vh; display: flex;
  background: var(--bg0);
}
.mc-auth-art {
  position: fixed; top: 0; left: 0; bottom: 0; width: 50%;
  background: url('/img/auth-bg.png') center center / cover no-repeat;
}
.mc-auth-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(23,22,21,.2), rgba(23,22,21,.85));
}
.mc-auth-form {
  position: relative; z-index: 1;
  margin-left: auto; width: 50%; min-width: 360px;
  background: var(--bg0); border-left: 1px solid var(--border);
  padding: 40px 48px;
  display: flex; flex-direction: column; min-height: 100vh;
}
.mc-auth-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .95rem; color: var(--text);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 44px;
}
.mc-auth-logo img { width: 30px; height: 30px; border-radius: 2px; }
.mc-auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.mc-auth-sub { font-size: .84rem; color: var(--text-sub); margin-bottom: 28px; }
.mc-auth-footer {
  margin-top: auto; padding-top: 32px;
  font-size: .74rem; color: var(--text-dim);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.mc-auth-footer a { color: var(--text-dim); }
.mc-auth-footer a:hover { color: var(--text-muted); }

/* Social login — blocky */
.mc-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r);
  border: 2px solid var(--border2); background: var(--bg2);
  font-size: .8rem; font-weight: 700; color: var(--text-sub);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.mc-social-btn:hover { border-color: var(--green); color: var(--text); }
.mc-social-icon {
  width: 20px; height: 20px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
}

/* Divider */
.mc-divider {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 20px 0;
}
.mc-divider::before, .mc-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Captcha */
.mc-captcha-box {
  height: 38px; min-width: 100px;
  background: var(--bg3); border: 2px solid var(--border2);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; letter-spacing: .15em;
  cursor: pointer; user-select: none; color: var(--yellow);
  flex-shrink: 0; position: relative; overflow: hidden;
}
.mc-captcha-box::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,.03) 3px, rgba(255,255,255,.03) 6px);
}
.mc-captcha-refresh { font-size: .72rem; color: var(--text-muted); cursor: pointer; }
.mc-captcha-refresh:hover { color: var(--green); }

/* Password strength */
.mc-strength { height: 3px; border-radius: 1px; background: var(--bg3); margin-top: 6px; overflow: hidden; }
.mc-strength-fill { height: 100%; width: 0; border-radius: 1px; transition: width .3s, background .3s; }
.mc-strength-text { font-size: .7rem; margin-top: 4px; }

@media (max-width: 768px) {
  .mc-auth-art { display: none; }
  .mc-auth-form { width: 100%; margin-left: 0; min-width: unset; padding: 28px 20px; border-left: none; }
}

/* ── Notice bar ──────────────────────────────────────────── */
.mc-notice {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem;
}
.mc-notice-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(60,133,39,.6);
}

/* ── Footer ──────────────────────────────────────────────── */
.mc-footer {
  background: var(--bg1); border-top: 1px solid var(--border);
  padding: 36px 0 24px;
}
.mc-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 28px;
}
.mc-footer-brand { font-size: .82rem; color: var(--text-muted); margin-top: 10px; line-height: 1.6; max-width: 220px; }
.mc-footer-col-title {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px;
}
.mc-footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mc-footer-links a { font-size: .8rem; color: var(--text-muted); }
.mc-footer-links a:hover { color: var(--text); }
.mc-footer-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.mc-footer-bottom p { font-size: .72rem; color: var(--text-dim); }

@media (max-width: 860px) { .mc-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mc-footer-grid { grid-template-columns: 1fr; } }

/* ── Sub-tabs bar ────────────────────────────────────────── */
.mc-sub-tabs { display: flex; gap: 0; }
.mc-sub-tab {
  padding: 10px 16px; font-size: .76rem; font-weight: 700;
  color: var(--text-muted); border-bottom: 3px solid transparent;
  cursor: pointer; transition: var(--transition);
  text-transform: uppercase; letter-spacing: .04em;
}
.mc-sub-tab:hover { color: var(--text-sub); }
.mc-sub-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Utility ─────────────────────────────────────────────── */
.mc-text-center { text-align: center; }
.mc-mt-8  { margin-top: 8px; }
.mc-mt-12 { margin-top: 12px; }
.mc-mt-16 { margin-top: 16px; }
.mc-mt-24 { margin-top: 24px; }
.mc-mb-8  { margin-bottom: 8px; }
.mc-mb-16 { margin-bottom: 16px; }
.mc-muted { color: var(--text-muted); }
.mc-dim   { color: var(--text-dim); }
.mc-green-text { color: var(--green); }

/* ── Filter pills ────────────────────────────────────────── */
.mc-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.mc-filter-btn {
  padding: 6px 14px; border-radius: var(--r);
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.mc-filter-btn:hover, .mc-filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Empty state ─────────────────────────────────────────── */
.mc-empty {
  text-align: center; padding: 48px 20px;
}
.mc-empty-icon { font-size: 2.4rem; opacity: .3; margin-bottom: 12px; }
.mc-empty-title { font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.mc-empty-desc { font-size: .82rem; color: var(--text-dim); max-width: 360px; margin: 0 auto 20px; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 1px; }

/* ── Responsive nav ──────────────────────────────────────── */
@media (max-width: 700px) {
  .mc-tabs { display: none; }
  .mc-search { display: none; }
}
