:root {
  --paper-bg: #f8f1e5;
  --paper-dark: #e6d5b8;
  --ink: #3d2b1f;
  --gold: #b8860b;
  --accent: #3498db;
  --cell-bg: #ffffff;
  --cell-active: #5d4037;
}

body {
  background-color: #121212;
  background-image: radial-gradient(#2c2c2c 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
  color: var(--ink);
}

.container {
  background: var(--paper-bg);
  background-image:
          linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
          url('https://www.transparenttextures.com/patterns/parchment.png');
  width: 100%;
  max-width: 600px;
  padding: 40px 30px;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 100px rgba(184, 134, 11, 0.1);
  border: 1px solid #d4c4a8;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 2px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
}

h1 {
  text-align: center;
  margin: 0;
  font-size: 24px;
  color: #4a3728;
  letter-spacing: 2px;
}

.subtitle {
  text-align: center;
  font-size: 12px;
  color: #8c7a6b;
  margin-top: 5px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.controls {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

select {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 4px;
  background: var(--cell-bg);
  color: var(--ink);
  border: 1px solid #dcd0bc;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

select:hover {
  border-color: var(--gold);
}

.forecast-container {
  width: 100%;
}

.weather-row {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.weather-row.active {
  border-left-color: #27ae60;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: scale(1.02);
}

.time-box {
  flex: 1.5;
  font-weight: bold;
  color: #5d4037;
  display: flex;
  flex-direction: column;
  font-size: 0.9em;
}

.et-time {
  font-size: 0.85em;
  color: var(--gold);
  margin-top: 2px;
}

.weather-name {
  flex: 2;
  text-align: center;
  font-size: 1.05em;
  font-weight: 600;
}

.weather-val {
  flex: 1;
  text-align: right;
  color: #8c7a6b;
  font-family: monospace;
  font-size: 0.85em;
}

.special-weather {
  color: #b8860b;
  font-weight: bold;
}

.back-link {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}
