.cron-display-area {
    text-align: center;
    padding: 10px 0;
}

.cron-input-wrapper {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
}

.cron-main-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 24px !important;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 700;
    color: #4F46E5;
    height: 54px;
    padding-right: 12px !important; /* 取消基础样式的右侧内边距 */
}

.calculate-button.small {
    width: auto !important;
    white-space: nowrap;
    height: 54px;
    padding: 0 24px;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.human-readable {
    font-size: 16px;
    color: #4B5563;
    background: #F3F4F6;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #E5E7EB;
}

.cron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cron-part {
    text-align: center;
    font-family: monospace;
    font-weight: 600;
    font-size: 16px;
}

.cron-grid .form-label {
    justify-content: center;
}

.cron-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.preset {
    font-size: 12px;
    background: #F3F4F6;
    color: #4B5563;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
}

.preset:hover {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

.cron-guide {
    line-height: 1.6;
}

.cron-guide p {
    margin-bottom: 12px;
}

.cron-guide pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.5;
    margin: 16px 0;
}

.cron-guide h3 {
    margin: 24px 0 12px;
    font-size: 18px;
}

.cron-guide ul {
    list-style: none;
    padding: 0;
}

.cron-guide ul li {
    margin-bottom: 8px;
    padding-left: 0;
}

.cron-guide code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #4F46E5;
    font-weight: 600;
}

.cron-guide pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

@media (max-width: 640px) {
    .cron-input-wrapper {
        flex-direction: column;
        max-width: 100%;
    }
    
    .cron-main-input {
        font-size: 18px !important;
        width: 100%;
    }

    .calculate-button.small {
        width: 100% !important;
    }
    
    .cron-grid {
        grid-template-columns: 1fr;
    }
}
