/* ==========================================================================
   潍坊导航 - www.0536.site
   Complete Stylesheet
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #40a9ff;
  --primary-bg: #e6f7ff;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-hero-start: #f0f7ff;
  --bg-hero-end: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-color: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --navbar-height: 60px;
  --container-max: 1200px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.navbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.navbar-search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.navbar-search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-light);
  outline: none;
  transition: all var(--transition-normal);
}

.navbar-search input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

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

.navbar-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.navbar-search-btn:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-submit-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-submit-nav:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.navbar-toggle:hover {
  background: var(--bg-light);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
  padding: 60px 0 48px;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), #722ed1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 24px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(24, 144, 255, 0.08);
}

.hero-search input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: none;
  font-size: 16px;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

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

.hero-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  margin: 4px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.hero-search-btn:hover {
  background: var(--primary-dark);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.hero-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-stats .stat-num {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 18px;
}

/* ---------- Category Tabs ---------- */
.category-section {
  position: sticky;
  top: var(--navbar-height);
  z-index: 900;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-normal);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.category-tab:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.category-tab.active {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: rgba(24, 144, 255, 0.2);
  font-weight: 600;
}

.category-tab .tab-count {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.category-tab.active .tab-count {
  color: var(--primary-light);
}

/* ---------- Main Content ---------- */
.main-content {
  padding: 32px 0 48px;
  min-height: 60vh;
}

/* ---------- Site Cards Grid ---------- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ---------- Site Card ---------- */
.site-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.site-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.site-card:hover::before {
  opacity: 1;
}

.site-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-card-favicon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-card-favicon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-card-favicon .favicon-placeholder,
.site-card-favicon .favicon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 16px;
}

.site-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.site-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.site-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.site-card-badge.featured {
  background: #fff7e6;
  color: #d48806;
  border-color: #ffe58f;
}

.site-card-badge.category {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: rgba(24, 144, 255, 0.15);
}

.site-card-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.site-card-visit:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- Skeleton Loading Cards ---------- */
.skeleton-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.skeleton-card .skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.skeleton-card .skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  animation: shimmer 1.5s infinite;
}

.skeleton-card .skeleton-title {
  height: 16px;
  width: 60%;
  border-radius: 4px;
  background: var(--bg-light);
  animation: shimmer 1.5s infinite;
}

.skeleton-card .skeleton-desc {
  height: 12px;
  width: 100%;
  border-radius: 4px;
  background: var(--bg-light);
  margin-bottom: 8px;
  animation: shimmer 1.5s infinite;
}

.skeleton-card .skeleton-desc-short {
  height: 12px;
  width: 70%;
  border-radius: 4px;
  background: var(--bg-light);
  margin-bottom: 16px;
  animation: shimmer 1.5s infinite;
}

.skeleton-card .skeleton-btn {
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ---------- Load More ---------- */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 32px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.btn-load-more:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-load-more .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Featured Sections ---------- */
.featured-sections {
  padding: 48px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.featured-section {
  margin-bottom: 40px;
}

.featured-section:last-child {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-header .section-icon {
  font-size: 20px;
}

.section-header .section-more {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.section-header .section-more:hover {
  color: var(--primary);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.empty-state .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.empty-state .btn-reset:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 32px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-left a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-left a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

/* ---------- Submit Page ---------- */
.page-header {
  background: linear-gradient(180deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
  padding: 48px 0 36px;
  text-align: center;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.submit-section {
  padding: 40px 0 60px;
}

.submit-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ff4d4f;
  margin-left: 2px;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: all var(--transition-normal);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control.error {
  border-color: #ff4d4f;
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

textarea.form-control {
  height: 100px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
  margin-top: 8px;
}

.btn-submit-form:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.35);
}

.btn-submit-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit-form .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Form messages */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
}

.form-message.show {
  display: flex;
}

.form-message.success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.form-message.error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.form-error-text {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error-text {
  display: block;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* ---------- Toast / Notification ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
  max-width: 360px;
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: #52c41a;
}

.toast.error {
  border-left-color: #ff4d4f;
}

.toast.fade-out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ---------- Responsive: Tablet (<=768px) ---------- */
@media (max-width: 768px) {
  .navbar-search {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .btn-submit-nav span {
    display: none;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-search input {
    height: 46px;
    font-size: 15px;
  }

  .hero-search-btn {
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
  }

  .hero-stats {
    gap: 20px;
    font-size: 13px;
  }

  .hero-stats .stat-num {
    font-size: 16px;
  }

  .sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .featured-sections {
    padding: 32px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .submit-form-wrap {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 24px;
  }
}

/* ---------- Responsive: Mobile (<=480px) ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-badge {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .hero-search input {
    width: 100%;
    height: 48px;
    text-align: center;
  }

  .hero-search-btn {
    width: calc(100% - 8px);
    height: 42px;
    margin: 0 4px 4px;
    border-radius: var(--radius-md);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .site-card {
    padding: 14px;
  }

  .site-card-header {
    gap: 8px;
    margin-bottom: 8px;
  }

  .site-card-favicon {
    width: 32px;
    height: 32px;
  }

  .site-card-favicon img {
    width: 22px;
    height: 22px;
  }

  .site-card-name {
    font-size: 13px;
  }

  .site-card-desc {
    font-size: 12px;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }

  .site-card-meta {
    margin-bottom: 10px;
  }

  .site-card-badge {
    font-size: 11px;
    padding: 2px 8px;
  }

  .site-card-visit {
    padding: 7px 12px;
    font-size: 12px;
  }

  .category-tab {
    padding: 6px 14px;
    font-size: 13px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .submit-form-wrap {
    padding: 20px 16px;
  }

  .page-header {
    padding: 32px 0 24px;
  }

  .page-header h1 {
    font-size: 22px;
  }
}

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.show {
  opacity: 1;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--bg-white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-panel.show {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--bg-light);
}

.mobile-nav-search {
  position: relative;
}

.mobile-nav-search input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-normal);
}

.mobile-nav-search input:focus {
  border-color: var(--primary);
}

.mobile-nav-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.mobile-nav-links a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.mobile-nav-links a i {
  width: 20px;
  text-align: center;
  color: var(--text-tertiary);
}
