body {
          font-family: "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
          max-width: 800px;
          margin: 0 auto;
          padding: 20px;
          
          background-color: var(--bg-color);
          color: var(--text-color);
          min-height: 100vh;
          line-height: 1.6;
          font-size: 16px;
      }

      h1 {
          text-align: center;
          
          color: var(--text-color);
          margin-bottom: 30px;
      }

      .container {
          background-color: var(--bg-color);
          padding: 30px;
          border-radius: 12px;
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
          transition: all 0.3s ease;
      }

      .container:hover {
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      }

      .form-group {
          margin-bottom: 20px;
      }

      label {
          display: block;
          margin-bottom: 8px;
          font-weight: bold;
      }

      textarea {
          width: 95%;
          height: 150px;
          padding: 12px;
          border: 1px solid var(--border-color);
          background-color: var(--input-bg);
          border-radius: 6px;
          resize: none;
          font-family: "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
          font-size: 16px;
          transition: border-color 0.3s, box-shadow 0.3s;
          overflow: auto;
          color: #ffffff;
      }

      textarea:focus {
          border-color: #86b7fe;
          box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
          outline: 0;
      }

      .controls {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin: 20px 0;
      }

      .direction-control {
          display: flex;
          align-items: center;
      }

      .radio-group {
          margin-left: 10px;
          display: flex;
          gap: 10px;
          align-items: center;
      }

      .radio-label {
          display: flex;
          align-items: center;
          gap: 8px;
          cursor: pointer;
          padding: 8px 12px;
          border-radius: 6px;
          transition: all 0.2s ease;
          /* color: var(--text-color); */
      }

      .radio-label:hover {
          background-color: rgba(13, 110, 253, 0.1);
      }

      .radio-label input[type="radio"]:checked + span {
          color: #0d6efd;
          font-weight: 500;
      }

      button {
          background-color: #0d6efd;
          color: white;
          border: none;
          padding: 12px 24px;
          border-radius: 6px;
          cursor: pointer;
          font-size: 16px;
          font-weight: 500;
          transition: all 0.3s ease;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }

      button:hover {
          background-color: #2980b9;
      }

      .result {
          margin-top: 20px;
      }

      .char-count {
          color: #9e9e9e;
          font-size: 14px;
          text-align: right;
      }

      .footer {
          margin-top: 30px;
          text-align: center;
          font-size: 14px;
          color: #9e9e9e;
      }

    :root {
  --bg-color: #1e1e1e;
  --text-color: #e0e0e0;
  --input-bg: #2d2d2d;
  --border-color: #444;
}

.theme-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}

label {
    color: #f0f0f0;
}