:root {
  --line: rgba(117, 91, 58, 0.18);
  --text: #2d241b;
  --muted: #6b5a49;
  --brand: #8d5b2d;
  --brand-strong: #500d0d;
  --brand-soft: #f1dfc7;
  --shadow: 0 18px 48px rgba(70, 49, 26, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}



html,
body {
  min-height: 100%;
  font-family: sans-serif, "Noto Sans TC", "Microsoft JhengHei" ;
}


a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


.new-shell {
  width: min(1220px, calc(100% - 24px));
  margin: 0 auto;
}

.new-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.new-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.new-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8d5b2d, #c39253);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.new-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.new-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 18px;
}

.new-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(117, 91, 58, 0.12);
  box-shadow: 0 10px 24px rgba(70, 49, 26, 0.06);
}

.new-nav-link:link,
.new-nav-link:visited,
.new-nav-link:hover,
.new-nav-link:active {
  color: var(--brand-strong);
  text-decoration: none;
}

.new-nav-link.is-active {
  background: linear-gradient(135deg, #8d5b2d, #b98047);
  color: #fff8f0;
}

.new-nav-link.is-active:link,
.new-nav-link.is-active:visited,
.new-nav-link.is-active:hover,
.new-nav-link.is-active:active {
  color: #fff8f0;
}

.new-main {
  display: block;
}

.new-content-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#indexhi {
  display: grid;
  gap: 18px;
}

#indexh2 {
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--brand-strong);
}

fieldset {
  margin: 0 0 18px;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  box-shadow: 0 8px 22px rgba(70, 49, 26, 0.06);
}

legend {
  padding: 0 10px;
  color: var(--brand-strong);
  font-weight: 800;
}

table {
  
  max-width: 960;
  border-collapse: collapse;
}
table[border="1"],
table[border=1] {
  overflow: hidden;
  border: 1px solid rgba(117, 91, 58, 0.18);
  border-radius: 14px;
  background: #fffdfa;
}

td,
th {
  vertical-align: top;
  padding: 5px 5px;
}

th {
  background: rgba(141, 91, 45, 0.1);
  color: var(--brand-strong);
  text-align: left;
}

input[type="text"],
input[type="password"],
select,
textarea {
  
  padding: 10px 12px;
  border: 1px solid rgba(112, 84, 48, 0.18) !important;
  border-radius: 12px;
  background: #F0F8FF !important;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(64, 44, 22, 0.04);
}



input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
}

input[type="submit"],
input[type="button"],
button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #8d5b2d, #b98047);
  color: #fffaf2;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(111, 66, 24, 0.18);
}


.new-grid-table {
  display: grid;
  gap: 0;
  border: 1px solid rgba(117, 91, 58, 0.18);
  border-radius: 14px;
  background: #fffdfa;
  overflow: hidden;
}

.new-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, 120px);
  gap: 0;
  border-bottom: 1px solid rgba(117, 91, 58, 0.12);
}

.new-grid-row:last-child {
  border-bottom: none;
}

.new-grid-row.is-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(244, 232, 214, 0.98);
}

.new-grid-cell {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid rgba(117, 91, 58, 0.08);
  word-break: break-word;
}

.new-grid-cell:last-child {
  border-right: none;
}

.new-grid-row.is-head .new-grid-cell {
  font-weight: 700;
  color: var(--brand-strong);
}

.new-tag-table,
.new-tag-thead,
.new-tag-tbody,
.new-tag-tfoot {
  display: grid;
  width: 100%;
}

.new-tag-table {
  border: 1px solid rgba(117, 91, 58, 0.18);
  border-radius: 14px;
  background: #fffdfa;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.new-tag-tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-bottom: 1px solid rgba(117, 91, 58, 0.12);
}

.new-tag-tr:last-child {
  border-bottom: none;
}

.new-tag-th,
.new-tag-td {
  min-width: 0;
  padding: 9px 12px;
  border-right: 1px solid rgba(117, 91, 58, 0.08);
  word-break: break-word;
}

.new-tag-th:last-child,
.new-tag-td:last-child {
  border-right: none;
}

.new-tag-th,
.new-tag-td[data-cell-tag="th"] {
  font-weight: 700;
  color: var(--brand-strong);
  background: rgba(244, 232, 214, 0.68);
}

