/* 依据旧站 cron/index.scss 移植，样式仅作用于工具正文。 */
.tool-root.cron-tool {
  --light: #FFEFEA;
  --mid: #FF8D4D;
  --border: #E0E0E0;
  --shadow: rgba(255, 90, 0, 0.1);
  --text: #333;
  --bg: #FFFFFF;
  --layout-max-width:1100px;
}

.tool-root.cron-tool .cron-generator {
  max-width: var(--layout-max-width);
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--shadow);
  font-family: "Arial", sans-serif;
  color: var(--text);
}
@media screen and (max-width: 992px) {
  .tool-root.cron-tool .cron-generator {
    margin: 1.5rem auto;
    padding: 1.5rem;
  }
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .cron-generator {
    margin: 1rem;
    padding: 1rem;
    box-shadow: none;
  }
}

.tool-root.cron-tool .cron-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.tool-root.cron-tool .cron-tabs::-webkit-scrollbar {
  height: 5px;
}
.tool-root.cron-tool .cron-tabs::-webkit-scrollbar-track {
  background: var(--light);
}
.tool-root.cron-tool .cron-tabs::-webkit-scrollbar-thumb {
  background: var(--mid);
  border-radius: 10px;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .cron-tabs {
    padding-bottom: 5px;
  }
}

.tool-root.cron-tool .tab-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.tool-root.cron-tool .tab-btn:hover {
  color: var(--Dark);
}
.tool-root.cron-tool .tab-btn.active {
  color: var(--Dark);
  font-weight: 600;
}
.tool-root.cron-tool .tab-btn.active:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--Dark);
  border-radius: 3px 3px 0 0;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .tab-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

.tool-root.cron-tool .cron-content {
  margin-bottom: 2rem;
}

.tool-root.cron-tool .tab-content {
  display: none;
}
.tool-root.cron-tool .tab-content.active {
  display: block;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .tab-content {
    padding: 0.5rem 0;
  }
}

.tool-root.cron-tool .radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tool-root.cron-tool .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex-wrap: wrap;
}
.tool-root.cron-tool .radio-group label input[type=radio] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.tool-root.cron-tool .radio-group label input[type=radio]:checked {
  border-color: var(--Dark);
}
.tool-root.cron-tool .radio-group label input[type=radio]:checked:after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--Dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.tool-root.cron-tool .radio-group label input[type=number] {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
}
.tool-root.cron-tool .radio-group label input[type=number]:focus {
  border-color: var(--Dark);
  outline: none;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .radio-group label {
    padding: 0.5rem 0;
  }
  .tool-root.cron-tool .radio-group label input[type=radio] {
    width: 16px;
    height: 16px;
  }
  .tool-root.cron-tool .radio-group label input[type=number] {
    width: 50px;
    padding: 0.3rem;
    margin: 0.2rem;
  }
}

.tool-root.cron-tool .specify-options {
  width: 100%;
}
.tool-root.cron-tool .specify-options .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.tool-root.cron-tool .specify-options .checkbox-group label {
  min-width: 50px;
  display: inline-flex;
  align-items: center;
}
.tool-root.cron-tool .specify-options .checkbox-group label input[type=checkbox] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 3px;
  margin: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.tool-root.cron-tool .specify-options .checkbox-group label input[type=checkbox]:checked {
  background-color: var(--Dark);
  border-color: var(--Dark);
}
.tool-root.cron-tool .specify-options .checkbox-group label input[type=checkbox]:checked:after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .specify-options .checkbox-group {
    gap: 0.3rem;
  }
  .tool-root.cron-tool .specify-options .checkbox-group label {
    min-width: 40px;
    margin-right: 0;
  }
}
@media screen and (max-width: 480px) {
  .tool-root.cron-tool .specify-options .checkbox-group label {
    min-width: 35px;
  }
}

.tool-root.cron-tool .cron-result {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .cron-result {
    padding: 1rem;
  }
}

.tool-root.cron-tool .expression-format {
  margin-bottom: 1.5rem;
}
.tool-root.cron-tool .expression-format .format-heading {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.tool-root.cron-tool .expression-format .format-heading span {
  padding: 0.5rem;
  background-color: var(--Dark);
  color: white;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}
@media screen and (max-width: 992px) {
  .tool-root.cron-tool .expression-format .format-heading {
    grid-template-columns: repeat(4, 1fr);
  }
  .tool-root.cron-tool .expression-format .format-heading span:nth-child(n+5) {
    margin-top: 0.5rem;
  }
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .expression-format .format-heading {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-root.cron-tool .expression-format .format-heading span {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
  .tool-root.cron-tool .expression-format .format-heading span:nth-child(n+4) {
    margin-top: 0.5rem;
  }
}
.tool-root.cron-tool .expression-format .format-values {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.tool-root.cron-tool .expression-format .format-values input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  background-color: white;
  font-size: 0.9rem;
  width: 100%;
}
.tool-root.cron-tool .expression-format .format-values input:focus {
  border-color: var(--Dark);
  outline: none;
}
@media screen and (max-width: 992px) {
  .tool-root.cron-tool .expression-format .format-values {
    grid-template-columns: repeat(4, 1fr);
  }
  .tool-root.cron-tool .expression-format .format-values input:nth-child(n+5) {
    margin-top: 0.5rem;
  }
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .expression-format .format-values {
    grid-template-columns: repeat(3, 1fr);
  }
  .tool-root.cron-tool .expression-format .format-values input {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
  .tool-root.cron-tool .expression-format .format-values input:nth-child(n+4) {
    margin-top: 0.5rem;
  }
}

.tool-root.cron-tool .cron-expression {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tool-root.cron-tool .cron-expression label {
  font-weight: 600;
  white-space: nowrap;
}
.tool-root.cron-tool .cron-expression input {
  flex: 1;
  min-width: 250px;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: white;
  font-family: monospace;
  font-size: 1rem;
}
.tool-root.cron-tool .cron-expression input:focus {
  border-color: var(--Dark);
  outline: none;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .cron-expression {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .tool-root.cron-tool .cron-expression input {
    width: 100%;
    min-width: unset;
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

.tool-root.cron-tool .buttons-container {
  display: flex;
  gap: 1rem;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .buttons-container {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.5rem;
  }
  .tool-root.cron-tool .buttons-container button {
    flex: 1;
    margin-right: 0.5rem;
  }
  .tool-root.cron-tool .buttons-container button:last-child {
    margin-right: 0;
  }
}

.tool-root.cron-tool .copy-btn, .tool-root.cron-tool .parse-btn {
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .copy-btn, .tool-root.cron-tool .parse-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.tool-root.cron-tool .copy-btn {
  background-color: var(--Dark);
  color: white;
}
.tool-root.cron-tool .copy-btn:hover {
  background-color: #cc4800;
}

.tool-root.cron-tool .parse-btn {
  background-color: white;
  color: var(--Dark);
  border: 1px solid var(--Dark);
}
.tool-root.cron-tool .parse-btn:hover {
  background-color: var(--light);
}

.tool-root.cron-tool .recent-runs h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--Dark);
  font-size: 1.1rem;
}
.tool-root.cron-tool .recent-runs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
}
.tool-root.cron-tool .recent-runs ul li {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-family: monospace;
}
.tool-root.cron-tool .recent-runs ul li:last-child {
  border-bottom: none;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .recent-runs ul li {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

/* 文档部分样式 */
.tool-root.cron-tool .cron-documentation {
  max-width: var(--layout-max-width);
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px var(--shadow);
  font-family: "Arial", sans-serif;
  color: var(--text);
}
@media screen and (max-width: 992px) {
  .tool-root.cron-tool .cron-documentation {
    margin: 1.5rem auto;
    padding: 1.5rem;
  }
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .cron-documentation {
    margin: 1rem;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }
}

.tool-root.cron-tool .doc-section {
  margin-bottom: 2.5rem;
}
.tool-root.cron-tool .doc-section:last-child {
  margin-bottom: 0;
}
.tool-root.cron-tool .doc-section h2 {
  color: var(--Dark);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light);
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .doc-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
}
.tool-root.cron-tool .doc-section h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .doc-section h4 {
    font-size: 1rem;
    margin-top: 1.2rem;
  }
}

.tool-root.cron-tool .common-expr-table {
  overflow-x: auto;
}
.tool-root.cron-tool .common-expr-table table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.tool-root.cron-tool .common-expr-table table th, .tool-root.cron-tool .common-expr-table table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tool-root.cron-tool .common-expr-table table th {
  background-color: var(--light);
  font-weight: 600;
  color: var(--Dark);
}
.tool-root.cron-tool .common-expr-table table tr:nth-child(even) {
  background-color: rgba(255, 90, 0, 0.03);
}
.tool-root.cron-tool .common-expr-table table td:first-child {
  font-family: monospace;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .common-expr-table table th, .tool-root.cron-tool .common-expr-table table td {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

.tool-root.cron-tool .doc-content {
  line-height: 1.6;
}
.tool-root.cron-tool .doc-content p {
  margin-bottom: 1rem;
}
.tool-root.cron-tool .doc-content ul, .tool-root.cron-tool .doc-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.tool-root.cron-tool .doc-content ul li, .tool-root.cron-tool .doc-content ol li {
  margin-bottom: 0.5rem;
}
.tool-root.cron-tool .doc-content strong {
  color: var(--Dark);
}
@media screen and (max-width: 768px) {
  .tool-root.cron-tool .doc-content {
    font-size: 0.95rem;
  }
  .tool-root.cron-tool .doc-content ul, .tool-root.cron-tool .doc-content ol {
    padding-left: 1.2rem;
  }
}

.tool-root.cron-tool { --Dark: var(--tool-accent, #ff5a00); --DarkTone: #5e5d5b; --layout-max-width: 1200px; --content-padding: 20px; box-sizing: border-box; margin-left: auto; margin-right: auto; }
.tool-root.cron-tool *, .tool-root.cron-tool *::before, .tool-root.cron-tool *::after { box-sizing: border-box; }
.tool-root.cron-tool [hidden] { display: none !important; }
.tool-root.cron-tool { --layout-max-width: 1100px; width: min(100%, 1140px); padding: 0 15px; }
.tool-root.cron-tool > h1 { text-align: center; color: var(--Dark); }
.tool-root.cron-tool .cron-generator, .tool-root.cron-tool .cron-documentation { width: 100%; margin-left: auto; margin-right: auto; }
.tool-root.cron-tool .cron-content > .tab-content { display: block; }
.tool-root.cron-tool .cron-content .radio-group { padding: 0; }
.tool-root.cron-tool .cron-content .specify-options { padding-left: 12px; }
.tool-root.cron-tool .cron-content .checkbox-group label { gap: 2px; }
.tool-root.cron-tool .cron-content .checkbox-group input { margin-right: 2px; }
.tool-root.cron-tool .common-expr-table button { border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.tool-root.cron-tool .common-expr-table button:hover { color: var(--Dark); text-decoration: underline; }
.tool-root.cron-tool [data-feedback], .tool-root.cron-tool [data-preview-error] { color: #b42318; }
