* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* 洛谷默认字体 */
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  min-height: 100vh;
  /* 洛谷页面底色：浅灰白 */
  background-color: #f5f7fa;
  padding: 30px 15px;
}

.glass {
  /* 替换玻璃效果为洛谷卡片样式 */
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.glass-btn {
  padding: 10px 20px;
  border: 1px solid #3498db;
  background: #3498db;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 14px;
}

.glass-btn:hover {
  background: #2980b9;
  border-color: #2980b9;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  color: #333;
  outline: none;
  font-size: 15px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: #3498db;
}

input::placeholder, textarea::placeholder {
  color: #c0c4cc;
}

nav {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.post-item {
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a {
  color: #3498db;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}