

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ul {
  list-style: none;
}


.ui-style-11 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f5f5;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a:hover {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

@media (max-width: 768px) {
  nav {
    padding: 0.3rem !important;
  }

  nav a {
    padding: 0.4rem 0.2rem !important;
    font-size: 0.8rem !important;
  }

  h1 {
    font-size: 1.3rem !important;
  }

  h2 {
    font-size: 1.2rem !important;
  }

  main {
    padding: 0 0.5rem !important;
  }

  article {
    padding: 1rem !important;
  }
}

article:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

a:hover {
  color: #667eea;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.5rem;
}

.back-to-top.show {
  opacity: 1;
}
