/* ═══════════════════════════════════════════════════════
   好用导航 · Deep Blue Theme
   ═══════════════════════════════════════════════════════ */
:root {
  --primary: #0d2b5e;
  --primary-light: #1a4a8a;
  --primary-gradient: linear-gradient(135deg, #0d2b5e 0%, #1a4a8a 100%);
  --primary-glow: rgba(13, 43, 94, 0.15);

  --accent: #3b82f6;
  --accent-light: #93c5fd;

  --text-1: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;

  --border: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --card-hover: #f8fafc;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Top Bar ── */
.top-bar {
  background: var(--primary-gradient);
  padding: 8px 0;
  color: #fff;
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.3s;
}

.top-nav a:hover::after,
.top-nav a.active::after {
  width: 100%;
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
  font-weight: 700;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  white-space: nowrap;
}

.info-weather::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.info-datetime::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center/contain;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-area {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-area button {
  padding: 6px 14px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.login-btn.user-name {
  background: rgba(255, 255, 255, 0.25);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-btn {
  background: #fff;
  color: var(--primary);
}

.register-btn:hover {
  background: #f0f0f0;
}

.fav-btn-top {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  position: relative;
}

.fav-btn-top:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fav-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* ── Header ── */
.header {
  background: #fff;
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 0 4px;
  width: 640px;
  max-width: 100%;
  flex-shrink: 1;
  min-width: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-select {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border-right: 1px solid var(--border);
  outline: none;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  color: var(--text-1);
}

.search-input::placeholder {
  color: var(--text-3);
}

.search-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 43, 94, 0.3);
}

/* ── Ad Banner ── */
.ad-banner {
  display: block;
  background: #fff;
  text-align: center;
  padding: 12px;
  margin: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
  transition: background 0.2s;
}

.ad-banner:hover {
  background: #f8fafc;
}

/* ── Sidebar Ad ── */
.sidebar-ad {
  display: block;
  background: #fff;
  text-align: center;
  padding: 12px;
  margin: 8px 0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--accent);
  transition: background 0.2s;
}

.sidebar-ad:hover {
  background: #f8fafc;
}

/* ── Footer Ads ── */
.footer-ads {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.footer-ad {
  display: inline-block;
  background: #f8fafc;
  text-align: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.footer-ad:hover {
  background: #eff6ff;
  border-color: var(--accent-light);
}

/* ── User Tip ── */
.user-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 24px 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #3b82f6;
  transition: opacity 0.3s, max-height 0.3s;
}

.user-tip.is-hidden {
  display: none;
}

.user-tip span {
  flex: 1;
  text-align: center;
}

.user-tip-close {
  background: none;
  border: none;
  color: #93c5fd;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.user-tip-close:hover {
  color: #3b82f6;
}

/* ── Quick Links ── */
.quick-links {
  background: #fff;
  margin: 16px 24px;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.quick-item:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

.quick-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.quick-item span {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.quick-item[draggable="true"] {
  cursor: grab;
}

.quick-item[draggable="true"]:active {
  cursor: grabbing;
}

.quick-item.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.quick-item.drag-over {
  background: #dbeafe;
  border: 2px dashed #3b82f6;
  transform: translateY(-2px);
}

/* ── Main Content ── */
.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ── Category Section ── */
.category-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.back-link {
  margin-left: auto;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.category {
  margin-bottom: 28px;
}

.category:last-child {
  margin-bottom: 0;
}

/* ── Category List (分类大全) ── */
.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  display: block;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.category-card:hover {
  background: #eff6ff;
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 43, 94, 0.08);
}

.category-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-3);
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.category-name a {
  color: inherit;
  text-decoration: none;
}

.category-name a:hover {
  text-decoration: underline;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: start;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.site-card:hover {
  background: #eff6ff;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(13, 43, 94, 0.08);
}

.site-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-info {
  min-width: 0;
  flex: 1;
}

.site-info strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-info small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Fav button on site card ── */
.site-card .fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  color: var(--text-3);
  padding: 0;
}

.site-card:hover .fav-btn {
  opacity: 1;
}

.site-card .fav-btn:hover {
  color: var(--accent);
}

.site-card .fav-btn.active {
  opacity: 1;
  color: var(--accent);
}

/* ── Fav button on quick item ── */
.quick-item .fav-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  color: var(--text-3);
  padding: 0;
}

.quick-item:hover .fav-btn {
  opacity: 1;
}

.quick-item .fav-btn:hover {
  color: var(--accent);
}

.quick-item .fav-btn.active {
  opacity: 1;
  color: var(--accent);
}

/* ── Sidebar ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.new-site-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-site-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.new-site-item:hover {
  background: #eff6ff;
}

.new-site-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.new-site-info {
  min-width: 0;
}

.new-site-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-site-desc {
  font-size: 11px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-wide {
  max-width: 640px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 22px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text-1);
  background: #f5f7fa;
}

.modal-title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
}

/* ── Auth Tabs ── */
.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.modal-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Profile Tabs ── */
.profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.profile-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.profile-panel {
  max-height: 60vh;
  overflow-y: auto;
}

.profile-panel form {
  display: grid;
  gap: 16px;
}

.profile-panel label {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.profile-panel input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-panel input:disabled {
  background: #f1f5f9;
  color: var(--text-3);
  cursor: not-allowed;
}

.profile-panel button[type=submit] {
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-panel button[type=submit]:hover {
  background: var(--primary-dark);
}

.profile-panel button[type=submit]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-form > button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.auth-form > button:hover {
  box-shadow: 0 6px 20px rgba(13, 43, 94, 0.35);
  transform: translateY(-1px);
}

.auth-message {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.auth-message.error {
  color: #dc2626;
}

.auth-message.success {
  color: #059669;
}

/* ── Favorites ── */
.favorites-list {
  max-height: 420px;
  overflow-y: auto;
}

.favorites-empty {
  color: var(--text-3);
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

.fav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.fav-item:last-child {
  border-bottom: 0;
}

.fav-item:hover {
  background: #f8fafc;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-sm);
}

.fav-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.fav-item-info {
  flex: 1;
  min-width: 0;
}

.fav-item-info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-1);
}

.fav-item-info small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-remove {
  background: none;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.fav-remove:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* ── Submit Form ── */
.submit-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.submit-form label {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.submit-form input,
.submit-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.submit-form input:focus,
.submit-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.submit-form button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.submit-form button:hover {
  box-shadow: 0 6px 20px rgba(13, 43, 94, 0.35);
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.form-message.success {
  color: #059669;
}

.form-message.error {
  color: #dc2626;
}

/* ── Utility ── */
.is-hidden {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .quick-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .site-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-box {
    width: 100%;
  }

  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .top-bar-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 12px;
  }

  .top-nav {
    gap: 12px;
    flex-shrink: 0;
  }

  .top-nav a {
    font-size: 12px;
  }

  .sidebar-ad {
    margin: 8px 0;
  }

  .footer-ads {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .top-nav {
    gap: 10px;
    flex-shrink: 0;
  }

  .top-nav a {
    font-size: 12px;
  }

  .top-info {
    display: none;
  }

  .top-right {
    flex-shrink: 0;
  }

  .login-area {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-content {
    width: calc(100% - 24px);
  }

  .quick-links {
    margin: 12px;
  }

  .ad-banner {
    margin: 12px;
  }
}
