* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8fafc;
  color: #333;
  line-height: 1.6;
}

.page-wrapper {
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.announcement-bar {
  padding: 0;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-right: 40px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
}

.announcement-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}

.announcement-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.announcement-text-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.announcement-text.scrolling {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-text 15s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.announcement-text-wrapper:hover .announcement-text.scrolling {
  animation-play-state: paused;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.announcement-text {
  font-size: 14px;
  color: #92400e;
  font-weight: 500;
  white-space: nowrap;
}

.announcement-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  z-index: 9998;
}

.announcement-popup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
}

.announcement-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-popup-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.announcement-popup-close {
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.announcement-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.announcement-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.announcement-bullet {
  font-size: 14px;
}

.announcement-title {
  font-weight: 600;
  font-size: 15px;
}

.announcement-meta {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.8;
}

.announcement-item-content {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.announcement-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 24px;
  flex-shrink: 0;
  position: relative;
  animation: badge-pulse 0.8s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px 8px rgba(102, 126, 234, 0.4);
  }
}

.sound-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 3px solid rgba(102, 126, 234, 0.8);
  animation: sound-expand 6s ease-out infinite;
}

.sound-wave-2 {
  animation-delay: 2s;
}

.sound-wave-3 {
  animation-delay: 4s;
}

@keyframes sound-expand {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-color: rgba(102, 126, 234, 0.9);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
    border-color: rgba(102, 126, 234, 0);
  }
}

.announcement-date {
  font-size: 13px;
  color: #b45309;
  padding: 4px 12px;
  background: rgba(146, 64, 14, 0.1);
  border-radius: 16px;
  flex-shrink: 0;
}

.announcement-close {
  cursor: pointer;
  color: #92400e;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.announcement-close:hover {
  color: #78350f;
  background: rgba(146, 64, 14, 0.15);
}

@media (max-width: 1024px) {
  .announcement-bar .container {
    padding: 10px 16px;
    gap: 10px;
  }
  
  .announcement-badge {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .announcement-text {
    font-size: 13px;
  }
  
  .announcement-date {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .announcement-bar .container {
    padding: 10px 12px;
    padding-right: 36px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .announcement-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .announcement-text-wrapper {
    flex: 1 1 100%;
    margin-top: 6px;
  }
  
  .announcement-text {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .announcement-date {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .announcement-bar .container {
    padding: 8px 10px;
    padding-right: 32px;
    gap: 6px;
  }
  
  .announcement-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .announcement-text {
    font-size: 11px;
  }
  
  .announcement-date {
    display: none;
  }
  
  .announcement-close {
    font-size: 14px;
    padding: 3px 6px;
    right: 8px;
  }
  
  .announcement-bar {
    margin-bottom: 12px;
  }
}

.main-content {
  padding-bottom: 40px;
}

.search-container {
  margin-top: 8px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  font-size: 16px;
  margin-right: 12px;
  color: #9ca3af;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
}

.suggestions-header {
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
}

.suggestions-list {
  max-height: 300px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f3f4f6;
}

.suggestion-icon {
  font-size: 20px;
  margin-right: 12px;
}

.suggestion-info {
  flex: 1;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
}

.suggestion-desc {
  font-size: 13px;
  color: #6b7280;
}

.suggestion-category {
  font-size: 12px;
  color: #9ca3af;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 12px;
}

.suggestion-type {
  font-size: 12px;
  color: #6366f1;
  margin-left: 8px;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f3f4f6;
  color: #6b7280;
}

.tab:hover {
  background: #e5e7eb;
}

.tab.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tab-icon {
  font-size: 16px;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.tab:not(.active) .tab-badge {
  background: #d1d5db;
}

.content-wrapper {
  display: flex;
  gap: 28px;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.sidebar-icon {
  font-size: 16px;
}

.sidebar-title {
  flex: 1;
}

.sidebar-expand {
  font-size: 18px;
  color: #9ca3af;
}

.category-list {
  list-style: none;
  margin-bottom: 28px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.category-list li:hover {
  background: #f9fafb;
}

.category-list li.active {
  background: #eef2ff;
  border-left-color: #6366f1;
}

.cat-icon {
  font-size: 14px;
}

.cat-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.cat-count {
  font-size: 13px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}

.category-list li.active .cat-count {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.main-area {
  flex: 1;
}

.section {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.hot-badge {
  font-size: 18px;
}

.view-all {
  font-size: 14px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.tools-grid,
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card,
.nav-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
  transition: all 0.25s ease;
  display: flex;
  gap: 14px;
  position: relative;
}

.tool-card:hover,
.nav-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #e5e7eb;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.purple-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.orange-gradient {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.blue-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.pink-gradient {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

.green-gradient {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.yellow-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.gray-gradient {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-info h4 a {
  color: #1f2937;
  text-decoration: none;
}

.card-info h4 a:hover {
  color: #6366f1;
}

.card-info p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f9ff;
  color: #0ea5e9;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
}

.favorite-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease;
}

.favorite-btn:hover {
  color: #fbbf24;
}

.favorite-btn.favorited {
  color: #f59e0b;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.header {
  background: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .logo a {
  text-decoration: none;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 24px;
  background: #f5f7fa;
  transition: all 0.3s ease;
}

.header .nav a:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.header .nav a.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header .nav .nav-icon {
  font-size: 14px;
}

.header .nav .nav-text {
  font-size: 14px;
}

.header .nav #loginLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.header .nav #loginLink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.header .user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.header .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.header .dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.header .dropdown-trigger:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.header .dropdown-trigger .user-icon {
  font-size: 16px;
}

.header .dropdown-trigger .user-name {
  flex: 1;
}

.header .dropdown-trigger .dropdown-arrow {
  font-size: 12px;
  opacity: 0.6;
  transition: transform 0.3s ease;
}

.header .dropdown-trigger:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.header .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 4px 0;
  min-width: 180px;
  z-index: 200;
  border: 1px solid #f0f0f0;
}

.header .dropdown-content.show {
  display: block;
}

.header .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.header .dropdown-content a:hover {
  background: #f3f4f6;
  color: #667eea;
}

.header .dropdown-content a .dropdown-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.header .dropdown-divider {
  margin: 6px 0;
  border: none;
  border-top: 1px solid #f0f0f0;
}

.header .dropdown-content a.danger {
  color: #dc2626;
}

.header .dropdown-content a.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 60px 0 30px;
  margin-top: 80px;
  color: white;
}

.footer .footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer .footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .footer-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .footer-info p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer .footer-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer .stat-item {
  text-align: center;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer .stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 6px;
}

.footer .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer .footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.footer .footer-links a:hover {
  background: rgba(102, 126, 234, 0.3);
  color: white;
  transform: translateX(-4px);
}

.footer .footer-friend-links {
  margin-top: 16px;
}

.footer .footer-friend-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.footer .friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer .friend-link-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .friend-link-item:hover {
  background: rgba(102, 126, 234, 0.25);
  color: white;
  border-color: rgba(102, 126, 234, 0.3);
}

.footer .friend-link-icon {
  font-size: 14px;
}

.footer .friend-link-name {
  font-size: 13px;
}

.footer .friend-link-more-btn {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: #667eea;
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer .friend-link-more-btn:hover {
  background: #5a6fd6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.friend-links-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.friend-links-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.friend-links-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.friend-links-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.friend-links-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.friend-links-modal-close:hover {
  opacity: 1;
}

.friend-links-modal-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.friend-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.friend-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  text-align: center;
}

.friend-link-card:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.friend-link-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.friend-link-card-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.friend-link-card-desc {
  font-size: 12px;
  color: #999;
}

.footer .footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer .footer-bottom p {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.footer .beian-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .beian-info a {
  text-decoration: none;
  color: #666;
  font-size: 12px;
  transition: color 0.3s ease;
}

.footer .beian-info a:hover {
  color: #667eea;
}

.footer .beian-info span {
  color: #ccc;
}

.footer .beian-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: #333;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #555;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .header {
    padding: 10px 0;
  }

  .header .logo {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  .header .nav {
    gap: 6px;
  }

  .header .nav a {
    font-size: 12px;
    padding: 8px 12px;
    gap: 4px;
  }

  .header .nav .nav-text {
    font-size: 12px;
    display: none;
  }

  .header .nav #loginLink {
    padding: 8px 12px;
    font-size: 12px;
  }

  .search-box {
    padding: 12px 16px;
  }

  .search-box input {
    font-size: 14px;
  }

  .tabs-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab {
    padding: 10px 20px;
    font-size: 13px;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .sidebar {
    width: 100%;
  }

  .sidebar-header {
    font-size: 14px;
  }

  .category-list li {
    padding: 10px 12px;
  }

  .cat-name {
    font-size: 13px;
  }

  .cat-count {
    font-size: 12px;
    padding: 2px 6px;
  }

  .tools-grid,
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-card,
  .nav-card {
    padding: 16px;
    gap: 12px;
  }

  .card-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .card-info h4 {
    font-size: 14px;
  }

  .card-info p {
    font-size: 12px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title-wrap h2 {
    font-size: 18px;
  }

  .footer {
    padding: 30px 0 20px;
    margin-top: 30px;
  }

  .footer .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer .footer-info h3 {
    font-size: 18px;
  }

  .footer .footer-info p {
    font-size: 13px;
  }

  .footer .footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .footer .stat-item {
    padding: 14px 12px;
    min-width: auto;
  }

  .footer .stat-value {
    font-size: 22px;
  }

  .footer .stat-label {
    font-size: 11px;
  }

  .footer .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer .footer-links a {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
  }

  .footer .footer-friend-links h4 {
    text-align: center;
    font-size: 13px;
  }

  .footer .friend-links-list {
    justify-content: center;
  }

  .footer .friend-link-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .footer .footer-bottom {
    padding-top: 16px;
  }

  .footer .footer-bottom p {
    font-size: 12px;
  }

  .footer .beian-info {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .header {
    padding: 8px 0;
  }

  .header .logo {
    font-size: 12px;
    max-width: 100px;
  }

  .header .nav {
    gap: 2px;
  }

  .header .nav a {
    font-size: 11px;
    padding: 4px 8px;
    gap: 2px;
  }
  
  .header .nav .nav-text {
    display: none;
  }

  .search-box {
    padding: 10px 14px;
  }

  .search-icon {
    font-size: 14px;
    margin-right: 10px;
  }

  .search-box input {
    font-size: 13px;
  }

  .tab {
    padding: 8px 16px;
    font-size: 12px;
  }

  .tab-badge {
    padding: 1px 6px;
    font-size: 11px;
  }

  .tool-card,
  .nav-card {
    padding: 14px;
    gap: 10px;
  }

  .card-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .card-info h4 {
    font-size: 13px;
  }

  .card-info p {
    font-size: 11px;
  }

  .tag {
    padding: 3px 8px;
    font-size: 11px;
  }

  .footer {
    padding: 30px 0 15px;
  }

  .footer .footer-info h3 {
    font-size: 18px;
  }

  .footer .footer-info p {
    font-size: 12px;
  }

  .footer .stat-item {
    padding: 14px 16px;
  }

  .footer .stat-value {
    font-size: 22px;
  }

  .footer .stat-label {
    font-size: 11px;
  }

  .footer .footer-bottom p {
    font-size: 12px;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .sidebar {
    width: 220px;
  }

  .tools-grid,
  .nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .footer .footer-content {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
  }

  .footer .footer-stats {
    gap: 24px;
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.modal-icon.warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.modal-icon.error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.modal-icon.success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.modal-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn.secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.modal-btn.secondary:hover {
  background: #e5e7eb;
}

.modal-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.modal-btn.danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.modal-btn.success {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.modal-btn.success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 确认弹窗特有样式 */
.confirm-modal .modal-icon {
  position: relative;
}

.confirm-modal .modal-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.confirm-modal .modal-icon svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1;
}

.confirm-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #1f2937, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confirm-modal .modal-message {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.confirm-modal .modal-btn.cancel {
  background: #f9fafb;
  color: #374151;
  border: 1px solid #e5e7eb;
  font-weight: 600;
}

.confirm-modal .modal-btn.cancel:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.confirm-modal .modal-btn.confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.confirm-modal .modal-btn.confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .confirm-modal .modal-container {
    padding: 24px;
    margin: 16px;
    border-radius: 14px;
  }
  
  .confirm-modal .modal-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .confirm-modal .modal-title {
    font-size: 18px;
  }
  
  .confirm-modal .modal-message {
    font-size: 14px;
  }
  
  .confirm-modal .modal-btn {
    padding: 11px 20px;
    font-size: 14px;
  }
}

/* 加载屏幕样式 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 10;
}

.loading-logo-wrapper {
  margin-bottom: 30px;
}

.loading-logo {
  animation: logoPulse 2s ease-in-out infinite;
}

.logo-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.loading-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.loading-progress-wrapper {
  width: 300px;
  margin: 0 auto 20px;
}

.loading-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 300px;
  margin: 0 auto 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.loading-percent {
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.loading-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-style: italic;
  margin-top: 10px;
}

.loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.6;
  }
}
