* { box-sizing: border-box; }
:root{
  --bg:#F4F3EA;            /* 背景米色 */
  --panel:#FBF9F1;         /* 卡片更浅的米色 */
  --accent:#8FA35E;        /* 橄榄绿（浅） */
  --accent-strong:#4C6B2F; /* 橄榄深绿 */
  --text:#233018;          /* 深色正文 */
  --muted:#6B735E;         /* 次要文字 */
  --line:#E5E2D5;          /* 细边线 */
  --shadow: 0 6px 20px rgba(40,55,25,.12);
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin:0; padding:0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{ max-width: 760px; margin:0 auto; padding: 18px 16px 28px; }
.card{
  background: var(--panel);
  border-radius: 22px;
  padding: 16px 16px;
  box-shadow: var(--shadow);
  margin: 14px 0;
  border: 1px solid var(--line);
}

h1{ font-size: 28px; margin: 6px 0 6px; color: var(--accent-strong); letter-spacing: .5px; }
h2,h3{ margin: 6px 0 10px; color: var(--accent-strong); }
.tip{ font-size: 13px; color: var(--muted); }
.footer{ text-align:center; font-size:12px; color:var(--muted); padding:14px 0 32px; }

label{ display:block; font-size:15px; margin:10px 0 6px; color:#2B381F; font-weight:600; }

input[type="text"], input[type="datetime-local"], textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  font-size: 16px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input[type="text"]:focus, input[type="datetime-local"]:focus, textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(143,163,94,.18);
}

button{
  padding: 12px 16px;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
}
button.primary{
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
}
button.primary:active{ transform: translateY(1px); }
button.secondary{ background:#EFF2E3; color:#233018; }

.list{ list-style:none; padding:0; margin:0; }
.list li{ display:grid; grid-template-columns: 40px 120px 1fr; gap:10px; padding:10px 0; border-bottom: 1px dashed #E8E3CF; }
.list li:last-child{ border-bottom: none; }

.badge{
  display:inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EDE9D8;
  color: var(--accent-strong);
  font-size: 12px;
  margin-left: 8px;
}

.hidden{ display:none; }

/* Two-line host list */
.list li.two-line { display:block; padding:12px 0; }
.list li.two-line .row1{ display:grid; grid-template-columns: 50px 1fr 80px; align-items:center; gap:10px; }
.list li.two-line .row1 .idx{ color:#3A4A25; font-weight:700; }
.list li.two-line .row1 .nick{ color:#19220F; font-weight:600; }
.list li.two-line .row1 .del{ justify-self:end; }
.list li.two-line .row2.topic{ margin-top:6px; color:#46523C; word-break: break-word; white-space: pre-wrap; }

/* Simple hero spacing */
#openContainer .card:first-child{
  background: linear-gradient(180deg, rgba(221,230,185,.6), rgba(251,249,241,1) 60%);
}

@media (min-width: 768px){
  .container{ padding: 24px; }
  h1{ font-size: 34px; }
}
