﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html, body {
  scroll-behavior: smooth;
  min-height: 100%;
}
body {
  min-height: 100vh;
  color: #111;
  background: #f5f5f7;
}
body, button, input, textarea {
  font-family: inherit;
}
button, input, textarea {
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-announcement {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  min-height: 56px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(18, 24, 34, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.announcement-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.announcement-track::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 18%);
}
.announcement-text {
  display: inline-block;
  line-height: 1.4;
  font-size: 14px;
  white-space: nowrap;
}
.announcement-text-static {
  padding-left: 0;
}
.announcement-text-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: announcement-marquee var(--announcement-speed, 14s) linear infinite;
}
.announcement-text.marquee-right {
  animation-name: announcement-marquee-right;
}
.announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  margin-right: 10px;
  font-size: 16px;
}
.announcement-close {
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.announcement-close:hover {
  background: rgba(255,255,255,0.18);
}
.announcement-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}
.announcement-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.25s ease, transform 0.25s ease;
}
.announcement-dot.active {
  background: #fff;
  transform: scale(1.15);
}
@keyframes announcement-marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}
@keyframes announcement-marquee-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(190%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.navbar {
  width: 100%;
}
.nav-wrap {
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  color: #111;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.menu {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}
.menu > li {
  position: relative;
}
.menu > li > a,
.menu > li > span {
  color: #1d1d1f;
  display: block;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}
.menu > li:hover > a,
.menu > li:hover > span,
.menu > li.active > a {
  background: rgba(0,0,0,0.04);
}
.sub1,
.sub2 {
  list-style: none;
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.12);
  min-width: 180px;
  display: none;
  padding: 12px 0;
  z-index: 50;
}
.sub1 {
  top: 100%;
  left: 0;
}
.sub2 {
  top: 0;
  left: 100%;
}
.menu > li:hover .sub1,
.sub1 li:hover .sub2 {
  display: block;
}
.sub1 li,
.sub2 li {
  padding: 0;
}
.sub1 li a,
.sub1 li span,
.sub2 li a,
.sub2 li span {
  color: #1d1d1f;
  display: block;
  padding: 12px 18px;
}
.sub1 li:hover > a,
.sub1 li:hover > span,
.sub2 li:hover > a,
.sub2 li:hover > span {
  background: #f5f5f7;
}
.mobile-menu-button {
  display: none;
  color: #1d1d1f;
  background: transparent;
  border: none;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-button:focus,
.mobile-menu-button:focus-visible {
  outline: none;
  box-shadow: none;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mobile-menu ul {
  list-style: none;
}
.mobile-menu a {
  display: block;
  color: #1d1d1f;
  padding: 16px 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(60,60,67,0.08);
}
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-slider {
  min-height: 520px;
  display: grid;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background: radial-gradient(circle at center, rgba(252,252,252,0.86) 0%, rgba(241,241,243,0.96) 100%);
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 24px 0;
  text-align: center;
}
.hero-copy .eyebrow {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
  font-size: 13px;
}
.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin-bottom: 24px;
  color: #111;
}
.hero-copy p {
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 36px;
  color: #48484a;
  line-height: 1.7;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 24px;
  background: #111;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #222;
}
.btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.12);
}
.btn-secondary:hover {
  background: #f2f2f2;
}
.nav-btn {
  color: #0066ff;
  border-radius: 18px;
  padding: 12px 18px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-btn:hover {
  background: #0066ff;
  color: #fff;
}
.user-menu {
  position: relative;
}
.user-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
  background: transparent;
  border: none;
  padding: 12px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.user-menu-button:hover {
  background: rgba(0, 0, 0, 0.04);
}
.user-avatar,
.avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.user-avatar {
  object-fit: cover;
}
.avatar-fallback {
  background: #0066ff;
  color: #fff;
}
.user-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 12px;
  display: none;
  z-index: 80;
}
.user-menu:hover .user-dropdown,
.user-menu.open .user-dropdown {
  display: block;
}
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #111;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f5f5f7;
}
.mobile-user-item button,
.mobile-user-item a {
  display: block;
  width: 100%;
  padding: 16px 24px;
  text-align: left;
  border: none;
  background: transparent;
  color: #1d1d1f;
  cursor: pointer;
}
.comment-list .message-actions,
.message-grid .message-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.message-action {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f5f5f7;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease;
}
.message-action:hover {
  background: #e8e8ec;
}
.message-action.delete {
  background: #ffecec;
  color: #b62c2c;
}
.message-status {
  margin-left: 10px;
  font-size: 13px;
  color: #666;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 999px;
}
.auth-page {
  min-height: calc(100vh - 120px);
}
.auth-card,
.profile-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  padding: 42px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}
.profile-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 320px) 1fr;
  align-items: start;
}
.avatar-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.avatar-preview-wrap {
  width: 100%;
  min-height: 260px;
  border-radius: 32px;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed rgba(34, 38, 49, 0.08);
}
.avatar-preview-wrap img,
.avatar-preview-wrap .avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(34, 38, 49, 0.44);
}
.profile-form .form-item {
  margin-bottom: 22px;
}
.profile-form .form-item label {
  display: block;
  margin-bottom: 10px;
  color: #2b2f38;
  font-size: 15px;
  font-weight: 600;
}
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 18px;
  font-size: 15px;
  background: #fdfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-form input:focus,
.profile-form textarea:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
  outline: none;
}
.profile-form textarea {
  min-height: 130px;
  resize: vertical;
}
.profile-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.profile-form .form-actions .btn {
  min-width: 140px;
}
.profile-form .form-actions .btn-secondary {
  background: #ffffff;
  color: #111;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.auth-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .avatar-preview-wrap {
    min-height: 220px;
  }
  .profile-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-form .form-actions .btn {
    width: 100%;
  }
}
.auth-tip {
  margin-top: 18px;
  color: #5d5d63;
  font-size: 14px;
}
.auth-tip a {
  color: #0066ff;
  text-decoration: none;
  font-weight: 600;
}
.auth-tip a:hover {
  text-decoration: underline;
}
.auth-fixed-footer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
}
#commentInput {
  width: 100%;
  min-height: 180px;
  padding: 18px 20px;
  border: 1px solid rgba(60,60,67,0.16);
  border-radius: 24px;
  background: #fff;
  resize: vertical;
  font-size: 16px;
  margin: 12px 0 10px;
}
.comment-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.comment-panel p {
  margin-bottom: 18px;
  color: #2f3340;
  font-size: 16px;
  line-height: 1.8;
}
.comment-panel .auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.comment-panel .auth-actions a {
  min-width: 140px;
}
.comment-panel .form-item {
  margin-top: 10px;
}
.comment-panel .form-item label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-size: 15px;
  font-weight: 600;
}
.comment-panel #submitCommentBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  margin-top: 14px;
}
.comment-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.comment-list .message-item {
  background: rgba(255,255,255,0.98);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.08);
}
.comment-list .message-item .message-content {
  margin-bottom: 14px;
}

.comment-list .message-meta {
  color: #6e6e73;
  font-size: 14px;
}
.hero-actions {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.hero-control {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(60,60,67,0.18);
  border-radius: 50%;
  color: #1d1d1f;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}
.hero-counter {
  color: #111;
  font-weight: 600;
}
main {
  width: 100%;
}
.section {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header {
  margin-bottom: 32px;
  text-align: center;
}
.section-subtitle {
  color: #6e6e73;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 50px;
}
.section h2 {
  font-size: clamp(32px, 3vw, 50px);
  color: #111;
}
.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 28px;
  justify-items: center;
}
.card,
.feature-card,
.message-card,
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.94);
  border-radius: 32px;
  padding: 34px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  margin-bottom: 28px;
}
.feature-card,
.message-card,
.login-card {
  max-width: 520px;
}
.card h3,
.feature-card h3 {
  margin-bottom: 16px;
  color: #111;
  font-size: 22px;
}
.card p,
.feature-card p,
.message-card p,
.login-card p {
  line-height: 1.8;
  color: #4a4a4c;
  font-size: 16px;
}
.feature-section {
  background: #fff;
  border-radius: 40px;
  margin: 0 auto 28px;
  padding: 60px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.text-link {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.message-section .message-card {
  padding: 40px;
}
.footer {
  padding: 36px 20px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.footer-nav a {
  color: #6e6e73;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.tab-button {
  border: 1px solid rgba(60,60,67,0.12);
  background: #fff;
  color: #1d1d1f;
  padding: 14px 20px;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab-button.active {
  background: #000;
  color: #fff;
  border-color: transparent;
}
.admin-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #3b3b40;
  text-align: center;
}
.admin-summary {
  background: #f3f3f5;
  border-radius: 18px;
  padding: 16px 20px;
  font-weight: 600;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.08);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.admin-table th,
.admin-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(60,60,67,0.08);
}
.admin-table th {
  background: #f7f7f8;
  color: #1d1d1f;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-table tbody tr:hover {
  background: #f5f5f7;
}
.admin-login-panel,
.message-form,
.form-item {
  width: 100%;
}
.admin-login-panel,
.login-card,
.message-card,
.feature-card,
.auth-card {
  margin: 0 auto;
}
.form-item label {
  display: block;
  margin-bottom: 10px;
  color: #444;
  font-size: 15px;
  font-weight: 600;
}
.auth-card input,
.auth-card textarea,
.login-card input,
.message-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(60,60,67,0.14);
  border-radius: 16px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-card input:focus,
.auth-card textarea:focus,
.login-card input:focus,
.message-form textarea:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
  outline: none;
}
.login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.message-form {
  margin-top: 24px;
}
.message-form textarea {
  min-height: 180px;
  resize: vertical;
}
.message-form button {
  margin-top: 16px;
}
.action-btn {
  border: none;
  background: #ff453a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  cursor: pointer;
}
.action-btn:hover {
  background: #d93829;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.online-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.08);
  color: #111;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
/* Admin modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  max-width: 320px;
  width: calc(100% - 40px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.14);
  z-index: 2010;
  text-align: center;
}
.modal-card h3 {
  margin: 8px 0 10px 0;
  font-size: 16px;
}
.modal-card input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  font-size: 14px;
}
.modal-actions { display:flex; gap:8px; justify-content:center; }
.modal-card .btn {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
  min-width: 120px;
}
.modal-card .btn:first-child { background:#000; color:#fff; box-shadow:none; }
.modal-card .btn:last-child { background:#fff; color:#111; border:1px solid rgba(0,0,0,0.08); }
.device-duration { color:#666; font-size:12px; margin-left:8px; }
@media (max-width: 980px) {
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 24px;
    background: rgba(255,255,255,0.95);
  }
  .hero-counter {
    color: #111;
  }
  .admin-table {
    min-width: 100%;
  }
}
@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }
  .menu {
    display: none;
  }
  .mobile-menu-button {
    display: inline-flex;
  }
  .mobile-menu {
    display: none;
  }
  .section {
    padding: 60px 18px;
  }
  .hero-copy {
    padding-top: 60px;
  }
  .feature-section {
    padding: 44px 24px;
  }
  .hero-actions {
    background: #fff;
    box-shadow: 0 14px 36px rgba(0,0,0,0.1);
  }
  .hero-counter,
  #homeOnlineCount {
    color: #111;
    opacity: 1;
  }
}
