* { box-sizing: border-box; }
html, body { margin: 0; font-family: Arial, sans-serif; color: #1f2937; height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; background: #f3f4f6; }
.announcement { position: sticky; top: 0; z-index: 20; background: #111827; color: #fff; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; }
.announcement a { color: #fff; background: #2563eb; padding: 6px 10px; border-radius: 6px; text-decoration: none; }
.hidden { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 15; background: #fff; border-bottom: 1px solid #e5e7eb; }
.header-inner, .footer-inner { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 34px; height: 34px; border-radius: 4px; object-fit: contain; }
.nav { display: flex; gap: 12px; }
.nav a { text-decoration: none; color: #2563eb; }
.content { flex: 1; width: min(1100px, 100%); margin: 16px auto; padding: 0 16px; display: grid; gap: 16px; }
.module { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.ad-grid img { width: 100%; border-radius: 8px; border: 1px solid #e5e7eb; }
.site-footer { border-top: 1px solid #e5e7eb; background: #fff; margin-top: auto; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { color: #2563eb; text-decoration: none; }
.admin-content input, .admin-content textarea, .admin-content button, .admin-content select { width: 100%; margin-top: 8px; padding: 10px; border-radius: 6px; border: 1px solid #d1d5db; font: inherit; }
.admin-content textarea { min-height: 90px; resize: vertical; }
.admin-content button { cursor: pointer; background: #2563eb; color: #fff; border: none; }
.admin-content label { display: block; margin-top: 8px; }
.admin-content .perm-check { width: auto; margin-right: 8px; }
.list-item { border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-item button { width: auto; background: #dc2626; }
