body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

nav {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

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

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  font-size: 0.95rem;
  transition: background 0.2s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  margin-top: 0;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

article {
  transition: transform 0.2s, box-shadow 0.2s;
}

article:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
  nav {
    padding: 0.75rem 0.5rem;
  }

  nav ul {
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
  }

  nav li {
    padding: 0 2px;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

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

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

.ui-style-0 { --primary: #3498db; --secondary: #2ecc71; }
.ui-style-1 { --primary: #e74c3c; --secondary: #f39c12; }
.ui-style-2 { --primary: #9b59b6; --secondary: #1abc9c; }
.ui-style-3 { --primary: #34495e; --secondary: #16a085; }
.ui-style-4 { --primary: #e67e22; --secondary: #c0392b; }
.ui-style-5 { --primary: #1abc9c; --secondary: #3498db; }
.ui-style-6 { --primary: #2980b9; --secondary: #8e44ad; }
.ui-style-7 { --primary: #27ae60; --secondary: #2c3e50; }
.ui-style-8 { --primary: #f39c12; --secondary: #d35400; }
.ui-style-9 { --primary: #d35400; --secondary: #c0392b; }
.ui-style-10 { --primary: #c0392b; --secondary: #e74c3c; }
.ui-style-11 { --primary: #8e44ad; --secondary: #9b59b6; }
.ui-style-12 { --primary: #16a085; --secondary: #27ae60; }
.ui-style-13 { --primary: #2c3e50; --secondary: #34495e; }
.ui-style-14 { --primary: #f1c40f; --secondary: #f39c12; }
.ui-style-15 { --primary: #7f8c8d; --secondary: #95a5a6; }
