/*
 * Achievement Show v4 — Frontend bundle
 * Linear/Vercel 风。极简 + 大留白 + 精致动画。
 *
 * 不依赖任何 framework,纯 CSS variables + WP preset 桥接。
 */

/* ======= Reset ======= */
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; min-height:100vh; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
img,svg,video,canvas { display:block; max-width:100%; height:auto; }
a { color:inherit; }

/* ======= 全局工具类(供 wp:html 引用)======= */
.ach-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.ach-container-narrow { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }

.ach-grid { display:grid; gap:1.5rem; }
.ach-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ach-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ach-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.ach-flex { display:flex; }
.ach-flex-col { display:flex; flex-direction:column; }
.ach-items-center { align-items:center; }
.ach-justify-center { justify-content:center; }
.ach-justify-between { justify-content:space-between; }
.ach-gap-2 { gap:0.5rem; }
.ach-gap-4 { gap:1rem; }
.ach-gap-6 { gap:1.5rem; }
.ach-gap-8 { gap:2rem; }

/* ======= Hero ======= */
.ach-hero {
  position: relative;
  padding: clamp(3rem, 5vw + 2rem, 8rem) 1.5rem clamp(4rem, 6vw + 2rem, 10rem);
  text-align: center;
  overflow: hidden;
  background: var(--wp--preset--gradient--hero);
  color: #fff;
  isolation: isolate;
}
.ach-hero::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236,72,153,.3), transparent 50%);
  z-index:-1;
  animation: ach-hero-glow 20s ease-in-out infinite alternate;
}
@keyframes ach-hero-glow {
  0%   { transform: scale(1) rotate(0deg); opacity:.7; }
  50%  { transform: scale(1.1) rotate(2deg); opacity:.9; }
  100% { transform: scale(1.05) rotate(-1deg); opacity:.7; }
}
.ach-hero-eyebrow {
  display:inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.ach-hero h1 {
  font-size: var(--wp--preset--font-size--hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 900px;
  margin-inline: auto;
}
.ach-hero p {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  color: rgba(255,255,255,.65);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.ach-hero-actions {
  display:flex; gap:0.75rem; justify-content:center; flex-wrap:wrap;
}
.ach-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ach-hero-btn-primary {
  background: #FFFFFF;
  color: #0A0A0A;
}
.ach-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(255,255,255,.3);
}
.ach-hero-btn-ghost {
  background: rgba(255,255,255,.05);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.15);
}
.ach-hero-btn-ghost:hover {
  background: rgba(255,255,255,.1);
}

/* ======= Hero Stats ======= */
.ach-hero-stats {
  display: flex; gap: clamp(2rem, 5vw, 5rem); justify-content: center; flex-wrap: wrap;
  margin-top: clamp(3rem, 5vw, 5rem);
}
.ach-hero-stat-num {
  font-size: clamp(2rem, 1.5vw + 1.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFFFFF, #A1A1AA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ach-hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 0.25rem;
}

/* ======= Section common ======= */
.ach-section {
  padding: clamp(4rem, 6vw + 2rem, 8rem) 0;
}
.ach-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.ach-section-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.75rem;
}
.ach-section-title {
  font-size: var(--wp--preset--font-size--4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.ach-section-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
}

/* ======= Category Grid ======= */
.ach-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ach-cat-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem 1.5rem;
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.ach-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cat-color, #6366F1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.ach-cat-card > * { position: relative; z-index: 1; }
.ach-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-color, #6366F1);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}
.ach-cat-card:hover::before { opacity: 0.05; }
.ach-cat-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat-color, #6366F1) 15%, transparent);
  color: var(--cat-color, #6366F1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 20px;
  transition: transform 0.3s;
}
.ach-cat-card:hover .ach-cat-icon { transform: scale(1.1) rotate(-5deg); }
.ach-cat-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: -0.015em;
}
.ach-cat-count {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin-bottom: 0.5rem;
}
.ach-cat-arrow {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--cat-color, #6366F1);
  display: flex; align-items: center; gap: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s;
}
.ach-cat-card:hover .ach-cat-arrow { opacity: 1; transform: translateX(0); }

/* ======= Achievement Card ======= */
.ach-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ach-card {
  display: flex; flex-direction: column;
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}
.ach-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--wp--preset--shadow--lg);
}
.ach-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--wp--preset--color--accent);
  position: relative;
  overflow: hidden;
}
.ach-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ach-card:hover .ach-card-thumb img { transform: scale(1.05); }
.ach-card-badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}
.ach-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.ach-card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ach-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--wp--preset--color--muted);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ach-card-meta {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

/* ======= CTA Section ======= */
.ach-cta {
  position: relative;
  padding: clamp(4rem, 6vw, 8rem) 1.5rem;
  background: var(--wp--preset--gradient--cta);
  border-radius: 24px;
  margin: 0 1.5rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.ach-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 30px 30px, 50px 50px;
  pointer-events: none;
}
.ach-cta h2 {
  font-size: var(--wp--preset--font-size--3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  position: relative;
}
.ach-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  position: relative;
}

/* ======= Header ======= */
.ach-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(228,228,231,0.6);
}
.ach-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.ach-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--wp--preset--color--foreground);
}
.ach-logo-mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366F1, #EC4899);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.ach-nav { display: flex; gap: 1.5rem; align-items: center; }
.ach-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--wp--preset--color--muted);
  transition: color 0.2s;
}
.ach-nav a:hover { color: var(--wp--preset--color--foreground); }
.ach-nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.ach-icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.ach-icon-btn:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--foreground); }

/* ======= Footer ======= */
.ach-footer {
  background: #0A0A0A;
  color: rgba(255,255,255,0.7);
  padding: clamp(3rem, 5vw, 6rem) 0 2rem;
}
.ach-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ach-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.ach-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}
.ach-footer-col ul { list-style: none; padding: 0; margin: 0; }
.ach-footer-col li { margin-bottom: 0.625rem; }
.ach-footer-col a {
  font-size: 0.875rem;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.ach-footer-col a:hover { color: #fff; }
.ach-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ======= Detail page ======= */
.ach-detail {
  max-width: 768px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}
.ach-detail-hero {
  aspect-ratio: 16 / 9;
  background: var(--wp--preset--color--accent);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.ach-detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.ach-detail-meta {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin-bottom: 1rem;
}
.ach-detail-title {
  font-size: var(--wp--preset--font-size--3xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.ach-detail-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  margin: 0 0 3rem;
}
.ach-detail-content {
  font-size: 1rem;
  line-height: 1.75;
}
.ach-detail-content p { margin-bottom: 1rem; }
.ach-detail-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.ach-detail-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.ach-detail-content img { border-radius: 8px; margin: 1.5rem 0; }

/* 字段表 */
.ach-fields {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: var(--wp--preset--color--accent);
}
.ach-fields h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin: 0 0 1rem;
}
.ach-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.ach-field-row { font-size: 0.875rem; }
.ach-field-label {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin-bottom: 0.25rem;
}
.ach-field-value {
  font-weight: 500;
  word-break: break-all;
}

/* ======= Filter Bar ======= */
.ach-filter-bar {
  position: sticky; top: 64px; z-index: 30;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 1rem 0;
}
.ach-filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
}
.ach-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.ach-chip:hover {
  border-color: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--foreground);
}
.ach-chip[aria-current="true"], .ach-chip.active {
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  border-color: transparent;
}

/* ======= 收藏按钮 / 微交互 ======= */
.ach-fav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 9999px;
  background: transparent;
  color: var(--wp--preset--color--muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ach-fav:hover { color: #EC4899; border-color: #EC4899; }
.ach-fav.is-active { color: #EC4899; border-color: #EC4899; background: rgba(236,72,153,0.05); }

/* ======= 响应式 ======= */
@media (max-width: 768px) {
  .ach-nav { display: none; }
  .ach-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ach-hero { padding: 4rem 1rem 5rem; }
  .ach-section { padding: 3rem 0; }
  .ach-section-header { margin-bottom: 2rem; }
}

/* ======= Dark mode ======= */
@media (prefers-color-scheme: dark) {
  body {
    background: #0A0A0A;
    color: #FAFAFA;
  }
  .ach-header { background: rgba(10,10,10,0.85); border-bottom-color: rgba(255,255,255,0.1); }
  .ach-cat-card, .ach-card { background: #18181B; border-color: rgba(255,255,255,0.08); color: #FAFAFA; }
  .ach-section-desc, .ach-card-excerpt, .ach-card-meta, .ach-cat-count, .ach-detail-excerpt, .ach-field-label { color: #A1A1AA; }
  .ach-filter-bar { background: rgba(10,10,10,0.9); border-bottom-color: rgba(255,255,255,0.1); }
  .ach-chip { color: #A1A1AA; border-color: rgba(255,255,255,0.1); }
  .ach-chip:hover { color: #FAFAFA; border-color: #FAFAFA; }
  .ach-fields { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
  .ach-card-thumb, .ach-detail-hero { background: #18181B; }
}

/* ======= 访客认证 (VisitorAuthBlock) ======= */
.ach-visitor-auth {
  background: var(--wp--preset--color--secondary);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.ach-visitor-auth__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
}
.ach-visitor-auth__intro {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
  text-align: center;
  margin: 0 0 1rem;
}
.ach-visitor-auth__loading {
  text-align: center;
  color: var(--wp--preset--color--muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}

/* Auth form */
.ach-auth__tabs {
  display: flex;
  border-bottom: 1px solid var(--wp--preset--color--border);
  margin-bottom: 1.25rem;
  gap: 0;
}
.ach-auth__tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px;
  font-size: 0.875rem;
  color: var(--wp--preset--color--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.ach-auth__tab.active {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--primary);
  font-weight: 500;
}
.ach-auth__form { display: flex; flex-direction: column; gap: 1rem; }
.ach-auth__field { display: flex; flex-direction: column; gap: 4px; }
.ach-auth__field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
}
.ach-auth__field input,
.ach-auth__field select {
  padding: 9px 12px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  transition: border-color 0.2s;
  width: 100%;
}
.ach-auth__field input:focus,
.ach-auth__field select:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.ach-auth__error {
  color: #ef4444;
  font-size: 0.8125rem;
  padding: 8px 12px;
  background: rgba(239,68,68,0.08);
  border-radius: 6px;
}
.ach-auth__submit {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.ach-auth__submit:hover { opacity: 0.88; }
.ach-auth__submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Logged-in visitor status */
.ach-visitor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ach-visitor-status__info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ach-visitor-status__name { font-weight: 500; font-size: 0.9375rem; }
.ach-visitor-status__tier {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(99,102,241,0.1);
  color: var(--wp--preset--color--primary);
  border-radius: 9999px;
}
.ach-visitor-status__logout {
  background: none;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.ach-visitor-status__logout:hover {
  border-color: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--foreground);
}

/* ======= 申请访问表单 (ApplyFormBlock) ======= */
.ach-form--apply {
  background: var(--wp--preset--color--secondary);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.ach-form__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-align: center;
}
.ach-form__form { display: flex; flex-direction: column; gap: 1rem; }
.ach-form__field { display: flex; flex-direction: column; gap: 4px; }
.ach-form__field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
}
.ach-form__field input,
.ach-form__field select,
.ach-form__field textarea {
  padding: 9px 12px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  transition: border-color 0.2s;
  width: 100%;
  font-family: inherit;
}
.ach-form__field input:focus,
.ach-form__field select:focus,
.ach-form__field textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.ach-form__field textarea { resize: vertical; min-height: 80px; }
.ach-form__submit {
  background: var(--wp--preset--color--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}
.ach-form__submit:hover { opacity: 0.88; }
.ach-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ach-form__success {
  text-align: center;
  padding: 1.5rem;
  color: #16a34a;
  font-weight: 500;
}

/* ======= 我的申请 (Shortcode) ======= */
.ach-my-applications { max-width: 640px; margin: 2rem auto; }
.ach-my-applications__title {
  font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem;
}
.ach-my-applications__empty {
  color: var(--wp--preset--color--muted); font-size: 0.875rem; text-align: center; padding: 2rem;
}
.ach-my-app-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ach-my-app-item {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--wp--preset--color--secondary);
}
.ach-my-app-item__header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; margin-bottom: 0.5rem;
}
.ach-my-app-item__reason {
  font-size: 0.8125rem; color: var(--wp--preset--color--muted); margin-bottom: 0.25rem;
}
.ach-my-app-item__note {
  font-size: 0.8125rem; color: var(--wp--preset--color--muted);
  margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--wp--preset--color--border);
}
